CN117579679B - Signaling interaction method and device, electronic equipment and storage medium - Google Patents
Signaling interaction method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN117579679B CN117579679B CN202410051100.0A CN202410051100A CN117579679B CN 117579679 B CN117579679 B CN 117579679B CN 202410051100 A CN202410051100 A CN 202410051100A CN 117579679 B CN117579679 B CN 117579679B
- Authority
- CN
- China
- Prior art keywords
- signaling
- signaling channel
- channel
- cloud server
- terminal
- 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
Links
- 230000011664 signaling Effects 0.000 title claims abstract description 581
- 230000003993 interaction Effects 0.000 title claims abstract description 55
- 238000000034 method Methods 0.000 title claims abstract description 47
- 230000000977 initiatory effect Effects 0.000 claims description 7
- 230000004044 response Effects 0.000 claims description 6
- 238000004590 computer program Methods 0.000 claims description 4
- 230000037361 pathway Effects 0.000 claims 2
- 230000019491 signal transduction Effects 0.000 claims 2
- 108091006146 Channels Proteins 0.000 description 242
- 238000010586 diagram Methods 0.000 description 8
- 230000002452 interceptive effect Effects 0.000 description 8
- 230000007704 transition Effects 0.000 description 8
- 230000015654 memory Effects 0.000 description 6
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000005457 optimization Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/131—Protocols for games, networked simulations or virtual reality
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephonic Communication Services (AREA)
Abstract
The application provides a signaling interaction method and device, electronic equipment and a storage medium, wherein the method comprises the following steps: starting to establish a second signaling channel from the terminal and a cloud server, and if the refer signaling sent by the cloud server through the second signaling channel is not received within a preset time, establishing a first signaling channel with the cloud server; after receiving the offer signaling sent by the cloud server, taking a signaling channel for receiving the offer signaling as a target signaling channel, and sending an answer signaling to the cloud server through the target signaling channel.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a signaling interaction method and apparatus, an electronic device, and a storage medium.
Background
With the development of cloud application (such as cloud game) technology, the application operation mode with smaller consumption on the performance of the user terminal is increasingly accepted by application companies, platforms and users. The first frame duration (refer to the time consumption of the terminal to acquire the first frame cloud application picture after the cloud application is started) is one of main indexes of cloud application user experience, and efficient and rapid signaling interaction is an important factor for reducing the first frame duration.
In the prior art, signaling is generally interacted through a single signaling channel, but for cloud applications, for the requirement of system upgrading, problems of version compatibility and network compatibility exist for the service scene of transition from an old signaling channel to an optimized signaling channel.
There is no related solution in the prior art that solves the above-mentioned problems/needs.
Disclosure of Invention
In summary, the embodiment of the application provides a signaling interaction method and device, electronic equipment and storage medium, which can solve the problems of version compatibility and network compatibility of cloud application in a traffic scene for signaling channel transition.
In a first aspect, an embodiment of the present application provides a signaling interaction method, which is applied to a terminal, and includes:
Starting to establish a second signaling channel from the terminal and a cloud server, and if the refer signaling sent by the cloud server through the second signaling channel is not received within a preset time, establishing a first signaling channel with the cloud server;
After receiving the offer signaling sent by the cloud server, taking a signaling channel for receiving the offer signaling as a target signaling channel, and sending an answer signaling to the cloud server through the target signaling channel, wherein the target signaling channel is one signaling channel of the first signaling channel and the second signaling channel.
In a second aspect, an embodiment of the present application provides a signaling interaction method, which is applied to a cloud server, and includes:
Transmitting an offer signaling to a terminal through a first signaling channel and/or a second signaling channel, wherein the time for initiating establishment of the second signaling channel is earlier than that of the first signaling channel;
and receiving an answer signaling sent by the terminal through a target signaling channel, wherein the target signaling channel is one signaling channel of the first signaling channel and the second signaling channel, and the target signaling channel is determined based on the time of receiving the offer signaling or the received signaling channel.
In a third aspect, an embodiment of the present application further provides a signaling interaction device, which is applied to a terminal, including:
The establishing unit is used for starting to establish a second signaling channel from the terminal and the cloud server, and if the offer signaling sent by the cloud server through the second signaling channel is not received within a preset time, establishing a first signaling channel with the cloud server;
and the first sending unit is used for taking a signaling channel for receiving the offer signaling as a target signaling channel after receiving the offer signaling sent by the cloud server, and sending an answer signaling to the cloud server through the target signaling channel, wherein the target signaling channel is one signaling channel of the first signaling channel and the second signaling channel.
In a fourth aspect, an embodiment of the present application further provides a signaling interaction device, which is applied to a cloud server, including:
A second sending unit, configured to send an offer signaling to a terminal through a first signaling channel and/or a second signaling channel, where a time for initiating establishment of the second signaling channel is earlier than that of the first signaling channel;
And the receiving unit is used for receiving the answer signaling sent by the terminal through a target signaling channel, wherein the target signaling channel is one signaling channel in the first signaling channel and the second signaling channel, and the target signaling channel is determined based on the time of receiving the offer signaling or the received signaling channel.
In a fifth aspect, embodiments of the present application also provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the signalling interaction method according to the first or second aspect.
In a sixth aspect, an embodiment of the present application further provides an electronic device, including: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating over the bus when the electronic device is running, the processor executing the machine-readable instructions to perform the steps of the signaling interaction method as described in the first or second aspect.
In summary, the signaling interaction method and apparatus, electronic device and storage medium provided in the embodiments of the present application, a terminal first interacts signaling with a cloud server through a second signaling channel (i.e., an optimized signaling channel), if the signaling of an offer sent by the cloud server is not received within a preset time, then interacts signaling with the cloud server through a first signaling channel (i.e., an old signaling channel), and uses the signaling channel that first receives the offer signaling as a target signaling channel, and sends answer signaling to the cloud server through the target signaling channel, so that, regardless of the version of the SDK of the terminal and STREAMING SERVER of the cloud server, the optimized signaling channel can be used as a signaling channel with high priority and a signaling channel capable of interacting signaling can be found, and under the condition that the signaling speed of interaction of the old signaling channel is faster, the problem of version compatibility and network compatibility of cloud application in a service scenario where the signaling channel transitions can be solved through the old signaling channel interaction signaling.
Drawings
Fig. 1 is a schematic flow chart of a signaling interaction method according to an embodiment of the present application;
Fig. 2 is a flow chart of another signaling interaction method according to an embodiment of the present application;
fig. 3 is a signaling optimization architecture diagram provided in an embodiment of the present application;
fig. 4 is a schematic structural diagram of a signaling interaction device according to an embodiment of the present application;
Fig. 5 is a schematic structural diagram of another signaling interaction device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described with reference to the accompanying drawings in the embodiments of the present application, and it should be understood that the drawings in the present application are for the purpose of illustration and description only and are not intended to limit the scope of the present application. In addition, it should be understood that the schematic drawings are not drawn to scale. A flowchart, as used in this disclosure, illustrates operations implemented according to some embodiments of the present application. It should be understood that the operations of the flow diagrams may be implemented out of order and that steps without logical context may be performed in reverse order or concurrently. Moreover, one or more other operations may be added to or removed from the flow diagrams by those skilled in the art under the direction of the present disclosure.
In addition, the described embodiments are only some, but not all, embodiments of the application. The components of the embodiments of the present application generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the application, as presented in the figures, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by a person skilled in the art without making any inventive effort, are intended to be within the scope of the present application.
It should be noted that the term "comprising" will be used in embodiments of the application to indicate the presence of the features stated hereafter, but not to exclude the addition of other features.
In the prior art, signaling is generally interacted through a single signaling channel, but for cloud applications, for the requirement of system upgrading, problems of version compatibility and network compatibility exist for the service scene of transition from an old signaling channel to an optimized signaling channel. For example, the SDK (Software Development Kit ) of the terminal has version 1.0 and version 2.0, and STREAMING SERVER (which is used to collect cloud application pictures rendered by the cloud application and send the cloud application pictures to the terminal after encoding, that is, a program that actually provides cloud services) of the cloud server also has version 1.0, version 2.0, SDK of version 1.0 and version STREAMING SERVER of version 1.0 only support interactive signaling through old signaling channels, and SDK of version 2.0 and version STREAMING SERVER of version 2.0 support interactive signaling through both old signaling channels and optimized signaling channels. If the SDK of version 1.0 is assigned STREAMING SERVER of version 2.0, then the SDK of version 1.0 and STREAMING SERVER of version 2.0 cannot perform signaling interaction through the optimized signaling channel.
That is, after the SDK is allocated STREAMING SERVER, it needs to ensure that the two can exchange signaling through the existing signaling channel and the optimized signaling channel as much as possible, and in this service scenario, if the terminal exchanges signaling faster through the old signaling channel, it needs to ensure that the terminal exchanges signaling through the old signaling channel.
There is no related solution in the prior art that solves the above-mentioned problems/needs.
Referring to fig. 1, an embodiment of the present application provides a signaling interaction method, which is applied to a terminal, and includes:
S10, starting to establish a second signaling channel from the terminal and a cloud server, and if the refer signaling sent by the cloud server through the second signaling channel is not received within preset time, establishing a first signaling channel with the cloud server;
In this embodiment, it should be noted that, in a preset time, the case that the refer signaling sent by the cloud server through the second signaling channel is not received includes two cases: firstly, the second signaling channel is not successfully established, and the natural terminal cannot receive the offer signaling sent by the cloud server through the second signaling channel within preset time; and secondly, the second signaling channel is successfully established, but the refer signaling sent by the cloud server through the second signaling channel is not received in preset time. The preset time may be set as required, for example, 100ms, 200ms, etc., which will not be described herein.
And S11, after receiving the offer signaling sent by the cloud server, taking a signaling channel for receiving the offer signaling as a target signaling channel, and sending an answer signaling to the cloud server through the target signaling channel, wherein the target signaling channel is one signaling channel of the first signaling channel and the second signaling channel.
In this embodiment, it should be noted that the capability supported by the cloud server may be carried in the offer signaling, including coding capability, a packaging mode, a sampling rate of audio, a protocol type, and the like; the answer signaling may carry capabilities supported by the terminal and capable of peer-to-peer with the server, including decoding capabilities, etc.
The foregoing examples are described. If the SDK of version 1.0 is assigned STREAMING SERVER of version 1.0, then since the SDK of version 1.0 and STREAMING SERVER of version 1.0 only support interactive signaling through the old signaling path (i.e., the first signaling path) and do not support interactive signaling through the optimized signaling path (i.e., the second signaling path), the SDK of version 1.0 and STREAMING SERVER of version 1.0 cannot establish a connection through the optimized signaling path, the SDK of version 1.0 will not receive the STREAMING SERVER transmitted by version 1.0 for a preset time, then the SDK of version 1.0 and STREAMING SERVER of version 1.0 establish the old signaling path, receive the STREAMING SERVER transmitted by version 1.0 through the old signaling path, and transmit the answer signaling to the STREAMING SERVER of version 1.0 through the old signaling path.
If the SDK of version 2.0 is allocated STREAMING SERVER of version 2.0, because the SDK of version 2.0 and STREAMING SERVER of version 2.0 support interactive signaling through both the old signaling channel and the optimized signaling channel, the SDK of version 2.0 and STREAMING SERVER of version 2.0 are connected through the optimized signaling channel first, if the SDK of version 2.0 can receive the offer signaling sent by STREAMING SERVER of version 2.0 in a preset time, then the answer signaling is sent to STREAMING SERVER of version 2.0 through the optimized signaling channel; if the SDK of version 2.0 does not receive the offer signaling sent by the STREAMING SERVER of version 2.0 within the preset time, then a connection is established with the STREAMING SERVER of version 2.0 through the old signaling channel, then which signaling channel receives the offer signaling first, then which signaling channel sends the offer signaling to the STREAMING SERVER of version 2.0, for example, the old signaling channel receives the offer signaling first, then the SDK of version 2.0 sends the offer signaling to STREAMING SERVER of version 2.0 through the old signaling channel, and if the optimized signaling channel is in a connected state, then the optimized signaling channel can be closed, and then, for example, the offer signaling is received first through the optimized signaling channel, then the SDK of version 2.0 sends the offer signaling to STREAMING SERVER of version 2.0 through the optimized signaling channel, and if the old signaling channel is in a connected state, then the old signaling channel can be closed. The signaling interaction through the optimized signaling channel is prioritized, and the signaling interaction through the old signaling channel is ensured under the condition that the signaling interaction speed of the old signaling channel is higher.
If the SDK of version 1.0 is allocated STREAMING SERVER of version 2.0, since the SDK of version 1.0 only supports interactive signaling through the old signaling channel, not supports interactive signaling through the optimized signaling channel, and the SDK of version 2.0 supports interactive signaling through both the old signaling channel and the optimized signaling channel, so that the SDK of version 1.0 and the STREAMING SERVER of version 2.0 cannot establish a connection through the optimized signaling channel, the SDK of version 1.0 will not receive the offer signaling sent by the STREAMING SERVER of version 2.0 within a preset time, then the SDK of version 1.0 and the STREAMING SERVER of version 2.0 establish the old signaling channel, receive the offer signaling sent by the STREAMING SERVER of version 2.0 through the old signaling channel, and send the answer signaling to the STREAMING SERVER of version 2.0 through the old signaling channel.
If version 2.0 of the SDK is assigned STREAMING SERVER of version 1.0 in accordance with version 1.0 of the SDK is assigned STREAMING SERVER of version 2.0, the details are not repeated here.
After the signaling interaction between the terminal and the cloud server is completed, a data channel can be established, and the cloud server encodes the acquired cloud application picture (including the first frame cloud application picture) and then sends the encoded cloud application picture to the terminal by using the data channel.
According to the signaling interaction method provided by the embodiment of the application, the terminal firstly interacts signaling with the cloud server through the second signaling channel (namely the optimized signaling channel), if the offer signaling sent by the cloud server is not received within the preset time, the terminal interacts signaling with the cloud server through the first signaling channel (namely the old signaling channel), and the signaling channel which receives the offer signaling first is used as the target signaling channel, and the answer signaling is sent to the cloud server through the target signaling channel, so that the problem of compatibility of version and network compatibility of cloud application in a service scene for carrying out signaling channel transition can be solved through the signaling channel which is optimized through the scheme, the SDK of the terminal and STREAMING SERVER of the cloud server are used as the signaling channel with high priority and the signaling channel which can interact signaling is found.
On the basis of the foregoing method embodiment, the method may further include:
And if the offer signaling sent by the cloud server through the second signaling channel is received within the preset time, taking the second signaling channel as a target signaling channel, and sending an answer signaling to the cloud server through the target signaling channel.
On the basis of the foregoing method embodiment, the method may further include:
and sending a handlegram signaling to the cloud server through the first signaling channel and/or the second signaling channel, and receiving a response signaling sent by the cloud server (the response signaling is used for indicating that the cloud server receives the handlegram signaling), wherein the handlegram signaling carries the device information of the terminal.
In this embodiment, it should be noted that, the SDK of the terminal may send, to the cloud server, device information of the terminal, such as resolution, refresh rate, device name, and the like, which may be carried in the handlegram signaling. After the cloud server receives the handleshake signaling, the capability of the terminal for supporting the better cloud server (such as by searching the corresponding relationship between the device information and the capability of the cloud server) can be determined based on the device information of the terminal, so that the capability of the terminal can be more easily matched. For example, the cloud server determines, based on the device information of the terminal, that the coding formats in the coding capability of the terminal supporting the better cloud server are ranked as H264 and VP8 according to the priority order, then the offer signaling generated by the cloud server may include H264 and VP8 (where H264 is ranked before and VP8 is ranked after), after receiving the offer signaling, the SDK selects the format supported by the terminal from H264 and VP8, for example, the terminal supports H264 and VP8, then the SDK generates an answer signaling carrying H264 and VP8 (where H264 is ranked before and VP8 is ranked after), and sends the answer signaling to the cloud server. After receiving the answer signaling, the cloud server may use the H264, which is the first in order, as the encoding format used for the SDK.
On the basis of the foregoing method embodiment, the first signaling channel may be a signaling service channel deployed in the center, and the second signaling channel may be a signaling service channel deployed in the edge.
The first signaling channel can be a signaling service channel deployed in the center, namely, all SDKs need to be connected with a center server and interact signaling with a cloud server through the center server, and the pressure of the center server is high; the second signaling channel can be a signaling service channel deployed at the edge, belongs to a distributed deployment mode, has smaller server pressure, and can be directly connected with a cloud server in an internet data center IDC machine room of a place where the SDK is located, so that the signaling interaction speed is faster.
Referring to fig. 2, an embodiment of the present application provides a signaling interaction method, which is applied to a cloud server, and includes:
S20, transmitting an offer signaling to a terminal through a first signaling channel and/or a second signaling channel, wherein the time for initiating establishment of the second signaling channel is earlier than that of the first signaling channel;
In this embodiment, it should be noted that the implementation of step S20 corresponds to the foregoing embodiment, specifically, if the SDK and STREAMING SERVER establish the second signaling channel (that is, the case that the terminal receives the offer signaling sent by the cloud service in the preset time), the cloud server sends the offer signaling to the terminal through the second signaling channel; if the SDK and STREAMING SERVER establish the first signaling channel (i.e., the second signaling channel is not established successfully, in this case, the terminal cannot receive the refer signaling sent by the cloud service in a preset time), the cloud server sends the refer signaling to the terminal through the first signaling channel; and if the SDKs and STREAMING SERVER establish both the second signaling channel and the first signaling channel (that is, the second signaling channel is successfully established and the terminal does not receive the offer signaling sent by the cloud service within the preset time), the cloud server sends the offer signaling to the terminal through the second signaling channel and the first signaling channel. That is, the logic of the cloud server for sending the offer signaling corresponds to the logic of the terminal for establishing the signaling channel, and after the corresponding signaling channel is established successfully, the offer signaling is sent through the corresponding signaling channel, and the specific content is correspondingly described in the foregoing embodiment and will not be repeated here.
S21, receiving an answer signaling sent by the terminal through a target signaling channel, wherein the target signaling channel is one signaling channel of the first signaling channel and the second signaling channel, and the target signaling channel is determined based on the time of receiving the offer signaling or the received signaling channel.
In this embodiment, it should be noted that, in step S21, the determination of the target signaling channel based on the signaling channel received by the offer signaling refers to which signaling channel the terminal receives the offer signaling through first, and which signaling channel is the target signaling channel.
According to the signaling interaction method provided by the embodiment of the application, corresponding to the signaling interaction method applied to the terminal, the cloud server firstly interacts signaling with the terminal through the second signaling channel (namely the optimized signaling channel), if the terminal does not receive the offer signaling sent by the cloud server within preset time, the terminal interacts signaling with the terminal through the first signaling channel (namely the old signaling channel), so that the terminal takes the signaling channel which receives the offer signaling firstly as a target signaling channel, receives the answer signaling sent by the terminal through the target signaling channel, and the problem of version compatibility and network compatibility in a service scene of carrying out signaling channel transition can be solved through the old signaling channel interaction signaling under the condition that the signaling channel interaction speed of the old signaling channel is faster, regardless of the version of SDK (software development kit) of the terminal and STREAMING SERVER of the cloud server can be used as the signaling channel with high priority and find the signaling channel which can interact signaling.
On the basis of the foregoing method embodiment, before the sending of the offer signaling to the terminal through the first signaling channel and/or the second signaling channel, the method may further include:
And receiving a handshake signaling sent by the terminal through the first signaling channel and/or the second signaling channel, sending a response signaling to the terminal, and generating the offer signaling based on the handshake signaling, wherein the handshake signaling carries equipment information of the terminal.
Fig. 3 is a diagram of a signaling optimization architecture in accordance with the present application. A signaling interaction diagram of a second signaling channel is shown in fig. 3, the first signaling channel not being represented in fig. 3. In fig. 3, an nginnx Server and a cloud Server (which may be a container running in an example system, where a cloud application runs in the container) are deployed in an IDC machine room, STREAMING SERVER and a WS Server (WebSocket Server, webSocket is a full duplex communication protocol) are deployed on the cloud Server, and when the cloud Server is started, STREAMING SERVER and the WS Server are started. STREAMING SERVER after startup, proactively and WS Server establish TCP (Transmission Control Protocol ) connections. And when the user starts the cloud application, the SDK on the terminal sends a cloud play request to a first cloud server in the central computer room, the first cloud server requests a second cloud server to distribute cloud servers providing cloud services in the IDC computer room through the central controller in the central computer room, and the IP and the port of the Nginx server are obtained and returned to the SDK. After obtaining IP and port of Nginx Server, SDK establishes WS (WebSocket) connection with Nginx Server, then Nginx Server establishes WS connection with WS Server, at this time second signaling channel is established. And then the SDK sends a handshake signaling to STREAMING SERVER through a second signaling channel, STREAMING SERVER returns a response signaling through the second signaling channel after receiving the handshake signaling, generates a refer signaling according to the handshake signaling, and sends the refer signaling to the SDK through the second signaling channel. Returning to the SDK, starting from the initiation of the establishment of the second signaling channel, if the SDK does not receive STREAMING SERVER the offer signaling sent through the second signaling channel within a preset time, the SDK establishes a connection with STREAMING SERVER of the first signaling channel, STREAMING SERVER generates the offer signaling, and sends the offer signaling to the SDK through the first signaling channel. And then if the SDK receives the offer signaling through the second signaling channel, generating an answer signaling based on the offer signaling, sending the answer signaling to STREAMING SERVER through the second signaling channel, and closing the first signaling channel. STREAMING SERVER after receiving the answer signaling, generate a candidate signaling (including the address of the network server), and send the candidate signaling to the SDK through a second signaling channel, so that the SDK establishes a data channel with STREAMING SERVER based on the candidate signaling to transmit audio and video data.
In addition, it should be noted that fig. 3 is only an example of a specific optimized signaling channel, and the architecture in fig. 3 may be modified, for example, the nginnx Server is removed, STREAMING SERVER and WS Server are integrated into a whole, and the SDK establishes a long connection with STREAMING SERVER through the IP and ports exposed by the cloud Server.
Referring to fig. 4, a signaling interaction device provided in an embodiment of the present application is applied to a terminal, and includes:
An establishing unit 40, configured to, starting from the terminal and the cloud server to establish a second signaling channel, and if an offer signaling sent by the cloud server through the second signaling channel is not received within a preset time, establish a first signaling channel with the cloud server;
And a first sending unit 41, configured to send, after receiving the offer signaling sent by the cloud server, answer signaling to the cloud server through a target signaling channel, where the target signaling channel is one of the first signaling channel and the second signaling channel.
According to the signaling interaction device provided by the embodiment of the application, the terminal firstly interacts signaling with the cloud server through the second signaling channel (namely the optimized signaling channel), if the offer signaling sent by the cloud server is not received within the preset time, the terminal interacts signaling with the cloud server through the first signaling channel (namely the old signaling channel), and the signaling channel which receives the offer signaling first is used as the target signaling channel, and the answer signaling is sent to the cloud server through the target signaling channel, so that the problem of version compatibility and network compatibility of cloud application in a service scene for carrying out signaling channel transition can be solved through the signaling channel which is optimized through the scheme, the SDK of the terminal and STREAMING SERVER of the cloud server are used as the signaling channel with high priority and the signaling channel which can interact signaling is found.
The implementation process of the signaling interaction device provided by the embodiment of the application is consistent with the signaling interaction method provided by the embodiment of the application, and the achieved effect is the same as that of the signaling interaction method provided by the embodiment of the application, and the details are not repeated here.
Referring to fig. 5, a signaling interaction device provided by an embodiment of the present application is applied to a cloud server, and includes:
A second sending unit 50, configured to send an offer signaling to a terminal through a first signaling channel and/or a second signaling channel, where a time for initiating establishment of the second signaling channel is earlier than that of the first signaling channel;
And a receiving unit 51, configured to receive an answer signaling sent by the terminal through a target signaling channel, where the target signaling channel is one signaling channel of the first signaling channel and the second signaling channel, and the target signaling channel is determined based on a time of receiving the offer signaling or a received signaling channel.
The signaling interaction device provided by the embodiment of the application corresponds to the signaling interaction device applied to the terminal, the cloud server firstly interacts signaling with the terminal through the second signaling channel (i.e. the optimized signaling channel), if the terminal does not receive the offer signaling sent by the cloud server within a preset time, the terminal interacts signaling with the terminal through the first signaling channel (i.e. the old signaling channel), so that the terminal takes the signaling channel which receives the offer signaling firstly as a target signaling channel, receives the answer signaling sent by the terminal through the target signaling channel, and the problem of version compatibility and network compatibility of cloud application in a service scene for carrying out signaling channel transition can be solved by taking the optimized signaling channel as a signaling channel with high priority and finding out the signaling channel capable of interacting signaling through the old signaling channel under the condition that the interaction signaling speed of the old signaling channel is faster.
The implementation process of the signaling interaction device provided by the embodiment of the application is consistent with the signaling interaction method provided by the embodiment of the application, and the achieved effect is the same as that of the signaling interaction method provided by the embodiment of the application, and the details are not repeated here.
As shown in fig. 6, an electronic device provided in an embodiment of the present application includes: a processor 60, a memory 61 and a bus 62, said memory 61 storing machine readable instructions executable by said processor 60, said processor 60 and said memory 61 communicating via bus 62 when the electronic device is running, said processor 60 executing said machine readable instructions to perform steps of a signaling interaction method as described above or steps of a method of remotely recovering a system of server devices.
In particular, the above-mentioned memory 61 and the processor 60 can be general-purpose memories and processors, and are not particularly limited herein, and the above-mentioned signaling interaction method or the method of remotely restoring the system of the server apparatus can be performed when the processor 60 runs the computer program stored in the memory 61.
Corresponding to the above-mentioned signaling interaction method or the method for remotely recovering the system of the server device, the embodiments of the present application further provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the signaling interaction method or the steps of the method for remotely recovering the system of the server device.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily appreciate variations or alternatives within the scope of the present application. Therefore, the protection scope of the application is subject to the protection scope of the claims.
Claims (9)
1. A signaling interaction method applied to a terminal, comprising:
starting to establish a second signaling channel from the terminal and the cloud server, if the refer signaling sent by the cloud server through the second signaling channel is not received within a preset time, establishing a first signaling channel with the cloud server, wherein the first signaling channel is an old signaling channel, and the second signaling channel is an optimized signaling channel;
After receiving the offer signaling sent by the cloud server, taking a signaling channel for receiving the offer signaling as a target signaling channel, and sending an answer signaling to the cloud server through the target signaling channel, wherein the target signaling channel is one signaling channel of the first signaling channel and the second signaling channel; or alternatively
And if the offer signaling sent by the cloud server through the second signaling channel is received within the preset time, taking the second signaling channel as a target signaling channel, and sending an answer signaling to the cloud server through the target signaling channel.
2. The method as recited in claim 1, further comprising:
And sending a handlegram signaling to the cloud server through the first signaling channel and/or the second signaling channel, and receiving a response signaling sent by the cloud server, wherein the handlegram signaling carries the device information of the terminal.
3. The method of claim 1, wherein the first signaling pathway is a centrally deployed signaling service pathway and the second signaling pathway is an edge-deployed signaling service pathway.
4. The signaling interaction method is applied to a cloud server and is characterized by comprising the following steps of:
The method comprises the steps that an offer signaling is sent to a terminal through a first signaling channel and/or a second signaling channel, wherein the time for initiating establishment of the second signaling channel is earlier than that of the first signaling channel, the first signaling channel is an old signaling channel, the second signaling channel is an optimized signaling channel, if the second signaling channel is established between a cloud server and the terminal, the cloud server sends the offer signaling to the terminal through the second signaling channel, or if the first signaling channel is established between the cloud server and the terminal, the cloud server sends the offer signaling to the terminal through the first signaling channel, or if the second signaling channel is established between the cloud server and the terminal, and the first signaling channel is established, the cloud server sends the offer signaling to the terminal through the second signaling channel and the first signaling channel;
And receiving an answer signaling sent by the terminal through a target signaling channel, wherein the target signaling channel is one signaling channel of the first signaling channel and the second signaling channel, the target signaling channel is determined based on the time of receiving the offer signaling or the received signaling channel, and the target signaling channel is determined based on the signaling channel received by the offer signaling, and refers to which signaling channel the terminal receives the offer signaling through which signaling channel is the target signaling channel.
5. The method of claim 4, further comprising, prior to said sending of the offer signaling to the terminal via the first signaling channel and/or the second signaling channel:
And receiving a handshake signaling sent by the terminal through the first signaling channel and/or the second signaling channel, sending a response signaling to the terminal, and generating the offer signaling based on the handshake signaling, wherein the handshake signaling carries equipment information of the terminal.
6. A signaling interaction apparatus, applied to a terminal, comprising:
The establishing unit is used for starting to establish a second signaling channel from the terminal and the cloud server, and if the offer signaling sent by the cloud server through the second signaling channel is not received within a preset time, establishing a first signaling channel with the cloud server, wherein the first signaling channel is an old signaling channel, and the second signaling channel is an optimized signaling channel;
A first sending unit, configured to send an answer signaling to the cloud server through a target signaling channel, where the target signaling channel is one of the first signaling channel and the second signaling channel after receiving the offer signaling sent by the cloud server;
The establishing unit is further configured to, if the offer signaling sent by the cloud server through the second signaling channel is received within the preset time, take the second signaling channel as a target signaling channel, and send answer signaling to the cloud server through the target signaling channel.
7. A signaling interaction device applied to a cloud server, comprising:
The second sending unit is configured to send an offer signaling to the terminal through a first signaling channel and/or a second signaling channel, where the time for initiating establishment of the second signaling channel is earlier than that of the first signaling channel, the first signaling channel is an old signaling channel, the second signaling channel is an optimized signaling channel, if the second signaling channel is established between the cloud server and the terminal, the cloud server sends the offer signaling to the terminal through the second signaling channel, or if the first signaling channel is established between the cloud server and the terminal, the cloud server sends the offer signaling to the terminal through the first signaling channel, or if the second signaling channel is established between the cloud server and the terminal, and the cloud server sends the offer signaling to the terminal through the second signaling channel and the first signaling channel;
And the receiving unit is used for receiving the answer signaling sent by the terminal through a target signaling channel, wherein the target signaling channel is one signaling channel of the first signaling channel and the second signaling channel, the target signaling channel is determined based on the time of receiving the offer signaling or the received signaling channel, and the target signaling channel is determined based on the signaling channel of receiving the offer signaling, and refers to which signaling channel the terminal receives the offer signaling through first, and which signaling channel is the target signaling channel.
8. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when executed by a processor, performs the steps of the signaling interaction method of any of claims 1 to 5.
9. An electronic device, comprising: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating over the bus when the electronic device is running, the processor executing the machine-readable instructions to perform the steps of the signaling interaction method of any of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410051100.0A CN117579679B (en) | 2024-01-15 | 2024-01-15 | Signaling interaction method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410051100.0A CN117579679B (en) | 2024-01-15 | 2024-01-15 | Signaling interaction method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117579679A CN117579679A (en) | 2024-02-20 |
CN117579679B true CN117579679B (en) | 2024-04-19 |
Family
ID=89888437
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410051100.0A Active CN117579679B (en) | 2024-01-15 | 2024-01-15 | Signaling interaction method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117579679B (en) |
Citations (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101252461A (en) * | 2008-04-11 | 2008-08-27 | 华为技术有限公司 | Signaling transmission protecting method, apparatus, terminal and system |
CN101390322A (en) * | 2006-02-22 | 2009-03-18 | 高通股份有限公司 | Method and apparatus for sending signaling information via channel ids |
CN106341214A (en) * | 2016-09-08 | 2017-01-18 | 广东米德有源通信科技有限公司 | Signaling transmission method and system thereof |
CN106879031A (en) * | 2017-03-23 | 2017-06-20 | 江苏中科羿链通信技术有限公司 | A kind of channel wireless radio multi Mesh network resource negotiation method based on double receipts single-shots |
CN107980232A (en) * | 2017-09-30 | 2018-05-01 | 深圳市云中飞网络科技有限公司 | The falling result detection method and device of CSFB a kind of, computer-readable storage medium |
WO2018152772A1 (en) * | 2017-02-24 | 2018-08-30 | 华为技术有限公司 | Network telephone processing method and related network device |
CN109067509A (en) * | 2018-08-22 | 2018-12-21 | 深圳市网心科技有限公司 | Distributed node signal transmission method and system, shared calculate node and signaling gateway |
CN109471654A (en) * | 2018-11-01 | 2019-03-15 | 北京华力创通科技股份有限公司 | A kind of version upgrading method and device |
CN111131747A (en) * | 2019-12-06 | 2020-05-08 | 视联动力信息技术股份有限公司 | Method and device for determining data channel state, electronic equipment and storage medium |
WO2020097835A1 (en) * | 2018-11-14 | 2020-05-22 | 华为技术有限公司 | Multimedia service transmission method and device |
CN111290861A (en) * | 2020-01-20 | 2020-06-16 | 北京字节跳动网络技术有限公司 | Message processing method and device and electronic equipment |
CN113630402A (en) * | 2021-07-29 | 2021-11-09 | 深圳市商汤科技有限公司 | Protocol self-adaption method and device, platform and storage medium |
CN113810476A (en) * | 2021-08-30 | 2021-12-17 | 武汉海昌信息技术有限公司 | Signaling safety transmission method and device for industrial internet |
WO2022062623A1 (en) * | 2020-09-23 | 2022-03-31 | Oppo广东移动通信有限公司 | Remote control method and apparatus, and device, and storage medium, and system |
CN114710471A (en) * | 2022-03-21 | 2022-07-05 | 京东科技信息技术有限公司 | Network-based customer service voice communication method, device, electronic equipment and medium |
WO2022170857A1 (en) * | 2021-02-09 | 2022-08-18 | 深圳市汇顶科技股份有限公司 | Secure transmission method and apparatus for signaling, and server and se chip |
WO2023005316A1 (en) * | 2021-07-30 | 2023-02-02 | 中兴通讯股份有限公司 | Communication method, signaling control network element, media control network element and communication system |
CN115699870A (en) * | 2020-07-22 | 2023-02-03 | Oppo广东移动通信有限公司 | Switching method, device, equipment and storage medium |
CN116074197A (en) * | 2021-11-04 | 2023-05-05 | 华为终端有限公司 | Transmission method and device |
CN116795423A (en) * | 2023-07-10 | 2023-09-22 | 苏州浪潮智能科技有限公司 | Firmware version compatibility management method and device, computer equipment and storage medium |
CN116820527A (en) * | 2023-08-31 | 2023-09-29 | 腾讯科技(深圳)有限公司 | Program upgrading method, device, computer equipment and storage medium |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113722077B (en) * | 2021-11-02 | 2022-03-15 | 腾讯科技(深圳)有限公司 | Data processing method, system, related device, storage medium and product |
-
2024
- 2024-01-15 CN CN202410051100.0A patent/CN117579679B/en active Active
Patent Citations (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101390322A (en) * | 2006-02-22 | 2009-03-18 | 高通股份有限公司 | Method and apparatus for sending signaling information via channel ids |
CN101252461A (en) * | 2008-04-11 | 2008-08-27 | 华为技术有限公司 | Signaling transmission protecting method, apparatus, terminal and system |
CN106341214A (en) * | 2016-09-08 | 2017-01-18 | 广东米德有源通信科技有限公司 | Signaling transmission method and system thereof |
WO2018152772A1 (en) * | 2017-02-24 | 2018-08-30 | 华为技术有限公司 | Network telephone processing method and related network device |
CN106879031A (en) * | 2017-03-23 | 2017-06-20 | 江苏中科羿链通信技术有限公司 | A kind of channel wireless radio multi Mesh network resource negotiation method based on double receipts single-shots |
CN107980232A (en) * | 2017-09-30 | 2018-05-01 | 深圳市云中飞网络科技有限公司 | The falling result detection method and device of CSFB a kind of, computer-readable storage medium |
CN109067509A (en) * | 2018-08-22 | 2018-12-21 | 深圳市网心科技有限公司 | Distributed node signal transmission method and system, shared calculate node and signaling gateway |
CN109471654A (en) * | 2018-11-01 | 2019-03-15 | 北京华力创通科技股份有限公司 | A kind of version upgrading method and device |
WO2020097835A1 (en) * | 2018-11-14 | 2020-05-22 | 华为技术有限公司 | Multimedia service transmission method and device |
CN111131747A (en) * | 2019-12-06 | 2020-05-08 | 视联动力信息技术股份有限公司 | Method and device for determining data channel state, electronic equipment and storage medium |
CN111290861A (en) * | 2020-01-20 | 2020-06-16 | 北京字节跳动网络技术有限公司 | Message processing method and device and electronic equipment |
CN115699870A (en) * | 2020-07-22 | 2023-02-03 | Oppo广东移动通信有限公司 | Switching method, device, equipment and storage medium |
WO2022062623A1 (en) * | 2020-09-23 | 2022-03-31 | Oppo广东移动通信有限公司 | Remote control method and apparatus, and device, and storage medium, and system |
WO2022170857A1 (en) * | 2021-02-09 | 2022-08-18 | 深圳市汇顶科技股份有限公司 | Secure transmission method and apparatus for signaling, and server and se chip |
CN113630402A (en) * | 2021-07-29 | 2021-11-09 | 深圳市商汤科技有限公司 | Protocol self-adaption method and device, platform and storage medium |
WO2023005316A1 (en) * | 2021-07-30 | 2023-02-02 | 中兴通讯股份有限公司 | Communication method, signaling control network element, media control network element and communication system |
CN113810476A (en) * | 2021-08-30 | 2021-12-17 | 武汉海昌信息技术有限公司 | Signaling safety transmission method and device for industrial internet |
CN116074197A (en) * | 2021-11-04 | 2023-05-05 | 华为终端有限公司 | Transmission method and device |
CN114710471A (en) * | 2022-03-21 | 2022-07-05 | 京东科技信息技术有限公司 | Network-based customer service voice communication method, device, electronic equipment and medium |
CN116795423A (en) * | 2023-07-10 | 2023-09-22 | 苏州浪潮智能科技有限公司 | Firmware version compatibility management method and device, computer equipment and storage medium |
CN116820527A (en) * | 2023-08-31 | 2023-09-29 | 腾讯科技(深圳)有限公司 | Program upgrading method, device, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN117579679A (en) | 2024-02-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107682657B (en) | WebRTC-based multi-user voice video call method and system | |
CN113746808B (en) | Converged communication method, gateway, electronic equipment and storage medium for online conference | |
CN111479121B (en) | Live broadcasting method and system based on streaming media server | |
CN112653700B (en) | Website video communication method based on WEBRTC | |
EP2779579A1 (en) | Method, device, and system for realizing voip call in cloud computing environment | |
WO2023138189A1 (en) | Data processing method and apparatus, and device and medium | |
CN103348657B (en) | Flow media playing method, equipment and system | |
CN112261421B (en) | Virtual reality display method and device, electronic equipment and storage medium | |
EP4221233A1 (en) | Data download method and apparatus, computer device and storage medium | |
WO2023160361A1 (en) | Rtc data processing method and apparatus | |
KR102064284B1 (en) | Device, system, and method to perform real-time communication | |
CN116055473A (en) | Distributed deployment cloud rendering method and system based on WEB | |
CN110113298A (en) | Data transmission method, device, signal server and computer-readable medium | |
CN115904281A (en) | Cloud desktop conference sharing method, server and computer readable storage medium | |
CN117579679B (en) | Signaling interaction method and device, electronic equipment and storage medium | |
CN113489717A (en) | Internal and external network intercommunication method, device, equipment and storage medium based on SIP protocol | |
CN102231734A (en) | Method, device and system for realizing audio transcoding of TTS (Text To Speech) | |
CN108616760B (en) | Live broadcasting method based on browser, server, anchor terminal and user terminal | |
CN114710821A (en) | Method, system and storage medium for VoLTE relay to access SIP contact center | |
JP2010258802A (en) | Communication system, communication terminal, communication method and communication program | |
CN115022725A (en) | Video playing method and device | |
CN113542102A (en) | Gateway system integrating video monitoring system and webpage instant messaging | |
CN118612194B (en) | Connection establishment method and device, electronic equipment and storage medium | |
WO2024131383A1 (en) | Data processing method and related apparatus | |
CN112738056B (en) | Encoding and decoding method and system |
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 |