[go: up one dir, main page]

WO2023232016A1 - Cloud service system and service processing method based on cloud service system - Google Patents

Cloud service system and service processing method based on cloud service system Download PDF

Info

Publication number
WO2023232016A1
WO2023232016A1 PCT/CN2023/097063 CN2023097063W WO2023232016A1 WO 2023232016 A1 WO2023232016 A1 WO 2023232016A1 CN 2023097063 W CN2023097063 W CN 2023097063W WO 2023232016 A1 WO2023232016 A1 WO 2023232016A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
address
service
load balancing
processed
Prior art date
Application number
PCT/CN2023/097063
Other languages
French (fr)
Chinese (zh)
Inventor
张浩博
Original Assignee
华为云计算技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为云计算技术有限公司 filed Critical 华为云计算技术有限公司
Publication of WO2023232016A1 publication Critical patent/WO2023232016A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/2521Translation architectures other than single NAT servers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers

Definitions

  • the embodiments of the present application relate to the field of cloud technology, and in particular, to a cloud service system and a business processing method based on the cloud service system.
  • cloud service systems In cloud scenarios such as public cloud, private cloud, and hybrid cloud, cloud service systems generally provide users with services of a certain scale through cluster deployment.
  • load balancing nodes can be added in the cluster to distribute the load of each node in the cluster, thereby optimizing the performance of the entire cloud service system.
  • Non-DR mode includes destination network address translation (DNAT) mode and bidirectional address translation (full network address translation, FULLNAT) mode.
  • DNAT destination network address translation
  • FULLNAT full network address translation
  • the DNAT mode is introduced below.
  • the load balancing node can perform DNAT processing on the service request and send the processed service request to the server node.
  • SNAT source network address translation
  • the embodiments of this application provide a cloud service system and a business processing method based on the cloud service system, which can effectively reduce the traffic passing through the load balancing node, reduce the bandwidth consumption of the load balancing node, and can reduce the business transmission delay and improve the user experience. .
  • the first aspect of the embodiments of this application provides a cloud service system, which includes: a load balancing node, a client node, and a server node. After the load balancing node, the client node and the server node shake hands, the load balancing node may first send the first identifier to the client node.
  • the client node may generate a first service request indicating the pending service, where the source address of the first service request is the address of the client node and the destination address is the load balancer. The address of the node. Then, the client node can perform DNAT processing based on the first identification pair, that is, convert the destination address of the first service request from the address of the load balancing node to the address of the server node, obtain the processed first service request, and process The first service request is sent to the server node.
  • the server node After receiving the processed first service request, the server node can process the processed first service request, and obtain to the first service response, and send the first service response to the client node.
  • the source address of the first service response is the server node
  • the destination address is the client node.
  • the client node After receiving the first service response, the client node can perform SNAT processing on the first service response based on the first identifier, that is, convert the source address of the first service response from the address of the server node to the address of the load balancing node, and then process it. The first business response after. Thereafter, the client node can complete the corresponding service based on the processed first service response.
  • the load balancing node can send the first identification to the client node. Then, when the client node has a service to be processed, the client node can convert the destination address of the first service request from the address of the load balancing node to the address of the server node based on the first identifier, and obtain the processed first service request, and directly sends the processed first service request to the server node. Then, the server node can process the processed first service request, obtain the first service response, and directly send the first service response to the client node.
  • the client node can convert the source address of the first service response from the address of the server node to the address of the load balancing node based on the first identifier to obtain the processed first service response.
  • the response completes the response business. It can be seen that in the DNAT mode, the DANT processing for the first business request and the SNAT processing for the first business response, which were originally responsible for the load balancing node, are offloaded to the client node for execution by the load balancing node. In this way, the processing The first business request and the processed first business response can be directly transmitted between the client node and the server node without being processed by the load balancing node, which can effectively reduce the traffic passing through the load balancing node and reduce load balancing. Node bandwidth consumption, and can reduce business transmission delay and improve user experience.
  • the client node when there is another service to be processed, can send a second service request indicating the service to be processed to the load balancing node.
  • the second service request refers to The included source address is the address of the client node, and the destination address is the address of the load balancing node.
  • the load balancing node can perform DNAT processing on the second service request, that is, convert the destination address of the second service request from the address of the load balancing node to the address of the server node, and obtain the processed second service ask. Then, the load balancing node may send the processed second service request to the server node.
  • the server node can perform a series of processes on the processed second service request to obtain a second service response, and send the second service response to the load balancing node.
  • the source address of the second service response is the address of the server node
  • the destination address of the second service response is the address of the client node.
  • the load balancing node can perform SNAT processing on the second business response, that is, convert the source address of the second business response from the address of the server node to the address of the load balancing node, and add it to the second business response.
  • the first identifier is used to obtain the processed second service response.
  • the load balancing node sends the processed second service response to the client node. In this way, the client node can save the first identifier based on the processed second service response and complete the corresponding service.
  • the load balancing node may first detect whether the second service request contains the second identifier. If the second service request contains the second identifier, it means that the load balancing node can offload the DNAT processing for the service request and the SNAT processing for the service response to the client node, so that the client node and the server node can directly complete the process. business interaction, so the load balancing node can perform SNAT processing on the second business response, that is, convert the source address of the second business response from the address of the server node to the address of the load balancing node, and add the first identifier to the second business response , and obtain the processed second service response. Then, the load balancing node sends the processed second service response to the client node. In this way, the client node can save the first identifier based on the processed second service response and complete the corresponding service.
  • the load balancing node can perform SNAT processing on the second service response, that is, convert the source address of the second service response from the address of the service point node to the address of the load balancing node, obtain the processed second service response, and convert the processed second service response
  • the second business response is sent to the client node. Thereafter, the client node can complete the corresponding service based on the processed second service response.
  • the client node is also used to send a handshake request to the load balancing node; the load balancing node is also used to select a server node from the server node resource pool based on the handshake request, and then transfer the handshake request to the server node.
  • the destination address of the request is converted from the address of the load balancing node to the address of the server node, the processed handshake request is obtained, and the processed handshake request is sent to the server node; the server node is also used to process the processed handshake request.
  • the handshake request is processed, a handshake response is obtained, and the handshake response is sent to the load balancing node; the load balancing node is also used to convert the source address of the handshake response from the address of the server node to the address of the load balancing node, and after processing Handshake response and send the processed handshake response to the client node.
  • the second aspect of the embodiment of this application provides a cloud service system, which includes: a load balancing node, a client node, and a server node. After the load balancing node, the client node and the server node shake hands, the load balancing node may first send the first identifier to the client node and the server node.
  • the client node may generate a first service request indicating the pending service, where the source address of the first service request is the address of the client node and the destination address is the load balancer. The address of the node. Then, the client node can perform DNAT processing based on the first identification pair, that is, convert the destination address of the first service request from the address of the load balancing node to the address of the server node, obtain the processed first service request, and process The first service request is sent to the server node.
  • the server node After receiving the processed first service request, the server node can process the processed first service request and obtain a first service response, where the source address of the first service response is the server node and the destination address is the client. end node. Then, the server node can perform SNAT processing on the first service response based on the first identifier, that is, convert the source address of the first service response from the address of the server node to the address of the load balancing node to obtain the processed first service response. , and sends the processed first business response to the client node. Thereafter, the client node can complete the corresponding service based on the processed first service response.
  • the load balancing node can send the first identifier to the client node and the server node. Then, when the client node has a service to be processed, the client node can convert the destination address of the first service request from the address of the load balancing node to the address of the server node based on the first identifier, and obtain the processed first service request, and sends the processed first service request to the server node.
  • the server node can process the processed first service request to obtain the first service response, and convert the source address of the first service response from the address of the server node to the address of the load balancing node based on the first identifier, The processed first service response is obtained, and the processed first service response is sent to the client node to complete the response service based on the processed first service response.
  • the DANT processing for the first service request that was originally responsible for the load balancing node is offloaded to the client node for execution by the load balancing node, and the SNAT for the first service response that was originally responsible for the load balancing node The processing is offloaded by the load balancing node to the server node for execution.
  • the processed first business request and the processed first business response can be directly transmitted between the client node and the server node without going through Load balancing node processing can effectively reduce the traffic passing through the load balancing node, reduce the bandwidth consumption of the load balancing node, and can reduce business transmission delay and improve user experience.
  • the client node when there is another service to be processed, can send a second service request indicating the service to be processed to the load balancing node.
  • the second service request refers to The included source address is the address of the client node, and the destination address is the address of the load balancing node.
  • the load balancing node can perform DNAT processing on the second service request, that is, convert the destination address of the second service request from the address of the load balancing node to the address of the server node, and add it to the second service request.
  • the first identification is obtained by processing the second service request.
  • the load balancing node may send the processed second service request to the server node.
  • the server node can save the first identifier, perform a series of processes on the processed second service request, thereby obtain the second service response, and send the second service response to the load.
  • Balanced node It should be noted that the source address of the second service response is the address of the server node, and the destination address of the second service response is the address of the client node.
  • the load balancing node can perform SNAT processing on the second business response, that is, convert the source address of the second business response from the address of the server node to the address of the load balancing node, and add it to the second business response.
  • the first identifier is used to obtain the processed second service response.
  • the load balancing node sends the processed second service response to the client node. In this way, the client node can save the first identifier based on the processed second service response and complete the corresponding service.
  • the load balancing node can first detect whether the second service request contains the second identifier. If the second service request contains the second identifier, it means that the load balancing node can take responsibility for itself.
  • the DNAT processing for the business request is offloaded to the client node, and the SNAT processing for the business response is offloaded to the server node. Therefore, the load balancing node can perform DNAT processing on the second business request, that is, the destination address of the second business request is changed from The address of the load balancing node is converted into the address of the server node, and the first identifier is added to the second service request to obtain the processed second service request.
  • the load balancing node may send the processed second service request to the server node.
  • the server node can save the first identifier, perform a series of processes on the processed second service request, thereby obtain the second service response, and send the second service response to the load.
  • Balanced node It should be noted that the source address of the second service response is the address of the server node, and the destination address of the second service response is the address of the client node.
  • the load balancing node can perform SNAT processing on the second business response, that is, convert the source address of the second business response from the address of the server node to the address of the load balancing node, and add it to the second business response.
  • the first identifier is used to obtain the processed second service response. Then, the load balancing node sends the processed second service response to the client node. Thereafter, the client node can save the first identification based on the processed second service response and complete the corresponding service.
  • the load balancing node if the second service request does not include the second identifier, it means that the load balancing node cannot offload the DNAT processing for the service request that it is responsible for to the client node, and offloads the SNAT processing for the service response to the client node.
  • the server node so the load balancing node can perform DNAT processing on the second service request, that is, convert the destination address of the second service request from the address of the load balancing node to the address of the server node, and obtain the processed second service request. Then, the load balancing node may send the processed second service request to the server node.
  • the server node can perform a series of processes on the processed second service request to obtain a second service response, and send the second service response to the load balancing node.
  • the load balancing node can perform SNAT processing on the second service response, that is, convert the source address of the second service response from the address of the server node to the address of the load balancing node to obtain the processed second service response. Then, the load balancing node sends the processed second service response to the client node. Thereafter, the client node completes the corresponding service based on the processed second service response.
  • the client node is also used to send handshake requests to the load balancing node; load The balancing node is also used to select the server node in the server node resource pool based on the handshake request, and then convert the destination address of the handshake request from the address of the load balancing node to the address of the server node to obtain the processed handshake request.
  • the server node is also used to process the processed handshake request, obtain the handshake response, and send the handshake response to the load balancing node;
  • the load balancing node is also used to Convert the source address of the handshake response from the address of the server node to the address of the load balancing node, obtain the processed handshake response, and send the processed handshake response to the client node.
  • the third aspect of the embodiments of this application provides a cloud service system, which includes: a load balancing node, a client node, and a server node. After the load balancing node, the client node and the server node shake hands, the load balancing node may first send the first identifier to the client node and the server node.
  • the client node may generate a first service request indicating the pending service, where the source address of the first service request is the address of the client node and the destination address is the load balancer. The address of the node. Then, the client node can perform DNAT processing and SNAT processing based on the first identification pair, that is, convert the source address of the first service request from the address of the client node to the address of the load balancing node, and convert the destination address of the first service request to Convert the address of the load balancing node to the address of the server node, obtain the processed first business request, and send the processed first business request to the server node.
  • DNAT processing and SNAT processing based on the first identification pair, that is, convert the source address of the first service request from the address of the client node to the address of the load balancing node, and convert the destination address of the first service request to Convert the address of the load balancing node to the address of the server node, obtain the processed first business request, and send the processed first business
  • the server node After receiving the processed first service request, the server node can process the processed first service request and obtain a first service response, where the source address of the first service response is the server node and the destination address is the client. end node. Then, the server node can perform SNAT processing on the first service response based on the first identifier, that is, convert the source address of the first service response from the address of the server node to the address of the load balancing node, and convert the corresponding destination address of the first service , convert the address of the load balancing node to the address of the client node, obtain the processed first service response, and send the processed first service response to the client node. Thereafter, the client node can complete the corresponding service based on the processed first service response.
  • the load balancing node can send the first identifier to the client node and the server node. Then, when the client node has a service to be processed, the client node can convert the source address of the first service request from the address of the client node to the address of the load balancing node based on the first identifier, and convert the source address of the first service request to the address of the load balancing node. The destination address is converted from the address of the load balancing node to the address of the server node, the processed first service request is obtained, and the processed first service request is sent to the server node.
  • the server node can process the processed first service request to obtain the first service response, and convert the source address of the first service response from the address of the server node to the address of the load balancing node based on the first identifier, Convert the corresponding destination address of the first service from the address of the load balancing node to the address of the client node, obtain the processed first service response, and send the processed first service response to the client node to perform processing based on The first business response after the completion of the response business. It can be seen that in the FULLDNAT mode, the DANT processing and SNAT processing for the first business request that were originally responsible for the load balancing node are offloaded to the client node for execution by the load balancing node.
  • the DANT processing and SNAT processing of the response are offloaded to the server node for execution by the load balancing node.
  • the processed first business request and the processed first business response can be directly processed between the client node and the server node.
  • Inter-transmission does not need to be processed by the load balancing node, which can effectively reduce the traffic passing through the load balancing node, reduce the bandwidth consumption of the load balancing node, reduce business transmission delay, and improve user experience.
  • the client node when there is another service to be processed, can send a second service request indicating the service to be processed to the load balancing node.
  • the second service request refers to Contains the source address is the address of the client node, and the destination address is the address of the load balancing node.
  • the load balancing node can perform DNAT processing and SNAT processing on the second service request, that is, convert the source address of the second service request from the address of the client node to the address of the load balancing node, and convert the second service request to the address of the load balancing node.
  • the destination address of the request is converted from the address of the load balancing node to the address of the server node, and the first identifier is added to the second service request, thereby obtaining the processed second service request. Then, the load balancing node may send the processed second service request to the server node. After obtaining the processed second service request, the server node can save the first identifier, perform a series of processes on the processed second service request, thereby obtain the second service response, and send the second service response to the load. Balanced node. It should be noted that the source address of the second service response is the address of the server node, and the destination address of the second service response is the address of the client node.
  • the load balancing node can perform DNAT processing and SNAT processing on the second service response, that is, convert the source address of the second service response from the address of the server node to the address of the load balancing node, and convert the second service response to the address of the load balancing node.
  • the destination address of the response is converted from the address of the load balancing node to the address of the client node, and the first identifier is added to the second service response to obtain a processed second service response.
  • the load balancing node sends the processed second service response to the client node. In this way, the client node can save the first identifier based on the processed second service response and complete the corresponding service.
  • the load balancing node can first detect whether the second service request contains the second identifier. If the second service request contains the second identifier, it means that the load balancing node can take responsibility for itself.
  • the DNAT processing and SNAT processing for the business request are offloaded to the client node, and the DNAT processing and SNAT processing for the business response are offloaded to the server node.
  • the load balancing node can perform DNAT processing and SNAT processing on the second business request, that is, The source address of the second service request is converted from the address of the client node to the address of the load balancing node, and the destination address of the second service request is converted from the address of the load balancing node to the address of the server node, and is forwarded to the second service node.
  • the request is to add the first identifier, thereby obtaining the processed second service request.
  • the load balancing node may send the processed second service request to the server node.
  • the server node After obtaining the processed second service request, the server node can save the first identifier, perform a series of processes on the processed second service request, thereby obtain the second service response, and send the second service response to the load. Balanced node.
  • the source address of the second service response is the address of the server node
  • the destination address of the second service response is the address of the client node.
  • the load balancing node can perform DNAT processing and SNAT processing on the second service response, that is, convert the source address of the second service response from the address of the server node to the address of the load balancing node, and convert the second service response to the address of the load balancing node.
  • the destination address of the response is converted from the address of the load balancing node to the address of the client node, and the first identifier is added to the second service response to obtain a processed second service response. Then, the load balancing node sends the processed second service response to the client node. In this way, the client node can save the first identifier based on the processed second service response and complete the corresponding service.
  • the load balancing node if the second service request does not include the second identifier, it means that the load balancing node cannot offload the DNAT processing and SNAT processing for the service request that it is responsible for to the client node, and will transfer the DNAT processing and SNAT processing for the service response to the client node.
  • DNAT processing and SNAT processing are offloaded to the server node, so the load balancing node can perform DNAT processing and SNAT processing on the second service request, that is, convert the source address of the second service request from the address of the client node to the address of the load balancing node , convert the destination address of the second service request from the address of the load balancing node to the address of the server node, and add the first identifier to the second service request, thereby obtaining the processed second service request. Then, the load balancing node may send the processed second service request to the server node. After obtaining the processed second service request, the server node can perform a series of processes on the processed second service request to obtain the second service response, and send the second service response.
  • the load balancing node can perform DNAT processing and SNAT processing on the second service response, that is, convert the source address of the second service response from the address of the server node to the address of the load balancing node, and convert the second service response to the address of the load balancing node.
  • the destination address of the response is converted from the address of the load balancing node to the address of the client node, and the first identifier is added to the second service response to obtain a processed second service response.
  • the load balancing node sends the processed second service response to the client node. Thereafter, the client node completes the corresponding service based on the processed second service response.
  • the client node is also used to send the handshake request to the load balancing node; the load balancing node is also used to select the server node in the server node resource pool based on the handshake request, and send the handshake request to the server node.
  • the source address is converted from the address of the client node to the address of the load balancing node, the destination address of the handshake request is converted from the address of the load balancing node to the address of the server node, the processed handshake request is obtained, and the processed The handshake request is sent to the server node; the server node is also used to process the processed handshake request, obtain the handshake response, and send the handshake response to the load balancing node; the load balancing node is also used to process the handshake response The source address is converted from the address of the server node to the address of the load balancing node, the destination address of the handshake response is converted from the address of the load balancing node to the address of the client node, the processed handshake response is obtained, and the processed The handshake response is sent to the client node.
  • the fourth aspect of the embodiment of the present application provides a business processing method based on a cloud service system.
  • the system includes a load balancing node, a client node, and a server node.
  • the method includes: the load balancing node sends the first identification to the client. End node; the client node converts the destination address of the first service request from the address of the load balancing node to the address of the server node based on the first identifier, obtains the processed first service request, and converts the processed first service request
  • the request is sent to the server node; the server node processes the processed first service request, obtains the first service response, and sends the first service response to the client node; the client node sends the first service request based on the first identifier.
  • the source address of the response is converted from the address of the server node to the address of the load balancing node, and the processed first business response is obtained.
  • the load balancing node sending the first identification to the client node includes: the load balancing node converts the destination address of the second service request from the client node from the address of the load balancing node to the server node.
  • the address of the node obtains the processed second business request, and sends the processed second business request to the server node; the load balancing node transfers the source address of the second business response from the server node to the service point node.
  • the address is converted into the address of the load balancing node, the first identifier is added to the second service response, the processed second service response is obtained, and the processed second service response is sent to the client node, and the second service response is the server
  • the node processes the processed second service request.
  • the method further includes: the load balancing node detects whether the second service request contains the second identifier; then the load balancing node sends the first identifier to the client node including: if the second service request includes the second identifier; Second identifier, the load balancing node converts the source address of the second service response from the server node from the address of the service point node to the address of the load balancing node, adds the first identifier to the second service response, and obtains the processed third Second business response, and send the processed second business response to the client node.
  • the method further includes: if the second service request does not contain the second identifier, the load balancing node converts the source address of the second service response from the server node from the address of the service point node. is the address of the load balancing node, obtains the processed second service response, and sends the processed second service response to the client node.
  • the fifth aspect of the embodiment of the present application provides a business processing method based on a cloud service system.
  • the system includes a load balancing node, a client node, and a server node.
  • the method includes: the load balancing node sends the first identification to the client.
  • the address of the node is converted into the address of the server node, the processed first business request is obtained, and the processed first business request is sent to the server node; the server node processes the processed first business request, and obtains
  • the first business response is to convert the source address of the first business response from the address of the server node to the address of the load balancing node based on the first identifier, obtain the processed first business response, and convert the processed first business response Sent to client node.
  • the load balancing node sending the first identification to the client node and the server node includes: the load balancing node sends the destination address of the second service request from the client node to the address of the load balancing node. Convert to the address of the server node, add the first identifier to the second business request, obtain the processed second business request, and send the processed second business request to the server node; the load balancing node will come from the server node
  • the source address of the second business response is converted from the address of the service point node to the address of the load balancing node, the first identifier is added to the second business response, the processed second business response is obtained, and the processed second business response is The response is sent to the client node, and the second service response is obtained by the server node processing the processed second service request.
  • the method further includes: the load balancing node detects whether the second service request contains the second identifier; the load balancing node sends the first identifier to the client node and the server node includes: if the second service request The request contains the second identifier, and the load balancing node converts the destination address of the second service request from the client node from the address of the load balancing node to the address of the server node, adds the first identifier to the second service request, and is processed The second service request after processing, and sends the processed second service request to the server node; the load balancing node converts the source address of the second service response from the server node from the address of the service point node to the load balancing node address, add the first identifier to the second service response, obtain the processed second service response, and send the processed second service response to the client node.
  • the method further includes: if the second service request does not contain the second identifier, the load balancing node converts the destination address of the second service request from the client node from the address of the load balancing node. is the address of the server node, obtains the processed second business request, and sends the processed second business request to the server node; the load balancing node transfers the source address of the second business response from the server node to the service node. The address of the point node is converted into the address of the load balancing node, a processed second service response is obtained, and the processed second service response is sent to the client node.
  • the sixth aspect of the embodiment of the present application provides a business processing method based on a cloud service system.
  • the system includes a load balancing node, a client node, and a server node.
  • the method includes: the load balancing node sends the first identification to the client.
  • the client node converts the source address of the first service request from the address of the client node to the address of the load balancing node based on the first identifier, and converts the destination address of the first service request from the address of the load balancing node
  • the address is converted into the address of the server node, the processed first business request is obtained, and the processed first business request is sent to the server node; the server node processes the processed first business request and obtains the A business response, converting the source address of the first business response from the address of the server node to the address of the load balancing node based on the first identifier, and converting the corresponding destination address of the first business from the address of the load balancing node to the client The address of the node, obtains the processed first service response, and sends the processed first service response to the client node.
  • the load balancing node sending the first identification to the client node and the server node includes: the load balancing node sends the source address of the second service request from the client node to the address of the client node. Convert to the address of the load balancing node, convert the destination address of the second service request from the address of the load balancing node to the address of the server node, add the first identifier to the second service request, and obtain the processed second service request, And send the processed second business request to the server node; the load balancing node will use the source address of the second business response from the server node, Convert the address of the service point node to the address of the load balancing node, convert the corresponding destination address of the second service from the address of the load balancing node to the address of the client node, add the first identifier to the second service response, and obtain the processed the second service response, and sends the processed second service response to the client node.
  • the second service response is obtained by the server
  • the method further includes: the load balancing node detects whether the second service request contains the second identifier; the load balancing node sends the first identifier to the client node and the server node includes: if the second service request The request contains the second identifier, and the load balancing node converts the source address of the second service request from the client node from the address of the client node to the address of the load balancing node, and converts the destination address of the second service request from the load balancing node.
  • the address of the node is converted into the address of the server node, the first identifier is added to the second business request, the processed second business request is obtained, and the processed second business request is sent to the server node; the load balancing node will come from
  • the source address of the second service response of the server node is converted from the address of the service point node to the address of the load balancing node, and the corresponding destination address of the second service is converted from the address of the load balancing node to the address of the client node.
  • the first identifier is added to the second service response, a processed second service response is obtained, and the processed second service response is sent to the client node.
  • the method further includes: if the second service request does not contain the second identifier, the load balancing node converts the source address of the second service request from the client node to the address of the client node. is the address of the load balancing node, convert the destination address of the second service request from the address of the load balancing node to the address of the server node, obtain the processed second service request, and send the processed second service request to Server node; the load balancing node converts the source address of the second service response from the server node from the address of the service point node to the address of the load balancing node, and converts the corresponding destination address of the second service from the address of the load balancing node Convert to the address of the client node, obtain the processed second service response, and send the processed second service response to the client node.
  • the seventh aspect of the embodiment of the present application also provides a cloud service system.
  • the load balancing node, client node and server node of the system all include a sending module and a processing module, wherein the sending module of the load balancing node is used to Send the first identification to the client node; the processing module of the client node is used to convert the destination address of the first service request from the address of the load balancing node to the address of the server node based on the first identification, and obtain the processed The first business request; the sending module of the client node is used to send the processed first business request to the server node; the processing module of the server node is used to process the processed first business request to obtain the first service request.
  • a business response; the sending module of the server node is used to send the first business response to the client node; the processing module of the client node is also used to send the source address of the first business response from the server based on the first identifier.
  • the address of the node is converted into the address of the load balancing node, and the processed first service response is obtained.
  • the processing module of the load balancing node is specifically used to convert the destination address of the second service request from the client node from the address of the load balancing node to the address of the server node.
  • the sending module of the load balancing node specifically used to send the processed second business request to the server node
  • the processing module of the load balancing module specifically used to respond to the second business from the server node
  • the source address is converted from the address of the service point node to the address of the load balancing node, and the first identifier is added to the second business response to obtain the processed second business response
  • the sending module of the load balancing node is specifically used to send the processed
  • the second service response is sent to the client node, and the second service response is obtained by the server node processing the processed second service request.
  • the processing module of the load balancing node is also used to detect whether the second service request contains the second identifier; the processing module of the load balancing node is specifically configured to detect if the second service request contains the second identifier. will come from The source address of the second service response of the server node is converted from the address of the service point node to the address of the load balancing node, and the first identifier is added to the second service response to obtain the processed second service response; sending by the load balancing node Module, specifically configured to send the processed second service response to the client node.
  • the processing module of the load balancing node is also configured to, if the second service request does not contain the second identifier, change the source address of the second service response from the server node to the service point node. The address is converted into the address of the load balancing node to obtain the processed second service response; the sending module of the load balancing node is also used to send the processed second service response to the client node.
  • the eighth aspect of the embodiment of the present application also provides a cloud service system.
  • the load balancing node, client node and server node of the system all include a sending module and a processing module, wherein the sending module of the load balancing node is used to Send the first identifier to the client node and the server node; the processing module of the client node is used to convert the destination address of the first service request from the address of the load balancing node to the address of the server node based on the first identifier, Obtain the processed first business request; the sending module of the client node is used to send the processed first business request to the server node; the processing module of the server node is used to process the processed first business request Process, obtain the first business response, convert the source address of the first business response from the address of the server node to the address of the load balancing node based on the first identifier, and obtain the processed first business response; the sending module of the server node , used to send the processed first service response to the client no
  • the processing module of the load balancing node is specifically configured to convert the destination address of the second service request from the client node from the address of the load balancing node to the address of the server node, to the second The business request adds a first identifier to obtain the processed second business request;
  • the sending module of the load balancing node is specifically used to send the processed second business request to the server node;
  • the processing module of the load balancing node is specifically used to Convert the source address of the second service response from the server node from the address of the service point node to the address of the load balancing node, add the first identifier to the second service response, and obtain the processed second service response; load balancing node
  • the sending module is specifically used to send the processed second service response to the client node, and the second service response is obtained by the server node processing the processed second service request.
  • the processing module of the load balancing node is also used to detect whether the second service request contains the second identifier; the processing module of the load balancing node is specifically configured to detect if the second service request contains the second identifier. Then convert the destination address of the second service request from the client node from the address of the load balancing node to the address of the server node, add the first identifier to the second service request, and obtain the processed second service request; load balancing
  • the sending module of the node is specifically used to send the processed second service request to the server node; the processing module of the load balancing node is specifically used to send the source address of the second service response from the server node to the service point node.
  • the address is converted into the address of the load balancing node, the first identifier is added to the second business response, and the processed second business response is obtained; the sending module of the load balancing node is specifically used to send the processed second business response to the client. end node.
  • the processing module of the load balancing node is also configured to, if the second service request does not contain the second identifier, change the destination address of the second service request from the client node to the load balancing node.
  • the address is converted into the address of the server node to obtain the processed second business request;
  • the sending module of the load balancing node is also used to send the processed second business request to the server node;
  • the processing module of the load balancing node is also used to Used to convert the source address of the second service response from the server node from the address of the service point node to the address of the load balancing node to obtain the processed second service response;
  • the sending module of the load balancing node is also used to convert The processed second service response is sent to the client node.
  • the ninth aspect of the embodiment of the present application also provides a cloud service system.
  • the load balancing node, client node and server node of the system all include a sending module and a processing module, wherein the sending module of the load balancing node is used to Send the first identification to the client node and the server node; the processing module of the client node is used to convert the source address of the first service request from the address of the client node to the address of the load balancing node based on the first identification, Convert the destination address of the first business request from the address of the load balancing node to the address of the server node to obtain the processed first business request; the sending module of the client node is used to send the processed first business request to the server node; the processing module of the server node is used to process the processed first service request, obtain the first service response, and change the source address of the first service response from the address of the server node based on the first identifier.
  • Convert to the address of the load balancing node convert the corresponding destination address of the first service from the address of the load balancing node to the address of the client node, and obtain the processed first service response; the sending module of the server node is used to The processed first service response is sent to the client node.
  • the processing module of the load balancing node is specifically configured to convert the source address of the second service request from the client node from the address of the client node to the address of the load balancing node, and convert the second service request from the client node to the address of the load balancing node.
  • the destination address of the service request is converted from the address of the load balancing node to the address of the server node, and the first identifier is added to the second service request to obtain the processed second service request;
  • the sending module of the load balancing node is specifically used to The processed second service request is sent to the server node;
  • the processing module of the load balancing node is specifically used to convert the source address of the second service response from the server node from the address of the service point node to the address of the load balancing node , convert the corresponding destination address of the second service from the address of the load balancing node to the address of the client node, add the first identifier to the second service response, and obtain the processed second service response;
  • the sending module of the load balancing node Specifically, it is used to send the processed second service response to the client node, and the second service response is obtained by the server node processing the processed second service request.
  • the processing module of the load balancing node is also used to detect whether the second service request contains the second identifier; the processing module of the load balancing node is specifically configured to detect if the second service request contains the second identifier. Then the source address of the second service request from the client node is converted from the address of the client node to the address of the load balancing node, and the destination address of the second service request is converted from the address of the load balancing node to the address of the server node.
  • the sending module of the load balancing node specifically used to send the processed second service request to the server node; processing of the load balancing node
  • the module is specifically used to convert the source address of the second service response from the server node from the address of the service point node to the address of the load balancing node, and convert the corresponding destination address of the second service from the address of the load balancing node to The address of the client node adds the first identifier to the second service response to obtain the processed second service response; the sending module of the load balancing node is specifically used to send the processed second service response to the client node.
  • the processing module of the load balancing node is also configured to, if the second service request does not contain the second identifier, change the source address of the second service request from the client node to The address is converted into the address of the load balancing node, and the destination address of the second service request is converted from the address of the load balancing node to the address of the server node to obtain the processed second service request; the sending module of the load balancing node also uses The processed second service request is sent to the server node; the processing module of the load balancing node is also used to convert the source address of the second service response from the server node from the address of the service point node to the load balancing node address, convert the corresponding destination address of the second service from the address of the load balancing node to the address of the client node, and obtain the processed second service response; the sending module of the load balancing node is also used to convert the processed second service response.
  • the second business response is sent to the client node.
  • a tenth aspect of the embodiment of the present application provides a load balancing node, which includes a memory and a processing
  • the memory stores code
  • the processor is configured to execute the code.
  • the load balancing node executes any one of the possible implementation methods of the fourth aspect, the fifth aspect, and the fifth aspect. Steps for implementing the load balancing node in any possible implementation manner, the sixth aspect, or any possible implementation manner of the sixth aspect.
  • An eleventh aspect of the embodiment of the present application provides a client node.
  • the client node includes a memory and a processor; the memory stores code, and the processor is configured to execute the code.
  • the client node executes
  • the client node executes
  • the customer Steps for end node implementation any one of the possible implementation methods of the fourth aspect, the fifth aspect, any one of the possible implementation methods of the fifth aspect, the sixth aspect, or any one of the possible implementation methods of the sixth aspect, the customer Steps for end node implementation.
  • a twelfth aspect of the embodiment of the present application provides a server node.
  • the server node includes a memory and a processor; the memory stores code, and the processor is configured to execute the code.
  • the server node executes
  • the server node executes
  • a thirteenth aspect of the embodiments of the present application provides a computer storage medium.
  • the computer storage medium stores one or more instructions. When executed by one or more computers, the instructions cause one or more computers to implement the fourth aspect, Any possible implementation manner in the fourth aspect, the fifth aspect, any possible implementation manner in the fifth aspect, the sixth aspect, or the method described in any possible implementation manner in the sixth aspect.
  • a fourteenth aspect of the embodiments of the present application provides a computer program product.
  • the computer program product stores instructions.
  • the computer implements any one of the possible implementation methods of the fourth aspect and the fourth aspect.
  • the load balancing node can send the first identifier to the client node. Then, when the client node has a service to be processed, the client node can convert the destination address of the first service request from the address of the load balancing node to the address of the server node based on the first identifier, and obtain the processed first service request, and directly sends the processed first service request to the server node. Then, the server node can process the processed first service request, obtain the first service response, and directly send the first service response to the client node.
  • the client node can convert the source address of the first service response from the address of the server node to the address of the load balancing node based on the first identifier to obtain the processed first service response.
  • the response completes the response business. It can be seen that in the DNAT mode, the DANT processing for the first business request and the SNAT processing for the first business response, which were originally responsible for the load balancing node, are offloaded to the client node for execution by the load balancing node. In this way, the processing The first business request and the processed first business response can be directly transmitted between the client node and the server node without being processed by the load balancing node, which can effectively reduce the traffic passing through the load balancing node and reduce load balancing. Node bandwidth consumption, and can reduce business transmission delay and improve user experience.
  • Figure 1 is a schematic structural diagram of the cloud service system provided by the embodiment of the present application.
  • Figure 2 is a schematic structural diagram of a client node provided by an embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of a server node provided by an embodiment of the present application.
  • Figure 4 is a schematic flow chart of the business processing method based on the cloud service system provided by the embodiment of the present application.
  • FIG. 5 is another structural schematic diagram of the cloud service system provided by the embodiment of the present application.
  • Figure 6 is another schematic flowchart of a business processing method based on a cloud service system provided by an embodiment of the present application
  • Figure 7 is another structural schematic diagram of the cloud service system provided by the embodiment of the present application.
  • Figure 8 is another schematic flowchart of a business processing method based on a cloud service system provided by an embodiment of the present application.
  • Figure 9 is another structural schematic diagram of the cloud service system provided by the embodiment of the present application.
  • Figure 10 is a schematic structural diagram of a load balancing node provided by an embodiment of the present application.
  • Figure 11 is another schematic structural diagram of a client node provided by an embodiment of the present application.
  • Figure 12 is another structural schematic diagram of a server node provided by an embodiment of the present application.
  • Figure 13 is another structural schematic diagram of a load balancing node provided by an embodiment of the present application.
  • Figure 14 is another schematic structural diagram of a client node provided by an embodiment of the present application.
  • Figure 15 is another schematic structural diagram of a server node provided by an embodiment of the present application.
  • the embodiments of this application provide a cloud service system and a business processing method based on the cloud service system, which can effectively reduce the traffic passing through the load balancing node, reduce the bandwidth consumption of the load balancing node, and can reduce the business transmission delay and improve the user experience. .
  • cloud service systems In cloud scenarios such as public cloud, private cloud, and hybrid cloud, cloud service systems generally provide users with services of a certain scale through cluster deployment.
  • load balancing nodes can be added in the cluster to distribute the load of each node in the cluster, thereby optimizing the performance of the entire cloud service system.
  • Non-DR mode includes DNAT mode and FULLNAT mode.
  • the load balancing node can perform DNAT processing on the service request sent by the client node, and send the processed service request to the server node.
  • the load balancing node can perform SNAT processing on the business response, and send the processed business request to the client node, so that the client node completes the corresponding business.
  • the load balancing node can perform SNAT+DNAT processing on the service request sent by the client node, and send the processed service request to the server node.
  • the load balancing node can perform DNAT+SNAT processing on the business response, and send the processed business request to the client node, so that the client node completes the corresponding business.
  • FIG. 1 is a schematic structural diagram of the cloud service system provided by the embodiment of the present application
  • the cloud service system can include load balancing nodes, multiple client nodes, and multiple server nodes. These three types of physical nodes will be introduced below:
  • Load balancing node this node can be a physical machine (also called a server), or it can be built from multiple physical machines, or it can be a cloud instance (for example, a virtual machine or a container, etc.) on a certain physical machine.
  • This node can also be presented as a cloud platform, which can uniformly manage multiple client nodes and multiple server nodes. For example, for a client node, the load balancing node can allocate a server node to the client node so that the server node provides business processing for the client node and implements the client node and load balancing node. And the handshake between the server nodes.
  • the load balancing node can indirectly implement business interaction between the client node and the server node based on the DNAT mode or the FULLNAT mode.
  • the load balancing node can offload the business interaction between the client node and the server node to the client node and the server node, and the two nodes directly implement the business interaction.
  • Client node which is usually a physical machine on which one or more virtual clients (which can also be understood as virtual instances such as virtual machines or containers) are deployed.
  • Figure 2 is a schematic structural diagram of a client node provided by an embodiment of the present application
  • the client node can be divided into three layers. The bottom layer is the hardware resources of the node, and the middle layer is the virtual machine. Monitor (hypervisor), with multiple virtual clients at the top.
  • the virtual client can initiate various requests, such as handshake requests, business requests, etc., and the virtual machine monitor can process the requests from the virtual client and send the processed requests to the outside world (of course, it can also not The request is processed and sent directly to the outside world).
  • the virtual machine monitor can also process the response from the outside world and send the processed response to the virtual client (of course, the response can also be sent directly to the virtual client without processing the request. end).
  • Server node is usually a physical machine deployed with one or more virtual servers (which can also be understood as virtual instances such as virtual machines or containers).
  • Figure 3 is a schematic structural diagram of a server node provided by an embodiment of the present application
  • the server node can be divided into three layers. The bottom layer is the hardware resources of the node, and the middle layer is the virtual machine. Monitor (hypervisor), with multiple virtual servers at the top.
  • the virtual server can receive and process various requests from the outside world, such as handshake requests and business requests, etc.
  • the virtual machine monitor can process requests from the outside world and send the processed requests to the virtual server ( Of course, you can also send the request directly to the virtual server without processing the request).
  • the virtual machine monitor can also process the response from the virtual server and send the processed response to the outside world (of course, you can also not process the response. sent directly to the outside world).
  • FIG. 4 is a schematic flow chart of the business processing method based on the cloud service system provided by the embodiment of the present application. As shown in Figure 4, the method includes :
  • the client node sends the handshake request to the load balancing node.
  • the client node when a client node has business requirements, the client node can initiate a handshake to the load balancing node, that is, the client node sends a handshake request to the load balancing node.
  • the handshake request includes The source address is the address of the client node, and the destination address is the address of the load balancing node.
  • the customer Virtual client 1 of end node 1 can first generate a handshake request.
  • the source address of the handshake request is the address of virtual client 1 of client node 1.
  • the destination address of the handshake request is the front-end address of the load balancing node.
  • virtual client 1 of client node 1 sends a handshake request to the virtual machine monitor of client node 1, so that the virtual machine monitor of client node 1 then sends a handshake request to the load balancing node.
  • the load balancing node selects the server node from the server node resource pool based on the handshake request, then performs DNAT processing on the handshake request, obtains the processed handshake request, and sends the processed handshake request to the server node.
  • the load balancing node After receiving the handshake request from the client node, the load balancing node can determine that the client node has business needs based on the handshake request, and then according to certain rules (for example, preset load balancing algorithm, etc.) in the server node resource pool (including multiple server nodes), select a server node to perform business processing for the client node. Then, the load balancing node can also perform DNAT processing on the handshake request, that is, convert the destination address of the handshake request from the address of the load balancing node to the address of the server node, and obtain the processed handshake request. The load balancing node can then send the processed handshake request to the server node.
  • certain rules for example, preset load balancing algorithm, etc.
  • the load balancing node can also perform DNAT processing on the handshake request, that is, convert the destination address of the handshake request from the address of the load balancing node to the address of the server node, and obtain the processed handshake
  • the load balancing node can select the virtual server 1 of the server node 1 to serve the virtual client 1 of the client node 1. Then, the load balancing node can perform DNAT processing on the handshake request to obtain the processed handshake request. At this time, the source address of the processed handshake request is still the address of virtual client 1 of client node 1. The processed handshake request The destination address is replaced with the address of virtual server 1 of server node 1. Then, the load balancing node can send the processed handshake request to the virtual machine monitor of server node 1.
  • the server node processes the processed handshake request, obtains a handshake response, and sends the handshake response to the load balancing node.
  • the server node After obtaining the processed handshake request from the load balancing node, the server node can perform a series of processes on the processed handshake request to obtain a handshake response, and send the handshake response to the load balancing node.
  • the source address of the handshake response is the address of the server node
  • the destination address of the handshake response is the address of the client node.
  • the virtual machine monitor of the server node 1 can send the processed handshake request to the virtual server 1 of the server node 1 and record the same origin and same destination logic. Then, the virtual server 1 of the server node 1 can process the processed handshake request and obtain a handshake response.
  • the source address of the handshake response is the address of the virtual server 1 of the server node 1
  • the destination address of the handshake response is the client. The address of virtual client 1 for end node 1.
  • the virtual server 1 of the server node 1 may return the handshake response to the virtual machine monitor of the server node 1 . Due to the existence of the same origin and same destination logic, when the virtual machine monitor of server node 1 sends a handshake response to the outside world, the handshake response can be received by the load balancing node first.
  • the load balancing node performs SNAT processing on the handshake response, obtains the processed handshake response, and sends the processed handshake response to the client node.
  • the load balancing node can perform SNAT processing on the handshake response, that is, convert the source address of the handshake response from the address of the server node to the address of the load balancing node to obtain the processed handshake response.
  • the load balancing node then sends the processed handshake response to the client node. At this point, the client node and the server node complete the handshake.
  • the load balancing node after the load balancing node receives the handshake response, it can perform SNAT processing on the handshake response to obtain the processed handshake response. At this time, the source address of the processed handshake response is replaced by the front-end address of the load balancing node, and the processing The destination address of the subsequent handshake response is still the address of virtual client 1 of client node 1. Then, load balancing The node may send the processed handshake response to the virtual machine monitor of client node 1. Then, the virtual machine monitor of client node 1 can send the processed handshake response to virtual client 1 of client node 1. At this point, the handshake is completed.
  • the client node sends the second service request to the load balancing node.
  • the client node can send a second service request indicating the pending service to the load balancing node.
  • the source address included in the second service request is the client.
  • the address of the end node, and the destination address is the address of the load balancing node.
  • virtual client 1 of client node 1 can first generate a second service request.
  • the source address of the second service request is the address of virtual client 1 of client node 1
  • the destination address of the second service request is The front-end address of the load balancing node.
  • the virtual client 1 of the client node 1 sends the second service request to the virtual machine monitor of the client node 1, so that the virtual machine monitor of the client node 1 then sends the second service request to the load balancing node. .
  • the load balancing node performs DNAT processing on the second service request, obtains the processed second service request, and sends the processed second service request to the server node.
  • the load balancing node After obtaining the second service request from the client node, the load balancing node can perform DNAT processing on the second service request, that is, convert the destination address of the second service request from the address of the load balancing node to the address of the server node, Obtain the processed second service request. Then, the load balancing node may send the processed second service request to the server node.
  • the load balancing node can perform DNAT processing on the second service request to obtain the processed second service request.
  • the source address of the processed second service request is still The address of the virtual client 1 of the client node 1
  • the destination address of the processed second service request is replaced by the address of the virtual server 1 of the server node 1.
  • the load balancing node may send the processed second service request to the virtual machine monitor of the server node 1 .
  • the server node processes the processed second service request, obtains the second service response, and sends the second service response to the load balancing node.
  • the server node After obtaining the processed second service request from the load balancing node, the server node can perform a series of processes on the processed second service request to obtain a second service response, and send the second service response to the load Balanced node.
  • the source address of the second service response is the address of the server node
  • the destination address of the second service response is the address of the client node.
  • the virtual machine monitor of the server node 1 can send the processed second service request to the virtual server 1 of the server node 1 .
  • the virtual server 1 of the server node 1 can process the processed second service request to obtain a second service response.
  • the source address of the second service response is the address of the virtual server 1 of the server node 1.
  • the destination address of the second service response is the address of virtual client 1 of client node 1.
  • the virtual server 1 of the server node 1 may return the second service response to the virtual machine monitor of the server node 1 . Due to the existence of same-origin and same-destination logic, when the virtual machine monitor of server node 1 sends a second service response to the outside, the second service response can be received by the load balancing node with priority.
  • the load balancing node detects whether the second service request contains the second identifier.
  • the load balancing node performs SNAT processing on the second service response, adds the first identifier to the second service response, obtains the processed second service response, and adds the processed second service response to the second service response.
  • the load balancing node can first detect whether the second service request contains the second identifier to determine whether to offload subsequent business interactions to the client node and the server node. The two nodes themselves directly complete the business interaction. Then, there are two situations:
  • the load balancing node can offload subsequent business interactions to the client node and the server node, and the two nodes themselves directly complete the business interaction, so the load
  • the balancing node can perform SNAT processing on the second service response, that is, convert the source address of the second service response from the address of the server node to the address of the load balancing node, and add a first identifier (also known as Metadata) is processed and the second service response is obtained. Then, the load balancing node sends the processed second service response to the client node. Thereafter, the client node can save the first identification based on the processed second service response and complete the corresponding service.
  • the load balancing node can first determine whether the second service request contains the second identifier. If it is determined that the second service request contains the second identifier, then perform SNAT processing on the second service response. , and add the first identifier to the second service response, thereby obtaining the processed second service response. At this time, the source address of the processed second service response is replaced by the front-end address of the load balancing node, and the processed second service response The destination address of the second service response is still the address of virtual client 1 of client node 1. Then, the load balancing node may send the processed second service response to the virtual machine monitor of the client node 1 .
  • the virtual machine monitor of client node 1 can parse the processed second service response to save the first identification, and send the processed second service response to virtual client 1 of client node 1, so that the client The virtual client 1 of the end node 1 completes the corresponding service based on the processed second service response.
  • the load balancing node can perform SNAT processing on the second service response. , that is, convert the source address of the second service response from the address of the service point node to the address of the load balancing node, obtain the processed second service response, and send the processed second service response to the client node. Thereafter, the client node can complete the corresponding service based on the processed second service response.
  • the first identifier is included in the second service response and is delivered to the client node by the load balancing node (as the service proceeds) as an example for schematic introduction, and does not describe the load balancing node.
  • the method of delivering the first identifier to the client node constitutes a restriction. For example, after completing the handshake, the load balancing node can directly send the first identifier to the client node (without accompanying the business), etc.
  • the load balancing node determines whether the second service request contains the second identifier and thereby determines whether to issue the first identifier is used as an example for schematic introduction.
  • the load balancing node also The first identifier and so on can be directly delivered to the client node without any judgment.
  • the second identifier is carried in the second service request for schematic introduction.
  • the second identifier can also be carried in the handshake request and other service requests, and so on.
  • the client node performs DNAT processing on the first service request based on the first identifier, obtains the processed first service request, and sends the processed first service request to the server node.
  • the client node can first obtain the first service request indicating the service to be processed.
  • the source address included in the first service request is the address of the client node.
  • the destination address is the address of the load balancing node. Due to the existence of the first identifier, the client node can perform DNAT processing on the first service request based on the first identifier, that is, convert the destination address of the first service request from the address of the load balancing node to the server node. The address after which the first business request is processed. Then, the client node can directly send the processed first service request to the server node.
  • virtual client 1 of client node 1 can first generate a first service request.
  • the source address of the first service request is the address of virtual client 1 of client node 1, and the destination address of the first service request is The front-end address of the load balancing node.
  • the virtual client 1 of the client node 1 sends the first service request to the virtual machine monitor of the client node 1 .
  • the virtual machine monitor of client node 1 can perform DNAT processing on the first service request based on the first identifier to obtain the processed first service request.
  • the source address of the processed first service request is still The address of the virtual client 1 of the client node 1, and the destination address of the processed first service request is replaced by the address of the virtual server 1 of the server node 1.
  • the virtual machine monitor of the client node 1 can directly send the processed first service request to the virtual machine monitor of the server node 1 .
  • the server node processes the processed first service request, obtains the first service response, and sends the first service response to the client node.
  • the server node After obtaining the processed first service request from the client node, the server node can perform a series of processes on the processed first service request to obtain the first service response and directly send the first service response. to the client node.
  • the source address of the first service response is the address of the server node
  • the destination address of the first service response is the address of the client node.
  • the virtual machine monitor of the server node 1 can clear the same origin and same destination logic, and send the processed first service request to the virtual service of the server node 1 Terminal 1. Then, the virtual server 1 of the server node 1 can process the processed first service request to obtain a first service response.
  • the source address of the first service response is the address of the virtual server 1 of the server node 1.
  • the destination address of a service response is the address of virtual client 1 of client node 1.
  • the virtual server 1 of the server node 1 may return the first service response to the virtual machine monitor of the server node 1 . Since the same origin and same destination logic no longer exists, when the virtual machine monitor of the server node 1 sends the first service response to the outside, the first service response is directly received by the virtual machine monitor of the client node 1.
  • the client node performs SNAT processing on the first service response based on the first identifier, and obtains the processed first service response.
  • the client node After obtaining the first service response from the server node, due to the existence of the first identifier, the client node can perform SNAT processing on the first service response based on the first identifier, that is, the source address of the first service response, from the service The address of the point node is converted into the address of the load balancing node, and the processed first service response is obtained. Thereafter, the client node can complete the corresponding service based on the processed first service response.
  • the virtual machine monitor of client node 1 can perform SNAT processing on the first service response based on the first identifier, thereby obtaining the processed first service response.
  • the source address of the processed first service response is changed to the front-end address of the load balancing node, and the destination address of the processed first service response is still the address of virtual client 1 of client node 1.
  • the virtual machine monitor of the client node 1 may send the processed first service response to the virtual client 1 of the client node 1 , so that the virtual client 1 of the client node 1 is based on the processed first service Respond to complete the corresponding business.
  • IP Internet Protocol
  • the load balancing node can send the first identifier to the client node. That well, when the client node has a service to be processed, the client node can convert the destination address of the first service request from the address of the load balancing node to the address of the server node based on the first identifier, and obtain the processed first service request, and directly sends the processed first service request to the server node. Then, the server node can process the processed first service request, obtain the first service response, and directly send the first service response to the client node.
  • the client node can convert the source address of the first service response from the address of the server node to the address of the load balancing node based on the first identifier to obtain the processed first service response.
  • the response completes the response business. It can be seen that in the DNAT mode, the DANT processing for the first business request and the SNAT processing for the first business response, which were originally responsible for the load balancing node, are offloaded to the client node for execution by the load balancing node. In this way, the processing The first business request and the processed first business response can be directly transmitted between the client node and the server node without being processed by the load balancing node, which can effectively reduce the traffic passing through the load balancing node and reduce load balancing. Node bandwidth consumption, and can reduce business transmission delay and improve user experience.
  • the load balancing nodes no longer need to process huge traffic, the upper limit of the business volume that the cloud service system can bear can be increased.
  • it can be added to the existing Rapidly expand the system capacity based on the system to provide high-quality cloud services to more and more users.
  • Figure 6 is another schematic flowchart of a business processing method based on a cloud service system provided by an embodiment of the present application. As shown in Figure 6, the method includes:
  • the client node sends the handshake request to the load balancing node.
  • the load balancing node selects the server node from the server node resource pool based on the handshake request, then performs DNAT processing on the handshake request, obtains the processed handshake request, and sends the processed handshake request to the server node.
  • the server node processes the processed handshake request, obtains a handshake response, and sends the handshake response to the load balancing node.
  • the load balancing node performs SNAT processing on the handshake response, obtains the processed handshake response, and sends the processed handshake response to the client node.
  • the client node sends the second service request to the load balancing node.
  • steps 601 to 605 For an introduction to steps 601 to 605, reference may be made to the relevant descriptions of steps 401 to 405 in the embodiment shown in FIG. 4 , which will not be described again here.
  • the load balancing node detects whether the second service request contains the second identifier.
  • the load balancing node performs DNAT processing on the second service request, adds the first identifier to the second service request, obtains the processed second service request, and adds the processed second service request to the second service request.
  • Business requests are sent to the server node.
  • the server node processes the processed second service request, obtains the second service response, and sends the second service response to the load balancing node.
  • the load balancing node performs SNAT processing on the second service response, adds the first identifier to the second service response, obtains the processed second service response, and sends the processed second service response to the client node.
  • the load balancing node can first detect whether the second service request contains the second identifier to determine whether to offload subsequent business interactions to the client node and the server node. The two nodes themselves directly complete the business interaction. Then, there are two situations:
  • the load balancing node can offload subsequent business interactions to the client node and the server node, and the two nodes themselves directly complete the business interaction, so the load
  • the balancing node can perform DNAT processing on the second service request, that is, convert the destination address of the second service request from the address of the load balancing node to the address of the server node, and add the first identifier to the second service request. After processing second business request. Then, the load balancing node may send the processed second service request to the server node.
  • the server node After obtaining the processed second service request from the load balancing node, the server node can save the first identifier, and perform a series of processes on the processed second service request, thereby obtaining the second service response, and converting the second service request to the second service request.
  • the second service response is sent to the load balancing node.
  • the source address of the second service response is the address of the server node
  • the destination address of the second service response is the address of the client node.
  • the load balancing node can perform SNAT processing on the second service response, that is, convert the source address of the second service response from the address of the server node to the address of the load balancing node, and Add the first identifier to the second service response to obtain the processed second service response. Then, the load balancing node sends the processed second service response to the client node. Thereafter, the client node can save the first identification based on the processed second service response and complete the corresponding service.
  • the load balancing node may first determine whether the second service request contains the second service request. Identification, if it is determined that the second service request contains the second identification, DNAT processing is performed on the second service request, and the first identification is added to the second service request to obtain the processed second service request. At this time, after processing The source address of the second service request is still the address of the virtual client 1 of the client node 1, and the destination address of the processed second service request is changed to the address of the virtual server 1 of the server node 1. Then, the load balancing node may send the processed second service request to the virtual machine monitor of the server node 1 .
  • the virtual machine monitor of the server node 1 can parse the processed second service request to save the first identification, and send the processed second service request to the server node 1 Virtual server 1. Then, the virtual server 1 of the server node 1 can process the processed second service request to obtain a second service response.
  • the source address of the second service response is the address of the virtual server 1 of the server node 1.
  • the destination address of the second service response is the address of virtual client 1 of client node 1.
  • the virtual server 1 of the server node 1 may return the second service response to the virtual machine monitor of the server node 1 . Due to the existence of same-origin and same-destination logic, when the virtual machine monitor of server node 1 sends a second service response to the outside, the second service response can be received by the load balancing node with priority.
  • the load balancing node After receiving the second service response, the load balancing node can perform SNAT processing on the second service response, and add the first identifier to the second service response, thereby obtaining the processed second service response. At this time, the processed The source address of the second service response is changed to the front-end address of the load balancing node, and the destination address of the processed second service response is still the address of virtual client 1 of client node 1. Then, the load balancing node may send the processed second service response to the virtual machine monitor of the client node 1 .
  • the virtual machine monitor of client node 1 can parse the processed second service response to save the first identification, and send the processed second service response to virtual client 1 of client node 1, so that the client The virtual client 1 of the end node 1 completes the corresponding service based on the processed second service response.
  • the load balancing node cannot offload subsequent business interactions to the client node and the server node, so the load balancing node can perform DNAT processing on the second service request. , that is, the destination address of the second business request is converted from the address of the load balancing node to the address of the server node, and after processing second business request. Then, the load balancing node may send the processed second service request to the server node.
  • the server node After obtaining the processed second service request from the load balancing node, the server node can perform a series of processes on the processed second service request to obtain a second service response, and send the second service response to the load Balanced node.
  • the load balancing node can perform SNAT processing on the second service response, that is, convert the source address of the second service response from the address of the server node to the address of the load balancing node, obtaining The processed second business response. Then, the load balancing node sends the processed second service response to the client node. Thereafter, the client node completes the corresponding service based on the processed second service response.
  • the first identifier is included in the second service request and the second service response and is delivered by the load balancing node to the client node and the server node respectively (as the service proceeds).
  • a schematic introduction does not limit the way in which the load balancing node issues the first identifier to the client node. For example, after completing the handshake, the load balancing node can directly send the first identifier to the client node and the server node ( It does not need to be accompanied by business) etc.
  • the load balancing node determines whether the second service request contains the second identifier and thereby determines whether to issue the first identifier is used as an example for schematic introduction.
  • the load balancing node also The first identifier and so on can be directly issued to the client node and server node without any judgment.
  • the second identifier is carried in the second service request for schematic introduction.
  • the second identifier can also be carried in the handshake request and other service requests, and so on.
  • the client node performs DNAT processing on the first service request based on the first identifier, obtains the processed first service request, and sends the processed first service request to the server node.
  • step 610 please refer to the relevant description of step 410 in the embodiment shown in FIG. 4, which will not be described again here.
  • the server node processes the processed first service request, obtains the first service response, performs SNAT processing on the first service response based on the first identifier, obtains the processed first service response, and sends the processed first service response.
  • a business response is sent to the client node.
  • the server node After obtaining the processed first service request from the client node, the server node can perform a series of processes on the processed first service request, thereby obtaining a first service response.
  • the source address of the first service response is the address of the server node
  • the destination address of the first service response is the address of the client node.
  • the server node can perform SNAT processing on the first service response based on the first identifier, that is, the source address of the first service response is converted from the address of the service point node to the address of the load balancing node. , get the processed first business response. Then, the server node can directly send the processed first service response to the client node. Thereafter, the client node can complete the corresponding service based on the processed first service response.
  • the virtual machine monitor of the server node 1 can clear the same origin and same destination logic, and send the processed first service request to the virtual service of the server node 1 Terminal 1. Then, the virtual server 1 of the server node 1 can process the processed first service request to obtain a first service response.
  • the source address of the first service response is the address of the virtual server 1 of the server node 1.
  • the destination address of a service response is the address of virtual client 1 of client node 1. Subsequently, the virtual server 1 of the server node 1 may return the first service response to the virtual machine monitor of the server node 1 .
  • the virtual machine monitor of the server node 1 can perform SNAT processing on the first service response based on the first identifier, thereby obtaining the processed first service response.
  • the source address of the processed first service response is replaced. for load balancing section
  • the front-end address of the node, the destination address of the processed first service response is still the address of virtual client 1 of client node 1. Since the same origin and same destination logic no longer exists, when the virtual machine monitor of the server node 1 sends the processed first service response to the outside, the processed first service response is directly received by the virtual machine monitor of the client node 1.
  • the virtual machine monitor of the client node 1 sends the processed first service response to the virtual client 1 of the client node 1, so that the virtual client 1 of the client node 1 is based on the processed first service response.
  • the virtual machine monitor of the client node 1 sends the processed first service response to the virtual client 1 of the client node 1, so that the virtual client 1 of the client node 1 is based on the processed first service response.
  • the load balancing node can send the first identifier to the client node and the server node. Then, when the client node has a service to be processed, the client node can convert the destination address of the first service request from the address of the load balancing node to the address of the server node based on the first identifier, and obtain the processed first service request, and sends the processed first service request to the server node.
  • the server node can process the processed first service request to obtain the first service response, and convert the source address of the first service response from the address of the server node to the address of the load balancing node based on the first identifier, The processed first service response is obtained, and the processed first service response is sent to the client node to complete the response service based on the processed first service response.
  • the DANT processing for the first service request that was originally responsible for the load balancing node is offloaded to the client node for execution by the load balancing node, and the SNAT for the first service response that was originally responsible for the load balancing node The processing is offloaded by the load balancing node to the server node for execution.
  • the processed first business request and the processed first business response can be directly transmitted between the client node and the server node without going through Load balancing node processing can effectively reduce the traffic passing through the load balancing node, reduce the bandwidth consumption of the load balancing node, reduce business transmission delay, and improve user experience.
  • the load balancing nodes no longer need to process huge traffic, the upper limit of the business volume that the cloud service system can bear can be increased.
  • it can be added to the existing Rapidly expand the system capacity based on the system to provide high-quality cloud services to more and more users.
  • FIG. 8 is another schematic flowchart of a business processing method based on a cloud service system provided by an embodiment of the present application. As shown in Figure 8, the method includes:
  • the client node sends the handshake request to the load balancing node.
  • the load balancing node selects a server node from the server node resource pool based on the handshake request, performs SNAT processing and DNAT processing on the handshake request, obtains the processed handshake request, and sends the processed handshake request to the server node.
  • the server node processes the processed handshake request, obtains a handshake response, and sends the handshake response to the load balancing node.
  • the load balancing node performs SANT processing and DNAT processing on the handshake response, obtains the processed handshake response, and sends the processed handshake response to the client node.
  • steps 801 to 804 For the introduction of steps 801 to 804, reference may be made to the relevant descriptions of steps 601 to 604 in the embodiment shown in FIG. 6 , which will not be described again here.
  • step 602 the load balancing node only performs DNAT processing on the handshake request to obtain the processed handshake request
  • the load balancing node performs DNAT processing on the handshake request and SNAT processing, that is, converting the source address of the handshake request from the address of the client node to the load balancer
  • the address of the node converts the destination address of the handshake request from the address of the load balancing node to the address of the server node to obtain the processed handshake request.
  • step 604 The difference between step 604 and step 804 is that in step 604, the load balancing node only performs SNAT processing on the handshake response to obtain the processed handshake response, while in step 804, the load balancing node performs DNAT processing and SNAT processing on the handshake request, that is, the handshake
  • the source address of the response is converted from the address of the server node to the address of the load balancing node, and the destination address of the handshake response is converted from the address of the load balancing node to the address of the client node to obtain the processed handshake response.
  • the client node sends the second service request to the load balancing node.
  • the load balancing node detects whether the second service request includes the second identifier.
  • the load balancing node performs DNAT processing and SNAT processing on the second service request, adds the first identifier to the second service request, obtains the processed second service request, and will The second service request is sent to the server node.
  • the server node processes the processed second service request, obtains the second service response, and sends the second service response to the load balancing node.
  • the load balancing node performs DNAT processing and SNAT processing on the second service response, adds the first identifier to the second service response, obtains the processed second service response, and sends the processed second service response to the client node. .
  • steps 805 to 809 For an introduction to steps 805 to 809, reference may be made to the relevant descriptions of steps 605 to 609 in the embodiment shown in FIG. 6 , which will not be described again here.
  • step 607 the difference between step 607 and step 807 is that in step 607, the load balancing node only performs DNAT processing on the second service request and adds the first identifier to the second service request.
  • the processed second service request can be obtained, and in step 807, the load balancing node performs DNAT processing and SNAT processing on the second service request, that is, converting the source address of the second service request from the address of the client node to the load balancing node address, convert the destination address of the second service request from the address of the load balancing node to the address of the server node, and add the first identifier to the second service request, thereby obtaining the processed second service request.
  • step 609 the difference between step 609 and step 809 is that in step 609, the load balancing node only performs SNAT processing on the second service response and adds the first identifier to the second service response, and the processed The second service response, and in step 809, the load balancing node performs DNAT processing and SNAT processing on the second service request, that is, converts the source address of the second service response from the address of the server node to the address of the load balancing node, and converts the second service request to the address of the load balancing node.
  • the destination address of the second service response is converted from the address of the load balancing node to the address of the client node, and the first identifier is added to the second service response to obtain a processed second service response.
  • the load balancing node only performs DNAT processing on the second service request, and the processed second service request can be obtained, while the implementation shown in Figure 8
  • the load balancing node performs DNAT processing and SNAT processing on the second service request, that is, converts the source address of the second service request from the address of the client node to the address of the load balancing node, and converts the destination address of the second service request from The address of the load balancing node is converted into the address of the server node, and the processed second service request is obtained.
  • the load balancing node in the embodiment shown in Figure 6 only performs DNAT processing on the second service response to obtain the processed second service response, while the implementation shown in Figure 8
  • the load balancing node performs DNAT processing and SNAT processing on the second service request, that is, converts the source address of the second service response from the address of the server node to the address of the load balancing node, and converts the destination address of the second service response from The address of the load balancing node is translated to The address of the client node and the processed second service response.
  • the client node performs DNAT processing and SNAT processing on the first service request based on the first identifier, obtains the processed first service request, and sends the processed first service request to the server node.
  • the server node processes the processed first service request, obtains the first service response, performs DNAT processing and SNAT processing on the first service response based on the first identifier, obtains the processed first service response, and processes the first service request.
  • the first service response is sent to the client node.
  • steps 810 to 811 please refer to the relevant descriptions of steps 610 to 611 in the embodiment shown in FIG. 6, which will not be described again here.
  • step 610 the client node only performs DNAT processing on the first service request based on the first identifier, and can obtain the processed first service request
  • step 810 the client node The node performs DNAT processing and SNAT processing on the first service request based on the first identifier, that is, based on the first identifier, the source address of the first service request is converted from the address of the client node to the address of the load balancing node, and the first service request is The destination address is converted from the address of the load balancing node to the address of the server node, and the processed first service request is obtained.
  • step 611 the server node only performs SNAT processing on the first service response based on the first identifier to obtain the processed first service response
  • step 811 the server node only performs SNAT processing on the first service response based on the first identifier.
  • Perform DNAT processing and SNAT processing on the first service response that is, convert the source address of the first service response from the address of the server node to the address of the load balancing node, and convert the corresponding destination address of the first service from the address of the load balancing node Convert it to the address of the client node and get the processed first service response.
  • the virtual client 1 of the client node 1 can first generate a first service request, the source address of the first service request is the address of virtual client 1 of client node 1, and the destination address of the first service request is the front-end address of the load balancing node. Then, the virtual client 1 of the client node 1 sends the first service request to the virtual machine monitor of the client node 1 . Then, the virtual machine monitor of the client node 1 can perform DNAT processing and SNAT processing on the first service request based on the first identifier to obtain the processed first service request.
  • the source of the processed first service request The address is replaced with the backend address of the load balancing node, and the destination address of the processed first service request is replaced with the address of virtual server 1 of server node 1.
  • the virtual machine monitor of the client node 1 can directly send the processed first service request to the virtual machine monitor of the server node 1 .
  • the virtual machine monitor of the server node 1 may send the processed first service request to the virtual server 1 of the server node 1 . Then, the virtual server 1 of the server node 1 can process the processed first service request to obtain a first service response.
  • the source address of the first service response is the address of the virtual server 1 of the server node 1.
  • the destination address of a service response is the backend address of the load balancing node. Subsequently, the virtual server 1 of the server node 1 may return the first service response to the virtual machine monitor of the server node 1 .
  • the virtual machine monitor of the server node 1 can perform DANT processing and SNAT processing on the first service response based on the first identifier, thereby obtaining the processed first service response.
  • the processed first service response The source address is replaced with the front-end address of the load balancing node, and the destination address of the processed first service response is replaced with the address of virtual client 1 of client node 1.
  • the virtual machine monitor of the server node 1 sends the processed first service response to the outside, the processed first service response is directly received by the virtual machine monitor of the client node 1 .
  • the virtual machine monitor of client node 1 sends the processed first service response to the virtual machine monitor of client node 1.
  • the virtual client 1 of the client node 1 completes the corresponding service based on the processed first service response.
  • the load balancing node can send the first identifier to the client node and the server node. Then, when the client node has a service to be processed, the client node can convert the source address of the first service request from the address of the client node to the address of the load balancing node based on the first identifier, and convert the source address of the first service request to the address of the load balancing node. The destination address is converted from the address of the load balancing node to the address of the server node, the processed first service request is obtained, and the processed first service request is sent to the server node.
  • the server node can process the processed first service request to obtain the first service response, and convert the source address of the first service response from the address of the server node to the address of the load balancing node based on the first identifier, Convert the corresponding destination address of the first service from the address of the load balancing node to the address of the client node, obtain the processed first service response, and send the processed first service response to the client node to perform processing based on The first business response after the completion of the response business. It can be seen that in the FULLDNAT mode, the DANT processing and SNAT processing for the first business request that were originally responsible for the load balancing node are offloaded to the client node for execution by the load balancing node.
  • the DANT processing and SNAT processing of the response are offloaded to the server node for execution by the load balancing node.
  • the processed first business request and the processed first business response can be directly processed between the client node and the server node.
  • Inter-transmission does not need to be processed by the load balancing node, which can effectively reduce the traffic passing through the load balancing node, reduce the bandwidth consumption of the load balancing node, reduce business transmission delay, and improve user experience.
  • the load balancing nodes no longer need to process huge traffic, the upper limit of the business volume that the cloud service system can bear can be increased.
  • it can be added to the existing Rapidly expand the system capacity based on the system to provide high-quality cloud services to more and more users.
  • FIG. 10 is a schematic structural diagram of a load balancing node provided by an embodiment of the present application
  • Figure 11 is another schematic structural diagram of a client node provided by an embodiment of the present application
  • Figure 12 is a schematic diagram of the implementation of the present application.
  • Another structural diagram of the server node provided by the example the following will introduce the nodes in the cloud service system in three situations.
  • the sending module 1002 of the load balancing node is used to send the first identification to the client node; the processing module 1101 of the client node is used to send the destination address of the first service request based on the first identification, Convert the address of the load balancing node to the address of the server node to obtain the processed first service request; the sending module 1102 of the client node is used to send the processed first service request to the server node; the server node The processing module 1201 is used to process the processed first business request to obtain the first business response; the sending module 1202 of the server node is used to send the first business response to the client node; the processing of the client node Module 1101 is also configured to convert the source address of the first service response from the address of the server node to the address of the load balancing node based on the first identifier to obtain the processed first service response.
  • the processing module 1001 of the load balancing node is specifically configured to convert the destination address of the second service request from the client node from the address of the load balancing node to the address of the server node, and then process it.
  • the second service request after The source address of the business response is converted from the address of the service point node to the address of the load balancing node, and the first identifier is added to the second business response to obtain The processed second service response;
  • the sending module 1002 of the load balancing node is specifically used to send the processed second service response to the client node.
  • the second service response is that the server node performs the processing on the processed second service request. processed.
  • the processing module 1001 of the load balancing node is also used to detect whether the second service request contains the second identifier; the processing module 1001 of the load balancing node is specifically used to detect if the second service request contains the second identifier. identification, then convert the source address of the second service response from the server node from the address of the service point node to the address of the load balancing node, add the first identification to the second service response, and obtain the processed second service response;
  • the sending module 1002 of the load balancing node is specifically configured to send the processed second service response to the client node.
  • the processing module 1001 of the load balancing node is also configured to, if the second service request does not contain the second identifier, transfer the source address of the second service response from the server node to the service point node. The address is converted into the address of the load balancing node to obtain the processed second service response; the sending module 1002 of the load balancing node is also used to send the processed second service response to the client node.
  • the sending module 1002 of the load balancing node is used to send the first identification to the client node and the server node; the processing module 1101 of the client node is used to send the first service request based on the first identification.
  • the destination address is converted from the address of the load balancing node to the address of the server node to obtain the processed first service request; the sending module 1102 of the client node is used to send the processed first service request to the server node ;
  • the processing module 1201 of the server node is used to process the processed first business request, obtain the first business response, and convert the source address of the first business response from the address of the server node into a load based on the first identifier
  • the address of the balancing node is used to obtain the processed first service response; the sending module 1202 of the server node is used to send the processed first service response to the client node.
  • the processing module 1001 of the load balancing node is specifically configured to convert the destination address of the second service request from the client node from the address of the load balancing node to the address of the server node, to the address of the server node.
  • the sending module 1002 of the load balancing node is specifically used to send the processed second service request to the server node;
  • the processing module 1001 of the load balancing node Specifically used to convert the source address of the second service response from the server node from the address of the service point node to the address of the load balancing node, add the first identifier to the second service response, and obtain the processed second service response;
  • the sending module 1002 of the load balancing node is specifically configured to send the processed second service response to the client node.
  • the second service response is obtained by the server node processing the processed second service request.
  • the processing module 1001 of the load balancing node is also used to detect whether the second service request contains the second identifier; the processing module 1001 of the load balancing node is specifically used to detect if the second service request contains the second identifier.
  • the sending module 1002 of the load balancing node is specifically used to send the processed second service request to the server node;
  • the processing module 1001 of the load balancing node is specifically used to send the source address of the second service response from the server node, Convert the address of the service point node to the address of the load balancing node, add the first identifier to the second service response, and obtain the processed second service response;
  • the sending module 1002 of the load balancing node is specifically used to send the processed second service response.
  • the business response is sent to the client node.
  • the processing module 1001 of the load balancing node is also configured to, if the second service request does not contain the second identifier, change the destination address of the second service request from the client node to the load balancing node.
  • the address is converted into the address of the server node to obtain the processed second service request;
  • the sending module 1002 of the load balancing node is also used to send the processed second service request to the server node;
  • the sending module 1002 of the load balancing node is also used to convert the processed The second service response is sent to the client node.
  • the sending module 1002 of the load balancing node is used to send the first identification to the client node and the server node; the processing module 1101 of the client node is used to send the first service request based on the first identification.
  • the source address is converted from the address of the client node to the address of the load balancing node, and the destination address of the first business request is converted from the address of the load balancing node to the address of the server node to obtain the processed first business request;
  • the sending module 1102 of the client node is used to send the processed first business request to the server node; the processing module 1201 of the server node is used to process the processed first business request and obtain the first business response.
  • the sending module 1202 of the server node is used to send the processed first service response to the client node.
  • the processing module 1001 of the load balancing node is specifically configured to convert the source address of the second service request from the client node from the address of the client node to the address of the load balancing node, and convert the source address of the second service request from the client node to the address of the load balancing node.
  • the destination address of the second service request is converted from the address of the load balancing node to the address of the server node, and the first identifier is added to the second service request to obtain the processed second service request;
  • the sending module 1002 of the load balancing node is specifically used For sending the processed second service request to the server node;
  • the processing module 1001 of the load balancing node is specifically used to convert the source address of the second service response from the server node from the address of the service point node to the load balancing The address of the node, convert the corresponding destination address of the second service from the address of the load balancing node to the address of the client node, add the first identifier to the second service response, and obtain the processed second service response;
  • the sending module 1002 is specifically configured to send the processed second service response to the client node.
  • the second service response is obtained by the server node processing the processed second service request.
  • the processing module 1001 of the load balancing node is also used to detect whether the second service request contains the second identifier; the processing module 1001 of the load balancing node is specifically used to detect if the second service request contains the second identifier.
  • the source address of the second service request from the client node is converted from the address of the client node to the address of the load balancing node, and the destination address of the second service request is converted from the address of the load balancing node to the server
  • the address of the node add the first identifier to the second service request, and obtain the processed second service request;
  • the sending module 1002 of the load balancing node is specifically used to send the processed second service request to the server node; load balancing
  • the processing module 1001 of the node is specifically used to convert the source address of the second service response from the server node from the address of the service point node to the address of the load balancing node, and convert the corresponding destination address of the second service from the address of the load balancing node.
  • the address is converted into the address of the client node, the first identifier is added to the second service response, and the processed second service response is obtained;
  • the sending module 1002 of the load balancing node is specifically used to send the
  • the processing module 1001 of the load balancing node is also configured to, if the second service request does not contain the second identifier, transfer the source address of the second service request from the client node to The address of the load balancing node is converted into the address of the load balancing node, and the destination address of the second service request is converted from the address of the load balancing node to the address of the server node to obtain the processed second service request; the sending module 1002 of the load balancing node, It is also used to send the processed second service request to the server node; the processing module 1001 of the load balancing node is also used to convert the source address of the second service response from the server node from the address of the service point node to The address of the load balancing node will correspond to the second business The destination address is converted from the address of the load balancing node to the address of the client node to obtain the processed second service response; the sending module 1002 of the load balancing node is also used to send the
  • FIG 13 is another schematic structural diagram of a load balancing node provided by an embodiment of the present application.
  • an embodiment of a load balancing node may include one or more central processors 1301, memory 1302, input and output interfaces 1303, wired or wireless network interfaces 1304, and power supplies 1305.
  • Memory 1302 may be ephemeral storage or persistent storage. Furthermore, the central processing unit 1301 may be configured to communicate with the memory 1302 and execute a series of instruction operations in the memory 1302 on the load balancing node.
  • the central processor 1301 can execute the method steps executed by the load balancing node in the embodiment shown in FIG. 4, FIG. 6 or FIG. 8, which will not be described again here.
  • the specific functional module division in the central processor 1301 may be similar to the division of the processing module and the sending module described in FIG. 10 , and will not be described again here.
  • FIG 14 is another schematic structural diagram of a client node provided by an embodiment of the present application.
  • the client node may include one or more central processors 1401, memory 1402, input and output interfaces 1403, wired or wireless network interfaces 1404, and power supplies 1405.
  • Memory 1402 may be ephemeral storage or persistent storage. Furthermore, the central processing unit 1401 may be configured to communicate with the memory 1402 and execute a series of instruction operations in the memory 1402 on the client node.
  • the central processor 1401 can execute the method steps executed by the client node in the embodiments shown in FIG. 4, FIG. 6 or FIG. 8, which will not be described again here.
  • the specific functional module division in the central processor 1401 may be similar to the division of the processing module and the sending module described in FIG. 11 , and will not be described again here.
  • FIG 15 is another schematic structural diagram of a server node provided by an embodiment of the present application.
  • an embodiment of the server may include one or more central processors 1501, memory 1502, input and output interfaces 1503, wired or wireless network interfaces 1504, and power supplies 1505.
  • Memory 1502 may be ephemeral storage or persistent storage. Furthermore, the central processing unit 1501 may be configured to communicate with the memory 1502 and execute a series of instruction operations in the memory 1502 on the server.
  • the central processing unit 1501 can perform the method steps performed by the server in the embodiments shown in Figure 4, Figure 6 or Figure 8, which will not be described again here.
  • the specific functional module division in the central processor 1501 may be similar to the division of the processing module and the sending module described in FIG. 10 , and will not be described again here.
  • Embodiments of the present application also relate to a computer storage medium.
  • the computer-readable storage medium stores a program for signal processing. When the program is run on a computer, it causes the computer to execute as shown in Figure 4, Figure 6 or Figure 8. Steps in Examples.
  • Embodiments of the present application also relate to a computer program product that stores instructions that, when executed by a computer, cause the computer to perform the steps in the embodiments shown in FIG. 4, FIG. 6, or FIG. 8.
  • the disclosed systems, devices and methods can be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be combined or can be integrated into another system, or some features can be ignored, or not implemented.
  • the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application can be integrated into one processing unit, each unit can exist physically alone, or two or more units can be integrated into one unit.
  • the above integrated units can be implemented in the form of hardware or software functional units.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium.
  • the technical solution of the present application is essentially or contributes to the existing technology, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of this application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program code. .

Landscapes

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

Abstract

Disclosed in the present application are a cloud service system and a service processing method based on a cloud service system. Traffic passing through a load balancing node can be effectively reduced, the bandwidth consumption of the load balancing node is reduced, and a service transmission delay can be shortened, thereby improving the user experience. In the cloud service system of the present application, a load balancing node can send a first identifier to a client node; on the basis of the first identifier, the client node can convert a destination address of a first service request from the address of the load balancing node into the address of a serving-end node, so as to obtain a processed first service request, and sends the processed first service request to the serving-end node; the serving-end node can process the processed first service request, so as to obtain a first service response, and sends the first service response to the client node; and on the basis of the first identifier, the client node can further convert a source address of the first service response from the address of the serving-end node into the address of the load balancing node, so as to obtain a processed first service response.

Description

一种云服务系统及基于云服务系统的业务处理方法A cloud service system and a business processing method based on the cloud service system

本申请要求于2022年5月31日提交中国专利局、申请号为202210612082.X、发明名称为“一种云服务系统及基于云服务系统的业务处理方法”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application requires the priority of the Chinese patent application submitted to the China Patent Office on May 31, 2022, with the application number 202210612082.X and the invention title "A cloud service system and a business processing method based on the cloud service system". The entire contents are incorporated herein by reference.

技术领域Technical field

本申请实施例涉及云技术领域,尤其涉及一种云服务系统及基于云服务系统的业务处理方法。The embodiments of the present application relate to the field of cloud technology, and in particular, to a cloud service system and a business processing method based on the cloud service system.

背景技术Background technique

在公有云、私有云以及混合云等云场景中,云服务系统一般通过集群部署来为用户提供具备一定规模的服务。为了避免负载集中在集群中的某个节点或某些节点上,可在集群中增设负载均衡节点来分配集群中各个节点的负载,从而优化整个云服务系统的性能。In cloud scenarios such as public cloud, private cloud, and hybrid cloud, cloud service systems generally provide users with services of a certain scale through cluster deployment. In order to prevent the load from being concentrated on a certain node or certain nodes in the cluster, load balancing nodes can be added in the cluster to distribute the load of each node in the cluster, thereby optimizing the performance of the entire cloud service system.

目前,负载均衡节点可实现非直接路由(direct routing,DR)模式的负载均衡,非DR模式包含目的地址转换(destination network address translation,DNAT)模式以及双向地址转换(full network address translation,FULLNAT)模式。为了便于说明,下文以DNAT模式进行介绍。在该模式中,对于客户端节点发送的业务请求,负载均衡节点可对业务请求进行DNAT处理,并将处理后的业务请求发送至服务端节点。对于服务端节点返回的业务响应,负载均衡节点可对业务响应进行源地址转换(source network address translation,SNAT)处理,并将处理后的业务请求发送至客户端节点,以客户端节点完成相应的业务。Currently, load balancing nodes can implement load balancing in non-direct routing (DR) mode. Non-DR mode includes destination network address translation (DNAT) mode and bidirectional address translation (full network address translation, FULLNAT) mode. . For ease of explanation, the DNAT mode is introduced below. In this mode, for the service request sent by the client node, the load balancing node can perform DNAT processing on the service request and send the processed service request to the server node. For the business response returned by the server node, the load balancing node can perform source network address translation (SNAT) processing on the business response, and send the processed business request to the client node, and the client node completes the corresponding business.

由此可见,客户端节点和服务端节点之间的流量(业务请求以及业务响应等等),会持续经过负载均衡节点。然而,云服务系统内往往部署有数量众多的客户端节点和服务端节点,庞大的流量均需要经过负载均衡节点处理,导致负载均衡节点的带宽消耗过大,且会导致业务传输时延过长,导致用户体验较差。It can be seen that the traffic between the client node and the server node (business requests, business responses, etc.) will continue to pass through the load balancing node. However, cloud service systems are often deployed with a large number of client nodes and server nodes, and huge traffic needs to be processed by load balancing nodes, resulting in excessive bandwidth consumption of load balancing nodes and long service transmission delays. , resulting in poor user experience.

发明内容Contents of the invention

本申请实施例提供了一种云服务系统及基于云服务系统的业务处理方法,可有效减少经过负载均衡节点的流量,降低负载均衡节点的带宽消耗,且可降低业务传输时延,提高用户体验。The embodiments of this application provide a cloud service system and a business processing method based on the cloud service system, which can effectively reduce the traffic passing through the load balancing node, reduce the bandwidth consumption of the load balancing node, and can reduce the business transmission delay and improve the user experience. .

本申请实施例的第一方面提供了一种云服务系统,该系统包括:负载均衡节点、客户端节点以及服务端节点。当负载均衡节点、客户端节点以及服务端节点握手后,负载均衡节点可先将第一标识发送至客户端节点。The first aspect of the embodiments of this application provides a cloud service system, which includes: a load balancing node, a client node, and a server node. After the load balancing node, the client node and the server node shake hands, the load balancing node may first send the first identifier to the client node.

当客户端节点存在某个待处理业务时,客户端节点可生成用于指示待处理业务的第一业务请求,其中,第一业务请求的源地址为客户端节点的地址,目的地址为负载均衡节点的地址。然后,客户端节点可基于第一标识对进行DNAT处理,即将第一业务请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,得到处理后的第一业务请求,并将处理后的第一业务请求发送至服务端节点。When there is a certain pending service on the client node, the client node may generate a first service request indicating the pending service, where the source address of the first service request is the address of the client node and the destination address is the load balancer. The address of the node. Then, the client node can perform DNAT processing based on the first identification pair, that is, convert the destination address of the first service request from the address of the load balancing node to the address of the server node, obtain the processed first service request, and process The first service request is sent to the server node.

接收到处理后的第一业务请求后,服务端节点可对处理后的第一业务请求进行处理,得 到第一业务响应,并将第一业务响应发送至客户端节点。其中,第一业务响应的源地址为服务端节点,目的地址为客户端节点。After receiving the processed first service request, the server node can process the processed first service request, and obtain to the first service response, and send the first service response to the client node. The source address of the first service response is the server node, and the destination address is the client node.

接收到第一业务响应后,客户端节点可基于第一标识对第一业务响应进行SNAT处理,即将第一业务响应的源地址,从服务端节点的地址转换为负载均衡节点的地址,得到处理后的第一业务响应。此后,客户端节点可基于处理后的第一业务响应完成相应的业务。After receiving the first service response, the client node can perform SNAT processing on the first service response based on the first identifier, that is, convert the source address of the first service response from the address of the server node to the address of the load balancing node, and then process it. The first business response after. Thereafter, the client node can complete the corresponding service based on the processed first service response.

从上述云服务系统可以看出:负载均衡节点可将第一标识发送至客户端节点。那么,当客户端节点存在待处理的业务时,客户端节点可基于第一标识将第一业务请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,得到处理后的第一业务请求,并将处理后的第一业务请求直接发送至服务端节点。接着,服务端节点可对处理后的第一业务请求进行处理,得到第一业务响应,并将第一业务响应直接发送至客户端节点。最后,客户端节点可基于第一标识将第一业务响应的源地址,从服务端节点的地址转换为负载均衡节点的地址,得到处理后的第一业务响应,以基于处理后的第一业务响应完成响应的业务。由此可见,在DNAT模式中,原先由负载均衡节点负责的针对第一业务请求的DANT处理以及针对第一业务响应的SNAT处理,被负载均衡节点卸载至客户端节点执行,如此一来,处理后的第一业务请求以及处理后的第一业务响应,可以直接在客户端节点以及服务端节点之间传输,不需要经过负载均衡节点处理,可有效减少经过负载均衡节点的流量,降低负载均衡节点的带宽消耗,且可降低业务传输时延,提高用户体验。It can be seen from the above cloud service system that the load balancing node can send the first identification to the client node. Then, when the client node has a service to be processed, the client node can convert the destination address of the first service request from the address of the load balancing node to the address of the server node based on the first identifier, and obtain the processed first service request, and directly sends the processed first service request to the server node. Then, the server node can process the processed first service request, obtain the first service response, and directly send the first service response to the client node. Finally, the client node can convert the source address of the first service response from the address of the server node to the address of the load balancing node based on the first identifier to obtain the processed first service response. The response completes the response business. It can be seen that in the DNAT mode, the DANT processing for the first business request and the SNAT processing for the first business response, which were originally responsible for the load balancing node, are offloaded to the client node for execution by the load balancing node. In this way, the processing The first business request and the processed first business response can be directly transmitted between the client node and the server node without being processed by the load balancing node, which can effectively reduce the traffic passing through the load balancing node and reduce load balancing. Node bandwidth consumption, and can reduce business transmission delay and improve user experience.

在一种可能的实现方式中,当存在另一个待处理业务时,客户端节点可将用于指示待处理业务的第二业务请求发送至负载均衡节点,需要说明的是,第二业务请求所包含的源地址为客户端节点的地址,目的地址为负载均衡节点的地址。得到第二业务请求后,负载均衡节点可对第二业务请求进行DNAT处理,即将第二业务请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,得到处理后的第二业务请求。然后,负载均衡节点可将处理后的第二业务请求发送至服务端节点。得到处理后的第二业务请求后,服务端节点可对处理后的第二业务请求进行一系列的处理,从而得到第二业务响应,并将第二业务响应发送至负载均衡节点。需要说明的是,第二业务响应的源地址为服务端节点的地址,第二业务响应的目的地址为客户端节点的地址。得到第二业务响应后,负载均衡节点可对第二业务响应进行SNAT处理,即将第二业务响应的源地址,从服务端节点的地址转换为负载均衡节点的地址,并向第二业务响应添加第一标识,得到处理后的第二业务响应。然后,负载均衡节点将处理后的第二业务响应发送至客户端节点。如此一来,客户端节点基于处理后的第二业务响应,可保存第一标识,并完成相应的业务。In a possible implementation, when there is another service to be processed, the client node can send a second service request indicating the service to be processed to the load balancing node. It should be noted that the second service request refers to The included source address is the address of the client node, and the destination address is the address of the load balancing node. After obtaining the second service request, the load balancing node can perform DNAT processing on the second service request, that is, convert the destination address of the second service request from the address of the load balancing node to the address of the server node, and obtain the processed second service ask. Then, the load balancing node may send the processed second service request to the server node. After obtaining the processed second service request, the server node can perform a series of processes on the processed second service request to obtain a second service response, and send the second service response to the load balancing node. It should be noted that the source address of the second service response is the address of the server node, and the destination address of the second service response is the address of the client node. After obtaining the second business response, the load balancing node can perform SNAT processing on the second business response, that is, convert the source address of the second business response from the address of the server node to the address of the load balancing node, and add it to the second business response. The first identifier is used to obtain the processed second service response. Then, the load balancing node sends the processed second service response to the client node. In this way, the client node can save the first identifier based on the processed second service response and complete the corresponding service.

在一种可能的实现方式中,得到第二业务响应后,负载均衡节点可先检测第二业务请求是否包含第二标识。若第二业务请求包含第二标识,说明负载均衡节点可自身负责的针对业务请求的DNAT处理以及针对业务响应的SNAT处理卸载到客户端节点上,从而使得客户端节点以及服务端节点可直接完成业务交互,故负载均衡节点可对第二业务响应进行SNAT处理,即将第二业务响应的源地址,从服务端节点的地址转换为负载均衡节点的地址,并向第二业务响应添加第一标识,得到处理后的第二业务响应。然后,负载均衡节点将处理后的第二业务响应发送至客户端节点。如此一来,客户端节点基于处理后的第二业务响应,可保存第一标识,并完成相应的业务。 In a possible implementation manner, after obtaining the second service response, the load balancing node may first detect whether the second service request contains the second identifier. If the second service request contains the second identifier, it means that the load balancing node can offload the DNAT processing for the service request and the SNAT processing for the service response to the client node, so that the client node and the server node can directly complete the process. business interaction, so the load balancing node can perform SNAT processing on the second business response, that is, convert the source address of the second business response from the address of the server node to the address of the load balancing node, and add the first identifier to the second business response , and obtain the processed second service response. Then, the load balancing node sends the processed second service response to the client node. In this way, the client node can save the first identifier based on the processed second service response and complete the corresponding service.

在一种可能的实现方式中,若第二业务请求未包含第二标识,说明负载均衡节点不可自身负责的针对业务请求的DNAT处理以及针对业务响应的SNAT处理卸载到客户端节点上,故负载均衡节点可对第二业务响应进行SNAT处理,即将第二业务响应的源地址,从服务点节点的地址转换为负载均衡节点的地址,得到处理后的第二业务响应,并将处理后的第二业务响应发送至客户端节点。此后,客户端节点可基于处理后的第二业务响应完成相应的业务。In a possible implementation, if the second service request does not include the second identifier, it means that the load balancing node cannot offload the DNAT processing for the service request and the SNAT processing for the service response to the client node, so the load The balancing node can perform SNAT processing on the second service response, that is, convert the source address of the second service response from the address of the service point node to the address of the load balancing node, obtain the processed second service response, and convert the processed second service response The second business response is sent to the client node. Thereafter, the client node can complete the corresponding service based on the processed second service response.

在一种可能的实现方式中,客户端节点,还用于将握手请求发送至负载均衡节点;负载均衡节点,还用于基于握手请求在服务端节点资源池中选择服务端节点,再将握手请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,得到处理后的握手请求,并将处理后的握手请求发送至服务端节点;服务端节点,还用于对处理后的握手请求进行处理,得到握手响应,并将握手响应发送至负载均衡节点;负载均衡节点,还用于将握手响应的源地址,从服务端节点的地址转换为负载均衡节点的地址,得到处理后的握手响应,并将处理后的握手响应发送至客户端节点。In a possible implementation, the client node is also used to send a handshake request to the load balancing node; the load balancing node is also used to select a server node from the server node resource pool based on the handshake request, and then transfer the handshake request to the server node. The destination address of the request is converted from the address of the load balancing node to the address of the server node, the processed handshake request is obtained, and the processed handshake request is sent to the server node; the server node is also used to process the processed handshake request. The handshake request is processed, a handshake response is obtained, and the handshake response is sent to the load balancing node; the load balancing node is also used to convert the source address of the handshake response from the address of the server node to the address of the load balancing node, and after processing Handshake response and send the processed handshake response to the client node.

本申请实施例的第二方面提供了一种云服务系统,该系统包括:负载均衡节点、客户端节点以及服务端节点。当负载均衡节点、客户端节点以及服务端节点握手后,负载均衡节点可先将第一标识发送至客户端节点以及服务端节点。The second aspect of the embodiment of this application provides a cloud service system, which includes: a load balancing node, a client node, and a server node. After the load balancing node, the client node and the server node shake hands, the load balancing node may first send the first identifier to the client node and the server node.

当客户端节点存在某个待处理业务时,客户端节点可生成用于指示待处理业务的第一业务请求,其中,第一业务请求的源地址为客户端节点的地址,目的地址为负载均衡节点的地址。然后,客户端节点可基于第一标识对进行DNAT处理,即将第一业务请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,得到处理后的第一业务请求,并将处理后的第一业务请求发送至服务端节点。When there is a certain pending service on the client node, the client node may generate a first service request indicating the pending service, where the source address of the first service request is the address of the client node and the destination address is the load balancer. The address of the node. Then, the client node can perform DNAT processing based on the first identification pair, that is, convert the destination address of the first service request from the address of the load balancing node to the address of the server node, obtain the processed first service request, and process The first service request is sent to the server node.

接收到处理后的第一业务请求后,服务端节点可对处理后的第一业务请求进行处理,得到第一业务响应,其中,第一业务响应的源地址为服务端节点,目的地址为客户端节点。接着,服务端节点可基于第一标识对第一业务响应进行SNAT处理,即将第一业务响应的源地址,从服务端节点的地址转换为负载均衡节点的地址,得到处理后的第一业务响应,并将处理后的第一业务响应发送至客户端节点。此后,客户端节点可基于处理后的第一业务响应完成相应的业务。After receiving the processed first service request, the server node can process the processed first service request and obtain a first service response, where the source address of the first service response is the server node and the destination address is the client. end node. Then, the server node can perform SNAT processing on the first service response based on the first identifier, that is, convert the source address of the first service response from the address of the server node to the address of the load balancing node to obtain the processed first service response. , and sends the processed first business response to the client node. Thereafter, the client node can complete the corresponding service based on the processed first service response.

从上述云服务系统可以看出:负载均衡节点可将第一标识发送至客户端节点以及服务端节点。那么,当客户端节点存在待处理的业务时,客户端节点可基于第一标识将第一业务请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,得到处理后的第一业务请求,并将处理后的第一业务请求发送至服务端节点。然后,服务端节点可对处理后的第一业务请求进行处理,得到第一业务响应,基于第一标识将第一业务响应的源地址,从服务端节点的地址转换为负载均衡节点的地址,得到处理后的第一业务响应,并将处理后的第一业务响应发送至客户端节点,以基于处理后的第一业务响应完成响应的业务。由此可见,在DNAT模式中,原先由负载均衡节点负责的针对第一业务请求的DANT处理,被负载均衡节点卸载至客户端节点执行,原先由负载均衡节点负责的针对第一业务响应的SNAT处理,被负载均衡节点卸载至服务端节点执行,如此一来,处理后的第一业务请求以及处理后的第一业务响应,可以直接在客户端节点以及服务端节点之间传输,不需要经过负载均衡节点处理,可有效减少经过负载均衡节点的流量,降低负载均衡节点的带宽消耗,且可降低业务传输时延,提高 用户体验。It can be seen from the above cloud service system that the load balancing node can send the first identifier to the client node and the server node. Then, when the client node has a service to be processed, the client node can convert the destination address of the first service request from the address of the load balancing node to the address of the server node based on the first identifier, and obtain the processed first service request, and sends the processed first service request to the server node. Then, the server node can process the processed first service request to obtain the first service response, and convert the source address of the first service response from the address of the server node to the address of the load balancing node based on the first identifier, The processed first service response is obtained, and the processed first service response is sent to the client node to complete the response service based on the processed first service response. It can be seen that in the DNAT mode, the DANT processing for the first service request that was originally responsible for the load balancing node is offloaded to the client node for execution by the load balancing node, and the SNAT for the first service response that was originally responsible for the load balancing node The processing is offloaded by the load balancing node to the server node for execution. In this way, the processed first business request and the processed first business response can be directly transmitted between the client node and the server node without going through Load balancing node processing can effectively reduce the traffic passing through the load balancing node, reduce the bandwidth consumption of the load balancing node, and can reduce business transmission delay and improve user experience.

在一种可能的实现方式中,当存在另一个待处理业务时,客户端节点可将用于指示待处理业务的第二业务请求发送至负载均衡节点,需要说明的是,第二业务请求所包含的源地址为客户端节点的地址,目的地址为负载均衡节点的地址。得到第二业务请求后,负载均衡节点可对第二业务请求进行DNAT处理,即将第二业务请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,并向第二业务请求添加第一标识,得到处理后的第二业务请求。然后,负载均衡节点可将处理后的第二业务请求发送至服务端节点。得到处理后的第二业务请求后,服务端节点可保存第一标识,并对处理后的第二业务请求进行一系列的处理,从而得到第二业务响应,并将第二业务响应发送至负载均衡节点。需要说明的是,第二业务响应的源地址为服务端节点的地址,第二业务响应的目的地址为客户端节点的地址。得到第二业务响应后,负载均衡节点可对第二业务响应进行SNAT处理,即将第二业务响应的源地址,从服务端节点的地址转换为负载均衡节点的地址,并向第二业务响应添加第一标识,得到处理后的第二业务响应。然后,负载均衡节点将处理后的第二业务响应发送至客户端节点。如此一来,客户端节点基于处理后的第二业务响应,可保存第一标识,并完成相应的业务。In a possible implementation, when there is another service to be processed, the client node can send a second service request indicating the service to be processed to the load balancing node. It should be noted that the second service request refers to The included source address is the address of the client node, and the destination address is the address of the load balancing node. After obtaining the second service request, the load balancing node can perform DNAT processing on the second service request, that is, convert the destination address of the second service request from the address of the load balancing node to the address of the server node, and add it to the second service request. The first identification is obtained by processing the second service request. Then, the load balancing node may send the processed second service request to the server node. After obtaining the processed second service request, the server node can save the first identifier, perform a series of processes on the processed second service request, thereby obtain the second service response, and send the second service response to the load. Balanced node. It should be noted that the source address of the second service response is the address of the server node, and the destination address of the second service response is the address of the client node. After obtaining the second business response, the load balancing node can perform SNAT processing on the second business response, that is, convert the source address of the second business response from the address of the server node to the address of the load balancing node, and add it to the second business response. The first identifier is used to obtain the processed second service response. Then, the load balancing node sends the processed second service response to the client node. In this way, the client node can save the first identifier based on the processed second service response and complete the corresponding service.

在一种可能的实现方式中,得到第二业务请求后,负载均衡节点可先检测第二业务请求是否包含第二标识,若第二业务请求包含第二标识,说明负载均衡节点可将自身负责的针对业务请求的DNAT处理卸载至客户端节点,将针对业务响应的SNAT处理卸载至服务端节点,故负载均衡节点可对第二业务请求进行DNAT处理,即将第二业务请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,并向第二业务请求添加第一标识,得到处理后的第二业务请求。然后,负载均衡节点可将处理后的第二业务请求发送至服务端节点。得到处理后的第二业务请求后,服务端节点可保存第一标识,并对处理后的第二业务请求进行一系列的处理,从而得到第二业务响应,并将第二业务响应发送至负载均衡节点。需要说明的是,第二业务响应的源地址为服务端节点的地址,第二业务响应的目的地址为客户端节点的地址。得到第二业务响应后,负载均衡节点可对第二业务响应进行SNAT处理,即将第二业务响应的源地址,从服务端节点的地址转换为负载均衡节点的地址,并向第二业务响应添加第一标识,得到处理后的第二业务响应。然后,负载均衡节点将处理后的第二业务响应发送至客户端节点。此后,客户端节点基于处理后的第二业务响应,可保存第一标识,并完成相应的业务。In a possible implementation, after obtaining the second service request, the load balancing node can first detect whether the second service request contains the second identifier. If the second service request contains the second identifier, it means that the load balancing node can take responsibility for itself. The DNAT processing for the business request is offloaded to the client node, and the SNAT processing for the business response is offloaded to the server node. Therefore, the load balancing node can perform DNAT processing on the second business request, that is, the destination address of the second business request is changed from The address of the load balancing node is converted into the address of the server node, and the first identifier is added to the second service request to obtain the processed second service request. Then, the load balancing node may send the processed second service request to the server node. After obtaining the processed second service request, the server node can save the first identifier, perform a series of processes on the processed second service request, thereby obtain the second service response, and send the second service response to the load. Balanced node. It should be noted that the source address of the second service response is the address of the server node, and the destination address of the second service response is the address of the client node. After obtaining the second business response, the load balancing node can perform SNAT processing on the second business response, that is, convert the source address of the second business response from the address of the server node to the address of the load balancing node, and add it to the second business response. The first identifier is used to obtain the processed second service response. Then, the load balancing node sends the processed second service response to the client node. Thereafter, the client node can save the first identification based on the processed second service response and complete the corresponding service.

在一种可能的实现方式中,若第二业务请求未包含第二标识,说明负载均衡节点不可将自身负责的针对业务请求的DNAT处理卸载至客户端节点,将针对业务响应的SNAT处理卸载至服务端节点,故负载均衡节点可对第二业务请求进行DNAT处理,即将第二业务请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,得到处理后的第二业务请求。然后,负载均衡节点可将处理后的第二业务请求发送至服务端节点。得到处理后的第二业务请求后,服务端节点可对处理后的第二业务请求进行一系列的处理,从而得到第二业务响应,并将第二业务响应发送至负载均衡节点。得到第二业务响应后,负载均衡节点可对第二业务响应进行SNAT处理,即将第二业务响应的源地址,从服务端节点的地址转换为负载均衡节点的地址,得到处理后的第二业务响应。然后,负载均衡节点将处理后的第二业务响应发送至客户端节点。此后,客户端节点基于处理后的第二业务响应完成相应的业务。In a possible implementation, if the second service request does not include the second identifier, it means that the load balancing node cannot offload the DNAT processing for the service request that it is responsible for to the client node, and offloads the SNAT processing for the service response to the client node. The server node, so the load balancing node can perform DNAT processing on the second service request, that is, convert the destination address of the second service request from the address of the load balancing node to the address of the server node, and obtain the processed second service request. Then, the load balancing node may send the processed second service request to the server node. After obtaining the processed second service request, the server node can perform a series of processes on the processed second service request to obtain a second service response, and send the second service response to the load balancing node. After obtaining the second service response, the load balancing node can perform SNAT processing on the second service response, that is, convert the source address of the second service response from the address of the server node to the address of the load balancing node to obtain the processed second service response. Then, the load balancing node sends the processed second service response to the client node. Thereafter, the client node completes the corresponding service based on the processed second service response.

在一种可能的实现方式中,客户端节点,还用于将握手请求发送至负载均衡节点;负载 均衡节点,还用于基于握手请求在服务端节点资源池中选择服务端节点,再将握手请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,得到处理后的握手请求,并将处理后的握手请求发送至服务端节点;服务端节点,还用于对处理后的握手请求进行处理,得到握手响应,并将握手响应发送至负载均衡节点;负载均衡节点,还用于将握手响应的源地址,从服务端节点的地址转换为负载均衡节点的地址,得到处理后的握手响应,并将处理后的握手响应发送至客户端节点。In a possible implementation, the client node is also used to send handshake requests to the load balancing node; load The balancing node is also used to select the server node in the server node resource pool based on the handshake request, and then convert the destination address of the handshake request from the address of the load balancing node to the address of the server node to obtain the processed handshake request. And send the processed handshake request to the server node; the server node is also used to process the processed handshake request, obtain the handshake response, and send the handshake response to the load balancing node; the load balancing node is also used to Convert the source address of the handshake response from the address of the server node to the address of the load balancing node, obtain the processed handshake response, and send the processed handshake response to the client node.

本申请实施例的第三方面提供了一种云服务系统,该系统包括:负载均衡节点、客户端节点以及服务端节点。当负载均衡节点、客户端节点以及服务端节点握手后,负载均衡节点可先将第一标识发送至客户端节点以及服务端节点。The third aspect of the embodiments of this application provides a cloud service system, which includes: a load balancing node, a client node, and a server node. After the load balancing node, the client node and the server node shake hands, the load balancing node may first send the first identifier to the client node and the server node.

当客户端节点存在某个待处理业务时,客户端节点可生成用于指示待处理业务的第一业务请求,其中,第一业务请求的源地址为客户端节点的地址,目的地址为负载均衡节点的地址。然后,客户端节点可基于第一标识对进行DNAT处理和SNAT处理,即将第一业务请求的源地址,从客户端节点的地址转换为负载均衡节点的地址,将第一业务请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,得到处理后的第一业务请求,并将处理后的第一业务请求发送至服务端节点。When there is a certain pending service on the client node, the client node may generate a first service request indicating the pending service, where the source address of the first service request is the address of the client node and the destination address is the load balancer. The address of the node. Then, the client node can perform DNAT processing and SNAT processing based on the first identification pair, that is, convert the source address of the first service request from the address of the client node to the address of the load balancing node, and convert the destination address of the first service request to Convert the address of the load balancing node to the address of the server node, obtain the processed first business request, and send the processed first business request to the server node.

接收到处理后的第一业务请求后,服务端节点可对处理后的第一业务请求进行处理,得到第一业务响应,其中,第一业务响应的源地址为服务端节点,目的地址为客户端节点。接着,服务端节点可基于第一标识对第一业务响应进行SNAT处理,即将第一业务响应的源地址,从服务端节点的地址转换为负载均衡节点的地址,将第一业务相应的目的地址,从负载均衡节点的地址转换为客户端节点的地址,得到处理后的第一业务响应,并将处理后的第一业务响应发送至客户端节点。此后,客户端节点可基于处理后的第一业务响应完成相应的业务。After receiving the processed first service request, the server node can process the processed first service request and obtain a first service response, where the source address of the first service response is the server node and the destination address is the client. end node. Then, the server node can perform SNAT processing on the first service response based on the first identifier, that is, convert the source address of the first service response from the address of the server node to the address of the load balancing node, and convert the corresponding destination address of the first service , convert the address of the load balancing node to the address of the client node, obtain the processed first service response, and send the processed first service response to the client node. Thereafter, the client node can complete the corresponding service based on the processed first service response.

从上述云服务系统可以看出:负载均衡节点可将第一标识发送至客户端节点以及服务端节点。那么,当客户端节点存在待处理的业务时,客户端节点可基于第一标识将第一业务请求的源地址,从客户端节点的地址转换为负载均衡节点的地址,将第一业务请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,得到处理后的第一业务请求,并将处理后的第一业务请求发送至服务端节点。然后,服务端节点可对处理后的第一业务请求进行处理,得到第一业务响应,基于第一标识将第一业务响应的源地址,从服务端节点的地址转换为负载均衡节点的地址,将第一业务相应的目的地址,从负载均衡节点的地址转换为客户端节点的地址,得到处理后的第一业务响应,并将处理后的第一业务响应发送至客户端节点,以基于处理后的第一业务响应完成响应的业务。由此可见,在FULLDNAT模式中,原先由负载均衡节点负责的针对第一业务请求的DANT处理以及SNAT处理,被负载均衡节点卸载至客户端节点执行,原先由负载均衡节点负责的针对第一业务响应的DANT处理以及SNAT处理,被负载均衡节点卸载至服务端节点执行,如此一来,处理后的第一业务请求以及处理后的第一业务响应,可以直接在客户端节点以及服务端节点之间传输,不需要经过负载均衡节点处理,可有效减少经过负载均衡节点的流量,降低负载均衡节点的带宽消耗,且可降低业务传输时延,提高用户体验。It can be seen from the above cloud service system that the load balancing node can send the first identifier to the client node and the server node. Then, when the client node has a service to be processed, the client node can convert the source address of the first service request from the address of the client node to the address of the load balancing node based on the first identifier, and convert the source address of the first service request to the address of the load balancing node. The destination address is converted from the address of the load balancing node to the address of the server node, the processed first service request is obtained, and the processed first service request is sent to the server node. Then, the server node can process the processed first service request to obtain the first service response, and convert the source address of the first service response from the address of the server node to the address of the load balancing node based on the first identifier, Convert the corresponding destination address of the first service from the address of the load balancing node to the address of the client node, obtain the processed first service response, and send the processed first service response to the client node to perform processing based on The first business response after the completion of the response business. It can be seen that in the FULLDNAT mode, the DANT processing and SNAT processing for the first business request that were originally responsible for the load balancing node are offloaded to the client node for execution by the load balancing node. The DANT processing and SNAT processing of the response are offloaded to the server node for execution by the load balancing node. In this way, the processed first business request and the processed first business response can be directly processed between the client node and the server node. Inter-transmission does not need to be processed by the load balancing node, which can effectively reduce the traffic passing through the load balancing node, reduce the bandwidth consumption of the load balancing node, reduce business transmission delay, and improve user experience.

在一种可能的实现方式中,当存在另一个待处理业务时,客户端节点可将用于指示待处理业务的第二业务请求发送至负载均衡节点,需要说明的是,第二业务请求所包含的源地址 为客户端节点的地址,目的地址为负载均衡节点的地址。得到第二业务请求后,负载均衡节点可对第二业务请求进行DNAT处理以及SNAT处理,即将第二业务请求的源地址,从客户端节点的地址转换为负载均衡节点的地址,将第二业务请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,并向第二业务请求添加第一标识,从而得到处理后的第二业务请求。然后,负载均衡节点可将处理后的第二业务请求发送至服务端节点。得到处理后的第二业务请求后,服务端节点可保存第一标识,并对处理后的第二业务请求进行一系列的处理,从而得到第二业务响应,并将第二业务响应发送至负载均衡节点。需要说明的是,第二业务响应的源地址为服务端节点的地址,第二业务响应的目的地址为客户端节点的地址。得到第二业务响应后,负载均衡节点可对第二业务响应进行DNAT处理以及SNAT处理,即将第二业务响应的源地址,从服务端节点的地址转换为负载均衡节点的地址,将第二业务响应的目的地址,从负载均衡节点的地址转换为客户端节点的地址,并向第二业务响应添加第一标识,得到处理后的第二业务响应。然后,负载均衡节点将处理后的第二业务响应发送至客户端节点。如此一来,客户端节点基于处理后的第二业务响应,可保存第一标识,并完成相应的业务。In a possible implementation, when there is another service to be processed, the client node can send a second service request indicating the service to be processed to the load balancing node. It should be noted that the second service request refers to Contains the source address is the address of the client node, and the destination address is the address of the load balancing node. After obtaining the second service request, the load balancing node can perform DNAT processing and SNAT processing on the second service request, that is, convert the source address of the second service request from the address of the client node to the address of the load balancing node, and convert the second service request to the address of the load balancing node. The destination address of the request is converted from the address of the load balancing node to the address of the server node, and the first identifier is added to the second service request, thereby obtaining the processed second service request. Then, the load balancing node may send the processed second service request to the server node. After obtaining the processed second service request, the server node can save the first identifier, perform a series of processes on the processed second service request, thereby obtain the second service response, and send the second service response to the load. Balanced node. It should be noted that the source address of the second service response is the address of the server node, and the destination address of the second service response is the address of the client node. After obtaining the second service response, the load balancing node can perform DNAT processing and SNAT processing on the second service response, that is, convert the source address of the second service response from the address of the server node to the address of the load balancing node, and convert the second service response to the address of the load balancing node. The destination address of the response is converted from the address of the load balancing node to the address of the client node, and the first identifier is added to the second service response to obtain a processed second service response. Then, the load balancing node sends the processed second service response to the client node. In this way, the client node can save the first identifier based on the processed second service response and complete the corresponding service.

在一种可能的实现方式中,得到第二业务请求后,负载均衡节点可先检测第二业务请求是否包含第二标识,若第二业务请求包含第二标识,说明负载均衡节点可将自身负责的针对业务请求的DNAT处理以及SNAT处理卸载至客户端节点,将针对业务响应的DNAT处理以及SNAT处理卸载至服务端节点,故负载均衡节点可对第二业务请求进行DNAT处理以及SNAT处理,即将第二业务请求的源地址,从客户端节点的地址转换为负载均衡节点的地址,将第二业务请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,并向第二业务请求添加第一标识,从而得到处理后的第二业务请求。然后,负载均衡节点可将处理后的第二业务请求发送至服务端节点。得到处理后的第二业务请求后,服务端节点可保存第一标识,并对处理后的第二业务请求进行一系列的处理,从而得到第二业务响应,并将第二业务响应发送至负载均衡节点。需要说明的是,第二业务响应的源地址为服务端节点的地址,第二业务响应的目的地址为客户端节点的地址。得到第二业务响应后,负载均衡节点可对第二业务响应进行DNAT处理以及SNAT处理,即将第二业务响应的源地址,从服务端节点的地址转换为负载均衡节点的地址,将第二业务响应的目的地址,从负载均衡节点的地址转换为客户端节点的地址,并向第二业务响应添加第一标识,得到处理后的第二业务响应。然后,负载均衡节点将处理后的第二业务响应发送至客户端节点。如此一来,客户端节点基于处理后的第二业务响应,可保存第一标识,并完成相应的业务。In a possible implementation, after obtaining the second service request, the load balancing node can first detect whether the second service request contains the second identifier. If the second service request contains the second identifier, it means that the load balancing node can take responsibility for itself. The DNAT processing and SNAT processing for the business request are offloaded to the client node, and the DNAT processing and SNAT processing for the business response are offloaded to the server node. Therefore, the load balancing node can perform DNAT processing and SNAT processing on the second business request, that is, The source address of the second service request is converted from the address of the client node to the address of the load balancing node, and the destination address of the second service request is converted from the address of the load balancing node to the address of the server node, and is forwarded to the second service node. The request is to add the first identifier, thereby obtaining the processed second service request. Then, the load balancing node may send the processed second service request to the server node. After obtaining the processed second service request, the server node can save the first identifier, perform a series of processes on the processed second service request, thereby obtain the second service response, and send the second service response to the load. Balanced node. It should be noted that the source address of the second service response is the address of the server node, and the destination address of the second service response is the address of the client node. After obtaining the second service response, the load balancing node can perform DNAT processing and SNAT processing on the second service response, that is, convert the source address of the second service response from the address of the server node to the address of the load balancing node, and convert the second service response to the address of the load balancing node. The destination address of the response is converted from the address of the load balancing node to the address of the client node, and the first identifier is added to the second service response to obtain a processed second service response. Then, the load balancing node sends the processed second service response to the client node. In this way, the client node can save the first identifier based on the processed second service response and complete the corresponding service.

在一种可能的实现方式中,若第二业务请求未包含第二标识,说明负载均衡节点不可将将自身负责的针对业务请求的DNAT处理以及SNAT处理卸载至客户端节点,将针对业务响应的DNAT处理以及SNAT处理卸载至服务端节点,故负载均衡节点可对第二业务请求进行DNAT处理以及SNAT处理,即将第二业务请求的源地址,从客户端节点的地址转换为负载均衡节点的地址,将第二业务请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,并向第二业务请求添加第一标识,从而得到处理后的第二业务请求。然后,负载均衡节点可将处理后的第二业务请求发送至服务端节点。得到处理后的第二业务请求后,服务端节点可对处理后的第二业务请求进行一系列的处理,从而得到第二业务响应,并将第二业务响应发送 至负载均衡节点。得到第二业务响应后,负载均衡节点可对第二业务响应进行DNAT处理以及SNAT处理,即将第二业务响应的源地址,从服务端节点的地址转换为负载均衡节点的地址,将第二业务响应的目的地址,从负载均衡节点的地址转换为客户端节点的地址,并向第二业务响应添加第一标识,得到处理后的第二业务响应。然后,负载均衡节点将处理后的第二业务响应发送至客户端节点。此后,客户端节点基于处理后的第二业务响应完成相应的业务。In a possible implementation, if the second service request does not include the second identifier, it means that the load balancing node cannot offload the DNAT processing and SNAT processing for the service request that it is responsible for to the client node, and will transfer the DNAT processing and SNAT processing for the service response to the client node. DNAT processing and SNAT processing are offloaded to the server node, so the load balancing node can perform DNAT processing and SNAT processing on the second service request, that is, convert the source address of the second service request from the address of the client node to the address of the load balancing node , convert the destination address of the second service request from the address of the load balancing node to the address of the server node, and add the first identifier to the second service request, thereby obtaining the processed second service request. Then, the load balancing node may send the processed second service request to the server node. After obtaining the processed second service request, the server node can perform a series of processes on the processed second service request to obtain the second service response, and send the second service response. to the load balancing node. After obtaining the second service response, the load balancing node can perform DNAT processing and SNAT processing on the second service response, that is, convert the source address of the second service response from the address of the server node to the address of the load balancing node, and convert the second service response to the address of the load balancing node. The destination address of the response is converted from the address of the load balancing node to the address of the client node, and the first identifier is added to the second service response to obtain a processed second service response. Then, the load balancing node sends the processed second service response to the client node. Thereafter, the client node completes the corresponding service based on the processed second service response.

在一种可能的实现方式中,客户端节点,还用于将握手请求发送至负载均衡节点;负载均衡节点,还用于基于握手请求在服务端节点资源池中选择服务端节点,将握手请求的源地址,从客户端节点的地址转换为负载均衡节点的地址,将握手请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,得到处理后的握手请求,并将处理后的握手请求发送至服务端节点;服务端节点,还用于对处理后的握手请求进行处理,得到握手响应,并将握手响应发送至负载均衡节点;负载均衡节点,还用于将握手响应的源地址,从服务端节点的地址转换为负载均衡节点的地址,将握手响应的目的地址,从负载均衡节点的地址转换为客户端节点的地址,得到处理后的握手响应,并将处理后的握手响应发送至客户端节点。In a possible implementation, the client node is also used to send the handshake request to the load balancing node; the load balancing node is also used to select the server node in the server node resource pool based on the handshake request, and send the handshake request to the server node. The source address is converted from the address of the client node to the address of the load balancing node, the destination address of the handshake request is converted from the address of the load balancing node to the address of the server node, the processed handshake request is obtained, and the processed The handshake request is sent to the server node; the server node is also used to process the processed handshake request, obtain the handshake response, and send the handshake response to the load balancing node; the load balancing node is also used to process the handshake response The source address is converted from the address of the server node to the address of the load balancing node, the destination address of the handshake response is converted from the address of the load balancing node to the address of the client node, the processed handshake response is obtained, and the processed The handshake response is sent to the client node.

本申请实施例的第四方面提供了一种基于云服务系统的业务处理方法,该系统包含负载均衡节点、客户端节点以及服务端节点,该方法包括:负载均衡节点将第一标识发送至客户端节点;客户端节点基于第一标识将第一业务请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,得到处理后的第一业务请求,并将处理后的第一业务请求发送至服务端节点;服务端节点对处理后的第一业务请求进行处理,得到第一业务响应,并将第一业务响应发送至客户端节点;客户端节点基于第一标识将第一业务响应的源地址,从服务端节点的地址转换为负载均衡节点的地址,得到处理后的第一业务响应。The fourth aspect of the embodiment of the present application provides a business processing method based on a cloud service system. The system includes a load balancing node, a client node, and a server node. The method includes: the load balancing node sends the first identification to the client. End node; the client node converts the destination address of the first service request from the address of the load balancing node to the address of the server node based on the first identifier, obtains the processed first service request, and converts the processed first service request The request is sent to the server node; the server node processes the processed first service request, obtains the first service response, and sends the first service response to the client node; the client node sends the first service request based on the first identifier. The source address of the response is converted from the address of the server node to the address of the load balancing node, and the processed first business response is obtained.

在一种可能的实现方式中,负载均衡节点将第一标识发送至客户端节点包括:负载均衡节点将来自客户端节点的第二业务请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,得到处理后的第二业务请求,并将处理后的第二业务请求发送至服务端节点;负载均衡节点将来自服务端节点的第二业务响应的源地址,从服务点节点的地址转换为负载均衡节点的地址,向第二业务响应添加第一标识,得到处理后的第二业务响应,并将处理后的第二业务响应发送至客户端节点,第二业务响应为服务端节点对处理后的第二业务请求进行处理得到的。In a possible implementation, the load balancing node sending the first identification to the client node includes: the load balancing node converts the destination address of the second service request from the client node from the address of the load balancing node to the server node. The address of the node, obtains the processed second business request, and sends the processed second business request to the server node; the load balancing node transfers the source address of the second business response from the server node to the service point node. The address is converted into the address of the load balancing node, the first identifier is added to the second service response, the processed second service response is obtained, and the processed second service response is sent to the client node, and the second service response is the server The node processes the processed second service request.

在一种可能的实现方式中,该方法还包括:负载均衡节点检测第二业务请求是否包含第二标识;则负载均衡节点将第一标识发送至客户端节点包括:若第二业务请求包含第二标识,负载均衡节点则将来自服务端节点的第二业务响应的源地址,从服务点节点的地址转换为负载均衡节点的地址,向第二业务响应添加第一标识,得到处理后的第二业务响应,并将处理后的第二业务响应发送至客户端节点。In a possible implementation, the method further includes: the load balancing node detects whether the second service request contains the second identifier; then the load balancing node sends the first identifier to the client node including: if the second service request includes the second identifier; Second identifier, the load balancing node converts the source address of the second service response from the server node from the address of the service point node to the address of the load balancing node, adds the first identifier to the second service response, and obtains the processed third Second business response, and send the processed second business response to the client node.

在一种可能的实现方式中,该方法还包括:负载均衡节点若第二业务请求未包含第二标识,则将来自服务端节点的第二业务响应的源地址,从服务点节点的地址转换为负载均衡节点的地址,得到处理后的第二业务响应,并将处理后的第二业务响应发送至客户端节点。In a possible implementation, the method further includes: if the second service request does not contain the second identifier, the load balancing node converts the source address of the second service response from the server node from the address of the service point node. is the address of the load balancing node, obtains the processed second service response, and sends the processed second service response to the client node.

本申请实施例的第五方面提供了一种基于云服务系统的业务处理方法,该系统包含负载均衡节点、客户端节点以及服务端节点,该方法包括:负载均衡节点将第一标识发送至客户端节点以及服务端节点;客户端节点基于第一标识将第一业务请求的目的地址,从负载均衡 节点的地址转换为服务端节点的地址,得到处理后的第一业务请求,并将处理后的第一业务请求发送至服务端节点;服务端节点对处理后的第一业务请求进行处理,得到第一业务响应,基于第一标识将第一业务响应的源地址,从服务端节点的地址转换为负载均衡节点的地址,得到处理后的第一业务响应,并将处理后的第一业务响应发送至客户端节点。The fifth aspect of the embodiment of the present application provides a business processing method based on a cloud service system. The system includes a load balancing node, a client node, and a server node. The method includes: the load balancing node sends the first identification to the client. The end node and the server node; the client node transfers the destination address of the first service request from the load balancing based on the first identifier. The address of the node is converted into the address of the server node, the processed first business request is obtained, and the processed first business request is sent to the server node; the server node processes the processed first business request, and obtains The first business response is to convert the source address of the first business response from the address of the server node to the address of the load balancing node based on the first identifier, obtain the processed first business response, and convert the processed first business response Sent to client node.

在一种可能的实现方式中,负载均衡节点将第一标识发送至客户端节点以及服务端节点包括:负载均衡节点将来自客户端节点的第二业务请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,向第二业务请求添加第一标识,得到处理后的第二业务请求,并将处理后的第二业务请求发送至服务端节点;负载均衡节点将来自服务端节点的第二业务响应的源地址,从服务点节点的地址转换为负载均衡节点的地址,向第二业务响应添加第一标识,得到处理后的第二业务响应,并将处理后的第二业务响应发送至客户端节点,第二业务响应为服务端节点对处理后的第二业务请求进行处理得到的。In a possible implementation, the load balancing node sending the first identification to the client node and the server node includes: the load balancing node sends the destination address of the second service request from the client node to the address of the load balancing node. Convert to the address of the server node, add the first identifier to the second business request, obtain the processed second business request, and send the processed second business request to the server node; the load balancing node will come from the server node The source address of the second business response is converted from the address of the service point node to the address of the load balancing node, the first identifier is added to the second business response, the processed second business response is obtained, and the processed second business response is The response is sent to the client node, and the second service response is obtained by the server node processing the processed second service request.

在一种可能的实现方式中,该方法还包括:负载均衡节点检测第二业务请求是否包含第二标识;负载均衡节点将第一标识发送至客户端节点以及服务端节点包括:若第二业务请求包含第二标识,负载均衡节点则将来自客户端节点的第二业务请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,向第二业务请求添加第一标识,得到处理后的第二业务请求,并将处理后的第二业务请求发送至服务端节点;负载均衡节点将来自服务端节点的第二业务响应的源地址,从服务点节点的地址转换为负载均衡节点的地址,向第二业务响应添加第一标识,得到处理后的第二业务响应,并将处理后的第二业务响应发送至客户端节点。In a possible implementation, the method further includes: the load balancing node detects whether the second service request contains the second identifier; the load balancing node sends the first identifier to the client node and the server node includes: if the second service request The request contains the second identifier, and the load balancing node converts the destination address of the second service request from the client node from the address of the load balancing node to the address of the server node, adds the first identifier to the second service request, and is processed The second service request after processing, and sends the processed second service request to the server node; the load balancing node converts the source address of the second service response from the server node from the address of the service point node to the load balancing node address, add the first identifier to the second service response, obtain the processed second service response, and send the processed second service response to the client node.

在一种可能的实现方式中,该方法还包括:若第二业务请求未包含第二标识,负载均衡节点则将来自客户端节点的第二业务请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,得到处理后的第二业务请求,并将处理后的第二业务请求发送至服务端节点;负载均衡节点将来自服务端节点的第二业务响应的源地址,从服务点节点的地址转换为负载均衡节点的地址,得到处理后的第二业务响应,并将处理后的第二业务响应发送至客户端节点。In a possible implementation, the method further includes: if the second service request does not contain the second identifier, the load balancing node converts the destination address of the second service request from the client node from the address of the load balancing node. is the address of the server node, obtains the processed second business request, and sends the processed second business request to the server node; the load balancing node transfers the source address of the second business response from the server node to the service node. The address of the point node is converted into the address of the load balancing node, a processed second service response is obtained, and the processed second service response is sent to the client node.

本申请实施例的第六方面提供了一种基于云服务系统的业务处理方法,该系统包含负载均衡节点、客户端节点以及服务端节点,该方法包括:负载均衡节点将第一标识发送至客户端节点以及服务端节点;客户端节点基于第一标识将第一业务请求的源地址,从客户端节点的地址转换为负载均衡节点的地址,将第一业务请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,得到处理后的第一业务请求,并将处理后的第一业务请求发送至服务端节点;服务端节点对处理后的第一业务请求进行处理,得到第一业务响应,基于第一标识将第一业务响应的源地址,从服务端节点的地址转换为负载均衡节点的地址,将第一业务相应的目的地址,从负载均衡节点的地址转换为客户端节点的地址,得到处理后的第一业务响应,并将处理后的第一业务响应发送至客户端节点。The sixth aspect of the embodiment of the present application provides a business processing method based on a cloud service system. The system includes a load balancing node, a client node, and a server node. The method includes: the load balancing node sends the first identification to the client. The end node and the server node; the client node converts the source address of the first service request from the address of the client node to the address of the load balancing node based on the first identifier, and converts the destination address of the first service request from the address of the load balancing node The address is converted into the address of the server node, the processed first business request is obtained, and the processed first business request is sent to the server node; the server node processes the processed first business request and obtains the A business response, converting the source address of the first business response from the address of the server node to the address of the load balancing node based on the first identifier, and converting the corresponding destination address of the first business from the address of the load balancing node to the client The address of the node, obtains the processed first service response, and sends the processed first service response to the client node.

在一种可能的实现方式中,负载均衡节点将第一标识发送至客户端节点以及服务端节点包括:负载均衡节点将来自客户端节点的第二业务请求的源地址,从客户端节点的地址转换为负载均衡节点的地址,将第二业务请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,向第二业务请求添加第一标识,得到处理后的第二业务请求,并将处理后的第二业务请求发送至服务端节点;负载均衡节点将来自服务端节点的第二业务响应的源地址, 从服务点节点的地址转换为负载均衡节点的地址,将第二业务相应的目的地址,从负载均衡节点的地址转换为客户端节点的地址,向第二业务响应添加第一标识,得到处理后的第二业务响应,并将处理后的第二业务响应发送至客户端节点,第二业务响应为服务端节点对处理后的第二业务请求进行处理得到的。In a possible implementation, the load balancing node sending the first identification to the client node and the server node includes: the load balancing node sends the source address of the second service request from the client node to the address of the client node. Convert to the address of the load balancing node, convert the destination address of the second service request from the address of the load balancing node to the address of the server node, add the first identifier to the second service request, and obtain the processed second service request, And send the processed second business request to the server node; the load balancing node will use the source address of the second business response from the server node, Convert the address of the service point node to the address of the load balancing node, convert the corresponding destination address of the second service from the address of the load balancing node to the address of the client node, add the first identifier to the second service response, and obtain the processed the second service response, and sends the processed second service response to the client node. The second service response is obtained by the server node processing the processed second service request.

在一种可能的实现方式中,该方法还包括:负载均衡节点检测第二业务请求是否包含第二标识;负载均衡节点将第一标识发送至客户端节点以及服务端节点包括:若第二业务请求包含第二标识,负载均衡节点则将来自客户端节点的第二业务请求的源地址,从客户端节点的地址转换为负载均衡节点的地址,将第二业务请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,向第二业务请求添加第一标识,得到处理后的第二业务请求,并将处理后的第二业务请求发送至服务端节点;负载均衡节点将来自服务端节点的第二业务响应的源地址,从服务点节点的地址转换为负载均衡节点的地址,将第二业务相应的目的地址,从负载均衡节点的地址转换为客户端节点的地址,向第二业务响应添加第一标识,得到处理后的第二业务响应,并将处理后的第二业务响应发送至客户端节点。In a possible implementation, the method further includes: the load balancing node detects whether the second service request contains the second identifier; the load balancing node sends the first identifier to the client node and the server node includes: if the second service request The request contains the second identifier, and the load balancing node converts the source address of the second service request from the client node from the address of the client node to the address of the load balancing node, and converts the destination address of the second service request from the load balancing node. The address of the node is converted into the address of the server node, the first identifier is added to the second business request, the processed second business request is obtained, and the processed second business request is sent to the server node; the load balancing node will come from The source address of the second service response of the server node is converted from the address of the service point node to the address of the load balancing node, and the corresponding destination address of the second service is converted from the address of the load balancing node to the address of the client node. The first identifier is added to the second service response, a processed second service response is obtained, and the processed second service response is sent to the client node.

在一种可能的实现方式中,该方法还包括:若第二业务请求未包含第二标识,负载均衡节点则将来自客户端节点的第二业务请求的源地址,从客户端节点的地址转换为负载均衡节点的地址,将第二业务请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,得到处理后的第二业务请求,并将处理后的第二业务请求发送至服务端节点;负载均衡节点将来自服务端节点的第二业务响应的源地址,从服务点节点的地址转换为负载均衡节点的地址,将第二业务相应的目的地址,从负载均衡节点的地址转换为客户端节点的地址,得到处理后的第二业务响应,并将处理后的第二业务响应发送至客户端节点。In a possible implementation, the method further includes: if the second service request does not contain the second identifier, the load balancing node converts the source address of the second service request from the client node to the address of the client node. is the address of the load balancing node, convert the destination address of the second service request from the address of the load balancing node to the address of the server node, obtain the processed second service request, and send the processed second service request to Server node; the load balancing node converts the source address of the second service response from the server node from the address of the service point node to the address of the load balancing node, and converts the corresponding destination address of the second service from the address of the load balancing node Convert to the address of the client node, obtain the processed second service response, and send the processed second service response to the client node.

本申请实施例的第七方面还提供了一种云服务系统,该系统的负载均衡节点、客户端节点以及服务端节点均包含发送模块和处理模块,其中,负载均衡节点的发送模块,用于将第一标识发送至客户端节点;客户端节点的处理模块,用于基于第一标识将第一业务请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,得到处理后的第一业务请求;客户端节点的发送模块,用于将处理后的第一业务请求发送至服务端节点;服务端节点的处理模块,用于对处理后的第一业务请求进行处理,得到第一业务响应;服务端节点的发送模块,用于将第一业务响应发送至客户端节点;客户端节点的处理模块,还用于基于第一标识将第一业务响应的源地址,从服务端节点的地址转换为负载均衡节点的地址,得到处理后的第一业务响应。The seventh aspect of the embodiment of the present application also provides a cloud service system. The load balancing node, client node and server node of the system all include a sending module and a processing module, wherein the sending module of the load balancing node is used to Send the first identification to the client node; the processing module of the client node is used to convert the destination address of the first service request from the address of the load balancing node to the address of the server node based on the first identification, and obtain the processed The first business request; the sending module of the client node is used to send the processed first business request to the server node; the processing module of the server node is used to process the processed first business request to obtain the first service request. A business response; the sending module of the server node is used to send the first business response to the client node; the processing module of the client node is also used to send the source address of the first business response from the server based on the first identifier. The address of the node is converted into the address of the load balancing node, and the processed first service response is obtained.

在一种可能的实现方式中,负载均衡节点的处理模块,具体用于将来自客户端节点的第二业务请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,得到处理后的第二业务请求;负载均衡节点的发送模块,具体用于将处理后的第二业务请求发送至服务端节点;负载均衡模块的处理模块,具体用于将来自服务端节点的第二业务响应的源地址,从服务点节点的地址转换为负载均衡节点的地址,向第二业务响应添加第一标识,得到处理后的第二业务响应;负载均衡节点的发送模块,具体用于将处理后的第二业务响应发送至客户端节点,第二业务响应为服务端节点对处理后的第二业务请求进行处理得到的。In a possible implementation, the processing module of the load balancing node is specifically used to convert the destination address of the second service request from the client node from the address of the load balancing node to the address of the server node. After processing, the second business request; the sending module of the load balancing node, specifically used to send the processed second business request to the server node; the processing module of the load balancing module, specifically used to respond to the second business from the server node The source address is converted from the address of the service point node to the address of the load balancing node, and the first identifier is added to the second business response to obtain the processed second business response; the sending module of the load balancing node is specifically used to send the processed The second service response is sent to the client node, and the second service response is obtained by the server node processing the processed second service request.

在一种可能的实现方式中,负载均衡节点的处理模块,还用于检测第二业务请求是否包含第二标识;负载均衡节点的处理模块,具体用于若第二业务请求包含第二标识,则将来自 服务端节点的第二业务响应的源地址,从服务点节点的地址转换为负载均衡节点的地址,向第二业务响应添加第一标识,得到处理后的第二业务响应;负载均衡节点的发送模块,具体用于将处理后的第二业务响应发送至客户端节点。In a possible implementation, the processing module of the load balancing node is also used to detect whether the second service request contains the second identifier; the processing module of the load balancing node is specifically configured to detect if the second service request contains the second identifier. will come from The source address of the second service response of the server node is converted from the address of the service point node to the address of the load balancing node, and the first identifier is added to the second service response to obtain the processed second service response; sending by the load balancing node Module, specifically configured to send the processed second service response to the client node.

在一种可能的实现方式中,负载均衡节点的处理模块,还用于若第二业务请求未包含第二标识,则将来自服务端节点的第二业务响应的源地址,从服务点节点的地址转换为负载均衡节点的地址,得到处理后的第二业务响应;负载均衡节点的发送模块,还用于将处理后的第二业务响应发送至客户端节点。In a possible implementation, the processing module of the load balancing node is also configured to, if the second service request does not contain the second identifier, change the source address of the second service response from the server node to the service point node. The address is converted into the address of the load balancing node to obtain the processed second service response; the sending module of the load balancing node is also used to send the processed second service response to the client node.

本申请实施例的第八方面还提供了一种云服务系统,该系统的负载均衡节点、客户端节点以及服务端节点均包含发送模块和处理模块,其中,负载均衡节点的发送模块,用于将第一标识发送至客户端节点以及服务端节点;客户端节点的处理模块,用于基于第一标识将第一业务请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,得到处理后的第一业务请求;客户端节点的发送模块,用于将处理后的第一业务请求发送至服务端节点;服务端节点的处理模块,用于对处理后的第一业务请求进行处理,得到第一业务响应,基于第一标识将第一业务响应的源地址,从服务端节点的地址转换为负载均衡节点的地址,得到处理后的第一业务响应;服务端节点的发送模块,用于将处理后的第一业务响应发送至客户端节点。The eighth aspect of the embodiment of the present application also provides a cloud service system. The load balancing node, client node and server node of the system all include a sending module and a processing module, wherein the sending module of the load balancing node is used to Send the first identifier to the client node and the server node; the processing module of the client node is used to convert the destination address of the first service request from the address of the load balancing node to the address of the server node based on the first identifier, Obtain the processed first business request; the sending module of the client node is used to send the processed first business request to the server node; the processing module of the server node is used to process the processed first business request Process, obtain the first business response, convert the source address of the first business response from the address of the server node to the address of the load balancing node based on the first identifier, and obtain the processed first business response; the sending module of the server node , used to send the processed first service response to the client node.

在一种可能的实现方式中,负载均衡节点的处理模块,具体用于将来自客户端节点的第二业务请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,向第二业务请求添加第一标识,得到处理后的第二业务请求;负载均衡节点的发送模块,具体用于将处理后的第二业务请求发送至服务端节点;负载均衡节点的处理模块,具体用于将来自服务端节点的第二业务响应的源地址,从服务点节点的地址转换为负载均衡节点的地址,向第二业务响应添加第一标识,得到处理后的第二业务响应;负载均衡节点的发送模块,具体用于将处理后的第二业务响应发送至客户端节点,第二业务响应为服务端节点对处理后的第二业务请求进行处理得到的。In a possible implementation, the processing module of the load balancing node is specifically configured to convert the destination address of the second service request from the client node from the address of the load balancing node to the address of the server node, to the second The business request adds a first identifier to obtain the processed second business request; the sending module of the load balancing node is specifically used to send the processed second business request to the server node; the processing module of the load balancing node is specifically used to Convert the source address of the second service response from the server node from the address of the service point node to the address of the load balancing node, add the first identifier to the second service response, and obtain the processed second service response; load balancing node The sending module is specifically used to send the processed second service response to the client node, and the second service response is obtained by the server node processing the processed second service request.

在一种可能的实现方式中,负载均衡节点的处理模块,还用于检测第二业务请求是否包含第二标识;负载均衡节点的处理模块,具体用于若第二业务请求包含第二标识,则将来自客户端节点的第二业务请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,向第二业务请求添加第一标识,得到处理后的第二业务请求;负载均衡节点的发送模块,具体用于将处理后的第二业务请求发送至服务端节点;负载均衡节点的处理模块,具体用于将来自服务端节点的第二业务响应的源地址,从服务点节点的地址转换为负载均衡节点的地址,向第二业务响应添加第一标识,得到处理后的第二业务响应;负载均衡节点的发送模块,具体用于将处理后的第二业务响应发送至客户端节点。In a possible implementation, the processing module of the load balancing node is also used to detect whether the second service request contains the second identifier; the processing module of the load balancing node is specifically configured to detect if the second service request contains the second identifier. Then convert the destination address of the second service request from the client node from the address of the load balancing node to the address of the server node, add the first identifier to the second service request, and obtain the processed second service request; load balancing The sending module of the node is specifically used to send the processed second service request to the server node; the processing module of the load balancing node is specifically used to send the source address of the second service response from the server node to the service point node. The address is converted into the address of the load balancing node, the first identifier is added to the second business response, and the processed second business response is obtained; the sending module of the load balancing node is specifically used to send the processed second business response to the client. end node.

在一种可能的实现方式中,负载均衡节点的处理模块,还用于若第二业务请求未包含第二标识,则将来自客户端节点的第二业务请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,得到处理后的第二业务请求;负载均衡节点的发送模块,还用于将处理后的第二业务请求发送至服务端节点;负载均衡节点的处理模块,还用于将来自服务端节点的第二业务响应的源地址,从服务点节点的地址转换为负载均衡节点的地址,得到处理后的第二业务响应;负载均衡节点的发送模块,还用于将处理后的第二业务响应发送至客户端节点。 In a possible implementation, the processing module of the load balancing node is also configured to, if the second service request does not contain the second identifier, change the destination address of the second service request from the client node to the load balancing node. The address is converted into the address of the server node to obtain the processed second business request; the sending module of the load balancing node is also used to send the processed second business request to the server node; the processing module of the load balancing node is also used to Used to convert the source address of the second service response from the server node from the address of the service point node to the address of the load balancing node to obtain the processed second service response; the sending module of the load balancing node is also used to convert The processed second service response is sent to the client node.

本申请实施例的第九方面还提供了一种云服务系统,该系统的负载均衡节点、客户端节点以及服务端节点均包含发送模块和处理模块,其中,负载均衡节点的发送模块,用于将第一标识发送至客户端节点以及服务端节点;客户端节点的处理模块,用于基于第一标识将第一业务请求的源地址,从客户端节点的地址转换为负载均衡节点的地址,将第一业务请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,得到处理后的第一业务请求;客户端节点的发送模块,用于将处理后的第一业务请求发送至服务端节点;服务端节点的处理模块,用于对处理后的第一业务请求进行处理,得到第一业务响应,基于第一标识将第一业务响应的源地址,从服务端节点的地址转换为负载均衡节点的地址,将第一业务相应的目的地址,从负载均衡节点的地址转换为客户端节点的地址,得到处理后的第一业务响应;服务端节点的发送模块,用于将处理后的第一业务响应发送至客户端节点。The ninth aspect of the embodiment of the present application also provides a cloud service system. The load balancing node, client node and server node of the system all include a sending module and a processing module, wherein the sending module of the load balancing node is used to Send the first identification to the client node and the server node; the processing module of the client node is used to convert the source address of the first service request from the address of the client node to the address of the load balancing node based on the first identification, Convert the destination address of the first business request from the address of the load balancing node to the address of the server node to obtain the processed first business request; the sending module of the client node is used to send the processed first business request to the server node; the processing module of the server node is used to process the processed first service request, obtain the first service response, and change the source address of the first service response from the address of the server node based on the first identifier. Convert to the address of the load balancing node, convert the corresponding destination address of the first service from the address of the load balancing node to the address of the client node, and obtain the processed first service response; the sending module of the server node is used to The processed first service response is sent to the client node.

在一种可能的实现方式中,负载均衡节点的处理模块,具体用于将来自客户端节点的第二业务请求的源地址,从客户端节点的地址转换为负载均衡节点的地址,将第二业务请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,向第二业务请求添加第一标识,得到处理后的第二业务请求;负载均衡节点的发送模块,具体用于将处理后的第二业务请求发送至服务端节点;负载均衡节点的处理模块,具体用于将来自服务端节点的第二业务响应的源地址,从服务点节点的地址转换为负载均衡节点的地址,将第二业务相应的目的地址,从负载均衡节点的地址转换为客户端节点的地址,向第二业务响应添加第一标识,得到处理后的第二业务响应;负载均衡节点的发送模块,具体用于将处理后的第二业务响应发送至客户端节点,第二业务响应为服务端节点对处理后的第二业务请求进行处理得到的。In one possible implementation, the processing module of the load balancing node is specifically configured to convert the source address of the second service request from the client node from the address of the client node to the address of the load balancing node, and convert the second service request from the client node to the address of the load balancing node. The destination address of the service request is converted from the address of the load balancing node to the address of the server node, and the first identifier is added to the second service request to obtain the processed second service request; the sending module of the load balancing node is specifically used to The processed second service request is sent to the server node; the processing module of the load balancing node is specifically used to convert the source address of the second service response from the server node from the address of the service point node to the address of the load balancing node , convert the corresponding destination address of the second service from the address of the load balancing node to the address of the client node, add the first identifier to the second service response, and obtain the processed second service response; the sending module of the load balancing node, Specifically, it is used to send the processed second service response to the client node, and the second service response is obtained by the server node processing the processed second service request.

在一种可能的实现方式中,负载均衡节点的处理模块,还用于检测第二业务请求是否包含第二标识;负载均衡节点的处理模块,具体用于若第二业务请求包含第二标识,则将来自客户端节点的第二业务请求的源地址,从客户端节点的地址转换为负载均衡节点的地址,将第二业务请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,向第二业务请求添加第一标识,得到处理后的第二业务请求;负载均衡节点的发送模块,具体用于将处理后的第二业务请求发送至服务端节点;负载均衡节点的处理模块,具体用于将来自服务端节点的第二业务响应的源地址,从服务点节点的地址转换为负载均衡节点的地址,将第二业务相应的目的地址,从负载均衡节点的地址转换为客户端节点的地址,向第二业务响应添加第一标识,得到处理后的第二业务响应;负载均衡节点的发送模块,具体用于将处理后的第二业务响应发送至客户端节点。In a possible implementation, the processing module of the load balancing node is also used to detect whether the second service request contains the second identifier; the processing module of the load balancing node is specifically configured to detect if the second service request contains the second identifier. Then the source address of the second service request from the client node is converted from the address of the client node to the address of the load balancing node, and the destination address of the second service request is converted from the address of the load balancing node to the address of the server node. Address, add the first identifier to the second service request to obtain the processed second service request; the sending module of the load balancing node, specifically used to send the processed second service request to the server node; processing of the load balancing node The module is specifically used to convert the source address of the second service response from the server node from the address of the service point node to the address of the load balancing node, and convert the corresponding destination address of the second service from the address of the load balancing node to The address of the client node adds the first identifier to the second service response to obtain the processed second service response; the sending module of the load balancing node is specifically used to send the processed second service response to the client node.

在一种可能的实现方式中,负载均衡节点的处理模块,还用于若第二业务请求未包含第二标识,则将来自客户端节点的第二业务请求的源地址,从客户端节点的地址转换为负载均衡节点的地址,将第二业务请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,得到处理后的第二业务请求;负载均衡节点的发送模块,还用于将处理后的第二业务请求发送至服务端节点;负载均衡节点的处理模块,还用于将来自服务端节点的第二业务响应的源地址,从服务点节点的地址转换为负载均衡节点的地址,将第二业务相应的目的地址,从负载均衡节点的地址转换为客户端节点的地址,得到处理后的第二业务响应;负载均衡节点的发送模块,还用于将处理后的第二业务响应发送至客户端节点。In a possible implementation, the processing module of the load balancing node is also configured to, if the second service request does not contain the second identifier, change the source address of the second service request from the client node to The address is converted into the address of the load balancing node, and the destination address of the second service request is converted from the address of the load balancing node to the address of the server node to obtain the processed second service request; the sending module of the load balancing node also uses The processed second service request is sent to the server node; the processing module of the load balancing node is also used to convert the source address of the second service response from the server node from the address of the service point node to the load balancing node address, convert the corresponding destination address of the second service from the address of the load balancing node to the address of the client node, and obtain the processed second service response; the sending module of the load balancing node is also used to convert the processed second service response. The second business response is sent to the client node.

本申请实施例的第十方面提供了一种负载均衡节点,该负载均衡节点包括存储器和处理 器;存储器存储有代码,处理器被配置为执行代码,当代码被执行时,负载均衡节点执行如第四方面、第四方面中任意一种可能的实现方式、第五方面、第五方面中任意一种可能的实现方式、第六方面或第六方面中任意一种可能的实现方式中负载均衡节点实现的步骤。A tenth aspect of the embodiment of the present application provides a load balancing node, which includes a memory and a processing The memory stores code, and the processor is configured to execute the code. When the code is executed, the load balancing node executes any one of the possible implementation methods of the fourth aspect, the fifth aspect, and the fifth aspect. Steps for implementing the load balancing node in any possible implementation manner, the sixth aspect, or any possible implementation manner of the sixth aspect.

本申请实施例的第十一方面提供了一种客户端节点,该客户端节点包括存储器和处理器;存储器存储有代码,处理器被配置为执行代码,当代码被执行时,客户端节点执行如第四方面、第四方面中任意一种可能的实现方式、第五方面、第五方面中任意一种可能的实现方式、第六方面或第六方面中任意一种可能的实现方式中客户端节点实现的步骤。An eleventh aspect of the embodiment of the present application provides a client node. The client node includes a memory and a processor; the memory stores code, and the processor is configured to execute the code. When the code is executed, the client node executes For example, in the fourth aspect, any one of the possible implementation methods of the fourth aspect, the fifth aspect, any one of the possible implementation methods of the fifth aspect, the sixth aspect, or any one of the possible implementation methods of the sixth aspect, the customer Steps for end node implementation.

本申请实施例的第十二方面提供了一种服务端节点,该服务端节点包括存储器和处理器;存储器存储有代码,处理器被配置为执行代码,当代码被执行时,服务端节点执行如第四方面、第四方面中任意一种可能的实现方式、第五方面、第五方面中任意一种可能的实现方式、第六方面或第六方面中任意一种可能的实现方式中服务端节点实现的步骤。A twelfth aspect of the embodiment of the present application provides a server node. The server node includes a memory and a processor; the memory stores code, and the processor is configured to execute the code. When the code is executed, the server node executes Such as the fourth aspect, any possible implementation method of the fourth aspect, the fifth aspect, any possible implementation method of the fifth aspect, the sixth aspect, or any possible implementation method of the sixth aspect. Steps for end node implementation.

本申请实施例的第十三方面提供了一种计算机存储介质,计算机存储介质存储有一个或多个指令,指令在由一个或多个计算机执行时使得一个或多个计算机实施如第四方面、第四方面中任意一种可能的实现方式、第五方面、第五方面中任意一种可能的实现方式、第六方面或第六方面中任意一种可能的实现方式所述的方法。A thirteenth aspect of the embodiments of the present application provides a computer storage medium. The computer storage medium stores one or more instructions. When executed by one or more computers, the instructions cause one or more computers to implement the fourth aspect, Any possible implementation manner in the fourth aspect, the fifth aspect, any possible implementation manner in the fifth aspect, the sixth aspect, or the method described in any possible implementation manner in the sixth aspect.

本申请实施例的第十四方面提供了一种计算机程序产品,计算机程序产品存储有指令,指令在由计算机执行时,使得计算机实施如第四方面、第四方面中任意一种可能的实现方式、第五方面、第五方面中任意一种可能的实现方式、第六方面或第六方面中任意一种可能的实现方式所述的方法。A fourteenth aspect of the embodiments of the present application provides a computer program product. The computer program product stores instructions. When the instructions are executed by a computer, the computer implements any one of the possible implementation methods of the fourth aspect and the fourth aspect. , the fifth aspect, any possible implementation manner of the fifth aspect, the sixth aspect, or the method described in any possible implementation manner of the sixth aspect.

本申请实施例提供的云服务系统中,负载均衡节点可将第一标识发送至客户端节点。那么,当客户端节点存在待处理的业务时,客户端节点可基于第一标识将第一业务请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,得到处理后的第一业务请求,并将处理后的第一业务请求直接发送至服务端节点。接着,服务端节点可对处理后的第一业务请求进行处理,得到第一业务响应,并将第一业务响应直接发送至客户端节点。最后,客户端节点可基于第一标识将第一业务响应的源地址,从服务端节点的地址转换为负载均衡节点的地址,得到处理后的第一业务响应,以基于处理后的第一业务响应完成响应的业务。由此可见,在DNAT模式中,原先由负载均衡节点负责的针对第一业务请求的DANT处理以及针对第一业务响应的SNAT处理,被负载均衡节点卸载至客户端节点执行,如此一来,处理后的第一业务请求以及处理后的第一业务响应,可以直接在客户端节点以及服务端节点之间传输,不需要经过负载均衡节点处理,可有效减少经过负载均衡节点的流量,降低负载均衡节点的带宽消耗,且可降低业务传输时延,提高用户体验。In the cloud service system provided by the embodiment of the present application, the load balancing node can send the first identifier to the client node. Then, when the client node has a service to be processed, the client node can convert the destination address of the first service request from the address of the load balancing node to the address of the server node based on the first identifier, and obtain the processed first service request, and directly sends the processed first service request to the server node. Then, the server node can process the processed first service request, obtain the first service response, and directly send the first service response to the client node. Finally, the client node can convert the source address of the first service response from the address of the server node to the address of the load balancing node based on the first identifier to obtain the processed first service response. The response completes the response business. It can be seen that in the DNAT mode, the DANT processing for the first business request and the SNAT processing for the first business response, which were originally responsible for the load balancing node, are offloaded to the client node for execution by the load balancing node. In this way, the processing The first business request and the processed first business response can be directly transmitted between the client node and the server node without being processed by the load balancing node, which can effectively reduce the traffic passing through the load balancing node and reduce load balancing. Node bandwidth consumption, and can reduce business transmission delay and improve user experience.

附图说明Description of the drawings

图1为本申请实施例提供的云服务系统的一个结构示意图;Figure 1 is a schematic structural diagram of the cloud service system provided by the embodiment of the present application;

图2为本申请实施例提供的客户端节点的一个结构示意图;Figure 2 is a schematic structural diagram of a client node provided by an embodiment of the present application;

图3为本申请实施例提供的服务端节点的一个结构示意图;Figure 3 is a schematic structural diagram of a server node provided by an embodiment of the present application;

图4为本申请实施例提供的基于云服务系统的业务处理方法的一个流程示意图;Figure 4 is a schematic flow chart of the business processing method based on the cloud service system provided by the embodiment of the present application;

图5为本申请实施例提供的云服务系统的另一个结构示意图; Figure 5 is another structural schematic diagram of the cloud service system provided by the embodiment of the present application;

图6为本申请实施例提供的基于云服务系统的业务处理方法的另一流程示意图;Figure 6 is another schematic flowchart of a business processing method based on a cloud service system provided by an embodiment of the present application;

图7为本申请实施例提供的云服务系统的另一结构示意图;Figure 7 is another structural schematic diagram of the cloud service system provided by the embodiment of the present application;

图8为本申请实施例提供的基于云服务系统的业务处理方法的另一流程示意图;Figure 8 is another schematic flowchart of a business processing method based on a cloud service system provided by an embodiment of the present application;

图9为本申请实施例提供的云服务系统的另一结构示意图;Figure 9 is another structural schematic diagram of the cloud service system provided by the embodiment of the present application;

图10为本申请实施例提供的负载均衡节点的一个结构示意图;Figure 10 is a schematic structural diagram of a load balancing node provided by an embodiment of the present application;

图11为本申请实施例提供的客户端节点的另一结构示意图;Figure 11 is another schematic structural diagram of a client node provided by an embodiment of the present application;

图12为本申请实施例提供的服务端节点的另一结构示意图;Figure 12 is another structural schematic diagram of a server node provided by an embodiment of the present application;

图13为本申请实施例提供的负载均衡节点的另一结构示意图;Figure 13 is another structural schematic diagram of a load balancing node provided by an embodiment of the present application;

图14为本申请实施例提供的客户端节点的另一结构示意图;Figure 14 is another schematic structural diagram of a client node provided by an embodiment of the present application;

图15为本申请实施例提供的服务端节点的另一结构示意图。Figure 15 is another schematic structural diagram of a server node provided by an embodiment of the present application.

具体实施方式Detailed ways

本申请实施例提供了一种云服务系统及基于云服务系统的业务处理方法,可有效减少经过负载均衡节点的流量,降低负载均衡节点的带宽消耗,且可降低业务传输时延,提高用户体验。The embodiments of this application provide a cloud service system and a business processing method based on the cloud service system, which can effectively reduce the traffic passing through the load balancing node, reduce the bandwidth consumption of the load balancing node, and can reduce the business transmission delay and improve the user experience. .

本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的术语在适当情况下可以互换,这仅仅是描述本申请的实施例中对相同属性的对象在描述时所采用的区分方式。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,以便包含一系列单元的过程、方法、系统、产品或设备不必限于那些单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它单元。The terms "first", "second", etc. in the description and claims of this application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the terms so used are interchangeable under appropriate circumstances, and are merely a way of distinguishing objects with the same attributes in describing the embodiments of the present application. Furthermore, the terms "include" and "having" and any variations thereof, are intended to cover non-exclusive inclusions, such that a process, method, system, product or apparatus comprising a series of elements need not be limited to those elements, but may include not explicitly other elements specifically listed or inherent to such processes, methods, products or equipment.

在公有云、私有云以及混合云等云场景中,云服务系统一般通过集群部署来为用户提供具备一定规模的服务。为了避免负载集中在集群中的某个节点或某些节点上,可在集群中增设负载均衡节点来分配集群中各个节点的负载,从而优化整个云服务系统的性能。In cloud scenarios such as public cloud, private cloud, and hybrid cloud, cloud service systems generally provide users with services of a certain scale through cluster deployment. In order to prevent the load from being concentrated on a certain node or certain nodes in the cluster, load balancing nodes can be added in the cluster to distribute the load of each node in the cluster, thereby optimizing the performance of the entire cloud service system.

目前,负载均衡节点可实现非DR模式的负载均衡,非DR模式包含DNAT模式以及FULLNAT模式。在DNAT模式中,对于客户端节点发送的业务请求,负载均衡节点可对业务请求进行DNAT处理,并将处理后的业务请求发送至服务端节点。对于服务端节点返回的业务响应,负载均衡节点可对业务响应进行SNAT处理,并将处理后的业务请求发送至客户端节点,以客户端节点完成相应的业务。在FULLNAT模式中,对于客户端节点发送的业务请求,负载均衡节点可对业务请求进行SNAT+DNAT处理,并将处理后的业务请求发送至服务端节点。对于服务端节点返回的业务响应,负载均衡节点可对业务响应进行DNAT+SNAT处理,并将处理后的业务请求发送至客户端节点,以客户端节点完成相应的业务。Currently, load balancing nodes can implement load balancing in non-DR mode. Non-DR mode includes DNAT mode and FULLNAT mode. In the DNAT mode, the load balancing node can perform DNAT processing on the service request sent by the client node, and send the processed service request to the server node. For the business response returned by the server node, the load balancing node can perform SNAT processing on the business response, and send the processed business request to the client node, so that the client node completes the corresponding business. In FULLNAT mode, the load balancing node can perform SNAT+DNAT processing on the service request sent by the client node, and send the processed service request to the server node. For the business response returned by the server node, the load balancing node can perform DNAT+SNAT processing on the business response, and send the processed business request to the client node, so that the client node completes the corresponding business.

由此可见,无论是在DNAT模式还是在FULLNAT模式中,客户端节点和服务端节点之间的流量(业务请求以及业务响应等等),会持续经过负载均衡节点。然而,云服务系统内往往部署有数量众多的客户端节点和服务端节点,庞大的流量均需要经过负载均衡节点处理,导致负载均衡节点的带宽消耗过大,且会导致业务传输时延过长,导致用户体验较差。It can be seen that, whether in DNAT mode or FULLNAT mode, the traffic between client nodes and server nodes (business requests, business responses, etc.) will continue to pass through the load balancing node. However, cloud service systems are often deployed with a large number of client nodes and server nodes, and huge traffic needs to be processed by load balancing nodes, resulting in excessive bandwidth consumption of load balancing nodes and long service transmission delays. , resulting in poor user experience.

进一步地,由于负载均衡节点的硬件资源有限,无法处理过于庞大的流量,导致云服务系统所能承受的业务量受限,在面对用户日益增大的业务需求时,往往难以快速实现扩容, 无法为越来越多的用户提供优质的云服务。Furthermore, due to the limited hardware resources of the load balancing node, it is unable to handle excessively large traffic, resulting in a limit on the business volume that the cloud service system can bear. In the face of the increasing business needs of users, it is often difficult to quickly expand the capacity. It is unable to provide high-quality cloud services to more and more users.

为了解决上述问题,本申请实施例提供了一种业务处理方法,该方法可通过云服务系统实现,如图1所示(图1为本申请实施例提供的云服务系统的一个结构示意图),该云服务系统可包含负载均衡节点、多个客户端节点以及多个服务端节点,下文将分别对这三类物理节点进行介绍:In order to solve the above problems, embodiments of the present application provide a business processing method, which can be implemented through a cloud service system, as shown in Figure 1 (Figure 1 is a schematic structural diagram of the cloud service system provided by the embodiment of the present application), The cloud service system can include load balancing nodes, multiple client nodes, and multiple server nodes. These three types of physical nodes will be introduced below:

负载均衡节点,该节点可以是一个物理机(也可以称为服务器),也可以由多个物理机构建,还可以是某个物理机上的云实例(例如,虚拟机或容器等等)。该节点也可呈现为云平台,可对多个客户端节点以及多个服务端节点进行统一管理。例如,对于某个客户端节点,负载均衡节点可为该客户端节点分配某个服务端节点,以使得该服务端节点为该客户端节点提供业务处理,并实现该客户端节点、负载均衡节点以及该服务端节点之间的握手。又如,负载均衡节点可基于DNAT模式或FULLNAT模式,来间接实现该客户端节点以及该服务端节点之间的业务交互。再如,负载均衡节点可该客户端节点以及该服务端节点之间的业务交互,卸载至该客户端节点以及该服务端节点,由这两个节点直接来实现业务交互。Load balancing node, this node can be a physical machine (also called a server), or it can be built from multiple physical machines, or it can be a cloud instance (for example, a virtual machine or a container, etc.) on a certain physical machine. This node can also be presented as a cloud platform, which can uniformly manage multiple client nodes and multiple server nodes. For example, for a client node, the load balancing node can allocate a server node to the client node so that the server node provides business processing for the client node and implements the client node and load balancing node. And the handshake between the server nodes. For another example, the load balancing node can indirectly implement business interaction between the client node and the server node based on the DNAT mode or the FULLNAT mode. For another example, the load balancing node can offload the business interaction between the client node and the server node to the client node and the server node, and the two nodes directly implement the business interaction.

客户端节点,该节点通常为一个部署有一个或多个虚拟客户端(也可以理解为虚拟机或容器等虚拟实例)的物理机。如图2所示(图2为本申请实施例提供的客户端节点的一个结构示意图),基于虚拟化技术,客户端节点可划分为三层,底层为节点的硬件资源,中间层为虚拟机监视器(hypervisor),顶层为多个虚拟客户端。其中,虚拟客户端可以发起各种请求,例如,握手请求以及业务请求等等,虚拟机监视器可以对来自虚拟客户端的请求进行处理,并将处理后的请求对外界发送(当然,也可不对请求进行处理,直接对外界发送),虚拟机监视器也可以对来自外界的响应进行处理,并将处理后的响应发送至虚拟客户端(当然,也可不对响应进行处理,直接发送至虚拟客户端)。Client node, which is usually a physical machine on which one or more virtual clients (which can also be understood as virtual instances such as virtual machines or containers) are deployed. As shown in Figure 2 (Figure 2 is a schematic structural diagram of a client node provided by an embodiment of the present application), based on virtualization technology, the client node can be divided into three layers. The bottom layer is the hardware resources of the node, and the middle layer is the virtual machine. Monitor (hypervisor), with multiple virtual clients at the top. Among them, the virtual client can initiate various requests, such as handshake requests, business requests, etc., and the virtual machine monitor can process the requests from the virtual client and send the processed requests to the outside world (of course, it can also not The request is processed and sent directly to the outside world). The virtual machine monitor can also process the response from the outside world and send the processed response to the virtual client (of course, the response can also be sent directly to the virtual client without processing the request. end).

服务端节点,该节点通常为一个部署有一个或多个虚拟服务端(也可以理解为虚拟机或容器等虚拟实例)的物理机。如图3所示(图3为本申请实施例提供的服务端节点的一个结构示意图),基于虚拟化技术,服务端节点可划分为三层,底层为节点的硬件资源,中间层为虚拟机监视器(hypervisor),顶层为多个虚拟服务端。其中,虚拟服务端可以接收并处理外界的各种请求,例如,握手请求以及业务请求等等,虚拟机监视器可以对来自外界的请求进行处理,并将处理后的请求发送至虚拟服务端(当然,也可不对请求进行处理,直接发送虚拟服务端),虚拟机监视器也可以对来自虚拟服务端的响应进行处理,并将处理后的响应对外界发送(当然,也可不对响应进行处理,直接对外界发送)。Server node is usually a physical machine deployed with one or more virtual servers (which can also be understood as virtual instances such as virtual machines or containers). As shown in Figure 3 (Figure 3 is a schematic structural diagram of a server node provided by an embodiment of the present application), based on virtualization technology, the server node can be divided into three layers. The bottom layer is the hardware resources of the node, and the middle layer is the virtual machine. Monitor (hypervisor), with multiple virtual servers at the top. Among them, the virtual server can receive and process various requests from the outside world, such as handshake requests and business requests, etc. The virtual machine monitor can process requests from the outside world and send the processed requests to the virtual server ( Of course, you can also send the request directly to the virtual server without processing the request). The virtual machine monitor can also process the response from the virtual server and send the processed response to the outside world (of course, you can also not process the response. sent directly to the outside world).

为了进一步了解上述云服务系统的工作流程,下文将分三种情况,对该云服务系统的工作流程进行介绍。首先,先对第一种情况下的云服务系统的工作流程进行介绍,图4为本申请实施例提供的基于云服务系统的业务处理方法的一个流程示意图,如图4所示,该方法包括:In order to further understand the workflow of the above-mentioned cloud service system, the following will introduce the workflow of the cloud service system in three situations. First, the workflow of the cloud service system in the first case is introduced. Figure 4 is a schematic flow chart of the business processing method based on the cloud service system provided by the embodiment of the present application. As shown in Figure 4, the method includes :

401、客户端节点将握手请求发送至负载均衡节点。401. The client node sends the handshake request to the load balancing node.

本实施例中,当某个客户端节点存在业务需求,该客户端节点可向负载均衡节点发起握手,即该客户端节点将握手请求发送至负载均衡节点,需要说明的是,握手请求所包含的源地址为该客户端节点的地址,目的地址为负载均衡节点的地址。In this embodiment, when a client node has business requirements, the client node can initiate a handshake to the load balancing node, that is, the client node sends a handshake request to the load balancing node. It should be noted that the handshake request includes The source address is the address of the client node, and the destination address is the address of the load balancing node.

例如,如图5所示(图5为本申请实施例提供的云服务系统的另一个结构示意图),客户 端节点1的虚拟客户端1可先生成握手请求,握手请求的源地址为客户端节点1的虚拟客户端1的地址,握手请求的目的地址为负载均衡节点的前端地址。然后,客户端节点1的虚拟客户端1将握手请求发送至客户端节点1的虚拟机监视器,以使得客户端节点1的虚拟机监视器再将握手请求发送至负载均衡节点。For example, as shown in Figure 5 (Figure 5 is another structural schematic diagram of the cloud service system provided by this embodiment of the present application), the customer Virtual client 1 of end node 1 can first generate a handshake request. The source address of the handshake request is the address of virtual client 1 of client node 1. The destination address of the handshake request is the front-end address of the load balancing node. Then, virtual client 1 of client node 1 sends a handshake request to the virtual machine monitor of client node 1, so that the virtual machine monitor of client node 1 then sends a handshake request to the load balancing node.

402、负载均衡节点基于握手请求在服务端节点资源池中选择服务端节点,再对握手请求进行DNAT处理,得到处理后的握手请求,并将处理后的握手请求发送至服务端节点。402. The load balancing node selects the server node from the server node resource pool based on the handshake request, then performs DNAT processing on the handshake request, obtains the processed handshake request, and sends the processed handshake request to the server node.

得到来自该客户端节点的握手请求后,负载均衡节点基于握手请求可确定该客户端节点存在业务需求,则按照一定的规则(例如,预置的负载均衡算法等等)在服务端节点资源池(包含多个服务端节点)中选择某个服务端节点来为该客户端节点进行业务处理。接着,负载均衡节点还可对握手请求进行DNAT处理,即将握手请求的目的地址,从负载均衡节点的地址转换为该服务端节点的地址,得到处理后的握手请求。然后,负载均衡节点可将处理后的握手请求发送至该服务端节点。After receiving the handshake request from the client node, the load balancing node can determine that the client node has business needs based on the handshake request, and then according to certain rules (for example, preset load balancing algorithm, etc.) in the server node resource pool (including multiple server nodes), select a server node to perform business processing for the client node. Then, the load balancing node can also perform DNAT processing on the handshake request, that is, convert the destination address of the handshake request from the address of the load balancing node to the address of the server node, and obtain the processed handshake request. The load balancing node can then send the processed handshake request to the server node.

依旧如上述例子,负载均衡节点接收到握手请求后,可选择服务端节点1的虚拟服务端1为客户端节点1的虚拟客户端1进行服务。接着,负载均衡节点可对握手请求进行DNAT处理,得到处理后的握手请求,此时,处理后的握手请求的源地址依旧为客户端节点1的虚拟客户端1的地址,处理后的握手请求的目的地址则更替为服务端节点1的虚拟服务端1的地址。然后,负载均衡节点可将处理后的握手请求发送至服务端节点1的虚拟机监视器。Still as in the above example, after receiving the handshake request, the load balancing node can select the virtual server 1 of the server node 1 to serve the virtual client 1 of the client node 1. Then, the load balancing node can perform DNAT processing on the handshake request to obtain the processed handshake request. At this time, the source address of the processed handshake request is still the address of virtual client 1 of client node 1. The processed handshake request The destination address is replaced with the address of virtual server 1 of server node 1. Then, the load balancing node can send the processed handshake request to the virtual machine monitor of server node 1.

403、服务端节点对处理后的握手请求进行处理,得到握手响应,并将握手响应发送至负载均衡节点。403. The server node processes the processed handshake request, obtains a handshake response, and sends the handshake response to the load balancing node.

得到来自负载均衡节点的处理后的握手请求后,该服务端节点可对处理后的握手请求进行一系列的处理,从而得到握手响应,并将握手响应发送至负载均衡节点。需要说明的是,握手响应的源地址为该服务端节点的地址,握手响应的目的地址为该客户端节点的地址。After obtaining the processed handshake request from the load balancing node, the server node can perform a series of processes on the processed handshake request to obtain a handshake response, and send the handshake response to the load balancing node. It should be noted that the source address of the handshake response is the address of the server node, and the destination address of the handshake response is the address of the client node.

依旧如上述例子,接收到处理后的握手请求后,服务端节点1的虚拟机监视器可将处理后的握手请求发送至服务端节点1的虚拟服务端1,并记录同源同宿逻辑。接着,服务端节点1的虚拟服务端1可对处理后的握手请求进行处理,得到握手响应,握手响应的源地址为服务端节点1的虚拟服务端1的地址,握手响应的目的地址为客户端节点1的虚拟客户端1的地址。然后,服务端节点1的虚拟服务端1可将握手响应返回给服务端节点1的虚拟机监视器。由于同源同宿逻辑的存在,服务端节点1的虚拟机监视器对外发送握手响应时,握手响应可优先被负载均衡节点接收。Still as in the above example, after receiving the processed handshake request, the virtual machine monitor of the server node 1 can send the processed handshake request to the virtual server 1 of the server node 1 and record the same origin and same destination logic. Then, the virtual server 1 of the server node 1 can process the processed handshake request and obtain a handshake response. The source address of the handshake response is the address of the virtual server 1 of the server node 1, and the destination address of the handshake response is the client. The address of virtual client 1 for end node 1. Then, the virtual server 1 of the server node 1 may return the handshake response to the virtual machine monitor of the server node 1 . Due to the existence of the same origin and same destination logic, when the virtual machine monitor of server node 1 sends a handshake response to the outside world, the handshake response can be received by the load balancing node first.

404、负载均衡节点对握手响应进行SNAT处理,得到处理后的握手响应,并将处理后的握手响应发送至客户端节点。404. The load balancing node performs SNAT processing on the handshake response, obtains the processed handshake response, and sends the processed handshake response to the client node.

得到来自该服务端节点的握手响应后,负载均衡节点可对握手响应进行SNAT处理,即将握手响应的源地址,从服务端节点的地址转换为负载均衡节点的地址,得到处理后的握手响应。然后,负载均衡节点将处理后的握手响应发送至该客户端节点。至此,该客户端节点和该服务端节点则完成握手。After obtaining the handshake response from the server node, the load balancing node can perform SNAT processing on the handshake response, that is, convert the source address of the handshake response from the address of the server node to the address of the load balancing node to obtain the processed handshake response. The load balancing node then sends the processed handshake response to the client node. At this point, the client node and the server node complete the handshake.

依旧如上述例子,负载均衡节点接收到握手响应后,可对握手响应进行SNAT处理,得到处理后的握手响应,此时,处理后的握手响应的源地址更替为负载均衡节点的前端地址,处理后的握手响应的目的地址则依旧为客户端节点1的虚拟客户端1的地址。然后,负载均衡 节点可将处理后的握手响应发送至客户端节点1的虚拟机监视器。那么,客户端节点1的虚拟机监视器可将处理后的握手响应发送至客户端节点1的虚拟客户端1,至此,则完成了握手。Still as in the above example, after the load balancing node receives the handshake response, it can perform SNAT processing on the handshake response to obtain the processed handshake response. At this time, the source address of the processed handshake response is replaced by the front-end address of the load balancing node, and the processing The destination address of the subsequent handshake response is still the address of virtual client 1 of client node 1. Then, load balancing The node may send the processed handshake response to the virtual machine monitor of client node 1. Then, the virtual machine monitor of client node 1 can send the processed handshake response to virtual client 1 of client node 1. At this point, the handshake is completed.

405、客户端节点将第二业务请求发送至负载均衡节点。405. The client node sends the second service request to the load balancing node.

当存在某个待处理业务时,该客户端节点可将用于指示该待处理业务的第二业务请求发送至负载均衡节点,需要说明的是,第二业务请求所包含的源地址为该客户端节点的地址,目的地址为负载均衡节点的地址。When there is a certain pending service, the client node can send a second service request indicating the pending service to the load balancing node. It should be noted that the source address included in the second service request is the client. The address of the end node, and the destination address is the address of the load balancing node.

依旧如上述例子,客户端节点1的虚拟客户端1可先生成第二业务请求,第二业务请求的源地址为客户端节点1的虚拟客户端1的地址,第二业务请求的目的地址为负载均衡节点的前端地址。然后,客户端节点1的虚拟客户端1将第二业务请求发送至客户端节点1的虚拟机监视器,以使得客户端节点1的虚拟机监视器再将第二业务请求发送至负载均衡节点。Still as in the above example, virtual client 1 of client node 1 can first generate a second service request. The source address of the second service request is the address of virtual client 1 of client node 1, and the destination address of the second service request is The front-end address of the load balancing node. Then, the virtual client 1 of the client node 1 sends the second service request to the virtual machine monitor of the client node 1, so that the virtual machine monitor of the client node 1 then sends the second service request to the load balancing node. .

406、负载均衡节点对第二业务请求进行DNAT处理,得到处理后的第二业务请求,并将处理后的第二业务请求发送至服务端节点。406. The load balancing node performs DNAT processing on the second service request, obtains the processed second service request, and sends the processed second service request to the server node.

得到来自该客户端节点的第二业务请求后,负载均衡节点可对第二业务请求进行DNAT处理,即将第二业务请求的目的地址,从负载均衡节点的地址转换为该服务端节点的地址,得到处理后的第二业务请求。然后,负载均衡节点可将处理后的第二业务请求发送至该服务端节点。After obtaining the second service request from the client node, the load balancing node can perform DNAT processing on the second service request, that is, convert the destination address of the second service request from the address of the load balancing node to the address of the server node, Obtain the processed second service request. Then, the load balancing node may send the processed second service request to the server node.

依旧如上述例子,负载均衡节点接收到第二业务请求后,可对第二业务请求进行DNAT处理,得到处理后的第二业务请求,此时,处理后的第二业务请求的源地址依旧为客户端节点1的虚拟客户端1的地址,处理后的第二业务请求的目的地址则更替为服务端节点1的虚拟服务端1的地址。然后,负载均衡节点可将处理后的第二业务请求发送至服务端节点1的虚拟机监视器。Still as in the above example, after receiving the second service request, the load balancing node can perform DNAT processing on the second service request to obtain the processed second service request. At this time, the source address of the processed second service request is still The address of the virtual client 1 of the client node 1, and the destination address of the processed second service request is replaced by the address of the virtual server 1 of the server node 1. Then, the load balancing node may send the processed second service request to the virtual machine monitor of the server node 1 .

407、服务端节点对处理后的第二业务请求进行处理,得到第二业务响应,并将第二业务响应发送至负载均衡节点。407. The server node processes the processed second service request, obtains the second service response, and sends the second service response to the load balancing node.

得到来自负载均衡节点的处理后的第二业务请求后,该服务端节点可对处理后的第二业务请求进行一系列的处理,从而得到第二业务响应,并将第二业务响应发送至负载均衡节点。需要说明的是,第二业务响应的源地址为该服务端节点的地址,第二业务响应的目的地址为该客户端节点的地址。After obtaining the processed second service request from the load balancing node, the server node can perform a series of processes on the processed second service request to obtain a second service response, and send the second service response to the load Balanced node. It should be noted that the source address of the second service response is the address of the server node, and the destination address of the second service response is the address of the client node.

依旧如上述例子,接收到处理后的第二业务请求后,服务端节点1的虚拟机监视器可将处理后的第二业务请求发送至服务端节点1的虚拟服务端1。接着,服务端节点1的虚拟服务端1可对处理后的第二业务请求进行处理,得到第二业务响应,第二业务响应的源地址为服务端节点1的虚拟服务端1的地址,第二业务响应的目的地址为客户端节点1的虚拟客户端1的地址。然后,服务端节点1的虚拟服务端1可将第二业务响应返回给服务端节点1的虚拟机监视器。由于同源同宿逻辑的存在,服务端节点1的虚拟机监视器对外发送第二业务响应时,第二业务响应可优先被负载均衡节点接收。Still as in the above example, after receiving the processed second service request, the virtual machine monitor of the server node 1 can send the processed second service request to the virtual server 1 of the server node 1 . Then, the virtual server 1 of the server node 1 can process the processed second service request to obtain a second service response. The source address of the second service response is the address of the virtual server 1 of the server node 1. The destination address of the second service response is the address of virtual client 1 of client node 1. Then, the virtual server 1 of the server node 1 may return the second service response to the virtual machine monitor of the server node 1 . Due to the existence of same-origin and same-destination logic, when the virtual machine monitor of server node 1 sends a second service response to the outside, the second service response can be received by the load balancing node with priority.

408、负载均衡节点检测第二业务请求是否包含第二标识。408. The load balancing node detects whether the second service request contains the second identifier.

409、若第二业务请求包含第二标识,负载均衡节点对第二业务响应进行SNAT处理,向第二业务响应添加第一标识,得到处理后的第二业务响应,并将处理后的第二业务响应发送 至客户端节点。409. If the second service request contains the second identifier, the load balancing node performs SNAT processing on the second service response, adds the first identifier to the second service response, obtains the processed second service response, and adds the processed second service response to the second service response. Business response sent to the client node.

得到来自该服务端节点的第二业务响应后,负载均衡节点可先检测第二业务请求是否包含第二标识,以确定是否将后续的业务交互卸载到该客户端节点以及该服务端节点上,由这两个节点自身来直接完成业务交互。那么,则存在两种情况:After obtaining the second service response from the server node, the load balancing node can first detect whether the second service request contains the second identifier to determine whether to offload subsequent business interactions to the client node and the server node. The two nodes themselves directly complete the business interaction. Then, there are two situations:

(1)若第二业务请求包含第二标识,说明负载均衡节点可将后续的业务交互卸载到该客户端节点以及该服务端节点上,由这两个节点自身来直接完成业务交互,故负载均衡节点可对第二业务响应进行SNAT处理,即将第二业务响应的源地址,从服务端节点的地址转换为负载均衡节点的地址,并向第二业务响应添加第一标识(也可以称为元数据)得到处理后的第二业务响应。然后,负载均衡节点将处理后的第二业务响应发送至该客户端节点。此后,该客户端节点基于处理后的第二业务响应,可保存第一标识,并完成相应的业务。(1) If the second business request contains the second identifier, it means that the load balancing node can offload subsequent business interactions to the client node and the server node, and the two nodes themselves directly complete the business interaction, so the load The balancing node can perform SNAT processing on the second service response, that is, convert the source address of the second service response from the address of the server node to the address of the load balancing node, and add a first identifier (also known as Metadata) is processed and the second service response is obtained. Then, the load balancing node sends the processed second service response to the client node. Thereafter, the client node can save the first identification based on the processed second service response and complete the corresponding service.

依旧如上述例子,负载均衡节点接收到第二业务响应后,可先判断第二业务请求中是否包含第二标识,若确定第二业务请求包含第二标识,则对第二业务响应进行SNAT处理,并将第一标识添加到第二业务响应中,从而得到处理后的第二业务响应,此时,处理后的第二业务响应的源地址更替为负载均衡节点的前端地址,处理后的第二业务响应的目的地址则依旧为客户端节点1的虚拟客户端1的地址。然后,负载均衡节点可将处理后的第二业务响应发送至客户端节点1的虚拟机监视器。那么,客户端节点1的虚拟机监视器可解析处理后的第二业务响应以保存第一标识,并将处理后的第二业务响应发送至客户端节点1的虚拟客户端1,以使得客户端节点1的虚拟客户端1基于处理后的第二业务响应完成相应的业务。Still as in the above example, after receiving the second service response, the load balancing node can first determine whether the second service request contains the second identifier. If it is determined that the second service request contains the second identifier, then perform SNAT processing on the second service response. , and add the first identifier to the second service response, thereby obtaining the processed second service response. At this time, the source address of the processed second service response is replaced by the front-end address of the load balancing node, and the processed second service response The destination address of the second service response is still the address of virtual client 1 of client node 1. Then, the load balancing node may send the processed second service response to the virtual machine monitor of the client node 1 . Then, the virtual machine monitor of client node 1 can parse the processed second service response to save the first identification, and send the processed second service response to virtual client 1 of client node 1, so that the client The virtual client 1 of the end node 1 completes the corresponding service based on the processed second service response.

(2)若第二业务请求未包含第二标识,说明负载均衡节点不可将后续的业务交互卸载到该客户端节点以及该服务端节点上,故负载均衡节点可对第二业务响应进行SNAT处理,即将第二业务响应的源地址,从服务点节点的地址转换为负载均衡节点的地址,得到处理后的第二业务响应,并将处理后的第二业务响应发送至客户端节点。此后,该客户端节点可基于处理后的第二业务响应完成相应的业务。(2) If the second service request does not include the second identifier, it means that the load balancing node cannot offload subsequent business interactions to the client node and the server node, so the load balancing node can perform SNAT processing on the second service response. , that is, convert the source address of the second service response from the address of the service point node to the address of the load balancing node, obtain the processed second service response, and send the processed second service response to the client node. Thereafter, the client node can complete the corresponding service based on the processed second service response.

应理解,本实施例中,仅以第一标识被包含在第二业务响应中,被负载均衡节点下发到客户端节点(伴随着业务进行)为例进行示意性介绍,并不对负载均衡节点向客户端节点下发第一标识的方式构成限制,例如,在完成握手后,负载均衡节点可直接将第一标识发送至客户端节点(不需要伴随着业务进行)等等。It should be understood that in this embodiment, only the first identifier is included in the second service response and is delivered to the client node by the load balancing node (as the service proceeds) as an example for schematic introduction, and does not describe the load balancing node. The method of delivering the first identifier to the client node constitutes a restriction. For example, after completing the handshake, the load balancing node can directly send the first identifier to the client node (without accompanying the business), etc.

还应理解,本实施例中,仅以负载均衡节点判断第二业务请求是否包含第二标识,从而来确定是否下发第一标识为例进行示意性介绍,在实际应用中,负载均衡节点也可不进行任何判断,直接向客户端节点下发第一标识等等。It should also be understood that in this embodiment, only the load balancing node determines whether the second service request contains the second identifier and thereby determines whether to issue the first identifier is used as an example for schematic introduction. In actual applications, the load balancing node also The first identifier and so on can be directly delivered to the client node without any judgment.

还应理解,本实施例中,仅以第二标识携带在第二业务请求中进行示意性介绍,在实际应用中,第二标识还可以携带在握手请求以及其余业务请求中等等。It should also be understood that in this embodiment, only the second identifier is carried in the second service request for schematic introduction. In actual applications, the second identifier can also be carried in the handshake request and other service requests, and so on.

410、客户端节点基于第一标识对第一业务请求进行DNAT处理,得到处理后的第一业务请求,并将处理后的第一业务请求发送至服务端节点。410. The client node performs DNAT processing on the first service request based on the first identifier, obtains the processed first service request, and sends the processed first service request to the server node.

当存在另一个待处理业务时,该客户端节点可先获取用于指示该待处理业务的第一业务请求,需要说明的是,第一业务请求所包含的源地址为该客户端节点的地址,目的地址为负载均衡节点的地址。由于第一标识的存在,故该客户端节点可基于第一标识对第一业务请求进行DNAT处理,即将第一业务请求的目的地址,从负载均衡节点的地址转换为该服务端节点 的地址,得到处理后的第一业务请求。然后,该客户端节点可将处理后的第一业务请求直接发送至该服务端节点。When there is another service to be processed, the client node can first obtain the first service request indicating the service to be processed. It should be noted that the source address included in the first service request is the address of the client node. , the destination address is the address of the load balancing node. Due to the existence of the first identifier, the client node can perform DNAT processing on the first service request based on the first identifier, that is, convert the destination address of the first service request from the address of the load balancing node to the server node. The address after which the first business request is processed. Then, the client node can directly send the processed first service request to the server node.

依旧如上述例子,客户端节点1的虚拟客户端1可先生成第一业务请求,第一业务请求的源地址为客户端节点1的虚拟客户端1的地址,第一业务请求的目的地址为负载均衡节点的前端地址。接着,客户端节点1的虚拟客户端1将第一业务请求发送至客户端节点1的虚拟机监视器。然后,客户端节点1的虚拟机监视器可基于第一标识,对第一业务请求进行DNAT处理,得到处理后的第一业务请求,此时,处理后的第一业务请求的源地址依旧为客户端节点1的虚拟客户端1的地址,处理后的第一业务请求的目的地址则更替为服务端节点1的虚拟服务端1的地址。随后,客户端节点1的虚拟机监视器可将处理后的第一业务请求直接发送至服务端节点1的虚拟机监视器。Still as in the above example, virtual client 1 of client node 1 can first generate a first service request. The source address of the first service request is the address of virtual client 1 of client node 1, and the destination address of the first service request is The front-end address of the load balancing node. Then, the virtual client 1 of the client node 1 sends the first service request to the virtual machine monitor of the client node 1 . Then, the virtual machine monitor of client node 1 can perform DNAT processing on the first service request based on the first identifier to obtain the processed first service request. At this time, the source address of the processed first service request is still The address of the virtual client 1 of the client node 1, and the destination address of the processed first service request is replaced by the address of the virtual server 1 of the server node 1. Subsequently, the virtual machine monitor of the client node 1 can directly send the processed first service request to the virtual machine monitor of the server node 1 .

411、服务端节点对处理后的第一业务请求进行处理,得到第一业务响应,并将第一业务响应发送至客户端节点。411. The server node processes the processed first service request, obtains the first service response, and sends the first service response to the client node.

得到来自该客户端节点的处理后的第一业务请求后,该服务端节点可对处理后的第一业务请求进行一系列的处理,从而得到第一业务响应,并将第一业务响应直接发送至客户端节点。需要说明的是,第一业务响应的源地址为该服务端节点的地址,第一业务响应的目的地址为该客户端节点的地址。After obtaining the processed first service request from the client node, the server node can perform a series of processes on the processed first service request to obtain the first service response and directly send the first service response. to the client node. It should be noted that the source address of the first service response is the address of the server node, and the destination address of the first service response is the address of the client node.

依旧如上述例子,接收到处理后的第一业务请求后,服务端节点1的虚拟机监视器可清除同源同宿逻辑,并将处理后的第一业务请求发送至服务端节点1的虚拟服务端1。接着,服务端节点1的虚拟服务端1可对处理后的第一业务请求进行处理,得到第一业务响应,第一业务响应的源地址为服务端节点1的虚拟服务端1的地址,第一业务响应的目的地址为客户端节点1的虚拟客户端1的地址。然后,服务端节点1的虚拟服务端1可将第一业务响应返回给服务端节点1的虚拟机监视器。由于同源同宿逻辑已不存在,服务端节点1的虚拟机监视器对外发送第一业务响应时,第一业务响应则直接由客户端节点1的虚拟机监视器接收。Still as in the above example, after receiving the processed first service request, the virtual machine monitor of the server node 1 can clear the same origin and same destination logic, and send the processed first service request to the virtual service of the server node 1 Terminal 1. Then, the virtual server 1 of the server node 1 can process the processed first service request to obtain a first service response. The source address of the first service response is the address of the virtual server 1 of the server node 1. The destination address of a service response is the address of virtual client 1 of client node 1. Then, the virtual server 1 of the server node 1 may return the first service response to the virtual machine monitor of the server node 1 . Since the same origin and same destination logic no longer exists, when the virtual machine monitor of the server node 1 sends the first service response to the outside, the first service response is directly received by the virtual machine monitor of the client node 1.

412、客户端节点基于第一标识对第一业务响应进行SNAT处理,得到处理后的第一业务响应。412. The client node performs SNAT processing on the first service response based on the first identifier, and obtains the processed first service response.

得到来自该服务端节点的第一业务响应后,由于第一标识的存在,该客户端节点可基于第一标识对第一业务响应进行SNAT处理,即第一业务响应的源地址,从该服务点节点的地址转换为负载均衡节点的地址,得到处理后的第一业务响应。此后,该客户端节点可基于处理后的第一业务响应完成相应的业务。After obtaining the first service response from the server node, due to the existence of the first identifier, the client node can perform SNAT processing on the first service response based on the first identifier, that is, the source address of the first service response, from the service The address of the point node is converted into the address of the load balancing node, and the processed first service response is obtained. Thereafter, the client node can complete the corresponding service based on the processed first service response.

依旧如上述例子,客户端节点1的虚拟机监视器接收到第一业务响应后,可基于第一标识,对第一业务响应进行SNAT处理,从而得到处理后的第一业务响应,此时,处理后的第一业务响应的源地址更替为负载均衡节点的前端地址,处理后的第一业务响应的目的地址则依旧为客户端节点1的虚拟客户端1的地址。然后,客户端节点1的虚拟机监视器可将处理后的第一业务响应发送至客户端节点1的虚拟客户端1,以使得客户端节点1的虚拟客户端1基于处理后的第一业务响应完成相应的业务。Still as in the above example, after receiving the first service response, the virtual machine monitor of client node 1 can perform SNAT processing on the first service response based on the first identifier, thereby obtaining the processed first service response. At this time, The source address of the processed first service response is changed to the front-end address of the load balancing node, and the destination address of the processed first service response is still the address of virtual client 1 of client node 1. Then, the virtual machine monitor of the client node 1 may send the processed first service response to the virtual client 1 of the client node 1 , so that the virtual client 1 of the client node 1 is based on the processed first service Respond to complete the corresponding business.

应理解,本实施例中所提及的地址,可以理解为网际互连协议(internet protocol,IP)地址。It should be understood that the address mentioned in this embodiment can be understood as an Internet Protocol (IP) address.

本申请实施例提供的云服务系统中,负载均衡节点可将第一标识发送至客户端节点。那 么,当客户端节点存在待处理的业务时,客户端节点可基于第一标识将第一业务请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,得到处理后的第一业务请求,并将处理后的第一业务请求直接发送至服务端节点。接着,服务端节点可对处理后的第一业务请求进行处理,得到第一业务响应,并将第一业务响应直接发送至客户端节点。最后,客户端节点可基于第一标识将第一业务响应的源地址,从服务端节点的地址转换为负载均衡节点的地址,得到处理后的第一业务响应,以基于处理后的第一业务响应完成响应的业务。由此可见,在DNAT模式中,原先由负载均衡节点负责的针对第一业务请求的DANT处理以及针对第一业务响应的SNAT处理,被负载均衡节点卸载至客户端节点执行,如此一来,处理后的第一业务请求以及处理后的第一业务响应,可以直接在客户端节点以及服务端节点之间传输,不需要经过负载均衡节点处理,可有效减少经过负载均衡节点的流量,降低负载均衡节点的带宽消耗,且可降低业务传输时延,提高用户体验。In the cloud service system provided by the embodiment of the present application, the load balancing node can send the first identifier to the client node. That Well, when the client node has a service to be processed, the client node can convert the destination address of the first service request from the address of the load balancing node to the address of the server node based on the first identifier, and obtain the processed first service request, and directly sends the processed first service request to the server node. Then, the server node can process the processed first service request, obtain the first service response, and directly send the first service response to the client node. Finally, the client node can convert the source address of the first service response from the address of the server node to the address of the load balancing node based on the first identifier to obtain the processed first service response. The response completes the response business. It can be seen that in the DNAT mode, the DANT processing for the first business request and the SNAT processing for the first business response, which were originally responsible for the load balancing node, are offloaded to the client node for execution by the load balancing node. In this way, the processing The first business request and the processed first business response can be directly transmitted between the client node and the server node without being processed by the load balancing node, which can effectively reduce the traffic passing through the load balancing node and reduce load balancing. Node bandwidth consumption, and can reduce business transmission delay and improve user experience.

进一步地,本申请实施例中,由于负载均衡节点不再需要处理庞大的流量,能够提高云服务系统所能承受的业务量上限,在面对用户日益增大的业务需求时,可以在现有的基础上对系统进行快速扩容,从而为越来越多的用户提供优质的云服务。Furthermore, in the embodiments of this application, since the load balancing nodes no longer need to process huge traffic, the upper limit of the business volume that the cloud service system can bear can be increased. In the face of the increasing business needs of users, it can be added to the existing Rapidly expand the system capacity based on the system to provide high-quality cloud services to more and more users.

以上是对第一种情况下的云服务系统的工作流程所进行的详细说明,以下将对第二情况下的云服务系统的工作流程进行介绍。图6为本申请实施例提供的基于云服务系统的业务处理方法的另一流程示意图,如图6所示,该方法包括:The above is a detailed description of the workflow of the cloud service system in the first case. The workflow of the cloud service system in the second case will be introduced below. Figure 6 is another schematic flowchart of a business processing method based on a cloud service system provided by an embodiment of the present application. As shown in Figure 6, the method includes:

601、客户端节点将握手请求发送至负载均衡节点。601. The client node sends the handshake request to the load balancing node.

602、负载均衡节点基于握手请求在服务端节点资源池中选择服务端节点,再对握手请求进行DNAT处理,得到处理后的握手请求,并将处理后的握手请求发送至服务端节点。602. The load balancing node selects the server node from the server node resource pool based on the handshake request, then performs DNAT processing on the handshake request, obtains the processed handshake request, and sends the processed handshake request to the server node.

603、服务端节点对处理后的握手请求进行处理,得到握手响应,并将握手响应发送至负载均衡节点。603. The server node processes the processed handshake request, obtains a handshake response, and sends the handshake response to the load balancing node.

604、负载均衡节点对握手响应进行SNAT处理,得到处理后的握手响应,并将处理后的握手响应发送至客户端节点。604. The load balancing node performs SNAT processing on the handshake response, obtains the processed handshake response, and sends the processed handshake response to the client node.

605、客户端节点将第二业务请求发送至负载均衡节点。605. The client node sends the second service request to the load balancing node.

关于步骤601至步骤605的介绍,可参考图4所示实施例中步骤401至步骤405的相关说明部分,此处不再赘述。For an introduction to steps 601 to 605, reference may be made to the relevant descriptions of steps 401 to 405 in the embodiment shown in FIG. 4 , which will not be described again here.

606、负载均衡节点检测第二业务请求是否包含第二标识。606. The load balancing node detects whether the second service request contains the second identifier.

607、若第二业务请求包含第二标识,负载均衡节点对第二业务请求进行DNAT处理,向第二业务请求添加第一标识,得到处理后的第二业务请求,并将处理后的第二业务请求发送至服务端节点。607. If the second service request contains the second identifier, the load balancing node performs DNAT processing on the second service request, adds the first identifier to the second service request, obtains the processed second service request, and adds the processed second service request to the second service request. Business requests are sent to the server node.

608、服务端节点对处理后的第二业务请求进行处理,得到第二业务响应,并将第二业务响应发送至负载均衡节点。608. The server node processes the processed second service request, obtains the second service response, and sends the second service response to the load balancing node.

609、负载均衡节点对第二业务响应进行SNAT处理,向第二业务响应添加第一标识,得到处理后的第二业务响应,并将处理后的第二业务响应发送至客户端节点。609. The load balancing node performs SNAT processing on the second service response, adds the first identifier to the second service response, obtains the processed second service response, and sends the processed second service response to the client node.

得到来自该客户端节点的第二业务请求后,负载均衡节点可先检测第二业务请求是否包含第二标识,以确定是否将后续的业务交互卸载到该客户端节点以及该服务端节点上,由这两个节点自身来直接完成业务交互。那么,则存在两种情况: After obtaining the second service request from the client node, the load balancing node can first detect whether the second service request contains the second identifier to determine whether to offload subsequent business interactions to the client node and the server node. The two nodes themselves directly complete the business interaction. Then, there are two situations:

(1)若第二业务请求包含第二标识,说明负载均衡节点可将后续的业务交互卸载到该客户端节点以及该服务端节点上,由这两个节点自身来直接完成业务交互,故负载均衡节点可对第二业务请求进行DNAT处理,即将第二业务请求的目的地址,从负载均衡节点的地址转换为该服务端节点的地址,并向第二业务请求添加第一标识,得到处理后的第二业务请求。然后,负载均衡节点可将处理后的第二业务请求发送至该服务端节点。(1) If the second business request contains the second identifier, it means that the load balancing node can offload subsequent business interactions to the client node and the server node, and the two nodes themselves directly complete the business interaction, so the load The balancing node can perform DNAT processing on the second service request, that is, convert the destination address of the second service request from the address of the load balancing node to the address of the server node, and add the first identifier to the second service request. After processing second business request. Then, the load balancing node may send the processed second service request to the server node.

得到来自负载均衡节点的处理后的第二业务请求后,该服务端节点可保存第一标识,并对处理后的第二业务请求进行一系列的处理,从而得到第二业务响应,并将第二业务响应发送至负载均衡节点。需要说明的是,第二业务响应的源地址为该服务端节点的地址,第二业务响应的目的地址为该客户端节点的地址。After obtaining the processed second service request from the load balancing node, the server node can save the first identifier, and perform a series of processes on the processed second service request, thereby obtaining the second service response, and converting the second service request to the second service request. The second service response is sent to the load balancing node. It should be noted that the source address of the second service response is the address of the server node, and the destination address of the second service response is the address of the client node.

得到来自该服务端节点的第二业务响应后,负载均衡节点可对第二业务响应进行SNAT处理,即将第二业务响应的源地址,从服务端节点的地址转换为负载均衡节点的地址,并向第二业务响应添加第一标识,得到处理后的第二业务响应。然后,负载均衡节点将处理后的第二业务响应发送至该客户端节点。此后,该客户端节点基于处理后的第二业务响应,可保存第一标识,并完成相应的业务。After obtaining the second service response from the server node, the load balancing node can perform SNAT processing on the second service response, that is, convert the source address of the second service response from the address of the server node to the address of the load balancing node, and Add the first identifier to the second service response to obtain the processed second service response. Then, the load balancing node sends the processed second service response to the client node. Thereafter, the client node can save the first identification based on the processed second service response and complete the corresponding service.

例如,如图7所示(图7为本申请实施例提供的云服务系统的另一结构示意图),负载均衡节点接收到第二业务请求后,可先判断第二业务请求中是否包含第二标识,若确定第二业务请求包含第二标识,则对第二业务请求进行DNAT处理,并将第一标识添加到第二业务请求中,得到处理后的第二业务请求,此时,处理后的第二业务请求的源地址依旧为客户端节点1的虚拟客户端1的地址,处理后的第二业务请求的目的地址则更替为服务端节点1的虚拟服务端1的地址。然后,负载均衡节点可将处理后的第二业务请求发送至服务端节点1的虚拟机监视器。For example, as shown in Figure 7 (Figure 7 is another structural schematic diagram of the cloud service system provided by the embodiment of the present application), after receiving the second service request, the load balancing node may first determine whether the second service request contains the second service request. identification, if it is determined that the second service request contains the second identification, DNAT processing is performed on the second service request, and the first identification is added to the second service request to obtain the processed second service request. At this time, after processing The source address of the second service request is still the address of the virtual client 1 of the client node 1, and the destination address of the processed second service request is changed to the address of the virtual server 1 of the server node 1. Then, the load balancing node may send the processed second service request to the virtual machine monitor of the server node 1 .

接收到处理后的第二业务请求后,服务端节点1的虚拟机监视器可解析处理后的第二业务请求以保存第一标识,并将处理后的第二业务请求发送至服务端节点1的虚拟服务端1。接着,服务端节点1的虚拟服务端1可对处理后的第二业务请求进行处理,得到第二业务响应,第二业务响应的源地址为服务端节点1的虚拟服务端1的地址,第二业务响应的目的地址为客户端节点1的虚拟客户端1的地址。然后,服务端节点1的虚拟服务端1可将第二业务响应返回给服务端节点1的虚拟机监视器。由于同源同宿逻辑的存在,服务端节点1的虚拟机监视器对外发送第二业务响应时,第二业务响应可优先被负载均衡节点接收。After receiving the processed second service request, the virtual machine monitor of the server node 1 can parse the processed second service request to save the first identification, and send the processed second service request to the server node 1 Virtual server 1. Then, the virtual server 1 of the server node 1 can process the processed second service request to obtain a second service response. The source address of the second service response is the address of the virtual server 1 of the server node 1. The destination address of the second service response is the address of virtual client 1 of client node 1. Then, the virtual server 1 of the server node 1 may return the second service response to the virtual machine monitor of the server node 1 . Due to the existence of same-origin and same-destination logic, when the virtual machine monitor of server node 1 sends a second service response to the outside, the second service response can be received by the load balancing node with priority.

负载均衡节点接收到第二业务响应后,可对第二业务响应进行SNAT处理,并将第一标识添加到第二业务响应中,从而得到处理后的第二业务响应,此时,处理后的第二业务响应的源地址更替为负载均衡节点的前端地址,处理后的第二业务响应的目的地址则依旧为客户端节点1的虚拟客户端1的地址。然后,负载均衡节点可将处理后的第二业务响应发送至客户端节点1的虚拟机监视器。那么,客户端节点1的虚拟机监视器可解析处理后的第二业务响应以保存第一标识,并将处理后的第二业务响应发送至客户端节点1的虚拟客户端1,以使得客户端节点1的虚拟客户端1基于处理后的第二业务响应完成相应的业务。After receiving the second service response, the load balancing node can perform SNAT processing on the second service response, and add the first identifier to the second service response, thereby obtaining the processed second service response. At this time, the processed The source address of the second service response is changed to the front-end address of the load balancing node, and the destination address of the processed second service response is still the address of virtual client 1 of client node 1. Then, the load balancing node may send the processed second service response to the virtual machine monitor of the client node 1 . Then, the virtual machine monitor of client node 1 can parse the processed second service response to save the first identification, and send the processed second service response to virtual client 1 of client node 1, so that the client The virtual client 1 of the end node 1 completes the corresponding service based on the processed second service response.

(2)若第二业务请求未包含第二标识,说明负载均衡节点不可将后续的业务交互卸载到该客户端节点以及该服务端节点上,故负载均衡节点可对第二业务请求进行DNAT处理,即将第二业务请求的目的地址,从负载均衡节点的地址转换为该服务端节点的地址,得到处理后 的第二业务请求。然后,负载均衡节点可将处理后的第二业务请求发送至该服务端节点。(2) If the second service request does not include the second identifier, it means that the load balancing node cannot offload subsequent business interactions to the client node and the server node, so the load balancing node can perform DNAT processing on the second service request. , that is, the destination address of the second business request is converted from the address of the load balancing node to the address of the server node, and after processing second business request. Then, the load balancing node may send the processed second service request to the server node.

得到来自负载均衡节点的处理后的第二业务请求后,该服务端节点可对处理后的第二业务请求进行一系列的处理,从而得到第二业务响应,并将第二业务响应发送至负载均衡节点。After obtaining the processed second service request from the load balancing node, the server node can perform a series of processes on the processed second service request to obtain a second service response, and send the second service response to the load Balanced node.

得到来自该服务端节点的第二业务响应后,负载均衡节点可对第二业务响应进行SNAT处理,即将第二业务响应的源地址,从服务端节点的地址转换为负载均衡节点的地址,得到处理后的第二业务响应。然后,负载均衡节点将处理后的第二业务响应发送至该客户端节点。此后,该客户端节点基于处理后的第二业务响应完成相应的业务。After obtaining the second service response from the server node, the load balancing node can perform SNAT processing on the second service response, that is, convert the source address of the second service response from the address of the server node to the address of the load balancing node, obtaining The processed second business response. Then, the load balancing node sends the processed second service response to the client node. Thereafter, the client node completes the corresponding service based on the processed second service response.

应理解,本实施例中,仅以第一标识被包含在第二业务请求和第二业务响应中,被负载均衡节点分别下发到客户端节点和服务端节点(伴随着业务进行)为例进行示意性介绍,并不对负载均衡节点向客户端节点下发第一标识的方式构成限制,例如,在完成握手后,负载均衡节点可直接将第一标识发送至客户端节点和服务端节点(不需要伴随着业务进行)等等。It should be understood that in this embodiment, it is only taken as an example that the first identifier is included in the second service request and the second service response and is delivered by the load balancing node to the client node and the server node respectively (as the service proceeds). A schematic introduction does not limit the way in which the load balancing node issues the first identifier to the client node. For example, after completing the handshake, the load balancing node can directly send the first identifier to the client node and the server node ( It does not need to be accompanied by business) etc.

还应理解,本实施例中,仅以负载均衡节点判断第二业务请求是否包含第二标识,从而来确定是否下发第一标识为例进行示意性介绍,在实际应用中,负载均衡节点也可不进行任何判断,直接向客户端节点和服务端节点下发第一标识等等。It should also be understood that in this embodiment, only the load balancing node determines whether the second service request contains the second identifier and thereby determines whether to issue the first identifier is used as an example for schematic introduction. In actual applications, the load balancing node also The first identifier and so on can be directly issued to the client node and server node without any judgment.

还应理解,本实施例中,仅以第二标识携带在第二业务请求中进行示意性介绍,在实际应用中,第二标识还可以携带在握手请求以及其余业务请求中等等。It should also be understood that in this embodiment, only the second identifier is carried in the second service request for schematic introduction. In actual applications, the second identifier can also be carried in the handshake request and other service requests, and so on.

610、客户端节点基于第一标识对第一业务请求进行DNAT处理,得到处理后的第一业务请求,并将处理后的第一业务请求发送至服务端节点。610. The client node performs DNAT processing on the first service request based on the first identifier, obtains the processed first service request, and sends the processed first service request to the server node.

关于步骤610的介绍,可参考图4所示实施例中步骤410的相关说明部分,此处不再赘述。For the introduction of step 610, please refer to the relevant description of step 410 in the embodiment shown in FIG. 4, which will not be described again here.

611、服务端节点对处理后的第一业务请求进行处理,得到第一业务响应,基于第一标识对第一业务响应进行SNAT处理,得到处理后的第一业务响应,并将处理后的第一业务响应发送至客户端节点。611. The server node processes the processed first service request, obtains the first service response, performs SNAT processing on the first service response based on the first identifier, obtains the processed first service response, and sends the processed first service response. A business response is sent to the client node.

得到来自该客户端节点的处理后的第一业务请求后,该服务端节点可对处理后的第一业务请求进行一系列的处理,从而得到第一业务响应。需要说明的是,第一业务响应的源地址为该服务端节点的地址,第一业务响应的目的地址为该客户端节点的地址。After obtaining the processed first service request from the client node, the server node can perform a series of processes on the processed first service request, thereby obtaining a first service response. It should be noted that the source address of the first service response is the address of the server node, and the destination address of the first service response is the address of the client node.

接着,由于第一标识的存在,该服务端节点可基于第一标识对第一业务响应进行SNAT处理,即第一业务响应的源地址,从该服务点节点的地址转换为负载均衡节点的地址,得到处理后的第一业务响应。然后,该服务端节点可将处理后的第一业务响应直接发送至客户端节点。此后,该客户端节点可基于处理后的第一业务响应完成相应的业务。Then, due to the existence of the first identifier, the server node can perform SNAT processing on the first service response based on the first identifier, that is, the source address of the first service response is converted from the address of the service point node to the address of the load balancing node. , get the processed first business response. Then, the server node can directly send the processed first service response to the client node. Thereafter, the client node can complete the corresponding service based on the processed first service response.

依旧如上述例子,接收到处理后的第一业务请求后,服务端节点1的虚拟机监视器可清除同源同宿逻辑,并将处理后的第一业务请求发送至服务端节点1的虚拟服务端1。接着,服务端节点1的虚拟服务端1可对处理后的第一业务请求进行处理,得到第一业务响应,第一业务响应的源地址为服务端节点1的虚拟服务端1的地址,第一业务响应的目的地址为客户端节点1的虚拟客户端1的地址。随后,服务端节点1的虚拟服务端1可将第一业务响应返回给服务端节点1的虚拟机监视器。Still as in the above example, after receiving the processed first service request, the virtual machine monitor of the server node 1 can clear the same origin and same destination logic, and send the processed first service request to the virtual service of the server node 1 Terminal 1. Then, the virtual server 1 of the server node 1 can process the processed first service request to obtain a first service response. The source address of the first service response is the address of the virtual server 1 of the server node 1. The destination address of a service response is the address of virtual client 1 of client node 1. Subsequently, the virtual server 1 of the server node 1 may return the first service response to the virtual machine monitor of the server node 1 .

接着,服务端节点1的虚拟机监视器可基于第一标识,对第一业务响应进行SNAT处理,从而得到处理后的第一业务响应,此时,处理后的第一业务响应的源地址更替为负载均衡节 点的前端地址,处理后的第一业务响应的目的地址则依旧为客户端节点1的虚拟客户端1的地址。由于同源同宿逻辑已不存在,服务端节点1的虚拟机监视器对外发送处理后的第一业务响应时,处理后的第一业务响应则直接由客户端节点1的虚拟机监视器接收。Then, the virtual machine monitor of the server node 1 can perform SNAT processing on the first service response based on the first identifier, thereby obtaining the processed first service response. At this time, the source address of the processed first service response is replaced. for load balancing section The front-end address of the node, the destination address of the processed first service response is still the address of virtual client 1 of client node 1. Since the same origin and same destination logic no longer exists, when the virtual machine monitor of the server node 1 sends the processed first service response to the outside, the processed first service response is directly received by the virtual machine monitor of the client node 1.

然后,客户端节点1的虚拟机监视器将处理后的第一业务响应发送至客户端节点1的虚拟客户端1,以使得客户端节点1的虚拟客户端1基于处理后的第一业务响应完成相应的业务。Then, the virtual machine monitor of the client node 1 sends the processed first service response to the virtual client 1 of the client node 1, so that the virtual client 1 of the client node 1 is based on the processed first service response. Complete the corresponding business.

本申请实施例提供的云服务系统中,负载均衡节点可将第一标识发送至客户端节点以及服务端节点。那么,当客户端节点存在待处理的业务时,客户端节点可基于第一标识将第一业务请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,得到处理后的第一业务请求,并将处理后的第一业务请求发送至服务端节点。然后,服务端节点可对处理后的第一业务请求进行处理,得到第一业务响应,基于第一标识将第一业务响应的源地址,从服务端节点的地址转换为负载均衡节点的地址,得到处理后的第一业务响应,并将处理后的第一业务响应发送至客户端节点,以基于处理后的第一业务响应完成响应的业务。由此可见,在DNAT模式中,原先由负载均衡节点负责的针对第一业务请求的DANT处理,被负载均衡节点卸载至客户端节点执行,原先由负载均衡节点负责的针对第一业务响应的SNAT处理,被负载均衡节点卸载至服务端节点执行,如此一来,处理后的第一业务请求以及处理后的第一业务响应,可以直接在客户端节点以及服务端节点之间传输,不需要经过负载均衡节点处理,可有效减少经过负载均衡节点的流量,降低负载均衡节点的带宽消耗,且可降低业务传输时延,提高用户体验。In the cloud service system provided by the embodiment of the present application, the load balancing node can send the first identifier to the client node and the server node. Then, when the client node has a service to be processed, the client node can convert the destination address of the first service request from the address of the load balancing node to the address of the server node based on the first identifier, and obtain the processed first service request, and sends the processed first service request to the server node. Then, the server node can process the processed first service request to obtain the first service response, and convert the source address of the first service response from the address of the server node to the address of the load balancing node based on the first identifier, The processed first service response is obtained, and the processed first service response is sent to the client node to complete the response service based on the processed first service response. It can be seen that in the DNAT mode, the DANT processing for the first service request that was originally responsible for the load balancing node is offloaded to the client node for execution by the load balancing node, and the SNAT for the first service response that was originally responsible for the load balancing node The processing is offloaded by the load balancing node to the server node for execution. In this way, the processed first business request and the processed first business response can be directly transmitted between the client node and the server node without going through Load balancing node processing can effectively reduce the traffic passing through the load balancing node, reduce the bandwidth consumption of the load balancing node, reduce business transmission delay, and improve user experience.

进一步地,本申请实施例中,由于负载均衡节点不再需要处理庞大的流量,能够提高云服务系统所能承受的业务量上限,在面对用户日益增大的业务需求时,可以在现有的基础上对系统进行快速扩容,从而为越来越多的用户提供优质的云服务。Furthermore, in the embodiments of this application, since the load balancing nodes no longer need to process huge traffic, the upper limit of the business volume that the cloud service system can bear can be increased. In the face of the increasing business needs of users, it can be added to the existing Rapidly expand the system capacity based on the system to provide high-quality cloud services to more and more users.

以上是对第二种情况下的云服务系统的工作流程所进行的详细说明,以下将对第三情况下的云服务系统的工作流程进行介绍。图8为本申请实施例提供的基于云服务系统的业务处理方法的另一流程示意图,如图8所示,该方法包括:The above is a detailed description of the workflow of the cloud service system in the second case. The workflow of the cloud service system in the third case will be introduced below. Figure 8 is another schematic flowchart of a business processing method based on a cloud service system provided by an embodiment of the present application. As shown in Figure 8, the method includes:

801、客户端节点将握手请求发送至负载均衡节点。801. The client node sends the handshake request to the load balancing node.

802、负载均衡节点基于握手请求在服务端节点资源池中选择服务端节点,对握手请求进行SNAT处理以及DNAT处理,得到处理后的握手请求,并将处理后的握手请求发送至服务端节点。802. The load balancing node selects a server node from the server node resource pool based on the handshake request, performs SNAT processing and DNAT processing on the handshake request, obtains the processed handshake request, and sends the processed handshake request to the server node.

803、服务端节点对处理后的握手请求进行处理,得到握手响应,并将握手响应发送至负载均衡节点。803. The server node processes the processed handshake request, obtains a handshake response, and sends the handshake response to the load balancing node.

804、负载均衡节点对握手响应进行SANT处理以及DNAT处理,得到处理后的握手响应,并将处理后的握手响应发送至客户端节点。804. The load balancing node performs SANT processing and DNAT processing on the handshake response, obtains the processed handshake response, and sends the processed handshake response to the client node.

关于步骤801至步骤804的介绍,可参考图6所示实施例中步骤601至步骤604的相关说明部分,此处不再赘述。For the introduction of steps 801 to 804, reference may be made to the relevant descriptions of steps 601 to 604 in the embodiment shown in FIG. 6 , which will not be described again here.

需要说明的是,步骤602与步骤802的区别在于,步骤602中负载均衡节点仅对握手请求进行DNAT处理,可得到处理后的握手请求,而步骤802中负载均衡节点对握手请求进行DNAT处理以及SNAT处理,即将将握手请求的源地址,从客户端节点的地址转换为负载均衡 节点的地址,将握手请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,得到处理后的握手请求。It should be noted that the difference between step 602 and step 802 is that in step 602, the load balancing node only performs DNAT processing on the handshake request to obtain the processed handshake request, while in step 802, the load balancing node performs DNAT processing on the handshake request and SNAT processing, that is, converting the source address of the handshake request from the address of the client node to the load balancer The address of the node converts the destination address of the handshake request from the address of the load balancing node to the address of the server node to obtain the processed handshake request.

步骤604与步骤804的区别在于,步骤604中负载均衡节点仅对握手响应进行SNAT处理,可得到处理后的握手响应,而步骤804中负载均衡节点对握手请求进行DNAT处理以及SNAT处理,即将握手响应的源地址,从服务端节点的地址转换为负载均衡节点的地址,将握手响应的目的地址,从负载均衡节点的地址转换为客户端节点的地址,得到处理后的握手响应。The difference between step 604 and step 804 is that in step 604, the load balancing node only performs SNAT processing on the handshake response to obtain the processed handshake response, while in step 804, the load balancing node performs DNAT processing and SNAT processing on the handshake request, that is, the handshake The source address of the response is converted from the address of the server node to the address of the load balancing node, and the destination address of the handshake response is converted from the address of the load balancing node to the address of the client node to obtain the processed handshake response.

805、客户端节点将第二业务请求发送至负载均衡节点。805. The client node sends the second service request to the load balancing node.

806、负载均衡节点检测第二业务请求是否包含第二标识。806. The load balancing node detects whether the second service request includes the second identifier.

807、若第二业务请求包含第二标识,负载均衡节点对第二业务请求进行DNAT处理以及SNAT处理,向第二业务请求添加第一标识,得到处理后的第二业务请求,并将处理后的第二业务请求发送至服务端节点。807. If the second service request contains the second identifier, the load balancing node performs DNAT processing and SNAT processing on the second service request, adds the first identifier to the second service request, obtains the processed second service request, and will The second service request is sent to the server node.

808、服务端节点对处理后的第二业务请求进行处理,得到第二业务响应,并将第二业务响应发送至负载均衡节点。808. The server node processes the processed second service request, obtains the second service response, and sends the second service response to the load balancing node.

809、负载均衡节点对第二业务响应进行DNAT处理以及SNAT处理,向第二业务响应添加第一标识,得到处理后的第二业务响应,并将处理后的第二业务响应发送至客户端节点。809. The load balancing node performs DNAT processing and SNAT processing on the second service response, adds the first identifier to the second service response, obtains the processed second service response, and sends the processed second service response to the client node. .

关于步骤805至步骤809的介绍,可参考图6所示实施例中步骤605至步骤609的相关说明部分,此处不再赘述。For an introduction to steps 805 to 809, reference may be made to the relevant descriptions of steps 605 to 609 in the embodiment shown in FIG. 6 , which will not be described again here.

需要说明的是,若第二业务请求包含第二标识,步骤607与步骤807的区别在于,步骤607中负载均衡节点仅对第二业务请求进行DNAT处理,并向第二业务请求添加第一标识,可得到处理后的第二业务请求,而步骤807中负载均衡节点对第二业务请求进行DNAT处理以及SNAT处理,即将第二业务请求的源地址,从客户端节点的地址转换为负载均衡节点的地址,将第二业务请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,并向第二业务请求添加第一标识,从而得到处理后的第二业务请求。It should be noted that if the second service request contains the second identifier, the difference between step 607 and step 807 is that in step 607, the load balancing node only performs DNAT processing on the second service request and adds the first identifier to the second service request. , the processed second service request can be obtained, and in step 807, the load balancing node performs DNAT processing and SNAT processing on the second service request, that is, converting the source address of the second service request from the address of the client node to the load balancing node address, convert the destination address of the second service request from the address of the load balancing node to the address of the server node, and add the first identifier to the second service request, thereby obtaining the processed second service request.

若第二业务请求包含第二标识,步骤609与步骤809的区别在于,步骤609中负载均衡节点仅对第二业务响应进行SNAT处理,并向第二业务响应添加第一标识,可得到处理后的第二业务响应,而步骤809中负载均衡节点对第二业务请求进行DNAT处理以及SNAT处理,即将第二业务响应的源地址,从服务端节点的地址转换为负载均衡节点的地址,将第二业务响应的目的地址,从负载均衡节点的地址转换为客户端节点的地址,并向第二业务响应添加第一标识,得到处理后的第二业务响应。If the second service request contains the second identifier, the difference between step 609 and step 809 is that in step 609, the load balancing node only performs SNAT processing on the second service response and adds the first identifier to the second service response, and the processed The second service response, and in step 809, the load balancing node performs DNAT processing and SNAT processing on the second service request, that is, converts the source address of the second service response from the address of the server node to the address of the load balancing node, and converts the second service request to the address of the load balancing node. The destination address of the second service response is converted from the address of the load balancing node to the address of the client node, and the first identifier is added to the second service response to obtain a processed second service response.

进一步地,若第二业务请求未包含第二标识,图6所示实施例中负载均衡节点仅对第二业务请求进行DNAT处理,可得到处理后的第二业务请求,而图8所示实施例中负载均衡节点对第二业务请求进行DNAT处理以及SNAT处理,即将第二业务请求的源地址,从客户端节点的地址转换为负载均衡节点的地址,将第二业务请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,得到处理后的第二业务请求。Further, if the second service request does not contain the second identifier, in the embodiment shown in Figure 6, the load balancing node only performs DNAT processing on the second service request, and the processed second service request can be obtained, while the implementation shown in Figure 8 In the example, the load balancing node performs DNAT processing and SNAT processing on the second service request, that is, converts the source address of the second service request from the address of the client node to the address of the load balancing node, and converts the destination address of the second service request from The address of the load balancing node is converted into the address of the server node, and the processed second service request is obtained.

同理,若第二业务请求未包含第二标识,图6所示实施例中负载均衡节点仅对第二业务响应进行DNAT处理,可得到处理后的第二业务响应,而图8所示实施例中负载均衡节点对第二业务请求进行DNAT处理以及SNAT处理,即将第二业务响应的源地址,从服务端节点的地址转换为负载均衡节点的地址,将第二业务响应的目的地址,从负载均衡节点的地址转换为 客户端节点的地址,得到处理后的第二业务响应。Similarly, if the second service request does not contain the second identifier, the load balancing node in the embodiment shown in Figure 6 only performs DNAT processing on the second service response to obtain the processed second service response, while the implementation shown in Figure 8 In the example, the load balancing node performs DNAT processing and SNAT processing on the second service request, that is, converts the source address of the second service response from the address of the server node to the address of the load balancing node, and converts the destination address of the second service response from The address of the load balancing node is translated to The address of the client node and the processed second service response.

810、客户端节点基于第一标识对第一业务请求进行DNAT处理以及SNAT处理,得到处理后的第一业务请求,并将处理后的第一业务请求发送至服务端节点。810. The client node performs DNAT processing and SNAT processing on the first service request based on the first identifier, obtains the processed first service request, and sends the processed first service request to the server node.

811、服务端节点对处理后的第一业务请求进行处理,得到第一业务响应,基于第一标识对第一业务响应进行DNAT处理以及SNAT处理,得到处理后的第一业务响应,并将处理后的第一业务响应发送至客户端节点。811. The server node processes the processed first service request, obtains the first service response, performs DNAT processing and SNAT processing on the first service response based on the first identifier, obtains the processed first service response, and processes the first service request. The first service response is sent to the client node.

关于步骤810至步骤811的介绍,可参考图6所示实施例中步骤610至步骤611的相关说明部分,此处不再赘述。For the introduction of steps 810 to 811, please refer to the relevant descriptions of steps 610 to 611 in the embodiment shown in FIG. 6, which will not be described again here.

需要说明的是,步骤610与步骤810的区别在于,步骤610中客户端节点基于第一标识仅对第一业务请求进行DNAT处理,可得到处理后的第一业务请求,而步骤810中客户端节点基于第一标识对第一业务请求进行DNAT处理以及SNAT处理,即基于第一标识将第一业务请求的源地址,从客户端节点的地址转换为负载均衡节点的地址,将第一业务请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,得到处理后的第一业务请求。It should be noted that the difference between step 610 and step 810 is that in step 610, the client node only performs DNAT processing on the first service request based on the first identifier, and can obtain the processed first service request, while in step 810, the client node The node performs DNAT processing and SNAT processing on the first service request based on the first identifier, that is, based on the first identifier, the source address of the first service request is converted from the address of the client node to the address of the load balancing node, and the first service request is The destination address is converted from the address of the load balancing node to the address of the server node, and the processed first service request is obtained.

步骤611与步骤811的区别在于,步骤611中服务端节点基于第一标识仅对第一业务响应仅进行SNAT处理,得到处理后的第一业务响应,而步骤811中服务端节点基于第一标识对第一业务响应进行DNAT处理以及SNAT处理,即将第一业务响应的源地址,从服务端节点的地址转换为负载均衡节点的地址,将第一业务相应的目的地址,从负载均衡节点的地址转换为客户端节点的地址,得到处理后的第一业务响应。The difference between step 611 and step 811 is that in step 611, the server node only performs SNAT processing on the first service response based on the first identifier to obtain the processed first service response, while in step 811, the server node only performs SNAT processing on the first service response based on the first identifier. Perform DNAT processing and SNAT processing on the first service response, that is, convert the source address of the first service response from the address of the server node to the address of the load balancing node, and convert the corresponding destination address of the first service from the address of the load balancing node Convert it to the address of the client node and get the processed first service response.

例如,如图9所示(图9为本申请实施例提供的云服务系统的一个结构示意图),客户端节点1的虚拟客户端1可先生成第一业务请求,第一业务请求的源地址为客户端节点1的虚拟客户端1的地址,第一业务请求的目的地址为负载均衡节点的前端地址。接着,客户端节点1的虚拟客户端1将第一业务请求发送至客户端节点1的虚拟机监视器。然后,客户端节点1的虚拟机监视器可基于第一标识,对第一业务请求进行DNAT处理以及SNAT处理,得到处理后的第一业务请求,此时,处理后的第一业务请求的源地址替换为负载均衡节点的后端地址,处理后的第一业务请求的目的地址则更替为服务端节点1的虚拟服务端1的地址。随后,客户端节点1的虚拟机监视器可将处理后的第一业务请求直接发送至服务端节点1的虚拟机监视器。For example, as shown in Figure 9 (Figure 9 is a schematic structural diagram of the cloud service system provided by the embodiment of the present application), the virtual client 1 of the client node 1 can first generate a first service request, the source address of the first service request is the address of virtual client 1 of client node 1, and the destination address of the first service request is the front-end address of the load balancing node. Then, the virtual client 1 of the client node 1 sends the first service request to the virtual machine monitor of the client node 1 . Then, the virtual machine monitor of the client node 1 can perform DNAT processing and SNAT processing on the first service request based on the first identifier to obtain the processed first service request. At this time, the source of the processed first service request The address is replaced with the backend address of the load balancing node, and the destination address of the processed first service request is replaced with the address of virtual server 1 of server node 1. Subsequently, the virtual machine monitor of the client node 1 can directly send the processed first service request to the virtual machine monitor of the server node 1 .

接收到处理后的第一业务请求后,服务端节点1的虚拟机监视器可将处理后的第一业务请求发送至服务端节点1的虚拟服务端1。接着,服务端节点1的虚拟服务端1可对处理后的第一业务请求进行处理,得到第一业务响应,第一业务响应的源地址为服务端节点1的虚拟服务端1的地址,第一业务响应的目的地址为负载均衡节点的后端地址。随后,服务端节点1的虚拟服务端1可将第一业务响应返回给服务端节点1的虚拟机监视器。After receiving the processed first service request, the virtual machine monitor of the server node 1 may send the processed first service request to the virtual server 1 of the server node 1 . Then, the virtual server 1 of the server node 1 can process the processed first service request to obtain a first service response. The source address of the first service response is the address of the virtual server 1 of the server node 1. The destination address of a service response is the backend address of the load balancing node. Subsequently, the virtual server 1 of the server node 1 may return the first service response to the virtual machine monitor of the server node 1 .

接着,服务端节点1的虚拟机监视器可基于第一标识,对第一业务响应进行DANT处理以及SNAT处理,从而得到处理后的第一业务响应,此时,处理后的第一业务响应的源地址更替为负载均衡节点的前端地址,处理后的第一业务响应的目的地址则更替为客户端节点1的虚拟客户端1的地址。服务端节点1的虚拟机监视器对外发送处理后的第一业务响应时,处理后的第一业务响应则直接由客户端节点1的虚拟机监视器接收。Then, the virtual machine monitor of the server node 1 can perform DANT processing and SNAT processing on the first service response based on the first identifier, thereby obtaining the processed first service response. At this time, the processed first service response The source address is replaced with the front-end address of the load balancing node, and the destination address of the processed first service response is replaced with the address of virtual client 1 of client node 1. When the virtual machine monitor of the server node 1 sends the processed first service response to the outside, the processed first service response is directly received by the virtual machine monitor of the client node 1 .

然后,客户端节点1的虚拟机监视器将处理后的第一业务响应发送至客户端节点1的虚 拟客户端1,以使得客户端节点1的虚拟客户端1基于处理后的第一业务响应完成相应的业务。Then, the virtual machine monitor of client node 1 sends the processed first service response to the virtual machine monitor of client node 1. The virtual client 1 of the client node 1 completes the corresponding service based on the processed first service response.

本申请实施例提供的云服务系统中,负载均衡节点可将第一标识发送至客户端节点以及服务端节点。那么,当客户端节点存在待处理的业务时,客户端节点可基于第一标识将第一业务请求的源地址,从客户端节点的地址转换为负载均衡节点的地址,将第一业务请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,得到处理后的第一业务请求,并将处理后的第一业务请求发送至服务端节点。然后,服务端节点可对处理后的第一业务请求进行处理,得到第一业务响应,基于第一标识将第一业务响应的源地址,从服务端节点的地址转换为负载均衡节点的地址,将第一业务相应的目的地址,从负载均衡节点的地址转换为客户端节点的地址,得到处理后的第一业务响应,并将处理后的第一业务响应发送至客户端节点,以基于处理后的第一业务响应完成响应的业务。由此可见,在FULLDNAT模式中,原先由负载均衡节点负责的针对第一业务请求的DANT处理以及SNAT处理,被负载均衡节点卸载至客户端节点执行,原先由负载均衡节点负责的针对第一业务响应的DANT处理以及SNAT处理,被负载均衡节点卸载至服务端节点执行,如此一来,处理后的第一业务请求以及处理后的第一业务响应,可以直接在客户端节点以及服务端节点之间传输,不需要经过负载均衡节点处理,可有效减少经过负载均衡节点的流量,降低负载均衡节点的带宽消耗,且可降低业务传输时延,提高用户体验。In the cloud service system provided by the embodiment of the present application, the load balancing node can send the first identifier to the client node and the server node. Then, when the client node has a service to be processed, the client node can convert the source address of the first service request from the address of the client node to the address of the load balancing node based on the first identifier, and convert the source address of the first service request to the address of the load balancing node. The destination address is converted from the address of the load balancing node to the address of the server node, the processed first service request is obtained, and the processed first service request is sent to the server node. Then, the server node can process the processed first service request to obtain the first service response, and convert the source address of the first service response from the address of the server node to the address of the load balancing node based on the first identifier, Convert the corresponding destination address of the first service from the address of the load balancing node to the address of the client node, obtain the processed first service response, and send the processed first service response to the client node to perform processing based on The first business response after the completion of the response business. It can be seen that in the FULLDNAT mode, the DANT processing and SNAT processing for the first business request that were originally responsible for the load balancing node are offloaded to the client node for execution by the load balancing node. The DANT processing and SNAT processing of the response are offloaded to the server node for execution by the load balancing node. In this way, the processed first business request and the processed first business response can be directly processed between the client node and the server node. Inter-transmission does not need to be processed by the load balancing node, which can effectively reduce the traffic passing through the load balancing node, reduce the bandwidth consumption of the load balancing node, reduce business transmission delay, and improve user experience.

进一步地,本申请实施例中,由于负载均衡节点不再需要处理庞大的流量,能够提高云服务系统所能承受的业务量上限,在面对用户日益增大的业务需求时,可以在现有的基础上对系统进行快速扩容,从而为越来越多的用户提供优质的云服务。Furthermore, in the embodiments of this application, since the load balancing nodes no longer need to process huge traffic, the upper limit of the business volume that the cloud service system can bear can be increased. In the face of the increasing business needs of users, it can be added to the existing Rapidly expand the system capacity based on the system to provide high-quality cloud services to more and more users.

以上是对本申请实施例提供的基于云服务系统的业务处理方法所进行的详细说明,以下将对本申请实施例提供的云服务系统中各个节点进行介绍。如图10至图12所示(图10为本申请实施例提供的负载均衡节点的一个结构示意图,图11为本申请实施例提供的客户端节点的另一结构示意图,图12为本申请实施例提供的服务端节点的另一结构示意图),以下将分三种情况对云服务系统中的节点进行介绍。The above is a detailed description of the business processing method based on the cloud service system provided by the embodiment of the present application. Each node in the cloud service system provided by the embodiment of the present application will be introduced below. As shown in Figures 10 to 12 (Figure 10 is a schematic structural diagram of a load balancing node provided by an embodiment of the present application, Figure 11 is another schematic structural diagram of a client node provided by an embodiment of the present application, and Figure 12 is a schematic diagram of the implementation of the present application. Another structural diagram of the server node provided by the example), the following will introduce the nodes in the cloud service system in three situations.

在第一种情况中:负载均衡节点的发送模块1002,用于将第一标识发送至客户端节点;客户端节点的处理模块1101,用于基于第一标识将第一业务请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,得到处理后的第一业务请求;客户端节点的发送模块1102,用于将处理后的第一业务请求发送至服务端节点;服务端节点的处理模块1201,用于对处理后的第一业务请求进行处理,得到第一业务响应;服务端节点的发送模块1202,用于将第一业务响应发送至客户端节点;客户端节点的处理模块1101,还用于基于第一标识将第一业务响应的源地址,从服务端节点的地址转换为负载均衡节点的地址,得到处理后的第一业务响应。In the first case: the sending module 1002 of the load balancing node is used to send the first identification to the client node; the processing module 1101 of the client node is used to send the destination address of the first service request based on the first identification, Convert the address of the load balancing node to the address of the server node to obtain the processed first service request; the sending module 1102 of the client node is used to send the processed first service request to the server node; the server node The processing module 1201 is used to process the processed first business request to obtain the first business response; the sending module 1202 of the server node is used to send the first business response to the client node; the processing of the client node Module 1101 is also configured to convert the source address of the first service response from the address of the server node to the address of the load balancing node based on the first identifier to obtain the processed first service response.

在一种可能的实现方式中,负载均衡节点的处理模块1001,具体用于将来自客户端节点的第二业务请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,得到处理后的第二业务请求;负载均衡节点的发送模块1002,具体用于将处理后的第二业务请求发送至服务端节点;负载均衡模块的处理模块,具体用于将来自服务端节点的第二业务响应的源地址,从服务点节点的地址转换为负载均衡节点的地址,向第二业务响应添加第一标识,得到 处理后的第二业务响应;负载均衡节点的发送模块1002,具体用于将处理后的第二业务响应发送至客户端节点,第二业务响应为服务端节点对处理后的第二业务请求进行处理得到的。In a possible implementation, the processing module 1001 of the load balancing node is specifically configured to convert the destination address of the second service request from the client node from the address of the load balancing node to the address of the server node, and then process it. The second service request after The source address of the business response is converted from the address of the service point node to the address of the load balancing node, and the first identifier is added to the second business response to obtain The processed second service response; the sending module 1002 of the load balancing node is specifically used to send the processed second service response to the client node. The second service response is that the server node performs the processing on the processed second service request. processed.

在一种可能的实现方式中,负载均衡节点的处理模块1001,还用于检测第二业务请求是否包含第二标识;负载均衡节点的处理模块1001,具体用于若第二业务请求包含第二标识,则将来自服务端节点的第二业务响应的源地址,从服务点节点的地址转换为负载均衡节点的地址,向第二业务响应添加第一标识,得到处理后的第二业务响应;负载均衡节点的发送模块1002,具体用于将处理后的第二业务响应发送至客户端节点。In a possible implementation, the processing module 1001 of the load balancing node is also used to detect whether the second service request contains the second identifier; the processing module 1001 of the load balancing node is specifically used to detect if the second service request contains the second identifier. identification, then convert the source address of the second service response from the server node from the address of the service point node to the address of the load balancing node, add the first identification to the second service response, and obtain the processed second service response; The sending module 1002 of the load balancing node is specifically configured to send the processed second service response to the client node.

在一种可能的实现方式中,负载均衡节点的处理模块1001,还用于若第二业务请求未包含第二标识,则将来自服务端节点的第二业务响应的源地址,从服务点节点的地址转换为负载均衡节点的地址,得到处理后的第二业务响应;负载均衡节点的发送模块1002,还用于将处理后的第二业务响应发送至客户端节点。In a possible implementation, the processing module 1001 of the load balancing node is also configured to, if the second service request does not contain the second identifier, transfer the source address of the second service response from the server node to the service point node. The address is converted into the address of the load balancing node to obtain the processed second service response; the sending module 1002 of the load balancing node is also used to send the processed second service response to the client node.

在第二种情况中,负载均衡节点的发送模块1002,用于将第一标识发送至客户端节点以及服务端节点;客户端节点的处理模块1101,用于基于第一标识将第一业务请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,得到处理后的第一业务请求;客户端节点的发送模块1102,用于将处理后的第一业务请求发送至服务端节点;服务端节点的处理模块1201,用于对处理后的第一业务请求进行处理,得到第一业务响应,基于第一标识将第一业务响应的源地址,从服务端节点的地址转换为负载均衡节点的地址,得到处理后的第一业务响应;服务端节点的发送模块1202,用于将处理后的第一业务响应发送至客户端节点。In the second case, the sending module 1002 of the load balancing node is used to send the first identification to the client node and the server node; the processing module 1101 of the client node is used to send the first service request based on the first identification. The destination address is converted from the address of the load balancing node to the address of the server node to obtain the processed first service request; the sending module 1102 of the client node is used to send the processed first service request to the server node ; The processing module 1201 of the server node is used to process the processed first business request, obtain the first business response, and convert the source address of the first business response from the address of the server node into a load based on the first identifier The address of the balancing node is used to obtain the processed first service response; the sending module 1202 of the server node is used to send the processed first service response to the client node.

在一种可能的实现方式中,负载均衡节点的处理模块1001,具体用于将来自客户端节点的第二业务请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,向第二业务请求添加第一标识,得到处理后的第二业务请求;负载均衡节点的发送模块1002,具体用于将处理后的第二业务请求发送至服务端节点;负载均衡节点的处理模块1001,具体用于将来自服务端节点的第二业务响应的源地址,从服务点节点的地址转换为负载均衡节点的地址,向第二业务响应添加第一标识,得到处理后的第二业务响应;负载均衡节点的发送模块1002,具体用于将处理后的第二业务响应发送至客户端节点,第二业务响应为服务端节点对处理后的第二业务请求进行处理得到的。In a possible implementation, the processing module 1001 of the load balancing node is specifically configured to convert the destination address of the second service request from the client node from the address of the load balancing node to the address of the server node, to the address of the server node. Add a first identifier to the second service request to obtain a processed second service request; the sending module 1002 of the load balancing node is specifically used to send the processed second service request to the server node; the processing module 1001 of the load balancing node, Specifically used to convert the source address of the second service response from the server node from the address of the service point node to the address of the load balancing node, add the first identifier to the second service response, and obtain the processed second service response; The sending module 1002 of the load balancing node is specifically configured to send the processed second service response to the client node. The second service response is obtained by the server node processing the processed second service request.

在一种可能的实现方式中,负载均衡节点的处理模块1001,还用于检测第二业务请求是否包含第二标识;负载均衡节点的处理模块1001,具体用于若第二业务请求包含第二标识,则将来自客户端节点的第二业务请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,向第二业务请求添加第一标识,得到处理后的第二业务请求;负载均衡节点的发送模块1002,具体用于将处理后的第二业务请求发送至服务端节点;负载均衡节点的处理模块1001,具体用于将来自服务端节点的第二业务响应的源地址,从服务点节点的地址转换为负载均衡节点的地址,向第二业务响应添加第一标识,得到处理后的第二业务响应;负载均衡节点的发送模块1002,具体用于将处理后的第二业务响应发送至客户端节点。In a possible implementation, the processing module 1001 of the load balancing node is also used to detect whether the second service request contains the second identifier; the processing module 1001 of the load balancing node is specifically used to detect if the second service request contains the second identifier. identification, then convert the destination address of the second service request from the client node from the address of the load balancing node to the address of the server node, add the first identification to the second service request, and obtain the processed second service request; The sending module 1002 of the load balancing node is specifically used to send the processed second service request to the server node; the processing module 1001 of the load balancing node is specifically used to send the source address of the second service response from the server node, Convert the address of the service point node to the address of the load balancing node, add the first identifier to the second service response, and obtain the processed second service response; the sending module 1002 of the load balancing node is specifically used to send the processed second service response. The business response is sent to the client node.

在一种可能的实现方式中,负载均衡节点的处理模块1001,还用于若第二业务请求未包含第二标识,则将来自客户端节点的第二业务请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,得到处理后的第二业务请求;负载均衡节点的发送模块1002,还用于将处理后的第二业务请求发送至服务端节点;负载均衡节点的处理模块1001,还用于将来自 服务端节点的第二业务响应的源地址,从服务点节点的地址转换为负载均衡节点的地址,得到处理后的第二业务响应;负载均衡节点的发送模块1002,还用于将处理后的第二业务响应发送至客户端节点。In a possible implementation, the processing module 1001 of the load balancing node is also configured to, if the second service request does not contain the second identifier, change the destination address of the second service request from the client node to the load balancing node. The address is converted into the address of the server node to obtain the processed second service request; the sending module 1002 of the load balancing node is also used to send the processed second service request to the server node; the processing module of the load balancing node 1001, also used to convert data from The source address of the second service response of the server node is converted from the address of the service point node to the address of the load balancing node to obtain the processed second service response; the sending module 1002 of the load balancing node is also used to convert the processed The second service response is sent to the client node.

在第三种情况中:负载均衡节点的发送模块1002,用于将第一标识发送至客户端节点以及服务端节点;客户端节点的处理模块1101,用于基于第一标识将第一业务请求的源地址,从客户端节点的地址转换为负载均衡节点的地址,将第一业务请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,得到处理后的第一业务请求;客户端节点的发送模块1102,用于将处理后的第一业务请求发送至服务端节点;服务端节点的处理模块1201,用于对处理后的第一业务请求进行处理,得到第一业务响应,基于第一标识将第一业务响应的源地址,从服务端节点的地址转换为负载均衡节点的地址,将第一业务相应的目的地址,从负载均衡节点的地址转换为客户端节点的地址,得到处理后的第一业务响应;服务端节点的发送模块1202,用于将处理后的第一业务响应发送至客户端节点。In the third case: the sending module 1002 of the load balancing node is used to send the first identification to the client node and the server node; the processing module 1101 of the client node is used to send the first service request based on the first identification. The source address is converted from the address of the client node to the address of the load balancing node, and the destination address of the first business request is converted from the address of the load balancing node to the address of the server node to obtain the processed first business request; The sending module 1102 of the client node is used to send the processed first business request to the server node; the processing module 1201 of the server node is used to process the processed first business request and obtain the first business response. , based on the first identifier, convert the source address of the first service response from the address of the server node to the address of the load balancing node, and convert the corresponding destination address of the first service from the address of the load balancing node to the address of the client node , obtain the processed first service response; the sending module 1202 of the server node is used to send the processed first service response to the client node.

在一种可能的实现方式中,负载均衡节点的处理模块1001,具体用于将来自客户端节点的第二业务请求的源地址,从客户端节点的地址转换为负载均衡节点的地址,将第二业务请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,向第二业务请求添加第一标识,得到处理后的第二业务请求;负载均衡节点的发送模块1002,具体用于将处理后的第二业务请求发送至服务端节点;负载均衡节点的处理模块1001,具体用于将来自服务端节点的第二业务响应的源地址,从服务点节点的地址转换为负载均衡节点的地址,将第二业务相应的目的地址,从负载均衡节点的地址转换为客户端节点的地址,向第二业务响应添加第一标识,得到处理后的第二业务响应;负载均衡节点的发送模块1002,具体用于将处理后的第二业务响应发送至客户端节点,第二业务响应为服务端节点对处理后的第二业务请求进行处理得到的。In a possible implementation, the processing module 1001 of the load balancing node is specifically configured to convert the source address of the second service request from the client node from the address of the client node to the address of the load balancing node, and convert the source address of the second service request from the client node to the address of the load balancing node. The destination address of the second service request is converted from the address of the load balancing node to the address of the server node, and the first identifier is added to the second service request to obtain the processed second service request; the sending module 1002 of the load balancing node is specifically used For sending the processed second service request to the server node; the processing module 1001 of the load balancing node is specifically used to convert the source address of the second service response from the server node from the address of the service point node to the load balancing The address of the node, convert the corresponding destination address of the second service from the address of the load balancing node to the address of the client node, add the first identifier to the second service response, and obtain the processed second service response; The sending module 1002 is specifically configured to send the processed second service response to the client node. The second service response is obtained by the server node processing the processed second service request.

在一种可能的实现方式中,负载均衡节点的处理模块1001,还用于检测第二业务请求是否包含第二标识;负载均衡节点的处理模块1001,具体用于若第二业务请求包含第二标识,则将来自客户端节点的第二业务请求的源地址,从客户端节点的地址转换为负载均衡节点的地址,将第二业务请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,向第二业务请求添加第一标识,得到处理后的第二业务请求;负载均衡节点的发送模块1002,具体用于将处理后的第二业务请求发送至服务端节点;负载均衡节点的处理模块1001,具体用于将来自服务端节点的第二业务响应的源地址,从服务点节点的地址转换为负载均衡节点的地址,将第二业务相应的目的地址,从负载均衡节点的地址转换为客户端节点的地址,向第二业务响应添加第一标识,得到处理后的第二业务响应;负载均衡节点的发送模块1002,具体用于将处理后的第二业务响应发送至客户端节点。In a possible implementation, the processing module 1001 of the load balancing node is also used to detect whether the second service request contains the second identifier; the processing module 1001 of the load balancing node is specifically used to detect if the second service request contains the second identifier. identification, the source address of the second service request from the client node is converted from the address of the client node to the address of the load balancing node, and the destination address of the second service request is converted from the address of the load balancing node to the server The address of the node, add the first identifier to the second service request, and obtain the processed second service request; the sending module 1002 of the load balancing node is specifically used to send the processed second service request to the server node; load balancing The processing module 1001 of the node is specifically used to convert the source address of the second service response from the server node from the address of the service point node to the address of the load balancing node, and convert the corresponding destination address of the second service from the address of the load balancing node. The address is converted into the address of the client node, the first identifier is added to the second service response, and the processed second service response is obtained; the sending module 1002 of the load balancing node is specifically used to send the processed second service response to client node.

在一种可能的实现方式中,负载均衡节点的处理模块1001,还用于若第二业务请求未包含第二标识,则将来自客户端节点的第二业务请求的源地址,从客户端节点的地址转换为负载均衡节点的地址,将第二业务请求的目的地址,从负载均衡节点的地址转换为服务端节点的地址,得到处理后的第二业务请求;负载均衡节点的发送模块1002,还用于将处理后的第二业务请求发送至服务端节点;负载均衡节点的处理模块1001,还用于将来自服务端节点的第二业务响应的源地址,从服务点节点的地址转换为负载均衡节点的地址,将第二业务相应 的目的地址,从负载均衡节点的地址转换为客户端节点的地址,得到处理后的第二业务响应;负载均衡节点的发送模块1002,还用于将处理后的第二业务响应发送至客户端节点。In a possible implementation, the processing module 1001 of the load balancing node is also configured to, if the second service request does not contain the second identifier, transfer the source address of the second service request from the client node to The address of the load balancing node is converted into the address of the load balancing node, and the destination address of the second service request is converted from the address of the load balancing node to the address of the server node to obtain the processed second service request; the sending module 1002 of the load balancing node, It is also used to send the processed second service request to the server node; the processing module 1001 of the load balancing node is also used to convert the source address of the second service response from the server node from the address of the service point node to The address of the load balancing node will correspond to the second business The destination address is converted from the address of the load balancing node to the address of the client node to obtain the processed second service response; the sending module 1002 of the load balancing node is also used to send the processed second service response to the client node.

需要说明的是,上述装置各模块/单元之间的信息交互、实现过程等内容,由于与本申请方法实施例基于同一构思,其带来的技术效果与本申请方法实施例相同,具体内容可参考本申请实施例前述所示的方法实施例中的叙述,此处不再赘述。It should be noted that the information interaction, implementation process, etc. between the modules/units of the above-mentioned device are based on the same concept as the method embodiments of the present application, and the technical effects they bring are the same as those of the method embodiments of the present application. The specific content can be Refer to the description in the method embodiments shown above in the embodiments of the present application, which will not be described again here.

图13为本申请实施例提供的负载均衡节点的另一结构示意图。如图13所示,负载均衡节点的一个实施例可以包括一个或一个以上中央处理器1301,存储器1302,输入输出接口1303,有线或无线网络接口1304,电源1305。Figure 13 is another schematic structural diagram of a load balancing node provided by an embodiment of the present application. As shown in Figure 13, an embodiment of a load balancing node may include one or more central processors 1301, memory 1302, input and output interfaces 1303, wired or wireless network interfaces 1304, and power supplies 1305.

存储器1302可以是短暂存储或持久存储。更进一步地,中央处理器1301可以配置为与存储器1302通信,在负载均衡节点上执行存储器1302中的一系列指令操作。Memory 1302 may be ephemeral storage or persistent storage. Furthermore, the central processing unit 1301 may be configured to communicate with the memory 1302 and execute a series of instruction operations in the memory 1302 on the load balancing node.

本实施例中,中央处理器1301可以执行前述图4、图6或图8所示实施例中负载均衡节点所执行的方法步骤,具体此处不再赘述。In this embodiment, the central processor 1301 can execute the method steps executed by the load balancing node in the embodiment shown in FIG. 4, FIG. 6 or FIG. 8, which will not be described again here.

本实施例中,中央处理器1301中的具体功能模块划分可以与前述图10中所描述的处理模块以及发送模块的划分方式类似,此处不再赘述。In this embodiment, the specific functional module division in the central processor 1301 may be similar to the division of the processing module and the sending module described in FIG. 10 , and will not be described again here.

图14为本申请实施例提供的客户端节点的另一结构示意图。如图14所示,客户端节点的一个实施例可以包括一个或一个以上中央处理器1401,存储器1402,输入输出接口1403,有线或无线网络接口1404,电源1405。Figure 14 is another schematic structural diagram of a client node provided by an embodiment of the present application. As shown in Figure 14, one embodiment of the client node may include one or more central processors 1401, memory 1402, input and output interfaces 1403, wired or wireless network interfaces 1404, and power supplies 1405.

存储器1402可以是短暂存储或持久存储。更进一步地,中央处理器1401可以配置为与存储器1402通信,在客户端节点上执行存储器1402中的一系列指令操作。Memory 1402 may be ephemeral storage or persistent storage. Furthermore, the central processing unit 1401 may be configured to communicate with the memory 1402 and execute a series of instruction operations in the memory 1402 on the client node.

本实施例中,中央处理器1401可以执行前述图4、图6或图8所示实施例中客户端节点所执行的方法步骤,具体此处不再赘述。In this embodiment, the central processor 1401 can execute the method steps executed by the client node in the embodiments shown in FIG. 4, FIG. 6 or FIG. 8, which will not be described again here.

本实施例中,中央处理器1401中的具体功能模块划分可以与前述图11中所描述的处理模块以及发送模块的划分方式类似,此处不再赘述。In this embodiment, the specific functional module division in the central processor 1401 may be similar to the division of the processing module and the sending module described in FIG. 11 , and will not be described again here.

图15为本申请实施例提供的服务端节点的另一结构示意图。如图15所示,服务端的一个实施例可以包括一个或一个以上中央处理器1501,存储器1502,输入输出接口1503,有线或无线网络接口1504,电源1505。Figure 15 is another schematic structural diagram of a server node provided by an embodiment of the present application. As shown in Figure 15, an embodiment of the server may include one or more central processors 1501, memory 1502, input and output interfaces 1503, wired or wireless network interfaces 1504, and power supplies 1505.

存储器1502可以是短暂存储或持久存储。更进一步地,中央处理器1501可以配置为与存储器1502通信,在服务端上执行存储器1502中的一系列指令操作。Memory 1502 may be ephemeral storage or persistent storage. Furthermore, the central processing unit 1501 may be configured to communicate with the memory 1502 and execute a series of instruction operations in the memory 1502 on the server.

本实施例中,中央处理器1501可以执行前述图4、图6或图8所示实施例中服务端所执行的方法步骤,具体此处不再赘述。In this embodiment, the central processing unit 1501 can perform the method steps performed by the server in the embodiments shown in Figure 4, Figure 6 or Figure 8, which will not be described again here.

本实施例中,中央处理器1501中的具体功能模块划分可以与前述图10中所描述的处理模块以及发送模块的划分方式类似,此处不再赘述。In this embodiment, the specific functional module division in the central processor 1501 may be similar to the division of the processing module and the sending module described in FIG. 10 , and will not be described again here.

本申请实施例还涉及一种计算机存储介质,该计算机可读存储介质中存储有用于进行信号处理的程序,当其在计算机上运行时,使得计算机执行如图4、图6或图8所示实施例中的步骤。Embodiments of the present application also relate to a computer storage medium. The computer-readable storage medium stores a program for signal processing. When the program is run on a computer, it causes the computer to execute as shown in Figure 4, Figure 6 or Figure 8. Steps in Examples.

本申请实施例还涉及一种计算机程序产品,该计算机程序产品存储有指令,该指令在由计算机执行时使得计算机执行如图4、图6或图8所示实施例中的步骤。Embodiments of the present application also relate to a computer program product that stores instructions that, when executed by a computer, cause the computer to perform the steps in the embodiments shown in FIG. 4, FIG. 6, or FIG. 8.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置 和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and simplicity of description, the system and device described above For the specific working process of the unit, please refer to the corresponding process in the foregoing method embodiment, which will not be described again here.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated units can be implemented in the form of hardware or software functional units.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。 If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or contributes to the existing technology, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of this application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program code. .

Claims (20)

一种云服务系统,其特征在于,所述系统包括:A cloud service system, characterized in that the system includes: 负载均衡节点,用于将第一标识发送至客户端节点;The load balancing node is used to send the first identification to the client node; 所述客户端节点,用于基于所述第一标识将第一业务请求的目的地址,从所述负载均衡节点的地址转换为服务端节点的地址,得到处理后的第一业务请求,并将所述处理后的第一业务请求发送至所述服务端节点;The client node is configured to convert the destination address of the first service request from the address of the load balancing node to the address of the server node based on the first identifier, obtain the processed first service request, and convert The processed first service request is sent to the server node; 所述服务端节点,用于对所述处理后的第一业务请求进行处理,得到第一业务响应,并将所述第一业务响应发送至所述客户端节点;The server node is configured to process the processed first service request, obtain a first service response, and send the first service response to the client node; 所述客户端节点,还用于基于所述第一标识将所述第一业务响应的源地址,从所述服务端节点的地址转换为所述负载均衡节点的地址,得到处理后的第一业务响应。The client node is further configured to convert the source address of the first service response from the address of the server node to the address of the load balancing node based on the first identifier to obtain the processed first Business response. 根据权利要求1所述的系统,其特征在于,所述负载均衡节点,具体用于:The system according to claim 1, characterized in that the load balancing node is specifically used for: 将来自客户端节点的第二业务请求的目的地址,从所述负载均衡节点的地址转换为服务端节点的地址,得到处理后的第二业务请求,并将所述处理后的第二业务请求发送至所述服务端节点;Convert the destination address of the second service request from the client node from the address of the load balancing node to the address of the server node to obtain the processed second service request, and convert the processed second service request Sent to the server node; 将来自所述服务端节点的第二业务响应的源地址,从所述服务点节点的地址转换为所述负载均衡节点的地址,向所述第二业务响应添加第一标识,得到处理后的第二业务响应,并将所述处理后的第二业务响应发送至所述客户端节点,所述第二业务响应为所述服务端节点对所述处理后的第二业务请求进行处理得到的。Convert the source address of the second service response from the server node from the address of the service point node to the address of the load balancing node, add a first identifier to the second service response, and obtain the processed second service response, and sends the processed second service response to the client node, where the second service response is obtained by processing the processed second service request by the server node . 根据权利要求2所述的系统,其特征在于,所述负载均衡节点,还用于检测所述第二业务请求是否包含第二标识;The system according to claim 2, characterized in that the load balancing node is also used to detect whether the second service request contains a second identifier; 所述负载均衡节点,具体用于若所述第二业务请求包含第二标识,则将来自所述服务端节点的第二业务响应的源地址,从所述服务点节点的地址转换为所述负载均衡节点的地址,向所述第二业务响应添加第一标识,得到处理后的第二业务响应,并将所述处理后的第二业务响应发送至所述客户端节点。The load balancing node is specifically configured to, if the second service request contains a second identifier, convert the source address of the second service response from the server node from the address of the service point node to the The address of the load balancing node, adding a first identifier to the second service response, obtaining a processed second service response, and sending the processed second service response to the client node. 根据权利要求3所述的系统,其特征在于,所述负载均衡节点,还用于若所述第二业务请求未包含第二标识,则将来自所述服务端节点的第二业务响应的源地址,从所述服务点节点的地址转换为所述负载均衡节点的地址,得到处理后的第二业务响应,并将所述处理后的第二业务响应发送至所述客户端节点。The system according to claim 3, characterized in that the load balancing node is further configured to, if the second service request does not contain a second identifier, send the source of the second service response from the server node to The address is converted from the address of the service point node to the address of the load balancing node, a processed second service response is obtained, and the processed second service response is sent to the client node. 一种云服务系统,其特征在于,所述系统包括:A cloud service system, characterized in that the system includes: 负载均衡节点,用于将第一标识发送至客户端节点以及服务端节点;The load balancing node is used to send the first identification to the client node and the server node; 所述客户端节点,用于基于所述第一标识将第一业务请求的目的地址,从所述负载均衡节点的地址转换为服务端节点的地址,得到处理后的第一业务请求,并将所述处理后的第一业务请求发送至所述服务端节点;The client node is configured to convert the destination address of the first service request from the address of the load balancing node to the address of the server node based on the first identifier, obtain the processed first service request, and convert The processed first service request is sent to the server node; 所述服务端节点,用于对所述处理后的第一业务请求进行处理,得到第一业务响应,基于所述第一标识将所述第一业务响应的源地址,从所述服务端节点的地址转换为所述负载均衡节点的地址,得到处理后的第一业务响应,并将所述处理后的第一业务响应发送至所述客户端节点。The server node is configured to process the processed first service request to obtain a first service response, and obtain the source address of the first service response from the server node based on the first identifier. The address is converted into the address of the load balancing node, a processed first service response is obtained, and the processed first service response is sent to the client node. 根据权利要求5所述的系统,其特征在于,所述负载均衡节点,具体用于: The system according to claim 5, characterized in that the load balancing node is specifically used for: 将来自客户端节点的第二业务请求的目的地址,从所述负载均衡节点的地址转换为服务端节点的地址,向所述第二业务请求添加第一标识,得到处理后的第二业务请求,并将所述处理后的第二业务请求发送至所述服务端节点;Convert the destination address of the second service request from the client node from the address of the load balancing node to the address of the server node, add a first identifier to the second service request, and obtain the processed second service request , and send the processed second service request to the server node; 将来自所述服务端节点的第二业务响应的源地址,从所述服务点节点的地址转换为所述负载均衡节点的地址,向所述第二业务响应添加第一标识,得到处理后的第二业务响应,并将所述处理后的第二业务响应发送至所述客户端节点,所述第二业务响应为所述服务端节点对所述处理后的第二业务请求进行处理得到的。Convert the source address of the second service response from the server node from the address of the service point node to the address of the load balancing node, add a first identifier to the second service response, and obtain the processed second service response, and sends the processed second service response to the client node, where the second service response is obtained by processing the processed second service request by the server node . 根据权利要求6所述的系统,其特征在于,所述负载均衡节点,还用于检测所述第二业务请求是否包含第二标识;The system according to claim 6, wherein the load balancing node is further configured to detect whether the second service request contains a second identifier; 所述负载均衡节点,具体用于:若所述第二业务请求包含第二标识,则将来自客户端节点的第二业务请求的目的地址,从所述负载均衡节点的地址转换为服务端节点的地址,向所述第二业务请求添加第一标识,得到处理后的第二业务请求,并将所述处理后的第二业务请求发送至所述服务端节点;The load balancing node is specifically configured to: if the second service request contains a second identifier, convert the destination address of the second service request from the client node from the address of the load balancing node to the server node. address, add a first identifier to the second service request, obtain a processed second service request, and send the processed second service request to the server node; 将来自所述服务端节点的第二业务响应的源地址,从所述服务点节点的地址转换为所述负载均衡节点的地址,向所述第二业务响应添加第一标识,得到处理后的第二业务响应,并将所述处理后的第二业务响应发送至所述客户端节点。Convert the source address of the second service response from the server node from the address of the service point node to the address of the load balancing node, add a first identifier to the second service response, and obtain the processed respond to the second service, and send the processed second service response to the client node. 根据权利要求7所述的系统,其特征在于,所述负载均衡节点,还用于:若所述第二业务请求未包含第二标识,则将来自客户端节点的第二业务请求的目的地址,从所述负载均衡节点的地址转换为服务端节点的地址,得到处理后的第二业务请求,并将所述处理后的第二业务请求发送至所述服务端节点;The system according to claim 7, characterized in that the load balancing node is further configured to: if the second service request does not contain the second identifier, change the destination address of the second service request from the client node to , convert the address of the load balancing node to the address of the server node, obtain the processed second service request, and send the processed second service request to the server node; 将来自所述服务端节点的第二业务响应的源地址,从所述服务点节点的地址转换为所述负载均衡节点的地址,得到处理后的第二业务响应,并将所述处理后的第二业务响应发送至所述客户端节点。Convert the source address of the second service response from the server node from the address of the service point node to the address of the load balancing node to obtain a processed second service response, and convert the processed The second service response is sent to the client node. 一种云服务系统,其特征在于,所述系统包括:A cloud service system, characterized in that the system includes: 负载均衡节点,用于将第一标识发送至客户端节点以及服务端节点;The load balancing node is used to send the first identification to the client node and the server node; 所述客户端节点,用于基于所述第一标识将第一业务请求的源地址,从所述客户端节点的地址转换为所述负载均衡节点的地址,将所述第一业务请求的目的地址,从所述负载均衡节点的地址转换为服务端节点的地址,得到处理后的第一业务请求,并将所述处理后的第一业务请求发送至所述服务端节点;The client node is configured to convert the source address of the first service request from the address of the client node to the address of the load balancing node based on the first identifier, and convert the destination of the first service request. Address, convert the address of the load balancing node to the address of the server node, obtain the processed first service request, and send the processed first service request to the server node; 所述服务端节点,用于对所述处理后的第一业务请求进行处理,得到第一业务响应,基于所述第一标识将所述第一业务响应的源地址,从所述服务端节点的地址转换为所述负载均衡节点的地址,将所述第一业务相应的目的地址,从所述负载均衡节点的地址转换为所述客户端节点的地址,得到处理后的第一业务响应,并将所述处理后的第一业务响应发送至所述客户端节点。The server node is configured to process the processed first service request to obtain a first service response, and obtain the source address of the first service response from the server node based on the first identifier. Convert the address to the address of the load balancing node, convert the corresponding destination address of the first service from the address of the load balancing node to the address of the client node, and obtain the processed first service response, and send the processed first service response to the client node. 根据权利要求9所述的系统,其特征在于,所述负载均衡节点,具体用于:The system according to claim 9, characterized in that the load balancing node is specifically used for: 将来自客户端节点的第二业务请求的源地址,从所述客户端节点的地址转换为所述负载均衡节点的地址,将所述第二业务请求的目的地址,从所述负载均衡节点的地址转换为服务端节点的地址,向所述第二业务请求添加第一标识,得到处理后的第二业务请求,并将所述 处理后的第二业务请求发送至所述服务端节点;Convert the source address of the second service request from the client node from the address of the client node to the address of the load balancing node, and convert the destination address of the second service request from the address of the load balancing node. The address is converted into the address of the server node, a first identifier is added to the second service request, the processed second service request is obtained, and the The processed second service request is sent to the server node; 将来自所述服务端节点的第二业务响应的源地址,从所述服务点节点的地址转换为所述负载均衡节点的地址,将所述第二业务相应的目的地址,从所述负载均衡节点的地址转换为所述客户端节点的地址,向所述第二业务响应添加第一标识,得到处理后的第二业务响应,并将所述处理后的第二业务响应发送至所述客户端节点,所述第二业务响应为所述服务端节点对所述处理后的第二业务请求进行处理得到的。Convert the source address of the second service response from the server node from the address of the service point node to the address of the load balancing node, and convert the corresponding destination address of the second service from the address of the load balancing node Convert the address of the node to the address of the client node, add a first identifier to the second service response, obtain a processed second service response, and send the processed second service response to the client The end node, the second service response is obtained by processing the processed second service request by the service end node. 根据权利要求10所述的系统,其特征在于,所述负载均衡节点,还用于检测所述第二业务请求是否包含第二标识;The system according to claim 10, characterized in that the load balancing node is also used to detect whether the second service request contains a second identifier; 所述负载均衡节点,具体用于:若所述第二业务请求包含第二标识,则将来自客户端节点的第二业务请求的源地址,从所述客户端节点的地址转换为所述负载均衡节点的地址,将所述第二业务请求的目的地址,从所述负载均衡节点的地址转换为服务端节点的地址,向所述第二业务请求添加第一标识,得到处理后的第二业务请求,并将所述处理后的第二业务请求发送至所述服务端节点;The load balancing node is specifically configured to: if the second service request contains a second identifier, convert the source address of the second service request from the client node from the address of the client node to the load The address of the balancing node, convert the destination address of the second service request from the address of the load balancing node to the address of the server node, add a first identifier to the second service request, and obtain the processed second service request, and send the processed second service request to the server node; 将来自所述服务端节点的第二业务响应的源地址,从所述服务点节点的地址转换为所述负载均衡节点的地址,将所述第二业务相应的目的地址,从所述负载均衡节点的地址转换为所述客户端节点的地址,向所述第二业务响应添加第一标识,得到处理后的第二业务响应,并将所述处理后的第二业务响应发送至所述客户端节点。Convert the source address of the second service response from the server node from the address of the service point node to the address of the load balancing node, and convert the corresponding destination address of the second service from the address of the load balancing node Convert the address of the node to the address of the client node, add a first identifier to the second service response, obtain a processed second service response, and send the processed second service response to the client end node. 根据权利要求11所述的系统,其特征在于,所述负载均衡节点,还用于:若所述第二业务请求未包含第二标识,则将来自客户端节点的第二业务请求的源地址,从所述客户端节点的地址转换为所述负载均衡节点的地址,将所述第二业务请求的目的地址,从所述负载均衡节点的地址转换为服务端节点的地址,得到处理后的第二业务请求,并将所述处理后的第二业务请求发送至所述服务端节点;The system according to claim 11, characterized in that the load balancing node is further configured to: if the second service request does not contain the second identifier, change the source address of the second service request from the client node to , convert the address of the client node to the address of the load balancing node, convert the destination address of the second service request from the address of the load balancing node to the address of the server node, and obtain the processed request a second service, and send the processed second service request to the server node; 将来自所述服务端节点的第二业务响应的源地址,从所述服务点节点的地址转换为所述负载均衡节点的地址,将所述第二业务相应的目的地址,从所述负载均衡节点的地址转换为所述客户端节点的地址,得到处理后的第二业务响应,并将所述处理后的第二业务响应发送至所述客户端节点。Convert the source address of the second service response from the server node from the address of the service point node to the address of the load balancing node, and convert the corresponding destination address of the second service from the address of the load balancing node The address of the node is converted into the address of the client node, a processed second service response is obtained, and the processed second service response is sent to the client node. 一种基于云服务系统的业务处理方法,其特征在于,所述系统包含负载均衡节点、客户端节点以及服务端节点,所述方法包括:A business processing method based on a cloud service system, characterized in that the system includes a load balancing node, a client node and a server node, and the method includes: 所述负载均衡节点将第一标识发送至客户端节点;The load balancing node sends the first identification to the client node; 所述客户端节点基于所述第一标识将第一业务请求的目的地址,从所述负载均衡节点的地址转换为服务端节点的地址,得到处理后的第一业务请求,并将所述处理后的第一业务请求发送至所述服务端节点;The client node converts the destination address of the first service request from the address of the load balancing node to the address of the server node based on the first identifier, obtains the processed first service request, and processes the first service request. The subsequent first service request is sent to the server node; 所述服务端节点对所述处理后的第一业务请求进行处理,得到第一业务响应,并将所述第一业务响应发送至所述客户端节点;The server node processes the processed first service request, obtains a first service response, and sends the first service response to the client node; 所述客户端节点基于所述第一标识将所述第一业务响应的源地址,从所述服务端节点的地址转换为所述负载均衡节点的地址,得到处理后的第一业务响应。The client node converts the source address of the first service response from the address of the server node to the address of the load balancing node based on the first identifier to obtain a processed first service response. 一种基于云服务系统的业务处理方法,其特征在于,所述系统包含负载均衡节点、客户端节点以及服务端节点,所述方法包括: A business processing method based on a cloud service system, characterized in that the system includes a load balancing node, a client node and a server node, and the method includes: 所述负载均衡节点将第一标识发送至客户端节点以及服务端节点;The load balancing node sends the first identification to the client node and the server node; 所述客户端节点基于所述第一标识将第一业务请求的目的地址,从所述负载均衡节点的地址转换为服务端节点的地址,得到处理后的第一业务请求,并将所述处理后的第一业务请求发送至所述服务端节点;The client node converts the destination address of the first service request from the address of the load balancing node to the address of the server node based on the first identifier, obtains the processed first service request, and processes the first service request. The subsequent first service request is sent to the server node; 所述服务端节点对所述处理后的第一业务请求进行处理,得到第一业务响应,基于所述第一标识将所述第一业务响应的源地址,从所述服务端节点的地址转换为所述负载均衡节点的地址,得到处理后的第一业务响应,并将所述处理后的第一业务响应发送至所述客户端节点。The server node processes the processed first service request to obtain a first service response, and converts the source address of the first service response from the address of the server node based on the first identifier. For the address of the load balancing node, obtain a processed first service response, and send the processed first service response to the client node. 一种基于云服务系统的业务处理方法,其特征在于,所述系统包含负载均衡节点、客户端节点以及服务端节点,所述方法包括:A business processing method based on a cloud service system, characterized in that the system includes a load balancing node, a client node and a server node, and the method includes: 所述负载均衡节点将第一标识发送至客户端节点以及服务端节点;The load balancing node sends the first identification to the client node and the server node; 所述客户端节点基于所述第一标识将第一业务请求的源地址,从所述客户端节点的地址转换为所述负载均衡节点的地址,将所述第一业务请求的目的地址,从所述负载均衡节点的地址转换为服务端节点的地址,得到处理后的第一业务请求,并将所述处理后的第一业务请求发送至所述服务端节点;The client node converts the source address of the first service request from the address of the client node to the address of the load balancing node based on the first identifier, and converts the destination address of the first service request from the address of the client node to the address of the load balancing node. Convert the address of the load balancing node to the address of the server node, obtain the processed first service request, and send the processed first service request to the server node; 所述服务端节点对所述处理后的第一业务请求进行处理,得到第一业务响应,基于所述第一标识将所述第一业务响应的源地址,从所述服务端节点的地址转换为所述负载均衡节点的地址,将所述第一业务相应的目的地址,从所述负载均衡节点的地址转换为所述客户端节点的地址,得到处理后的第一业务响应,并将所述处理后的第一业务响应发送至所述客户端节点。The server node processes the processed first service request to obtain a first service response, and converts the source address of the first service response from the address of the server node based on the first identifier. As the address of the load balancing node, convert the corresponding destination address of the first service from the address of the load balancing node to the address of the client node, obtain the processed first service response, and convert the corresponding destination address of the first service to the address of the client node. The processed first service response is sent to the client node. 一种负载均衡节点,其特征在于,所述负载均衡节点包括存储器和处理器;所述存储器存储有代码,所述处理器被配置为执行所述代码,当所述代码被执行时,所述负载均衡节点执行如权利要求13至15任意一项所述的方法中所述负载均衡节点实现的步骤。A load balancing node, characterized in that the load balancing node includes a memory and a processor; the memory stores code, the processor is configured to execute the code, and when the code is executed, the The load balancing node performs the steps implemented by the load balancing node in the method according to any one of claims 13 to 15. 一种客户端节点,其特征在于,所述客户端节点包括存储器和处理器;所述存储器存储有代码,所述处理器被配置为执行所述代码,当所述代码被执行时,所述客户端节点执行如权利要求13至15任意一项所述的方法中所述客户端节点实现的步骤。A client node, characterized in that the client node includes a memory and a processor; the memory stores code, the processor is configured to execute the code, and when the code is executed, the The client node performs the steps implemented by the client node in the method according to any one of claims 13 to 15. 一种服务端节点,其特征在于,所述服务端节点包括存储器和处理器;所述存储器存储有代码,所述处理器被配置为执行所述代码,当所述代码被执行时,所述服务端节点执行如权利要求13至15任意一项所述的方法中所述服务端节点实现的步骤。A server node, characterized in that the server node includes a memory and a processor; the memory stores code, the processor is configured to execute the code, and when the code is executed, the The server node performs the steps implemented by the server node in the method described in any one of claims 13 to 15. 一种计算机存储介质,其特征在于,所述计算机存储介质存储有一个或多个指令,所述指令在由一个或多个计算机执行时使得所述一个或多个计算机实施权利要求13至15任一所述的方法。A computer storage medium, characterized in that the computer storage medium stores one or more instructions, which when executed by one or more computers cause the one or more computers to implement any of claims 13 to 15. The method described in 1. 一种计算机程序产品,其特征在于,所述计算机程序产品存储有指令,所述指令在由计算机执行时,使得所述计算机实施权利要求13至15任意一项所述的方法。 A computer program product, characterized in that the computer program product stores instructions, which when executed by a computer, cause the computer to implement the method described in any one of claims 13 to 15.
PCT/CN2023/097063 2022-05-31 2023-05-30 Cloud service system and service processing method based on cloud service system WO2023232016A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210612082.XA CN117201497A (en) 2022-05-31 2022-05-31 Cloud service system and business processing method based on cloud service system
CN202210612082.X 2022-05-31

Publications (1)

Publication Number Publication Date
WO2023232016A1 true WO2023232016A1 (en) 2023-12-07

Family

ID=88994764

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/097063 WO2023232016A1 (en) 2022-05-31 2023-05-30 Cloud service system and service processing method based on cloud service system

Country Status (2)

Country Link
CN (1) CN117201497A (en)
WO (1) WO2023232016A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050002406A1 (en) * 2003-07-01 2005-01-06 Fujitsu Limited Address translating program, address translating method, and address translating apparatus
CN101252591A (en) * 2008-04-03 2008-08-27 中国科学技术大学 Method and device for realizing separation of uplink and downlink data
CN103780502A (en) * 2012-10-17 2014-05-07 阿里巴巴集团控股有限公司 System, method and device for data interaction under load balancing
CN112532534A (en) * 2020-11-25 2021-03-19 腾讯科技(深圳)有限公司 Data transmission method and device and computer readable storage medium
CN113691460A (en) * 2021-08-26 2021-11-23 平安科技(深圳)有限公司 Data transmission method, device and equipment based on load balancing and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050002406A1 (en) * 2003-07-01 2005-01-06 Fujitsu Limited Address translating program, address translating method, and address translating apparatus
CN101252591A (en) * 2008-04-03 2008-08-27 中国科学技术大学 Method and device for realizing separation of uplink and downlink data
CN103780502A (en) * 2012-10-17 2014-05-07 阿里巴巴集团控股有限公司 System, method and device for data interaction under load balancing
CN112532534A (en) * 2020-11-25 2021-03-19 腾讯科技(深圳)有限公司 Data transmission method and device and computer readable storage medium
CN113691460A (en) * 2021-08-26 2021-11-23 平安科技(深圳)有限公司 Data transmission method, device and equipment based on load balancing and storage medium

Also Published As

Publication number Publication date
CN117201497A (en) 2023-12-08

Similar Documents

Publication Publication Date Title
US10237238B2 (en) Regional firewall clustering in a networked computing environment
CN104052789B (en) Method and system for the load balance of virtual networking system
US9378042B2 (en) Virtual machine multicast/broadcast in virtual network
US9083760B1 (en) Dynamic cloning and reservation of detached idle connections
CA2968964C (en) Source ip address transparency systems and methods
WO2017114017A1 (en) Computer device, system and method for implementing load balancing
US10541925B2 (en) Non-DSR distributed load balancer with virtualized VIPS and source proxy on load balanced connection
CN108449282A (en) A load balancing method and device thereof
CN107948324B (en) request transmission system, method, device and storage medium
US20180109456A1 (en) System, method, and device for network load balance processing
CN110609746A (en) Method, apparatus and computer program product for managing network system
US11647083B2 (en) Cluster-aware multipath transmission control protocol (MPTCP) session load balancing
US10243799B2 (en) Method, apparatus and system for virtualizing a policy and charging rules function
CN113014611A (en) Load balancing method and related equipment
CN112968965B (en) Metadata service method, server and storage medium of NFV network node
CN110149411A (en) A kind of session keeping method, device, storage medium and processor
WO2025123857A1 (en) Mqtt load balancing method and system, and computer-readable storage medium
WO2023232016A1 (en) Cloud service system and service processing method based on cloud service system
CN114697400B (en) Service scheduling method, system and VTEP
JP7384952B2 (en) Network load balancer, request message allocation method, program products and systems
CN115460213A (en) A business processing method, device, electronic device, and computer-readable medium
CN116233481A (en) Media stream transmission method, media server and communication system
US10868758B1 (en) Enabling bypass flows for network traffic between devices
CN113419810A (en) Data interaction method and device, electronic equipment and computer storage medium
CN108848175A (en) A kind of method and device creating TCP connection

Legal Events

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

Ref document number: 23815195

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 23815195

Country of ref document: EP

Kind code of ref document: A1