CN114598739B - Cloud application-based communication channel processing method, device and system - Google Patents

Cloud application-based communication channel processing method, device and system Download PDF

Info

Publication number
CN114598739B
CN114598739B CN202210189400.6A CN202210189400A CN114598739B CN 114598739 B CN114598739 B CN 114598739B CN 202210189400 A CN202210189400 A CN 202210189400A CN 114598739 B CN114598739 B CN 114598739B
Authority
CN
China
Prior art keywords
channel
communication channel
client
request
connection request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210189400.6A
Other languages
Chinese (zh)
Other versions
CN114598739A (en
Inventor
杨航涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba China Co Ltd
Original Assignee
Alibaba China Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba China Co Ltd filed Critical Alibaba China Co Ltd
Priority to CN202210189400.6A priority Critical patent/CN114598739B/en
Publication of CN114598739A publication Critical patent/CN114598739A/en
Application granted granted Critical
Publication of CN114598739B publication Critical patent/CN114598739B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the specification provides a processing method, a device and a system for a communication channel based on a cloud application, wherein the processing method for the communication channel based on the cloud application comprises the following steps: receiving a communication channel creation request; determining a channel identifier according to the communication channel creation request, and sending the channel identifier to a client; the first channel connection request fed back by the client is received, and the first communication channel is created according to the first channel connection request.

Description

Cloud application-based communication channel processing method, device and system
Technical Field
The embodiment of the specification relates to the technical field of cloud desktops, in particular to a processing method, a processing device and a processing system of a communication channel based on cloud application.
Background
With the development of computer technology, cloud desktops and cloud applications are widely applied, and users can connect the cloud desktops or cloud applications on a server through clients, so that better use experience is obtained under the condition that client configuration is not required to be upgraded.
Under the condition of connecting a cloud desktop, a remote communication protocol is needed, the remote communication protocol is used for communication between a client and a server, the connection between the client and the cloud is kept, the client can normally operate the cloud desktop, a plurality of communication channels can be created in the process of communication between the client and the server, different communication channels are different in data type, corresponding resources are needed to be consumed to keep creating the communication channels in the current session, the connection state of the client and the cloud desktop is kept all the time, but some communication channels may not be used in connection, and resource waste can be caused for the communication channels.
Disclosure of Invention
In view of this, embodiments of the present disclosure provide a method for processing a communication channel based on a cloud application. One or more embodiments of the present disclosure relate to a processing apparatus for a communication channel based on a cloud application, a processing system for a communication channel based on a cloud application, a computing device, a computer readable storage medium, and a computer program, so as to solve the technical drawbacks in the prior art.
According to a first aspect of embodiments of the present disclosure, there is provided a processing method of a communication channel based on a cloud application, applied to a server, including:
receiving a communication channel creation request;
Determining a channel identifier according to the communication channel creation request, and sending the channel identifier to a client;
and receiving a first channel connection request fed back by the client, and creating a first communication channel according to the first channel connection request.
According to a second aspect of embodiments of the present specification, there is provided a processing apparatus of a communication channel based on a cloud application, applied to a server, including:
a receiving module configured to receive a communication channel creation request;
The sending module is configured to determine a channel identifier according to the communication channel creation request and send the channel identifier to a client;
The creation module is configured to receive a first channel connection request fed back by the client and create a first communication channel according to the first channel connection request.
According to a third aspect of embodiments of the present specification, there is provided a processing system of a communication channel based on a cloud application, including:
a client and a server; wherein,
The server is configured to receive a communication channel creation request, determine a channel identifier according to the communication channel creation request, and send the channel identifier to a client;
The client is configured to send a first channel connection request to the server according to the channel identifier;
the server is further configured to receive the first channel connection request and create a first communication channel according to the first channel connection request.
According to a fourth aspect of embodiments of the present specification, there is provided a processing system of a communication channel based on a cloud application, including:
a client and a server; wherein,
The client is configured to send a first channel connection request, wherein the first channel connection request carries a channel identifier;
the server is configured to create a first communication channel with the client based on the channel identification.
According to a fifth aspect of embodiments of the present specification, there is provided a computing device comprising:
A memory and a processor;
The memory is configured to store computer executable instructions, and the processor is configured to execute the computer executable instructions, where the computer executable instructions when executed by the processor implement the steps of the method for processing a cloud application-based communication channel.
According to a sixth aspect of embodiments of the present specification, there is provided a computer-readable storage medium storing computer-executable instructions which, when executed by a processor, implement the steps of the above-described method of processing a cloud application-based communication channel.
According to a seventh aspect of embodiments of the present specification, there is provided a computer program, wherein the computer program, when executed in a computer, causes the computer to perform the steps of the above-described processing method for a cloud application based communication channel.
An embodiment of the present disclosure implements a processing method for a communication channel based on a cloud application, which is applied to a server, and includes: receiving a communication channel creation request; determining a channel identifier according to the communication channel creation request, and sending the channel identifier to a client; the method comprises the steps of receiving a first channel connection request fed back by a client, and creating a first communication channel according to the first channel connection request.
Drawings
Fig. 1 is a flowchart of a processing method of a communication channel based on a cloud application according to an embodiment of the present disclosure;
FIG. 2 is a process flow diagram of a method for processing a communication channel based on cloud application for a USB peripheral scenario according to one embodiment of the present disclosure;
FIG. 3 is a schematic diagram of an apparatus for communication channels according to one embodiment of the present disclosure;
FIG. 4 is a schematic diagram of a processing system for a communication channel based on a cloud application according to one embodiment of the present disclosure;
FIG. 5 is a schematic diagram of a processing system according to another embodiment of the present disclosure, where the processing system is based on a communication channel of a cloud application;
Fig. 6 is an interaction schematic diagram of a processing method of a communication channel based on a cloud application according to a first embodiment of the present disclosure;
Fig. 7 is an interaction schematic diagram of a processing method of a communication channel based on a cloud application according to a second embodiment of the present disclosure;
fig. 8 is an interaction schematic diagram of a processing method of a communication channel based on a cloud application according to a third embodiment of the present disclosure;
FIG. 9 is a block diagram of a computing device provided in one embodiment of the present description.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present description. This description may be embodied in many other forms than described herein and similarly generalized by those skilled in the art to whom this disclosure pertains without departing from the spirit of the disclosure and, therefore, this disclosure is not limited by the specific implementations disclosed below.
The terminology used in the one or more embodiments of the specification is for the purpose of describing particular embodiments only and is not intended to be limiting of the one or more embodiments of the specification. As used in this specification, one or more embodiments and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in one or more embodiments of the present specification refers to and encompasses any or all possible combinations of one or more of the associated listed items.
It should be understood that, although the terms first, second, etc. may be used in one or more embodiments of this specification to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first may also be referred to as a second, and similarly, a second may also be referred to as a first, without departing from the scope of one or more embodiments of the present description. The word "if" as used herein may be interpreted as "at … …" or "at … …" or "in response to a determination" depending on the context.
First, terms related to one or more embodiments of the present specification will be explained.
Cloud desktop: the cloud desktop is also called desktop virtualization and cloud computer, and is a new mode for replacing the traditional computer; after the cloud desktop is adopted, a user does not need to purchase a host computer, all components such as a CPU, a memory, a hard disk and the like contained in the host computer are virtualized in a server at the rear end, and the cloud desktop is used for replacing a traditional computer and also supporting other intelligent devices such as a mobile phone and a tablet to access on the Internet.
Cloud application: the user can run the application through connecting the server and save the data in the application to the local or cloud disk.
Telecommunication protocol: the cloud communication protocol is called a cloud communication protocol, wherein the cloud is a server and is mainly used for communication between the client and a cloud desktop of the server, connection among the cloud of the client is maintained, and the client can normally operate the cloud desktop.
The channel is as follows: and (3) creating multiple channels in the channel and end cloud communication process, wherein the types of data transmitted by different channels are different.
A session: from the connection of the client to the cloud desktop, the connection state between the client and the cloud desktop is kept until the cloud desktop is disconnected.
In the present specification, a processing method of a communication channel based on a cloud application is provided, and the present specification relates to a processing apparatus of a communication channel based on a cloud application, a processing system of a communication channel based on a cloud application, a computing device, and a computer readable storage medium, which are described in detail in the following embodiments one by one.
In the application scenario of the cloud desktop or the cloud application, different communication channels are created by using the remote communication protocol, and the different communication channels are used for transmitting different types of data, for example, the communication channel 1 transmits video, the communication channel 2 transmits audio, the communication channel 3 transmits mouse data, the communication channel 4 transmits keyboard data, the communication channel 5 transmits peripheral data, and the like, but these communication channels are not necessary in all use scenarios, for example, peripheral data are transmitted only when a user needs to use a peripheral, so that the communication channel for transmitting peripheral data is used, and if the user does not need to use a peripheral, the corresponding communication channel is not used, and resource waste is caused.
Referring to fig. 1, fig. 1 shows a flowchart of a processing method of a communication channel based on a cloud application, where the method is applied to a server, and specifically includes the following steps.
Step 102: a communication channel creation request is received.
The server provided in the embodiments of the present disclosure may specifically refer to a server running a cloud desktop, where a user connects to the cloud desktop of the server through a client. A communication channel (channel) specifically refers to a channel created between a server and a client for communication, where the communication channel is used for transmitting data, and in practical applications, different communication channels may transmit different data.
In practical application, a user establishes a connection with a cloud desktop of a server through a client, and the processing method of a communication channel based on a cloud application provided in the embodiments of the present disclosure specifically refers to a processing method of a communication channel based on a cloud application that is created as required after the client establishes a connection with the cloud desktop, where in a session process between the client and the server, some basic communication channels need to be kept in long connection, so before receiving a request for creating a communication channel, the method further includes:
Receiving a connection request sent by the client;
transmitting a basic channel list to the client in response to the connection request;
and receiving a basic channel connection request sent by the client in response to the basic channel list, and creating a basic communication channel according to the basic channel connection request.
In practical application, the connection request sent by the client specifically refers to a cloud desktop connection request sent by the client to the server, that is, when the user opens the cloud desktop by using the client, a main communication channel (MAIN CHANNEL) is created between the client and the server, after the server receives the connection request through the main communication channel, the server sends a basic communication list to the client through the main communication channel, specifically, the basic communication list specifically refers to a communication channel which needs to keep long connection between the client and the server in the session, and is a communication channel which ensures that the session can be normally used, for example, a communication channel of a user transmission picture.
After receiving the basic channel list, the client traverses the basic communication channels in the basic channel list and creates the basic communication channels with the server, specifically, a basic channel connection request is sent to the server according to the basic channel list, and after receiving the basic channel connection request, the server can create the basic communication channels between the client and the server.
In a specific embodiment provided in this specification, taking a cloud desktop where a client C is connected to a server S as an example, the server S receives a connection request of the client C, creates a primary communication channel a between the client C and the server S, and sends a base channel list L to the client C through the primary communication channel a, where the base channel list L includes (a base communication channel b, a base communication channel C, and a base communication channel d … …). After receiving the basic channel list L, the client C traverses the basic channel list L and sends a basic channel connection request with the server S based on each basic communication channel, and after receiving the basic channel connection request of each basic communication channel, the server establishes each basic communication channel with the client.
So far, the communication connection between the client and the server is established based on the current session. The processing method of the communication channel based on the cloud application provided by the embodiment of the specification is based on the processing method, and is started by new requirements. The communication channel creation request specifically refers to a request for creating a first communication channel other than the main communication channel and the base communication channel. In practical application, the communication channel creation request is generated only when needed, specifically, the receiving of the communication channel creation request includes:
receiving a call request of a target item;
and generating a communication channel creation request based on the call request.
The target item refers to an item specifically used in an actual application, for example, an external disk copy data function, a printer configuration function, a local disk map, and the like, which are needed by a client, are not needed to be used for each session, and if a corresponding communication channel is created each time, waste of computing resources is caused, so in the processing method of the communication channel based on the cloud application provided in the present specification, only when a call request of the target item is received, a communication channel creation request is generated based on the call request, and it should be noted that the creation request of the communication channel may be sent by the client or generated by other processes running in the server.
For example, when the client performs local disk mapping, a cloud disk in the server needs to be mapped to the local of the client, and at this time, the client sends a communication channel creation request to the server, and the server receives the communication channel creation request sent by the client.
For another example, when the cloud desktop of the server is playing audio and needs to send the audio to the client, the server may actively generate a communication channel creation request for creating a communication channel for transmitting the audio.
According to the cloud application-based communication channel processing method, the creation request of the communication channel is received according to actual application requirements, so that in subsequent processing, a corresponding first communication channel is created according to the communication channel creation request, a large number of communication channels are prevented from being created at the beginning of session establishment, and computing resources are saved.
Step 104: and determining a channel identifier according to the communication channel creation request, and sending the channel identifier to a client.
The channel identifier specifically refers to identification information for uniquely determining a channel, and a plurality of communication channels exist between the client and the server, and the channel identifier can uniquely determine that a channel needs to be created or used, for example, d in the basic communication channel d can be used as the channel identifier of the communication channel. The channel identifier may be preset or randomly allocated. The particular form of the channel identification is not limited in the examples provided in this specification.
In practical application, the channel identifier may be generated according to an existing channel identifier, where determining the channel identifier according to the communication channel creation request and sending the channel identifier to the client includes:
Determining a channel identifier according to the communication channel creation request, and creating a first channel list based on the channel identifier;
And sending the first channel list to a client.
In the embodiment provided in the present specification, after receiving the communication channel creation request, the server determines the channel identification, for example, 10 current communication channels are all, and then the next channel identification is the communication channel 11; for example, there are 5 current communication channels, namely, communication channel a, communication channel b, communication channel c, communication channel d and communication channel e, and the channel identifier determined according to the communication channel creation request may be communication channel f.
After determining the communication channel, a first channel list may be created based on the channel identification and sent to the client, similar to the step of creating the underlying communication channel described above.
For example, in a specific embodiment provided in the present specification, a main communication channel a, a basic communication channel b, a basic communication channel c, a basic communication channel d, and a first communication channel e are established between a current server and a client, and after a communication channel creation request is received, a first channel list is created if a channel identifier is determined to be f, where the first channel list includes (the first communication channel f), and the first channel list is sent to the client.
In practical applications, since additional computing resources are consumed each time a communication channel is created, a channel resource pool can be introduced. The channel resource pool may be that a certain first communication channel is not destroyed after being used, and is used as an idle channel to facilitate the use of other subsequent requests, or several first communication channels may be created in advance to form the channel resource pool, so that the created first communication channel may be flexibly selected from the resource pool according to requirements, specifically, a channel identifier may be determined according to the communication channel creation request, and the channel identifier may be sent to a client, where the method includes:
Determining a channel to be connected in a channel resource pool, and acquiring a channel identifier corresponding to the channel to be connected;
And sending the channel identification to the client.
After receiving a communication channel creation request, determining a channel to be connected in a channel resource pool, wherein the channel to be connected specifically refers to an idle channel in the channel resource pool, acquiring a channel identifier of the channel to be connected, and sending the channel identifier of the channel to be connected to a client.
For example, in a specific embodiment provided in the present disclosure, a main communication channel a, a basic communication channel b, a basic communication channel c, a basic communication channel d, and a first communication channel e are established between a current server and a client, and meanwhile, several unused first communication channels are created in advance to form a channel resource pool, where the channel resource pool includes (the first communication channel e, the first communication channel f, the first communication channel g, and the first communication channel h), after a communication channel creation request is received, a channel g to be connected is determined from the channel resource pool, a channel identifier g corresponding to the channel to be connected is determined, and the channel identifier g is sent to the client.
Optionally, sending the channel identifier to the client includes:
and sending the channel identification to the client through the basic communication channel.
In practical application, the channel identifier is sent to the client, which may be sent to the client through a main communication channel, or may be sent to the client through a certain basic communication channel for transmitting the channel identifier. In the embodiments provided in the present specification, this is not limited.
Step 106: and receiving a first channel connection request fed back by the client, and creating a first communication channel according to the first channel connection request.
The first channel connection request specifically refers to a channel connection request sent by the client for the channel identifier after receiving the channel identifier, and the server can create a first communication channel according to the first channel connection request after receiving the first channel connection request, so that the creation of the first communication channel is completed.
In practical applications, the number of the first communication channels may be one, two or more, and the number of the first communication channels is related to the first channel connection request, and accordingly, one target item may correspond to one first communication channel or two or more first communication channels. There may also be multiple target items sharing a first communication channel, i.e. after creating a first communication channel, multiple sub-first communication channels are virtualized in the first communication channel for use by multiple target items. In this specification, the correspondence relationship between the first communication channel and the target item is not limited.
In a practical application, after creating the first communication channel according to the first channel connection request, the method further includes:
Invoking the target item based on the first communication channel.
After the first communication channel is created, the target item may be invoked based on the first communication channel.
In a specific embodiment provided in the present specification, taking a server sending audio data as an example, a sound card service sends a communication channel creation request to the server, the server determines a channel identifier and sends the channel identifier to a client, the client sends a first channel connection request to the server according to the channel identifier, the server creates a first communication channel (for transmitting audio data between the server and the client) according to the first channel connection request after receiving the first channel connection request, and transmits audio data from the server to the client according to the first communication channel.
In practical application, the first communication channel is created according to the requirement, and correspondingly, when the requirement is met or completed, the first communication channel can be destroyed, and it should be noted that the destruction of the first communication channel is not destroyed along with the end of the session, but can be actively disconnected by the server, and specifically, the method further includes:
Receiving a disconnect request for the first communication channel;
interrupting the first communication channel in response to the disconnect request.
Accordingly, after interrupting the first communication channel in response to the disconnect request, the method further comprises:
And clearing channel resources of the first communication channel.
After the call request of the target item is finished, the server can also receive a disconnection request aiming at the first communication channel, wherein the disconnection request can be generated by actively triggering the server, or can be sent to the client by a third party application service (such as a sound card service and the like), and after receiving the disconnection request, the client responds to the disconnection request to disconnect the first communication channel, clear channel resources occupied by the first communication channel and reduce calculation resources occupied by the current session.
The processing method of the communication channel based on the cloud application, provided by the embodiment of the specification, is applied to a server and is used for creating a request by receiving the communication channel; determining a channel identifier according to the communication channel creation request, and sending the channel identifier to a client; and receiving a first channel connection request fed back by the client, and creating a first communication channel according to the first channel connection request. The method and the device realize that the dynamic first communication channel is introduced, so that the life cycle of the communication channel is not bound with the life cycle of the whole session of using the cloud desktop by the user, the communication channel can be dynamically created according to the requirements in the using process of the cloud desktop, and the system load and the occupation of network resources are reduced.
And secondly, the first communication channel can be actively disconnected after the first communication channel is used, so that the system load and the occupation of network resources are further reduced, and the resource utilization maximization is achieved.
The following describes, with reference to fig. 2, an example of a usage scenario of the processing method of the communication channel based on the cloud application provided in the present specification in a USB peripheral, and the processing method of the communication channel based on the cloud application is further described. Fig. 2 is a flowchart of a processing procedure of a cloud application-based communication channel processing method applied to a USB peripheral device scenario, where the method is applied to a server, and specifically includes the following steps.
Step 202: and receiving a connection request a sent by the client C.
In this embodiment, a user connects to a server S at a client C, starts a cloud desktop, and the server receives a connection request a sent by the client C and establishes a main communication channel with the client.
Step 204: and transmitting a basic channel list to the client C in response to the connection request a.
In this embodiment, the server S sends the base channel list required for the current session to the client C through the main communication channel.
Step 206: and receiving a basic channel connection request b sent by the client C in response to the basic channel list, and creating a basic communication channel according to the basic channel connection request b.
In this embodiment, the client C traverses the basic channel list, and sends a basic channel connection request b to the server according to the basic channel identifier in the basic channel list. The server creates a basic communication channel according to the basic channel connection request b.
Step 208: and receiving a call request c of the USB peripheral function.
In this embodiment, a user inserts a USB peripheral device into a client C, and the client C sends a call request C to a server S according to the inserted USB peripheral device, and the server S receives the call request C.
Step 210: a communication channel creation request d is generated based on the call request c.
In the present embodiment, the server S generates a communication channel creation request d from the call request c.
Step 212: and determining a channel identifier according to the communication channel creation request d, and creating a first channel list based on the channel identifier.
In the present embodiment, the server S determines the channel identifier m from the communication channel creation request d, and creates the first channel list from the channel identifier m.
Step 214: the first channel list is sent to the client C via the base communication channel.
In this embodiment, the server S transmits the first channel list to the client C through the base communication channel.
Step 216: and receiving a first channel connection request f fed back by the client C, and creating a first communication channel 1 according to the first channel connection request f.
In this embodiment, after receiving the first channel list, the client C parses the first channel list to obtain the channel identifier m, and sends a first channel connection request f to the server S based on the channel identifier m. The server S creates the first communication channel 1 from the first channel connection request f.
Step 218: and calling a USB peripheral function based on the first communication channel 1.
In this embodiment, the client invokes the USB peripheral function of the server S through the first communication channel 1, and displays the USB device inserted into the local device in the cloud desktop.
Step 220: in case the USB peripheral function call is completed, a disconnect request for the first communication channel 1 is received.
In this embodiment, when the USB peripheral function call is completed, the USB device may be pulled out by the user at the client, and the client sends a disconnection request for the first communication channel 1 to the server, and the server receives the disconnection request.
Step 222: interrupting the first communication channel 1 in response to the disconnect request and cleaning up channel resources of the first communication channel 1.
In this embodiment, the server destroys the first communication channel 1 in response to the disconnection request, and clears the relevant channel resources of the first communication channel 1.
The processing method of the communication channel based on the cloud application, which is provided by the embodiment of the specification, is applied to the use scene of the USB peripheral, and introduces the dynamic first communication channel, so that the life cycle of the communication channel is not bound with the life cycle of the whole session of using the cloud desktop by the user, the communication channel can be dynamically created according to the requirements in the use process of the cloud desktop, and the system load and the occupation of network resources are reduced.
And secondly, the first communication channel can be actively disconnected after the first communication channel is used, so that the system load and the occupation of network resources are further reduced, and the resource utilization maximization is achieved.
Corresponding to the method embodiment, the present disclosure further provides an embodiment of a processing device based on a communication channel of a cloud application, and fig. 3 shows a schematic structural diagram of the processing device based on the communication channel of the cloud application provided in one embodiment of the present disclosure. As shown in fig. 3, the apparatus includes:
A receiving module 302 configured to receive a communication channel creation request;
A transmitting module 304 configured to determine a channel identifier according to the communication channel creation request, and transmit the channel identifier to a client;
The creation module 306 is configured to receive a first channel connection request fed back by the client, and create a first communication channel according to the first channel connection request.
Optionally, the sending module 304 is further configured to:
Determining a channel identifier according to the communication channel creation request, and creating a first channel list based on the channel identifier;
And sending the first channel list to a client.
Optionally, the sending module 304 is further configured to:
Determining a channel to be connected in a channel resource pool, and acquiring a channel identifier corresponding to the channel to be connected;
And sending the channel identification to the client.
Optionally, the apparatus further includes:
The request receiving module is configured to receive a connection request sent by the client;
a request sending module configured to send a basic channel list to the client in response to the connection request;
And the channel creation module is configured to receive a basic channel connection request sent by the client in response to the basic channel list and create a basic communication channel according to the basic channel connection request.
Optionally, the sending module 304 is further configured to:
and sending the channel identification to the client through the basic communication channel.
Optionally, the receiving module 302 is further configured to:
receiving a call request of a target item;
and generating a communication channel creation request based on the call request.
Optionally, the apparatus further includes:
And a calling module configured to call the target item based on the first communication channel.
Optionally, the apparatus further includes:
a disconnect request receiving module configured to receive a disconnect request for the first communication channel;
a disconnect module configured to interrupt the first communication channel in response to the disconnect request.
Optionally, the apparatus further includes:
and the cleaning module is configured to clean channel resources of the first communication channel.
The processing device of the communication channel based on the cloud application, provided by the embodiment of the specification, is applied to a server and is used for creating a request by receiving the communication channel; determining a channel identifier according to the communication channel creation request, and sending the channel identifier to a client; and receiving a first channel connection request fed back by the client, and creating a first communication channel according to the first channel connection request. The method and the device realize that the dynamic first communication channel is introduced, so that the life cycle of the communication channel is not bound with the life cycle of the whole session of using the cloud desktop by the user, the communication channel can be dynamically created according to the requirements in the using process of the cloud desktop, and the system load and the occupation of network resources are reduced.
And secondly, the first communication channel can be actively disconnected after the first communication channel is used, so that the system load and the occupation of network resources are further reduced, and the resource utilization maximization is achieved.
The foregoing is a schematic scheme of a processing apparatus of a communication channel based on cloud application in this embodiment. It should be noted that, the technical solution of the processing apparatus based on the communication channel of the cloud application and the technical solution of the processing method based on the communication channel of the cloud application belong to the same concept, and details of the technical solution of the processing apparatus based on the communication channel of the cloud application, which are not described in detail, can be referred to the description of the technical solution of the processing method based on the communication channel of the cloud application.
Referring to fig. 4, fig. 4 shows a schematic structural diagram of a processing system provided by an embodiment of the present disclosure and based on a communication channel of a cloud application, and as shown in fig. 4, the system includes a client 402 and a server 404, where:
The server 404 is configured to receive a communication channel creation request, determine a channel identifier according to the communication channel creation request, and send the channel identifier to a client;
the client 402 is configured to send a first channel connection request to the server according to the channel identifier;
The server 404 is further configured to receive the first channel connection request and create a first communication channel according to the first channel connection request.
Optionally, the server 404 is further configured to determine a channel identifier according to the communication channel creation request, create a first channel list based on the channel identifier, and send the first channel list to the client.
The client 402 is further configured to traverse the first channel list and send a first channel connection request to the server according to the channel identifier in the first channel list.
Optionally, the server 404 is further configured to determine a channel to be connected in the channel resource pool, obtain a channel identifier corresponding to the channel to be connected, and send the channel identifier to the client.
Optionally, the server 404 is further configured to receive a connection request sent by the client, and send a basic channel list to the client in response to the connection request;
the client 402 is further configured to send a basic channel connection request to the server according to the basic channel list;
the server 404 is further configured to receive the basic channel connection request and create a basic communication channel according to the basic channel connection request.
Optionally, the server 404 is further configured to receive a disconnect request for the first communication channel, and to interrupt the first communication channel in response to the disconnect request.
Optionally, the client 402 is further configured to receive a disconnect request for the first communication channel, and to interrupt the first communication channel in response to the disconnect request.
In the processing system of the communication channel based on the cloud application provided in the embodiments of the present disclosure, the communication channel is initiated by a server, when the server receives a request for creating the communication channel, the server notifies the client, the client initiates a connection request of the communication channel, and the server creates a first communication channel after receiving the connection request.
When a certain first communication channel is not used any more, the server or the client can actively disconnect the first communication channel and release the network and the computing resources occupied by the first communication channel.
Referring to fig. 5, fig. 5 shows a schematic structural diagram of a processing system provided by another embodiment of the present disclosure and based on a communication channel of a cloud application, and as shown in fig. 5, the system includes a client 502 and a server 504, where:
The client 502 is configured to send a first channel connection request, where the first channel connection request carries a channel identifier;
The server 504 is configured to create a first communication channel with the client based on the channel identification.
In the processing system for a communication channel based on cloud application provided in the embodiments of the present disclosure, the first channel connection request may also be actively initiated by a client, for example, a removable storage device is inserted into the client, and data needs to be downloaded from a server to the removable storage device, and then the client directly sends the first channel connection request to the server, and after receiving the first channel connection request, the server creates a first communication channel with the client according to a channel identifier in the first channel connection request.
Referring to fig. 6, fig. 6 shows an interaction schematic diagram of a processing method of a communication channel based on a cloud application according to a first embodiment of the present disclosure, and as shown in fig. 6, the method includes:
Step 602: the server third party service sends a communication channel creation request to the server.
Step 604: and the server determines a channel identifier according to the communication channel creation request, creates a first channel list based on the channel identifier, and sends the first channel list to the client.
Step 606: the client analyzes the first channel list and initiates a first channel connection request to the server.
Step 608: the server creates a first communication channel according to the first channel connection request and provides the first communication channel for the server to use the third party service.
According to the cloud application-based communication channel processing method provided by the first embodiment of the specification, a server third-party server initiates a communication channel creation request, a first channel list is created by the server according to the communication channel creation request and is sent to a client, and the client initiates a first channel connection request to the server according to the first channel list. The server creates a first communication channel according to the first channel connection request.
Referring to fig. 7, fig. 7 shows an interaction schematic diagram of a processing method of a communication channel based on a cloud application according to a second embodiment of the present disclosure, and as shown in fig. 7, the method includes:
step 702: the client-side third-party server calls an interface provided by the client-side and sends a server third-party service call request to the client-side.
Step 704: the client sends the server third party service invocation request to the server.
Step 706: the server sends a server third party service invocation request to the server third party service.
Step 708: the server third party service sends a communication channel creation request to the server.
Step 710: and the server determines a channel identifier according to the communication channel creation request, creates a first channel list based on the channel identifier, and sends the first channel list to the client.
Step 712: the client analyzes the first channel list and initiates a first channel connection request to the server.
Step 714: the server creates a first communication channel according to the first channel connection request and provides the first communication channel for the server third party service and the client third party service.
According to the cloud application-based communication channel processing method, a client side third party server initiates a server third party service call request, the client side sends the server third party service call request to the server, the server sends the server third party service call request to the server third party service, the server third party service initiates a communication channel creation request, the server creates a first channel list according to the communication channel creation request and sends the first channel list to the client side, and the client side initiates a first channel connection request to the server according to the first channel list. The server creates a first communication channel according to the first channel connection request.
Referring to fig. 8, fig. 8 is an interaction schematic diagram of a processing method of a communication channel based on a cloud application according to a third embodiment of the present disclosure, in an actual application, when a client starts a cloud desktop, a main communication channel is created with a server, and after the main communication channel is connected, other communication channels are all channels that the server sends a channel list to the client through the main communication channel, and a new communication channel is created and initiated by the client. The main communication channel is a connection request actively initiated by the client, based on which, when the client third party service needs to establish a communication connection with the third party service in the server, the client may also actively initiate a communication channel creation request, as shown in fig. 8, and specifically, the method includes:
step 802: the client-side third-party server calls an interface provided by the client-side and sends a server third-party service call request to the client-side.
Step 804: and the client generates a first channel connection request according to the server third-party service call request and sends the first channel connection request to the server.
Step 806: the server creates a first communication channel according to the first channel connection request and provides the first communication channel for the server third party service and the client third party service.
According to the cloud application-based communication channel processing method provided by the third embodiment of the specification, a third party server of a client initiates a third party service call request of a server, the client generates a first channel connection request according to the third party service call request of the server, the first channel connection request is sent to the server, and the server creates a first communication channel according to the first channel connection request.
Fig. 9 illustrates a block diagram of a computing device 900 provided in accordance with one embodiment of the present specification. The components of computing device 900 include, but are not limited to, memory 910 and processor 920. Processor 920 is coupled to memory 910 via bus 930 with database 950 configured to hold data.
Computing device 900 also includes an access device 940, access device 940 enabling computing device 900 to communicate via one or more networks 960. Examples of such networks include the Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the internet. Access device 940 may include one or more of any type of network interface, wired or wireless (e.g., a Network Interface Card (NIC)), such as an IEEE802.11 Wireless Local Area Network (WLAN) wireless interface, a worldwide interoperability for microwave access (Wi-MAX) interface, an ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a bluetooth interface, a Near Field Communication (NFC) interface, and so forth.
In one embodiment of the present description, the above-described components of computing device 900 and other components not shown in FIG. 9 may also be connected to each other, for example, by a bus. It should be understood that the block diagram of the computing device illustrated in FIG. 9 is for exemplary purposes only and is not intended to limit the scope of the present description. Those skilled in the art may add or replace other components as desired.
Computing device 900 may be any type of stationary or mobile computing device including a mobile computer or mobile computing device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), mobile phone (e.g., smart phone), wearable computing device (e.g., smart watch, smart glasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop computer or PC. Computing device 900 may also be a mobile or stationary server.
Wherein the processor 920 is configured to execute computer-executable instructions that, when executed by the processor, implement the steps of the data processing method described above. The foregoing is a schematic illustration of a computing device of this embodiment. It should be noted that, the technical solution of the computing device and the technical solution of the processing method of the communication channel based on the cloud application belong to the same concept, and details of the technical solution of the computing device, which are not described in detail, can be referred to the description of the technical solution of the processing method of the communication channel based on the cloud application.
An embodiment of the present disclosure also provides a computer-readable storage medium storing computer-executable instructions that, when executed by a processor, implement the steps of the method for processing a communication channel based on a cloud application.
The above is an exemplary version of a computer-readable storage medium of the present embodiment. It should be noted that, the technical solution of the storage medium and the technical solution of the processing method of the communication channel based on the cloud application belong to the same concept, and details of the technical solution of the storage medium which are not described in detail can be referred to the description of the technical solution of the processing method of the communication channel based on the cloud application.
An embodiment of the present disclosure further provides a computer program, where the computer program, when executed in a computer, causes the computer to execute the steps of the method for processing a communication channel based on a cloud application.
The above is an exemplary version of a computer program of the present embodiment. It should be noted that, the technical solution of the computer program and the technical solution of the processing method of the communication channel based on the cloud application belong to the same concept, and details of the technical solution of the computer program, which are not described in detail, can be referred to the description of the technical solution of the processing method of the communication channel based on the cloud application.
The foregoing describes specific embodiments of the present disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
The computer instructions include computer program code that may be in source code form, object code form, executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the computer readable medium contains content that can be appropriately scaled according to the requirements of jurisdictions in which such content is subject to legislation and patent practice, such as in certain jurisdictions in which such content is subject to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.
It should be noted that, for simplicity of description, the foregoing method embodiments are all expressed as a series of combinations of actions, but it should be understood by those skilled in the art that the embodiments are not limited by the order of actions described, as some steps may be performed in other order or simultaneously according to the embodiments of the present disclosure. Further, those skilled in the art will appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily all required for the embodiments described in the specification.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to the related descriptions of other embodiments.
The preferred embodiments of the present specification disclosed above are merely used to help clarify the present specification. Alternative embodiments are not intended to be exhaustive or to limit the invention to the precise form disclosed. Obviously, many modifications and variations are possible in light of the teaching of the embodiments. The embodiments were chosen and described in order to best explain the principles of the embodiments and the practical application, to thereby enable others skilled in the art to best understand and utilize the invention. This specification is to be limited only by the claims and the full scope and equivalents thereof.

Claims (12)

1. A processing method of a communication channel based on cloud application is applied to a server running cloud application, and comprises the following steps:
Receiving a connection request sent by a client, and creating a main communication channel and a basic communication channel based on the connection request, wherein the basic communication channel is created based on the main communication channel;
receiving a call request of a target item, and generating a communication channel creation request based on the call request;
Determining a channel identifier according to the communication channel creation request, and sending the channel identifier to the client through the basic communication channel;
and receiving a first channel connection request fed back by the client, and creating a first communication channel according to the first channel connection request.
2. The method of claim 1, determining a channel identification from the communication channel creation request and transmitting the channel identification to a client, comprising:
Determining a channel identifier according to the communication channel creation request, and creating a first channel list based on the channel identifier;
And sending the first channel list to a client.
3. The method of claim 1, determining a channel identification from the communication channel creation request and transmitting the channel identification to a client, comprising:
Determining a channel to be connected in a channel resource pool, and acquiring a channel identifier corresponding to the channel to be connected;
And sending the channel identification to the client.
4. The method of claim 1, creating a base communication channel based on the connection request, comprising:
Transmitting a base channel list to the client in response to the connection request, wherein the base channel list is transmitted through the primary communication channel;
and receiving a basic channel connection request sent by the client in response to the basic channel list, and creating a basic communication channel according to the basic channel connection request.
5. The method of claim 1, after creating a first communication channel from the first channel connection request, the method further comprising:
Invoking the target item based on the first communication channel.
6. The method of claim 1, the method further comprising:
Receiving a disconnect request for the first communication channel;
interrupting the first communication channel in response to the disconnect request.
7. The method of claim 6, after interrupting the first communication channel in response to the disconnect request, the method further comprising:
And clearing channel resources of the first communication channel.
8. A processing apparatus of a communication channel based on a cloud application, applied to a server running a cloud application, comprising:
The request receiving module is configured to receive a connection request sent by a client;
a channel creation module configured to create a primary communication channel and a base communication channel based on the connection request, wherein the base communication channel is created based on the primary communication channel:
The receiving module is configured to receive a call request of a target item and generate a communication channel creation request based on the call request;
the sending module is configured to determine a channel identifier according to the communication channel creation request and send the channel identifier to the client through the basic communication channel;
The creation module is configured to receive a first channel connection request fed back by the client and create a first communication channel according to the first channel connection request.
9. A processing system for a cloud application-based communication channel, comprising:
the cloud application server comprises a client and a server running a cloud application; wherein,
The server is configured to receive a connection request sent by a client and create a main communication channel and a basic communication channel based on the connection request, wherein the basic communication channel is created based on the main communication channel;
The server is further configured to receive a call request of a target item, generate a communication channel creation request based on the call request, determine a channel identifier according to the communication channel creation request, and send the channel identifier to the client through the base communication channel;
The client is configured to send a first channel connection request to the server according to the channel identifier;
the server is further configured to receive the first channel connection request and create a first communication channel according to the first channel connection request.
10. A processing system for a cloud application-based communication channel, comprising:
the cloud application server comprises a client and a server running a cloud application; wherein,
The client is configured to send a connection request and a first channel connection request, wherein the connection request is used for creating a main communication channel and a basic communication channel, and the first channel connection request carries a channel identifier;
the server is configured to create a first communication channel with the client based on the channel identification.
11. A computing device, comprising:
A memory and a processor;
the memory is configured to store computer executable instructions, the processor being configured to execute the computer executable instructions, which when executed by the processor, implement the steps of the method of any one of claims 1-7.
12. A computer readable storage medium storing computer executable instructions which when executed by a processor implement the steps of the method of any one of claims 1 to 7.
CN202210189400.6A 2022-02-28 2022-02-28 Cloud application-based communication channel processing method, device and system Active CN114598739B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210189400.6A CN114598739B (en) 2022-02-28 2022-02-28 Cloud application-based communication channel processing method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210189400.6A CN114598739B (en) 2022-02-28 2022-02-28 Cloud application-based communication channel processing method, device and system

Publications (2)

Publication Number Publication Date
CN114598739A CN114598739A (en) 2022-06-07
CN114598739B true CN114598739B (en) 2024-07-09

Family

ID=81807634

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210189400.6A Active CN114598739B (en) 2022-02-28 2022-02-28 Cloud application-based communication channel processing method, device and system

Country Status (1)

Country Link
CN (1) CN114598739B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103023987A (en) * 2012-11-27 2013-04-03 蓝盾信息安全技术股份有限公司 Multiplexing method based on transmission control protocol (TCP) connection
CN109639749A (en) * 2018-10-16 2019-04-16 平安科技(深圳)有限公司 Access method, device, equipment and the storage medium of cloud desktop

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8621031B2 (en) * 2003-04-29 2013-12-31 Oracle International Corporation Method and apparatus using connection pools in communication networks
KR101346077B1 (en) * 2012-05-25 2013-12-31 삼성에스디에스 주식회사 Push client and method for pushing sevice using the same
US9948571B2 (en) * 2013-06-28 2018-04-17 Oracle International Corporation System and method for cloud connection pool
US20150142982A1 (en) * 2013-11-15 2015-05-21 Microsoft Corporation Preservation of connection session
CN107172719B (en) * 2017-06-27 2020-06-09 青岛海信移动通信技术股份有限公司 Method for establishing a communication connection
CN109962953A (en) * 2017-12-25 2019-07-02 深圳市优必选科技有限公司 client communication establishing method and device
CN114208112A (en) * 2019-06-28 2022-03-18 亚马逊技术有限公司 Connection pool for scalable network services
CN113965516B (en) * 2020-07-03 2023-10-13 华为技术有限公司 Method and device for transmitting data
CN112929716A (en) * 2021-02-10 2021-06-08 江苏视博云信息技术有限公司 Method, device and system for live broadcast interaction of cloud application

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103023987A (en) * 2012-11-27 2013-04-03 蓝盾信息安全技术股份有限公司 Multiplexing method based on transmission control protocol (TCP) connection
CN109639749A (en) * 2018-10-16 2019-04-16 平安科技(深圳)有限公司 Access method, device, equipment and the storage medium of cloud desktop

Also Published As

Publication number Publication date
CN114598739A (en) 2022-06-07

Similar Documents

Publication Publication Date Title
CN112486074B (en) Data processing system, method and device
US20170034149A1 (en) Intelligent Communications Method, Terminal, and System
US9686506B2 (en) Method, apparatus, system, and storage medium for video call and video call control
CN107800901B (en) User call processing method, device, computer equipment and storage medium
CN111538605B (en) Distributed data access layer middleware and command execution method and device
EP2747380A1 (en) Data processing method, access checking equipment and system thereof
EP2974159B1 (en) Method, device and system for voice communication
US7941134B2 (en) Push-to-talk communication system and push-to-talk communication method
CN111510493B (en) Distributed data transmission method and device
CN111200606A (en) Deep learning model task processing method, system, server and storage medium
JP6549261B2 (en) Application implementation method and service controller
CN114598739B (en) Cloud application-based communication channel processing method, device and system
EP2949083B1 (en) Receiving a communication event
WO2013078614A1 (en) Audio compression algorithm selection method, device and communication system in scenario of virtual desktop
CN112422609A (en) Programming device and service request connection method
CN114035893A (en) Virtual machine management method and system
CN111767271A (en) Data processing method and device
CN111639290A (en) Method and device for processing access to online channel financial products
US20220400229A1 (en) Conference creation method, terminal, server end, and storage medium
CN112995333B (en) Remote file activation method, system and related device
CN115002749B (en) IP address allocation method and device, storage medium and electronic equipment
CN115914466B (en) Voice interaction method and device based on voice stream robot and storage medium
CN115174107B (en) Authentication method, device, equipment and storage medium for virtual user
CN115529375B (en) Interface display method and device and electronic equipment
CN115622992A (en) File downloading method, device, equipment and medium based on Wi-Fi direct connection

Legal Events

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