Service access method and device, server and storage medium
By performing protocol conversion in service access requests between distributed clouds and central clouds, from low-security protocols to high-security protocols, the problem of insufficient communication security between distributed clouds and central clouds is solved, and access security is improved. sex.
Patent Information
- Application Number
- CN202310196934.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-28
- Publication Date
- 2024-08-30
AI Technical Summary
Distributed clouds cannot achieve the same level of protection as central clouds, resulting in insufficient communication security and vulnerability to attacks and information leakage, especially in geographically dispersed environments.
By receiving service access requests from distributed clouds, it determines whether the conversion conditions are met, and when the conditions are met, the request is converted from a low-security protocol to a high-security protocol to ensure that high-security protocols are used when accessing services in the central cloud.
It reduces the probability of information leakage in service access requests, prevents attackers from accessing sensitive services in the central cloud by forging low-security protocols, and improves the security of distributed cloud access to the central cloud.
Smart Images

Figure CN118573383A
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of cloud technology, and in particular to a service access method, device, server and storage medium. Background Art
[0002] Cloud technology refers to a hosting technology that unifies hardware, software, network and other resources within a wide area network or local area network to achieve data computing, storage, processing and sharing. With the continuous development of cloud technology, more and more cloud products have emerged.
[0003] Distributed cloud, as a widely used cloud technology, extends the central cloud service to different physical locations, while the ownership, operation, governance, update and development of the service are still the responsibility of the cloud service provider. After the cloud service provider deploys the distributed cloud server in the customer's designated computer room according to customer needs, the distributed cloud can access the services provided by the central cloud by sending requests.
[0004] Due to factors such as geographical location, cloud service providers cannot provide the same protection for distributed clouds as they do for central clouds. Therefore, how to improve the security of communication between distributed clouds and central clouds has become an urgent problem that needs to be solved. Summary of the invention
[0005] The embodiments of the present application provide a service access method, device, server and storage medium, which can improve the security of services provided by a distributed cloud access center cloud. The technical solution is as follows:
[0006] On the one hand, an embodiment of the present application provides a service access method, the method comprising:
[0007] Receiving a first service access request sent by a distributed cloud, where the first service access request is used to request access to a target service provided by a central cloud, and the first service access request uses a first network protocol;
[0008] If the first service access request meets the conversion condition, perform protocol conversion on the first service access request to obtain a second service access request, the second service access request adopts a second network protocol, and the security of the first network protocol is higher than the security of the second network protocol;
[0009] accessing the target service based on the second service access request, and obtaining a service access result;
[0010] Feedback the service access result to the distributed cloud.
[0011] On the other hand, an embodiment of the present application provides a service access device, the device comprising:
[0012] A receiving module, configured to receive a first service access request sent by a distributed cloud, wherein the first service access request is used to request access to a target service provided by a central cloud, and the first service access request adopts a first network protocol;
[0013] a conversion module, configured to perform protocol conversion on the first service access request to obtain a second service access request when the first service access request meets a conversion condition, wherein the second service access request adopts a second network protocol, and the security of the first network protocol is higher than the security of the second network protocol;
[0014] An access module, configured to access the target service based on the second service access request and obtain a service access result;
[0015] A sending module is used to feed back the service access result to the distributed cloud.
[0016] On the other hand, an embodiment of the present application provides a service access system, the service access system comprising a central cloud and a distributed cloud;
[0017] The distributed cloud is used to send a first service access request to the distributed cloud, the first service access request is used to request access to a target service provided by the central cloud, and the first service access request adopts a first network protocol;
[0018] The central cloud is used to receive the first service access request sent by the distributed cloud; if the first service access request meets the conversion conditions, perform protocol conversion on the first service access request to obtain a second service access request, the second service access request adopts a second network protocol, and the security of the first network protocol is higher than the security of the second network protocol; access the target service based on the second service access request to obtain a service access result; and feed back the service access result to the distributed cloud.
[0019] On the other hand, an embodiment of the present application provides a server, which includes a processor and a memory, wherein the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the service access method described in the above aspects.
[0020] On the other hand, an embodiment of the present application provides a computer-readable storage medium, in which at least one instruction is stored. The at least one instruction is loaded and executed by a processor to implement the service access method described in the above aspects.
[0021] On the other hand, an embodiment of the present application provides a computer program product, the computer program product or computer program product includes computer instructions, the computer instructions are stored in a computer-readable storage medium. The processor of the server reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the server executes the service access method provided by the above aspect.
[0022] In an embodiment of the present application, when a distributed cloud needs to access a target service provided by a central cloud, it does not directly send a service access request using the second network protocol, but instead sends a first service access request using the first network protocol. When the central cloud determines that the first service access request meets the conversion conditions, it converts the first service access request into a second service access request using the second network protocol, thereby obtaining a service access result based on the second service access request and feeding it back to the distributed cloud, thereby realizing service access for the distributed cloud. Since the security of the first network protocol is higher than that of the second network protocol, the solution provided by an embodiment of the present application can reduce the probability of information leakage in service access requests, and prevent attackers from accessing sensitive services in the central cloud by imitating service access requests using a low-security network protocol. On the premise of ensuring normal access to services, the access security of the distributed cloud when accessing the central cloud is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 A schematic diagram showing an implementation environment provided by an exemplary embodiment of the present application is shown;
[0024] Figure 2 It is an interactive flow chart of the process of distributed cloud accessing the service provided by the central cloud in the related technology;
[0025] Figure 3 It is a schematic diagram of an implementation of a distributed cloud access service process provided by a central cloud, shown in an exemplary embodiment of the present application;
[0026] Figure 4 A flow chart showing a service access method provided by an exemplary embodiment of the present application is shown;
[0027] Figure 5 It is a schematic diagram of an implementation of a protocol conversion system processing request process shown in an exemplary embodiment of the present application;
[0028] Figure 6 A flow chart showing a service access method provided by another exemplary embodiment of the present application is shown;
[0029] Figure 7 is a flowchart of a request protocol conversion process shown in an exemplary embodiment of the present application;
[0030] Figure 8is a flow chart of a service access process shown in an exemplary embodiment of the present application;
[0031] Fig. 9 is a schematic diagram of an implementation of a configuration synchronization process shown in an exemplary embodiment of the present application;
[0032] Fig.10 is a flowchart of a configuration synchronization process shown in an exemplary embodiment of the present application;
[0033] Fig.11 is a system architecture diagram of a service access system provided by an exemplary embodiment of the present application;
[0034] Fig.12 is a structural block diagram of a service access device provided by an exemplary embodiment of the present application;
[0035] Fig.13 A schematic diagram of the structure of a server provided by an exemplary embodiment of the present application is shown. DETAILED DESCRIPTION
[0036] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0037] For ease of understanding, the nouns involved in the embodiments of the present application are explained below.
[0038] Network protocol: refers to the set of rules that must be followed when exchanging information between peer entities that communicate with each other in a computer network. The network layer architecture can be divided according to its function, including the application layer, presentation layer, session layer, transport layer, network layer, data link layer and physical layer. Common networks include four-layer network protocols (involving application layer, transport layer, network layer and data link layer / physical layer), five-layer network protocols (involving application layer, transport layer, network layer, data link layer and physical layer) and seven-layer network protocols (involving application layer, presentation layer, session layer, transport layer, network layer, data link layer and physical layer).
[0039] Figure 1 A schematic diagram of an implementation environment provided by an exemplary embodiment of the present application is shown. The implementation environment includes a central cloud 110 and a distributed cloud 120. The central cloud 110 and the distributed cloud 120 communicate data via a communication network, and the central clouds 110 communicate data via a communication network. Optionally, the communication network can be a wired network or a wireless network, and the communication network can be at least one of a local area network, a metropolitan area network, and a wide area network.
[0040] The central cloud 110 is a cloud platform deployed by a cloud service provider, and the distributed cloud 120 is a cloud platform deployed by a cloud service purchaser. The cloud platform is composed of servers, which can be independent physical servers, server clusters or distributed systems composed of multiple physical servers, or cloud servers that provide basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.
[0041] Generally speaking, since the central cloud 110 is deployed in the computer room of the cloud service provider, and the computer room is geographically concentrated, the cloud service provider has a higher ability to control the external conditions and security of the central cloud 110; while the distributed cloud 120 is deployed in the computer room designated by the cloud service purchaser, and the geographical location of the computer rooms is relatively dispersed, so the cloud service provider has a lower ability to control the external conditions and security of the distributed cloud 120.
[0042] The central cloud 110 is deployed with services, which may include open source protocol services such as MySQL, Redis and Kafka, and may also include private protocol services.
[0043] The distributed cloud 120 is deployed with different management and control service components, such as computing components, storage components, etc. In some embodiments, the distributed cloud 120 can establish a network protocol connection with the service by reading the connection configuration of the relevant service in the central cloud 110, thereby accessing the service through a dedicated line or VPN (Virtual Private Network). For example, the distributed cloud 120 can obtain data from the central cloud 110 and process it locally.
[0044] Optionally, when the central cloud 110 is deployed in multiple regions, the distributed cloud 120 can access the services provided by a specific central cloud 110 based on the principle of proximity. Figure 1 As shown, both region A and region B are deployed with central clouds 110, and regions C, D, and E are deployed with distributed clouds 120. Since regions C and D are closer to region A, the distributed clouds 120 deployed in regions C and D obtain services by accessing the central cloud 110 in region A; since region E is closer to region B, the distributed cloud 120 deployed in region E obtains services by accessing the central cloud 110 in region B.
[0045] In the related art, when the distributed cloud needs to access the open source protocol service (such as MySQL service) deployed in the central cloud, the interaction process between the distributed cloud and the central cloud is as follows: Figure 2shown.
[0046] Step 201, the distributed cloud reads the service configuration of the open source protocol service.
[0047] Step 202: The distributed cloud generates a four-layer protocol connection based on the service configuration.
[0048] Step 203: The distributed cloud accesses the central cloud via a dedicated line or VPN.
[0049] Step 204: The central cloud establishes a connection with the distributed cloud.
[0050] Step 205: The central cloud provides services for the distributed cloud.
[0051] Step 206: The distributed cloud obtains service feedback results.
[0052] Although it is simple and efficient for distributed clouds to directly access the services provided by the central cloud through the four-layer network protocol, since the central cloud has weak control over the security of the distributed cloud, using the above method to access services will cause additional security issues.
[0053] For example, when the services of a distributed cloud are maliciously damaged and sensitive configuration information is obtained, criminals can generate connections based on this sensitive information and access services on the central cloud, thereby causing information leakage.
[0054] For example, when the dedicated line or VPN between the distributed cloud and the central cloud is attacked from the outside, for open source protocols, it is easy for external attackers to forge the protocol content and access the services on the central cloud based on the forged protocol content, thereby causing information leakage.
[0055] In order to improve the security of the distributed cloud access to the central cloud process, Figure 1 Based on the implementation environment shown, Figure 3 As shown, a protocol conversion system 111 is provided in the central cloud 110 , and the protocol conversion system 111 is used to perform protocol conversion on the service access request sent by the distributed cloud 120 .
[0056] When the management and control service component 121 in the distributed cloud 120 needs to access the open source protocol service provided by the central cloud 110, it does not use the low-security second network protocol (such as the four-layer network protocol), but uses the high-security first network protocol (such as the seven-layer network protocol). After using the high-security first network protocol, even if it is attacked from the outside, the external attacker cannot access the central cloud 110 by forging the protocol content, thereby improving the security of service access.
[0057] After the central cloud 110 receives a service access request using the first network protocol, if the service access request meets the conversion conditions, the request is converted into a second network protocol through the protocol conversion system 111, thereby accessing the service 112 through the service access request using the second network protocol to obtain a service feedback result.
[0058] It can be seen that the solution provided by the embodiment of the present application can reduce the probability of information leakage in service access requests (especially when accessing open source protocol services), prevent attackers from accessing sensitive services in the central cloud by imitating service access requests that use low-security network protocols, and improve the access security of distributed clouds when accessing the central cloud while ensuring normal access to services.
[0059] Figure 4 A flowchart of a service access method provided by an exemplary embodiment of the present application is shown. Figure 1 Taking the central cloud 110 as an example, the method includes the following steps.
[0060] Step 401, receiving a first service access request sent by a distributed cloud, the first service access request is used to request access to a target service provided by a central cloud, and the first service access request adopts a first network protocol.
[0061] When the target service in the central cloud needs to be accessed, the distributed cloud generates a first service access request and sends the request to the central cloud through the network. The distributed cloud can send the request to the nearest central cloud to reduce access latency; and the first service access request can be sent through a dedicated line or VPN between the central cloud and the distributed cloud, which is not limited in the embodiments of the present application.
[0062] In one possible case, the first network protocol adopted by the first service access request is consistent with the network protocol supported by the target service.
[0063] In one possible implementation, when the security of the network protocol supported by the target service is higher (i.e., the security of accessing the target service using the network protocol supported by the target service is higher), or the target service has lower requirements for access security, the distributed cloud generates a first service access request based on the network protocol supported by the target service.
[0064] For example, when the target service supports access using HTTP (Hyper Text Transfer Protocol), the first service access request is an HTTP request using a seven-layer network protocol.
[0065] In another possible case, the first network protocol adopted by the first service access request is inconsistent with the network protocol supported by the target service, and the security of the first network protocol is higher than the security of the network protocol supported by the target service.
[0066] In a possible implementation, when the security of the network protocol supported by the target service is low, that is, when the security of accessing the target service using the network protocol supported by the target service is low, the distributed cloud generates a first service access request based on a first network protocol with higher security.
[0067] For example, when the target service supports access using a four-layer network protocol, in order to improve the security of the access process, the first service access request is an HTTP request using a seven-layer network protocol.
[0068] Step 402, when the first service access request meets the conversion condition, the first service access request is converted into a second service access request, the second service access request adopts a second network protocol, and the security of the first network protocol is higher than the security of the second network protocol.
[0069] In one possible implementation, the central cloud detects whether the target service supports direct access through the first network protocol. If not, it determines that the first service access request meets the conversion conditions, thereby performing protocol conversion on the first service access request to obtain a second service access request, wherein the second service access request uses the second network security protocol as the network protocol supported by the target service.
[0070] Furthermore, since the distributed cloud uses the first service access request of the first network protocol instead of directly using the network protocol supported by the target service when access security needs to be improved, the security of the second service access request using the second network protocol is lower than that of the first network protocol.
[0071] In one possible design, a protocol conversion system is provided in the central cloud, and the protocol conversion system is used to detect whether a received service access request meets conversion conditions, and to perform protocol conversion on the request if the conversion conditions are met.
[0072] In some embodiments, if the target service supports direct access through the first network protocol, the central cloud determines that the first service access request does not meet the conversion conditions, that is, there is no need to perform protocol conversion on the first service access request.
[0073] For the first service access request that meets the conversion conditions, since the security of the first network protocol used by the request is higher than that of the second network protocol, compared with directly accessing the service through the request using the second network protocol, accessing the service through the request using the first network protocol can improve the security of the service access process. In addition, by performing protocol conversion on the request that meets the conversion conditions, it is ensured that the services in the central cloud can be accessed normally.
[0074] Step 403: Access the target service based on the second service access request to obtain a service access result.
[0075] Furthermore, the central cloud accesses the target service based on the second service access request obtained by conversion, and obtains the service access result fed back by the target service.
[0076] For example, when the target service is a MySQL service, the central cloud performs a MySQL database query based on the second service access request to obtain a data query result.
[0077] Step 404: Feedback the service access result to the distributed cloud.
[0078] After the distributed cloud obtains the service access result fed back by the central cloud, it can perform further processing based on the service access result. For example, the distributed cloud feeds back the obtained data query result to the request initiating terminal for the request initiating terminal to display the query result. In some embodiments, the central cloud uses the first network protocol to feed back the access result to the distributed cloud.
[0079] In a possible application scenario, when the distributed cloud needs to access the MySQL service in the central cloud, since the MySQL service uses an open source protocol, it needs to be accessed through a four-layer network protocol. However, the security of the four-layer network protocol is relatively low. Therefore, when the distributed cloud is breached, it is easy to cause data leakage in the central cloud.
[0080] By adopting the solution provided by the embodiment of the present application, the distributed cloud no longer uses the four-layer network protocol to access the central cloud, but uses the seven-layer network protocol to access, such as sending HTTP requests to the central cloud. Since the seven-layer network protocol has higher security, even if the distributed cloud is compromised, criminals cannot easily forge requests by forging protocol content, thereby improving the security of data in the central cloud.
[0081] Since it is impossible to access the MySQL service directly through the seven-layer network protocol, when the central cloud determines through the protocol conversion system that the HTTP request meets the conversion conditions, it performs protocol conversion on the HTTP request and obtains a request using the four-layer network protocol, thereby obtaining data query results based on the converted request direction and MySQL service.
[0082] To summarize, in the embodiments of the present application, when the distributed cloud needs to access the target service provided by the central cloud, it does not directly send a service access request using the second network protocol, but instead sends a first service access request using the first network protocol. When the central cloud determines that the first service access request meets the conversion conditions, it converts the first service access request into a second service access request using the second network protocol, thereby obtaining a service access result based on the second service access request and feeding it back to the distributed cloud, thereby realizing service access for the distributed cloud. Since the security of the first network protocol is higher than that of the second network protocol, the solution provided by the embodiments of the present application can reduce the probability of information leakage in the service access request, and prevent attackers from accessing sensitive services in the central cloud by imitating service access requests using a low-security network protocol. On the premise of ensuring normal access to the service, the access security of the distributed cloud when accessing the central cloud is improved.
[0083] In a possible implementation, Figure 5 As shown, the protocol conversion system 52 of the central cloud includes an access layer 521, a conversion layer 522 and a protocol layer 523. Since not all requests from the distributed cloud need to be converted, after the service access request of the distributed cloud reaches the access layer 521, the access layer 521 determines whether the request meets the conversion request. If the conversion conditions are met, the request is transferred to the conversion layer 522, and the conversion layer 522 further converts the content contained in the request, and the conversion result is transferred to the protocol layer 523 for protocol conversion, and finally the service access is performed based on the converted request. For requests that do not meet the conversion conditions, the access layer 521 directly transfers the request to the corresponding service for service access. The detailed process of protocol conversion is described below using an exemplary embodiment.
[0084] Figure 6 A flowchart of a service access method provided by another exemplary embodiment of the present application is shown. Figure 1 Taking the central cloud 110 as an example, the method includes the following steps.
[0085] Step 601, receiving a first service access request sent by a distributed cloud, the first service access request is used to request access to a target service provided by a central cloud, and the first service access request adopts a first network protocol.
[0086] The implementation of this step may refer to the above step 401, and this embodiment will not be described in detail here.
[0087] Step 602: Determine the protocol type used by the service requested by the first service access request, where the protocol type includes an open source protocol and a private protocol.
[0088] In a possible implementation, after receiving the first service access request, the access layer of the protocol conversion system preliminarily parses the first service access request, determines the target service requested by the first service access request, and determines the protocol type used by the target service.
[0089] In the embodiment of the present application, the protocol types used by the services provided by the central cloud are divided into open source protocols and private protocols. Optionally, the security of the network protocol used by default when accessing services using open source protocols is lower than the security of the network protocol used by default when accessing services using private protocols.
[0090] In some embodiments, the network protocol used by services using open source protocols by default is a four-layer network protocol or a five-layer network protocol, that is, the distributed cloud uses four-layer or five-layer network protocol requests by default to access services. Accordingly, when the distributed cloud accesses such services, in order to improve access security, it uses seven-layer network protocol requests to access services.
[0091] The default network protocol used by services using private protocols is the seven-layer network protocol, that is, the distributed cloud uses the seven-layer network protocol requests to access services by default. Correspondingly, when accessing such services, the distributed cloud directly uses the seven-layer network protocol to access the service.
[0092] In a possible implementation, the process of the central cloud determining the protocol type corresponding to the target service may include the following steps:
[0093] Step 602A: Obtain the target service identifier of the service requested by the first service access request.
[0094] Optionally, the central cloud performs preliminary analysis on the first service access request to obtain a target service identifier of the requested target service, wherein the service identifier is used to uniquely identify the service provided by the central cloud.
[0095] In one possible implementation, the central cloud first determines the first network protocol used by the first service access request. When the first network protocol is a seven-layer network protocol, the central cloud determines that there may be a need for protocol conversion, and further performs preliminary analysis on the first service access request to obtain the target service identifier.
[0096] Optionally, when the first network protocol is a layer 4 or layer 5 network protocol (it may be a service that does not adopt the solution provided by this application, such as an open source service with lower security requirements), the central cloud determines that the request does not require protocol conversion and directly accesses the target service based on the first service access request.
[0097] Indicatively, Figure 5As shown, when the computing component 511 in the distributed cloud accesses the MySQL service 53 or the Redis service 54 (both open source services) through an http request, the access layer 521 of the central cloud parses the http request and obtains a service identifier of "service001" or "sercice002"; when the computing component 511 in the distributed cloud accesses the storage service 55 (private service) through an http request, the access layer 521 of the central cloud parses the http request and obtains a service identifier of "service003".
[0098] Step 602B, when the target service identifier belongs to the whitelist, it is determined that the service requested by the first service access request adopts an open source protocol, and the whitelist contains service identifiers of open source services registered in the central cloud.
[0099] In a possible implementation, a whitelist is set in the central cloud, which contains the service identifiers of registered open source services, and the whitelist supports dynamic updates. Since the distributed cloud usually uses a more secure network protocol instead of the default network protocol when accessing the open source services in the central cloud, the central cloud can determine whether the requested target service is an open source service based on the whitelist, and then determine whether the request needs to be converted to a protocol.
[0100] In combination with the example in the above steps, since the service identifiers “service001” and “sercice002” both belong to the whitelist, the access layer 521 determines that the target service requested by the computing component 511 adopts an open source protocol.
[0101] Step 602C: when the target service identifier does not belong to the whitelist, determine that the service requested by the first service access request adopts a private protocol.
[0102] In combination with the example in the above steps, since the service identifier "service003" does not belong to the whitelist, the access layer 521 determines that the target service requested by the storage component 512 adopts a private protocol.
[0103] Step 603, when the service requested by the first service access request adopts an open source protocol, determine that the first service access request meets the conversion condition, and perform protocol conversion on the first service access request to obtain a second service access request.
[0104] In order to improve the security of access to open source services, when the distributed cloud requests an open source service, a high-security network protocol will be used, but the open source service may not support this network protocol. In this case, when a request to access the open source service is identified, the central cloud determines that the first service access request meets the conversion conditions and performs a protocol conversion.
[0105] Combined with the examples in the above steps, the access layer 521 determines that the http requests to access the MySQL service 53 or the Redis service 54 meet the conversion conditions, and transfers the http requests to the conversion layer 522, thereby performing protocol conversion through the conversion layer 522 and the protocol layer 523 to obtain the MySQL service access request and the Redis service access request using the four-layer protocol.
[0106] Step 604: Access the target service based on the second service access request to obtain a service access result.
[0107] The implementation of this step may refer to the above step 403, and this embodiment will not be described in detail here.
[0108] Indicatively, Figure 5 As shown, the central layer accesses the MySQL service 53 based on the converted MySQL service access request to obtain the MySQL query result; and accesses the Redis service 54 based on the converted Redis service access request to obtain the Redis query result.
[0109] Step 605: When the service requested by the first service access request adopts a private protocol, determine that the first service access request does not meet the conversion condition, and obtain a service access result based on the first service access request.
[0110] When the distributed cloud requests a private service, a high-security network protocol is used by default, and the private service supports this network protocol. Therefore, in this case, when it is identified that a private service is being requested, the central cloud determines that the first service access request does not meet the conversion conditions, that is, there is no need to perform protocol conversion on the first service access request, and the service access result is obtained directly through the first service access request.
[0111] Indicatively, Figure 5 As shown, the access layer 521 determines that the http request sent by the storage component 512 does not meet the conversion conditions, and thus directly accesses the storage service 55 based on the http request (bypassing the conversion layer 522 and the protocol layer 523).
[0112] Step 606: Feedback the service access result to the distributed cloud.
[0113] The implementation of this step may refer to the above step 404, and this embodiment will not be described in detail here.
[0114] In this embodiment, the central cloud identifies the protocol type used by the distributed cloud to request the service and determines whether the service access request requires protocol conversion, so that the distributed cloud can access the open source services in the central cloud through requests for the seven-layer network protocol without affecting access to private services in the central cloud, thereby improving the security of access to open source services in the central cloud.
[0115] Regarding the specific manner in which the protocol conversion system performs protocol conversion in each of the above embodiments, Figure 7 As shown, the process may include the following steps.
[0116] Step 701: parse the first service access request to obtain a request parsing result.
[0117] In a possible implementation, when the first service access request meets the conversion condition, the central cloud parses the first service access request based on the first network protocol to obtain a request parsing result.
[0118] In some embodiments, each service provided by the central cloud corresponds to at least one interface, wherein different interfaces provided by the same service correspond to different functions, and the protocol conversion system exposes the interface to the distributed cloud so that the distributed cloud can access the specified function of the specified service through interface calls.
[0119] Correspondingly, the first service access request generated by the distributed cloud includes the target service identifier and the target interface name of the requested target service, and the request parsing result obtained by the conversion layer 522 in the central cloud includes the target service identifier and the target interface name. It should be noted that the interface names of interfaces corresponding to different services may be repeated, that is, the specified interface of the specified service can be uniquely determined based on the service identifier and the interface name.
[0120] Illustratively, the request parsing result includes the target service identifier "service001" and the target interface name "user query".
[0121] Step 702: Based on the target interface name and the target service identifier in the request parsing result, query the conversion configuration data from the protocol conversion configuration.
[0122] In one possible implementation, in order to avoid exposure of the real service, the first service access request does not contain the real service configuration. In order to achieve service access, the central cloud needs to obtain the real service configuration of the target service requested by the first service access request based on the request parsing result, and then generate a request that complies with the network protocol supported by the target service.
[0123] In one possible design, a protocol conversion configuration is set in the conversion layer of the central cloud, which contains the correspondence between the interface name, service identifier and conversion configuration data, wherein the service identifier is used to uniquely identify the requested service, and the interface name is the name of the interface provided by the requested service.
[0124] Furthermore, since the first service access request only contains the request logic parameters necessary for accessing the service, but does not contain the actual logic processing statements, the conversion configuration data needs to contain a logic processing template and a service configuration. The logic processing template is used to generate a logic processing statement with the request logic parameters, and the logic processing statement is used to represent the logic operation performed to access the target service.
[0125] Optionally, when the service is a database service (such as a MySQL service), the logic processing template corresponding to the service can be a statement template corresponding to a data block query statement (such as select*from User where name=#{name}), and the request logic parameter includes the object name of the query object (such as "name": "Zhang San"). The embodiments of the present application do not limit the specific form of the logic processing template.
[0126] Optionally, the service configuration includes service connection parameters, including host, name, password, port, etc., which is not limited to the embodiments of the present application.
[0127] In an illustrative example, the protocol conversion configuration is shown in Table 1.
[0128] Table 1
[0129]
[0130] Combined with the examples in the above steps, the conversion layer of the central cloud queries the protocol conversion configuration shown in Table 1 based on the target service identifier "service001" and the target interface name "user query", and obtains the logical processing template of "select*from User where name=#{name}" and the service connection configuration of "connection parameter 1".
[0131] Optionally, when the conversion configuration data can be queried from the protocol conversion configuration based on the target interface name and the target service identifier, the central cloud determines that the first service access request is legal and executes step 703; when the conversion configuration data cannot be queried from the protocol conversion configuration based on the target interface name and the target service identifier, the central cloud determines that the first service access request is illegal.
[0132] Optionally, when the target conversion configuration data is not found, the central cloud sends a service access failure response to the distributed cloud.
[0133] Step 703: Perform protocol conversion on the first service access request based on the queried target conversion configuration data to obtain a second service access request.
[0134] In a possible implementation, when the target conversion configuration data includes a target logic processing template and a target service configuration, the process may include the following steps:
[0135] Step 703A: construct a logic processing statement based on the target logic processing template and the request logic parameters in the request parsing result, where the logic processing statement is used to represent the logic operation performed when accessing the target service.
[0136] In a possible implementation, the request parsing result of the first service access request includes request logic parameters, and the conversion layer of the protocol conversion system constructs a logic processing statement for accessing the target service based on the target logic processing template and the request logic parameters.
[0137] In an illustrative example, when the target logic processing template is "select*from User where name=#{name}" and the request logic parameter is "Zhang San", the generated logic processing statement is: select*from Userwhere name=Zhang San.
[0138] Step 703B: construct a second service access request based on the logic processing statement and the target service configuration.
[0139] In a possible implementation, the conversion layer in the protocol conversion system sends the logic processing statement and the target service configuration to the protocol layer, and the protocol layer constructs an access request to access the second service.
[0140] In some embodiments, since different services use different network protocols, service protocol processing units corresponding to different services are provided in the protocol layer. After the protocol layer obtains the logic processing statement and the target service configuration, it distributes them to the target service protocol processing unit corresponding to the target service, thereby encapsulating the logic processing statement through the target service protocol processing unit, and then constructing the second service access request based on the encapsulated logic processing statement and the target service configuration.
[0141] In an illustrative example, the protocol layer is provided with a MySQL service protocol processing unit and a Redis service protocol processing unit. For a first service access request to access the MySQL service, the protocol layer constructs a MySQL service access request based on a logical processing statement and a target service configuration through a MySQL service protocol processing unit; for a first service access request to access the Redis service, the protocol layer constructs a Redis service access request based on a logical processing statement and a target service configuration through a Redis service protocol processing unit.
[0142] In this embodiment, the real service configuration is stored in the protocol conversion configuration and obtained by querying the configuration, so as to avoid configuration leakage caused by directly including the real service configuration in the request; and the protocol conversion configuration plays a role in verifying the legality of the request. Only when the accessed service and interface belong to the protocol conversion configuration can the service be accessed, which further improves the security of the central cloud service access.
[0143] In combination with the above embodiments, in an illustrative example, the process of the distributed cloud accessing the services provided by the central cloud is as follows: Figure 8 shown.
[0144] Step 801: The distributed cloud sends a first service access request to the central cloud.
[0145] Step 802: The protocol conversion system of the central cloud receives a service access request.
[0146] Step 803: Determine through the access layer whether the service requested by the first service access request adopts an open source protocol. If an open source protocol is adopted, execute step 804; if a private protocol is adopted, execute step 808.
[0147] Step 804: the protocol conversion system transfers the first service access request to the conversion layer, and searches the protocol conversion configuration through the conversion layer for a logic processing template and service configuration data that match the service identifier and interface name in the first service access request.
[0148] Step 805: The conversion layer constructs a logic processing statement based on the logic processing template and the request logic parameters in the first service access request.
[0149] Step 806: The conversion layer distributes the logic processing statements and the service configuration data to the service protocol processing unit in the protocol layer.
[0150] Step 807: The service protocol processing unit of the protocol layer generates a second service access request based on the logic processing statement and the service configuration data, and accesses the target service based on the second service access request.
[0151] Step 808: Access the target service based on the first service access request.
[0152] Step 809: The central cloud processes the service access request through the target service.
[0153] Step 810: The protocol conversion system of the central cloud obtains the service access result fed back by the target service.
[0154] Step 811, the distributed cloud obtains the service access result from the central cloud.
[0155] In a possible application scenario, multiple central clouds are distributed in different regions, so that the distributed cloud can choose to access the central cloud nearby to reduce service access latency. In order to ensure the consistency of protocol conversion configurations at different central clouds, different central clouds need to support conversion configuration synchronization.
[0156] In one possible implementation, when the central cloud is a master regional central cloud, in response to receiving a conversion configuration update instruction, the master regional central cloud updates the protocol conversion configuration based on the conversion configuration update instruction, and synchronizes the protocol conversion configuration to each slave regional central cloud.
[0157] The master regional central cloud is a pre-designated central cloud. Optionally, the total distance of the transmission link between the master regional central cloud and each slave regional central cloud is the shortest.
[0158] In some embodiments, each central cloud is provided with an operation terminal, and the operation personnel can update the protocol conversion configuration through the operation terminal of the main regional central cloud. Among them, the updating method of the protocol conversion configuration includes adding protocol conversion configuration data (such as triggered by adding a service or adding a service interface), modifying protocol conversion configuration data, and deleting protocol conversion configuration data (such as triggered by deleting a service or deleting a service interface).
[0159] Optionally, the protocol conversion system of the primary regional center cloud pulls the protocol conversion configuration from its own operation end and saves it locally. When receiving a conversion configuration update instruction, the protocol conversion system of the primary regional center cloud pulls the latest protocol conversion configuration from the operation end.
[0160] Regarding the same method as the protocol conversion configuration, in a possible implementation, the slave regional center cloud pulls the latest protocol conversion configuration from the operation end of the master regional center cloud through its respective operation end. The slave regional center cloud can periodically pull the protocol conversion configuration from the master regional center cloud, and the same protocol conversion configuration data in each center cloud has the same identifier.
[0161] Indicatively, Fig. 9 As shown, the main regional center cloud is deployed with services (including MySQL service 53, Redis service 54 and storage service 55), protocol conversion system 52 (including access layer 521, conversion layer 522 and protocol layer 523) and operation terminal 56, and the deployment of each slave regional center cloud is consistent with the main regional center cloud.
[0162] The protocol conversion system of each central cloud pulls the protocol conversion configuration from the operation end and stores it locally so that the conversion layer can request conversion based on the protocol conversion configuration. In addition, the operation end of each slave regional central cloud regularly synchronizes configuration with the operation end of the master regional central cloud to ensure configuration consistency between the slave regional central cloud and the master regional central cloud. In this way, when the computing component 511 or storage component 512 of distributed cloud 1 accesses the master regional central cloud, and the computing component 511 or storage component 512 of distributed cloud 2 accesses the slave regional central cloud 1, consistent service access effects can be obtained.
[0163] In an illustrative example, when there are a master region A, a slave region B, and a slave region C, the process of implementing configuration synchronization in each central cloud is as follows: Fig.10 shown.
[0164] Step 1001: the operating system of the primary region A adds a new protocol conversion configuration.
[0165] Step 1002: The protocol conversion system of the primary region A actively pulls the protocol conversion configuration from the operation system.
[0166] Step 1003: the primary region A stores the retrieved protocol conversion configuration in a local protocol conversion system.
[0167] Step 1004: Synchronize the protocol conversion configuration of the operating system in the main region A from the operating system in the region B.
[0168] Step 1005: The protocol conversion system in region B actively pulls the protocol conversion configuration from the operation system.
[0169] Step 1006: Store the protocol conversion configuration pulled from region B into the local protocol conversion system.
[0170] Step 1007: Synchronize the protocol conversion configuration of the operating system in the main region A from the operating system in the region C.
[0171] Step 1008: The protocol conversion system in region C actively pulls the protocol conversion configuration from the operation system.
[0172] Step 1009: Store the protocol conversion configuration pulled from region C into the local protocol conversion system.
[0173] Since there may be delays in configuration synchronization between different central clouds, in one possible implementation, the central cloud queries the conversion configuration data from the protocol conversion configuration based on the target interface name and target service identifier in the request parsing result. If the central cloud is the primary regional central cloud and the target conversion configuration data is not found, the primary regional central cloud sends a service access failure response to the distributed cloud.
[0174] When the central cloud is a slave regional central cloud and the target conversion configuration data is not queried, since there may be a delay in the configuration update of the slave regional central cloud, a configuration synchronization instruction is sent from the regional central cloud to the master regional central cloud.
[0175] When a configuration synchronization response is received, the protocol conversion configuration is updated from the regional center cloud, and based on the target interface name and the target service identifier, the conversion configuration data is queried again from the updated protocol conversion configuration.
[0176] If the target conversion configuration data is not found from the updated protocol conversion configuration, the slave central cloud sends a service access failure response to the distributed cloud. If the target conversion configuration data is found from the updated protocol conversion configuration, the slave central cloud continues to perform operations such as requesting protocol conversion.
[0177] Fig.11 : is a structural block diagram of a service access device provided by an exemplary embodiment of the present application, the device comprising:
[0178] A receiving module 1101 is used to receive a first service access request sent by a distributed cloud, where the first service access request is used to request access to a target service provided by a central cloud, and the first service access request adopts a first network protocol;
[0179] The conversion module 1102 is used to perform protocol conversion on the first service access request to obtain a second service access request when the first service access request meets the conversion condition, wherein the second service access request adopts a second network protocol, and the security of the first network protocol is higher than the security of the second network protocol;
[0180] An access module 1103 is configured to access the target service based on the second service access request and obtain a service access result;
[0181] The sending module 1104 is used to feed back the service access result to the distributed cloud.
[0182] Optionally, the conversion module 1102 is used to:
[0183] Determining a protocol type adopted by the service requested by the first service access request, wherein the protocol type includes an open source protocol and a private protocol;
[0184] In a case where the service requested by the first service access request adopts an open source protocol, it is determined that the first service access request meets a conversion condition, and a protocol conversion is performed on the first service access request to obtain the second service access request.
[0185] Optionally, the conversion module 1102 is used to:
[0186] Obtaining a target service identifier of the service requested by the first service access request;
[0187] In a case where the target service identifier belongs to a whitelist, determining that the service requested by the first service access request adopts an open source protocol, and the whitelist includes service identifiers of open source services registered in the central cloud;
[0188] When the target service identifier does not belong to the whitelist, it is determined that the service requested by the first service access request adopts a private protocol.
[0189] Optionally, the first network protocol is a seven-layer network protocol, and the second network protocol is a four-layer network protocol or a five-layer network protocol.
[0190] Optionally, the access module 1103 is further used to:
[0191] In a case where the service requested by the first service access request adopts a private protocol, it is determined that the first service access request does not meet a conversion condition, and the service access result is obtained based on the first service access request.
[0192] Optionally, the access module 1103 is used to:
[0193] Parsing the first service access request to obtain a request parsing result;
[0194] Based on the target interface name and the target service identifier in the request parsing result, query the conversion configuration data from the protocol conversion configuration, wherein the protocol conversion configuration includes the corresponding relationship between the interface name, the service identifier and the conversion configuration data, wherein the service identifier is used as a unique identifier for the requested service, and the interface name is the name of the interface provided by the requested service, wherein different interfaces provided by the same service correspond to different functions;
[0195] The first service access request is subjected to protocol conversion based on the queried target conversion configuration data to obtain the second service access request.
[0196] Optionally, the target conversion configuration data includes a target logic processing template and a target service configuration;
[0197] The access module 1103 is used to:
[0198] Based on the target logic processing template and the request logic parameters in the request parsing result, construct a logic processing statement, wherein the logic processing statement is used to represent the logic operation performed to access the target service;
[0199] The second service access request is constructed based on the logic processing statement and the target service configuration.
[0200] Optionally, the access module 1103 is used to:
[0201] Distributing the logic processing statement and the target service configuration to a target service protocol processing unit corresponding to the target service, wherein different services correspond to different service protocol processing units;
[0202] Encapsulating the logic processing statement by the target service protocol processing unit;
[0203] The second service access request is constructed based on the encapsulated logical processing statement and the target service configuration.
[0204] Optionally, the sending module 1104 is further configured to:
[0205] In the case where the target conversion configuration data is not found, a service access failure response is sent to the distributed cloud.
[0206] Optionally, the device further comprises:
[0207] An updating module, configured to update the protocol conversion configuration based on the conversion configuration update instruction in response to receiving the conversion configuration update instruction when the central cloud is a primary regional central cloud;
[0208] The synchronization module is used to synchronize the protocol conversion configuration to each slave regional center cloud.
[0209] Optionally, the sending module 1104 is further configured to:
[0210] When the central cloud is the primary regional central cloud and the target conversion configuration data is not found, sending a service access failure response to the distributed cloud;
[0211] When the central cloud is the slave regional central cloud and the target conversion configuration data is not found, a configuration synchronization instruction is sent to the master regional central cloud; when a configuration synchronization response is received, the protocol conversion configuration is updated; based on the target interface name and the target service identifier, the conversion configuration data is re-queried from the updated protocol conversion configuration; when the target conversion configuration data is not found from the updated protocol conversion configuration, a service access failure response is sent to the distributed cloud.
[0212] To summarize, in the embodiments of the present application, when the distributed cloud needs to access the target service provided by the central cloud, it does not directly send a service access request using the second network protocol, but instead sends a first service access request using the first network protocol. When the central cloud determines that the first service access request meets the conversion conditions, it converts the first service access request into a second service access request using the second network protocol, thereby obtaining a service access result based on the second service access request and feeding it back to the distributed cloud, thereby realizing service access for the distributed cloud. Since the security of the first network protocol is higher than that of the second network protocol, the solution provided by the embodiments of the present application can reduce the probability of information leakage in the service access request, and prevent attackers from accessing sensitive services in the central cloud by imitating service access requests using a low-security network protocol. On the premise of ensuring normal access to the service, the access security of the distributed cloud when accessing the central cloud is improved.
[0213] It should be noted that: the device provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the implementation process thereof is detailed in the method embodiment, which will not be repeated here.
[0214] Please refer to Fig.12 , which shows a system architecture diagram of a service access system provided by an exemplary embodiment of the present application, the service access system includes a central cloud 1210 and a distributed cloud 1220;
[0215] The distributed cloud 1220 is used to send a first service access request to the distributed cloud, where the first service access request is used to request access to a target service provided by the central cloud, and the first service access request adopts a first network protocol;
[0216] The central cloud 1210 is used to receive the first service access request sent by the distributed cloud; if the first service access request meets the conversion condition, perform protocol conversion on the first service access request to obtain a second service access request, the second service access request adopts a second network protocol, and the security of the first network protocol is higher than the security of the second network protocol; access the target service based on the second service access request to obtain a service access result; and feed back the service access result to the distributed cloud.
[0217] It should be noted that the service access system may include multiple central clouds 1210 and multiple distributed clouds 1220, and the specific process of the distributed cloud 1220 accessing the services provided by the central cloud 1210 can refer to the above method embodiment, which will not be repeated in this embodiment.
[0218] Please refer to Fig.13 , which shows a schematic diagram of the structure of a server provided by an exemplary embodiment of the present application, which can be applied to the central cloud in the above embodiment. Specifically: the server 1600 includes a central processing unit (CPU) 1601, a system memory 1604 including a random access memory 1602 and a read-only memory 1603, and a system bus 1605 connecting the system memory 1604 and the central processing unit 1601. The server 1600 also includes a basic input / output system (I / O system) 1606 that helps transmit information between various devices in the computer, and a large-capacity storage device 1607 for storing an operating system 1613, an application program 1614 and other program modules 1615.
[0219] The basic input / output system 1606 includes a display 1608 for displaying information and an input device 1609 such as a mouse and a keyboard for user inputting information. The display 1608 and the input device 1609 are connected to the central processing unit 1601 through an input / output controller 1610 connected to the system bus 1605. The basic input / output system 1606 may also include an input / output controller 1610 for receiving and processing inputs from a plurality of other devices such as a keyboard, a mouse, or an electronic stylus. Similarly, the input / output controller 1610 also provides output to a display screen, a printer, or other types of output devices.
[0220] The mass storage device 1607 is connected to the central processing unit 1601 through a mass storage controller (not shown) connected to the system bus 1605. The mass storage device 1607 and its associated computer-readable medium provide non-volatile storage for the server 1600. That is, the mass storage device 1607 may include a computer-readable medium (not shown) such as a hard disk or drive.
[0221] Without loss of generality, the computer-readable medium may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented by any method or technology for storing information such as computer-readable instructions, data structures, program modules or other data. Computer storage media include random access memory (RAM), read-only memory (ROM), flash memory or other solid-state storage technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, cassette, tape, disk storage or other magnetic storage devices. Of course, those skilled in the art will know that the computer storage medium is not limited to the above. The above-mentioned system memory 1604 and mass storage device 1607 can be collectively referred to as memory.
[0222] The memory stores one or more programs, and the one or more programs are configured to be executed by one or more central processing units 1601. The one or more programs contain instructions for implementing the above-mentioned methods. The central processing unit 1601 executes the one or more programs to implement the methods provided by the above-mentioned various method embodiments.
[0223] According to various embodiments of the present application, the server 1600 may also be connected to a remote computer on a network through a network such as the Internet. That is, the server 1600 may be connected to a network 1612 through a network interface unit 1611 connected to the system bus 1605, or the network interface unit 1611 may be used to connect to other types of networks or remote computer systems (not shown).
[0224] An embodiment of the present application also provides a computer-readable storage medium, in which at least one instruction is stored. The at least one instruction is loaded and executed by a processor to implement the service access described in the above embodiment.
[0225] Optionally, the computer readable storage medium may include: ROM, RAM, solid state drives (SSD) or optical disks, etc. Among them, RAM may include resistance random access memory (ReRAM) and dynamic random access memory (DRAM).
[0226] The embodiment of the present application provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. The processor of the server reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the server executes the service access method of the center cloud side described in the above embodiment.
[0227] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0228] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A service access method, characterized in that: The method comprises: Receive a first service access request sent by the distributed cloud, where the first service access request is used to request access to a target service provided by the central cloud, and the first service access request uses a first network protocol; If the first service access request meets the conversion condition, perform protocol conversion on the first service access request to obtain a second service access request, the second service access request adopts a second network protocol, and the security of the first network protocol is higher than the security of the second network protocol; accessing the target service based on the second service access request, and obtaining a service access result; Feedback the service access result to the distributed cloud.
2. The method according to claim 1, characterized in that: The performing protocol conversion on the first service access request to obtain a second service access request when the first service access request meets the conversion condition includes: Determining a protocol type adopted by the service requested by the first service access request, wherein the protocol type includes an open source protocol and a private protocol; In a case where the service requested by the first service access request adopts an open source protocol, it is determined that the first service access request meets a conversion condition, and a protocol conversion is performed on the first service access request to obtain the second service access request.
3. The method according to claim 2, characterized in that The determining the protocol type adopted by the service requested by the first service access request includes: Obtaining a target service identifier of the service requested by the first service access request; In a case where the target service identifier belongs to a whitelist, determining that the service requested by the first service access request adopts an open source protocol, and the whitelist includes service identifiers of open source services registered in the central cloud; When the target service identifier does not belong to the whitelist, it is determined that the service requested by the first service access request adopts a private protocol.
4. The method according to claim 2, characterized in that: The first network protocol is a seven-layer network protocol, and the second network protocol is a four-layer network protocol or a five-layer network protocol.
5. The method according to claim 2, characterized in that: The method further comprises: In a case where the service requested by the first service access request adopts a private protocol, it is determined that the first service access request does not meet a conversion condition, and the service access result is obtained based on the first service access request.
6. The method according to claim 1, characterized in that The performing protocol conversion on the first service access request to obtain a second service access request includes: Parsing the first service access request to obtain a request parsing result; Based on the target interface name and the target service identifier in the request parsing result, query the conversion configuration data from the protocol conversion configuration, wherein the protocol conversion configuration includes the corresponding relationship between the interface name, the service identifier and the conversion configuration data, wherein the service identifier is used as a unique identifier for the requested service, and the interface name is the name of the interface provided by the requested service, wherein different interfaces provided by the same service correspond to different functions; The first service access request is subjected to protocol conversion based on the queried target conversion configuration data to obtain the second service access request.
7. The method according to claim 6, characterized in that The target conversion configuration data includes a target logic processing template and a target service configuration; The performing protocol conversion on the first service access request based on the queried target conversion configuration data to obtain the second service access request includes: Based on the target logic processing template and the request logic parameters in the request parsing result, construct a logic processing statement, wherein the logic processing statement is used to represent the logic operation performed to access the target service; The second service access request is constructed based on the logic processing statement and the target service configuration.
8. The method according to claim 7, characterized in that The constructing the second service access request based on the logic processing statement and the target service configuration includes: Distributing the logic processing statement and the target service configuration to a target service protocol processing unit corresponding to the target service, wherein different services correspond to different service protocol processing units; Encapsulating the logic processing statement by the target service protocol processing unit; The second service access request is constructed based on the encapsulated logical processing statement and the target service configuration.
9. The method according to claim 6, characterized in that After querying the conversion configuration data from the protocol conversion configuration based on the target interface name and the target service identifier in the request parsing result, the method further includes: In the case where the target conversion configuration data is not found, a service access failure response is sent to the distributed cloud.
10. The method according to claim 6, characterized in that The method further comprises: In the case where the central cloud is a primary regional central cloud, in response to receiving a conversion configuration update instruction, updating the protocol conversion configuration based on the conversion configuration update instruction; The protocol conversion configuration is synchronized to each slave regional central cloud.
11. The method according to claim 10, characterized in that After querying the conversion configuration data from the protocol conversion configuration based on the target interface name and the target service identifier in the request parsing result, the method further includes: When the central cloud is the primary regional central cloud and the target conversion configuration data is not found, sending a service access failure response to the distributed cloud; When the central cloud is the slave regional central cloud and the target conversion configuration data is not found, a configuration synchronization instruction is sent to the master regional central cloud; when a configuration synchronization response is received, the protocol conversion configuration is updated; based on the target interface name and the target service identifier, the conversion configuration data is re-queried from the updated protocol conversion configuration; when the target conversion configuration data is not found from the updated protocol conversion configuration, a service access failure response is sent to the distributed cloud.
12. A service access device, characterized in that: The device comprises: A receiving module, configured to receive a first service access request sent by a distributed cloud, wherein the first service access request is used to request access to a target service provided by a central cloud, and the first service access request adopts a first network protocol; a conversion module, configured to perform protocol conversion on the first service access request to obtain a second service access request when the first service access request meets a conversion condition, wherein the second service access request adopts a second network protocol, and the security of the first network protocol is higher than the security of the second network protocol; An access module, configured to access the target service based on the second service access request and obtain a service access result; A sending module is used to feed back the service access result to the distributed cloud.
13. A service access system, characterized in that: The service access system includes a central cloud and a distributed cloud; The distributed cloud is used to send a first service access request to the distributed cloud, the first service access request is used to request access to a target service provided by the central cloud, and the first service access request adopts a first network protocol; The central cloud is used to receive the first service access request sent by the distributed cloud; if the first service access request meets the conversion condition, perform protocol conversion on the first service access request to obtain a second service access request, the second service access request adopts a second network protocol, and the security of the first network protocol is higher than the security of the second network protocol; access the target service based on the second service access request to obtain a service access result; Feedback the service access result to the distributed cloud.
14. A server, characterized in that: The server includes a processor and a memory, wherein the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the service access method according to any one of claims 1 to 11.
15. A computer-readable storage medium, characterized in that: The readable storage medium stores at least one instruction, and the at least one instruction is loaded and executed by a processor to implement the service access method according to any one of claims 1 to 11.
16. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium; the processor of the server reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the server executes the service access method as described in any one of claims 1 to 11.
Citation Information
Patent Citations
Big data forwarding method and device for system cooperation
CN111614645A
Message sending method and device, gateway and storage medium
CN112153071A
Data transmission method, device and system
CN113382062A
Multi-protocol service compatible method, system, device, medium and program product
CN114070833A
Gateway management method and device
CN114979295A
Cited By
Public cloud technology-based network access method, and cloud system
WO2026066367A1
