CN112367309A - Dynamic networking method, device, system, terminal equipment and medium for streaming media gateway - Google Patents

Dynamic networking method, device, system, terminal equipment and medium for streaming media gateway Download PDF

Info

Publication number
CN112367309A
CN112367309A CN202011167481.7A CN202011167481A CN112367309A CN 112367309 A CN112367309 A CN 112367309A CN 202011167481 A CN202011167481 A CN 202011167481A CN 112367309 A CN112367309 A CN 112367309A
Authority
CN
China
Prior art keywords
gateway
session
target
client
list
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.)
Granted
Application number
CN202011167481.7A
Other languages
Chinese (zh)
Other versions
CN112367309B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202011167481.7A priority Critical patent/CN112367309B/en
Publication of CN112367309A publication Critical patent/CN112367309A/en
Application granted granted Critical
Publication of CN112367309B publication Critical patent/CN112367309B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/65Network streaming protocols, e.g. real-time transport protocol [RTP] or real-time control protocol [RTCP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1813Arrangements for providing special services to substations for broadcast or conference, e.g. multicast for computer conferences, e.g. chat rooms
    • H04L12/1818Conference organisation arrangements, e.g. handling schedules, setting up parameters needed by nodes to attend a conference, booking network resources, notifying involved parties
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1813Arrangements for providing special services to substations for broadcast or conference, e.g. multicast for computer conferences, e.g. chat rooms
    • H04L12/1822Conducting the conference, e.g. admission, detection, selection or grouping of participants, correlating users to one or more conference sessions, prioritising transmission
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/18Commands or executable codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/10Architectures or entities
    • H04L65/102Gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • 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

Abstract

The application discloses a method, a device, a system, a terminal device and a medium for dynamic networking of a streaming media gateway, wherein the method comprises the following steps: receiving a session joining request message for joining a target session, which is sent by a client; selecting a target gateway to join the target session according to the session joining request message, and recording a current session gateway list of the joined target session; informing the target gateway of the message created by the target session, and informing other gateways in the current session gateway list of the address of the target gateway so that the other gateways and the target gateway can establish a transmission channel; and returning the address of the target gateway to the client. The scheme can dynamically adjust the networking topology of the streaming media gateway according to the joining or leaving of the client, reduce the forwarding of invalid traffic in the gateway cluster and realize the effective utilization of network resources.

Description

Dynamic networking method, device, system, terminal equipment and medium for streaming media gateway
Technical Field
The present application relates to the field of communications network technologies, and in particular, to a method, an apparatus, a system, a terminal device, and a medium for dynamic networking of a streaming media gateway.
Background
WebRTC (Web Real-Time Communication, Web instant messaging) is an API supporting a Web browser to perform Real-Time voice conversation or video conversation, that is, a Real-Time audio/video Communication technology supporting Web pages. The existing open-source WebRTC gateway schemes are various, but all belong to a single example, and the scheme of cluster deployment related to WebRTC gateway networking is lacked, so that the effective utilization of network resources cannot be realized.
Disclosure of Invention
The present application mainly aims to provide a method, an apparatus, a system, a terminal device and a medium for dynamic networking of a streaming media gateway, and aims to implement dynamic networking of a WebRTC streaming media gateway and implement effective utilization of network resources.
In order to achieve the above object, an embodiment of the present application provides a method for dynamically networking a streaming media gateway, where the method includes the following steps:
receiving a session joining request message for joining a target session, which is sent by a client;
selecting a target gateway to join the target session according to the session joining request message, and recording a current session gateway list which is joined in the target session;
notifying the target gateway of the message that the target session is established, and notifying other gateways in the current session gateway list of the address of the target gateway so that the other gateways and the target gateway can establish a transmission channel;
and returning the address of the target gateway to the client.
In addition, an embodiment of the present application further provides a method for dynamic networking of a streaming media gateway, where the method includes the following steps:
receiving a session leaving request message for leaving a target session, which is sent by a client;
searching a target gateway associated with the client according to the session leaving request message;
deleting the client from a list of clients assigned to a target gateway associated with the client;
if the client list is empty, judging that the target gateway leaves the target session, and notifying other gateways in a current session gateway list of the session network to which the target session belongs of the target gateway leaving message of the target gateway, so that the other gateways disconnect transmission channels with the target gateway, and the target gateway leaves the session network.
In addition, an embodiment of the present application further provides a device for dynamic networking of a streaming media gateway, where the device for dynamic networking of a streaming media gateway includes:
the joining request receiving module is used for receiving a session joining request message for joining the target session, which is sent by the client;
the recording module is used for selecting a target gateway to join the target session according to the session joining request message and recording a current session gateway list which is joined in the target session;
a sending module, configured to notify the target gateway of the message that the target session has been created, and notify other gateways in the current session gateway list of an address of the target gateway, so that the other gateways and the target gateway establish a transmission channel; and returning the address of the target gateway to the client.
In addition, an embodiment of the present application further provides a device for dynamic networking of a streaming media gateway, where the device for dynamic networking of a streaming media gateway includes:
a leaving request receiving module, configured to receive a session leaving request message for leaving a target session sent by a client;
the searching module is used for searching the target gateway related to the client according to the session leaving request message;
a deleting module, configured to delete the client from a client list allocated to a target gateway associated with the client;
and the judging and notifying module is used for judging that the target gateway leaves the target session if the client list is empty, and notifying other gateways in a current session gateway list of the session network to which the target session belongs of the message that the target gateway leaves the target session so that the other gateways disconnect transmission channels with the target gateway and the target gateway leaves the session network.
In addition, an embodiment of the present application further provides a dynamic networking system for a streaming media gateway, including: client, gateway and respectively with client and gateway communication connection's signaling server, wherein:
the client is used for sending a session joining request message for joining a target session to the signaling server and receiving an address of a target gateway returned by the signaling server;
the signaling server is used for receiving a session joining request message for joining the target session, which is sent by the client; selecting a target gateway to join the target session according to the session joining request message, and recording a current session gateway list which is joined in the target session; notifying the target gateway of the message that the target session is established, and notifying other gateways in the current session gateway list of the address of the target gateway so that the other gateways and the target gateway can establish a transmission channel; returning the address of the target gateway to the client;
and the gateway is used for forwarding the media data of the client in the session process to other session terminals through the session network to which the target session belongs.
In addition, the embodiment of the present application further provides a terminal device, where the terminal device includes a memory, a processor, and a dynamic networking program of the streaming media gateway, where the dynamic networking program of the streaming media gateway is stored in the memory and can be run on the processor, and when the dynamic networking program of the streaming media gateway is executed by the processor, the steps of the dynamic networking method of the streaming media gateway are implemented.
In addition, an embodiment of the present application further provides a computer-readable storage medium, where a streaming media gateway dynamic networking program is stored on the computer-readable storage medium, and when the streaming media gateway dynamic networking program is executed by a processor, the steps of the streaming media gateway dynamic networking method described above are implemented.
The method, the device, the system, the terminal device and the medium for dynamic networking of the streaming media gateway provided by the embodiment of the application receive a session joining request message for joining a target session, wherein the session joining request message is sent by a client; selecting a target gateway to join the target session according to the session joining request message, and recording a current session gateway list which is joined in the target session; notifying the target gateway of the message that the target session is established, and notifying other gateways in the current session gateway list of the address of the target gateway so that the other gateways and the target gateway can establish a transmission channel; and returning the address of the target gateway to the client. According to the scheme, the networking topology of the streaming media gateway (such as a WebRTC gateway) can be dynamically adjusted according to the joining or leaving of the client to the session, the streaming media gateway is responsible for forwarding the client flow to other streaming media gateway nodes of the session network related to the session, and then the other streaming media gateway related nodes push the flow to other clients of the session network, so that the forwarding of invalid flow in the gateway cluster is reduced.
Compared with the prior art, the method and the device have the advantages that the session is taken as a unit, the stream media gateway is controlled to dynamically join and/or leave the session network through the signaling service, the network topology function of the stream media gateway can be dynamically adjusted, fine scheduling management of network flow is realized, and effective utilization of network resources is realized.
Drawings
FIG. 1 is a schematic diagram of a functional module of a terminal device to which a dynamic display apparatus for application pages of the present application belongs;
fig. 2 is a schematic architecture diagram of a dynamic networking system of a streaming media gateway according to an embodiment of the present application;
fig. 3 is a flowchart illustrating an exemplary embodiment of a dynamic networking method for a streaming media gateway according to the present application;
fig. 4 is a flowchart illustrating a dynamic networking method for a streaming media gateway according to another exemplary embodiment of the present application;
fig. 5 is a flowchart illustrating a dynamic networking method for a streaming media gateway according to still another exemplary embodiment of the present application;
fig. 6 is a schematic flowchart of a dynamic networking method for a streaming media gateway according to another exemplary embodiment of the present application;
fig. 7 is a flowchart illustrating a dynamic networking method for a streaming media gateway according to another exemplary embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The main solution of the embodiment of the application is as follows: receiving a session joining request message for joining a target session sent by a client; selecting a target gateway to join the target session according to the session joining request message, and recording a current session gateway list which is joined in the target session; notifying the target gateway of the message that the target session is established, and notifying other gateways in the current session gateway list of the address of the target gateway so that the other gateways and the target gateway can establish a transmission channel; and returning the address of the target gateway to the client. According to the scheme, the networking topology of the streaming media gateway (such as a WebRTC gateway) can be dynamically adjusted according to the joining or leaving of the client to the session, the streaming media gateway is responsible for forwarding the client flow to other streaming media gateway nodes of the session network related to the session, and then the other streaming media gateway related nodes push the flow to other clients of the session network, so that the forwarding of invalid flow in the gateway cluster is reduced.
Compared with the prior art, the method and the device have the advantages that the session is taken as a unit, the stream media gateway is controlled to dynamically join and/or leave the session network through the signaling service, the network topology function of the stream media gateway can be dynamically adjusted, fine scheduling management of network flow is realized, and effective utilization of network resources is realized.
The technical terms related to the embodiments of the present application are:
WebRTC, Web instant messaging, acronym for Web Real-Time Communication, is an API that supports Web browsers for Real-Time voice conversations or video conversations. The method is sourced at 1/6/2011, is incorporated into the W3C recommendation standard of the world Wide Web alliance under the support of Google, Mozilla and Opera, and supports the real-time audio and video communication technology of the webpage.
WebRTC realizes a web-based video conference, the standard is WHATWG protocol, and the purpose is to achieve real-time communication capability by providing simple javascript through a browser. WebRTC provides a core technology of a video conference, including functions of audio and video acquisition, encoding and decoding, network transmission, display and the like, and also supports cross-platform, wherein the platform comprises: windows, linux, mac, android.
The WebRTC gateway, Webrtc gateway, is responsible for WebRTC streaming media data forwarding.
And the signaling service, Signal server, is responsible for forwarding control data of the WebRTC streaming media gateway and managing users participating in the media session.
The WebRTC gateway cluster and the WebRTC gateway cluster are a group of WebRTC streaming media gateways, and streaming media data can be forwarded among the gateways.
Session refers to a process of streaming media communication performed by a user, such as a video call, a live network, and the like.
In the embodiment of the application, it is considered that in the existing related schemes, there are multiple open-source WebRTC gateway schemes, but all of the open-source WebRTC gateway schemes belong to a single instance, and a scheme for cluster deployment related to WebRTC gateway networking is lacked, so that effective utilization of network resources cannot be realized.
Therefore, the solution provided by the embodiment of the application can realize dynamic networking of the WebRTC streaming media gateway and realize effective utilization of network resources.
Specifically, referring to fig. 1, fig. 1 is a schematic diagram of a functional module of a terminal device to which the dynamic networking device of the streaming media gateway of the present application belongs. The dynamic networking device of the streaming media gateway can be a device which is independent of the terminal equipment and can realize dynamic networking of the streaming media gateway and forwarding of streaming media data, and the device can be borne on the terminal equipment in a hardware or software mode. The terminal device can be an intelligent mobile terminal such as a mobile phone and a tablet personal computer, and can also be a network device such as a server.
In this embodiment, the terminal device to which the dynamic streaming media gateway networking device belongs at least includes an output module 110, a processor 120, a memory 130, and a communication module 140.
The memory 130 stores an operating system and a dynamic networking program of the streaming media gateway, and the dynamic networking device of the streaming media gateway can store information such as a session joining request message for joining a target session, a current session gateway list for joining the target session, a message created by the target session, and addresses of gateways, which are sent by a client, in the memory 130; the output module 110 may be a display screen, a speaker, etc. The communication module 140 may include a WIFI module, a mobile communication module, a bluetooth module, and the like, and communicates with an external device or a server through the communication module 140.
As an embodiment, when executed by the processor, the dynamic networking program of the streaming media gateway in the memory 130 implements the following steps:
receiving a session joining request message for joining a target session, which is sent by a client;
selecting a target gateway to join the target session according to the session joining request message, and recording a current session gateway list which is joined in the target session;
notifying the target gateway of the message that the target session is established, and notifying other gateways in the current session gateway list of the address of the target gateway so that the other gateways and the target gateway can establish a transmission channel;
and returning the address of the target gateway to the client.
Further, the dynamic networking program of the streaming media gateway in the memory 130, when executed by the processor, further implements the following steps:
and accessing the media data of the client in the session process through the target gateway, and forwarding the media data to other session terminals through the session network to which the target session belongs.
Further, the dynamic networking program of the streaming media gateway in the memory 130, when executed by the processor, further implements the following steps:
and selecting a target gateway to join the target session according to the session joining request message, recording a current session gateway list joined in the target session and a client list distributed by the target gateway, and constructing a session network of the target session.
Further, the dynamic networking program of the streaming media gateway in the memory 130, when executed by the processor, further implements the following steps:
and selecting a target gateway from a pre-established active gateway list to join the target session according to the session joining request message.
Further, the dynamic networking program of the streaming media gateway in the memory 130, when executed by the processor, further implements the following steps:
after the system is started, the active gateway list is established and maintained, and the active gateway list comprises: a webrtc gateway participating in session network networking.
Further, the dynamic networking program of the streaming media gateway in the memory 130, when executed by the processor, further implements the following steps:
after a system signaling service is started, starting a Webrtc gateway cluster, wherein the Webrtc gateway cluster comprises a plurality of Webrtc gateways;
regularly monitoring the condition that each webrtc gateway sends heartbeat information;
according to the monitoring condition, adding the webrtc gateway which continuously sends heartbeat information into the active gateway list, and deleting the webrtc gateway which interrupts sending the heartbeat information from the active gateway list.
Further, the dynamic networking program of the streaming media gateway in the memory 130, when executed by the processor, further implements the following steps:
searching whether the target session exists or not;
if the target session exists, selecting a target gateway from a session network to which the target session belongs according to the session joining request message, or selecting the target gateway from a pre-established active gateway list to join the target session;
if the target session does not exist, the target session is created, and the steps are executed: and selecting a target gateway from a pre-established active gateway list to join the target session according to the session joining request message.
Further, the dynamic networking program of the streaming media gateway in the memory 130, when executed by the processor, further implements the following steps:
receiving a session leaving request message sent by the client to leave the target session;
searching a target gateway associated with the client according to the session leaving request message;
deleting the client from a list of clients assigned to a target gateway associated with the client;
if the client list is empty, judging that the target gateway leaves the target session, and notifying other gateways in the current session gateway list of the message that the target gateway leaves the target session so that the other gateways disconnect transmission channels with the target gateway and the target gateway leaves the session network.
According to the scheme, the embodiment receives a session joining request message for joining the target session, which is sent by the client; selecting a target gateway to join the target session according to the session joining request message, and recording a current session gateway list which is joined in the target session; notifying the target gateway of the message that the target session is established, and notifying other gateways in the current session gateway list of the address of the target gateway so that the other gateways and the target gateway can establish a transmission channel; and returning the address of the target gateway to the client. According to the scheme, the networking topology of the streaming media gateway (such as a WebRTC gateway) can be dynamically adjusted according to the joining or leaving of the client to the session, the streaming media gateway is responsible for forwarding the client flow to other streaming media gateway nodes of the session network related to the session, and then the other streaming media gateway related nodes push the flow to other clients of the session network, so that the forwarding of invalid flow in the gateway cluster is reduced.
Compared with the prior art, the method and the device have the advantages that the session is taken as a unit, the stream media gateway is controlled to dynamically join and/or leave the session network through the signaling service, the network topology function of the stream media gateway can be dynamically adjusted, fine scheduling management of network flow is realized, and effective utilization of network resources is realized.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a dynamic networking system of a streaming media gateway according to an embodiment of the present application.
As shown in fig. 2, the dynamic networking system for streaming media gateway includes: a plurality of customer ends, gateway and respectively with the signaling server of customer end and gateway communication connection, wherein:
the client is used for sending a session joining request message for joining a target session to the signaling server and receiving an address of a target gateway returned by the signaling server;
the signaling server is used for receiving a session joining request message for joining the target session, which is sent by the client; selecting a target gateway to join the target session according to the session joining request message, and recording a current session gateway list which is joined in the target session; notifying the target gateway of the message that the target session is established, and notifying other gateways in the current session gateway list of the address of the target gateway so that the other gateways and the target gateway can establish a transmission channel; returning the address of the target gateway to the client;
and the gateway is used for forwarding the media data of the client in the session process to other session terminals through the session network to which the target session belongs.
In this embodiment, the client may be an intelligent mobile terminal or a terminal device such as a PC terminal, which is installed with client software and joins a session network for audio and video sessions;
the gateway is a streaming media gateway, and can specifically refer to a WebRTC gateway;
the signaling server can be various network servers for realizing the dynamic networking of the streaming media gateway.
According to the scheme, the session is taken as a unit, the stream media gateway is controlled by the signaling server to dynamically join and/or leave the session network, the network topology function of the stream media gateway can be dynamically adjusted, fine scheduling management of network flow is realized, and effective utilization of network resources is realized.
Based on the above terminal device and system architecture, but not limited to the above architecture, embodiments of the method of the present application are provided.
Referring to fig. 3, fig. 3 is a flowchart illustrating an exemplary embodiment of a dynamic networking method of a streaming media gateway according to the present application. The dynamic networking method of the streaming media gateway is applied to a signaling server, and comprises the following steps:
step S101, receiving a session joining request message for joining a target session sent by a client;
the execution subject of the method of this embodiment may be a device installed on a terminal device and used for implementing dynamic networking of a streaming media gateway, and the device may be integrated on a network device such as a server with a dynamic networking function of a streaming media gateway in a form of hardware or software.
Specifically, when a user needs to perform a real-time voice conversation or a video conversation through a web browser, for example, a video conference through the web browser, a session request may be initiated through client software, the client sends a session joining request message for joining a target session to the signaling server according to the session request initiated by the user, and the signaling server receives the session joining request message for joining the target session sent by the client.
Step S102, selecting a target gateway to join the target session according to the session joining request message, and recording a current session gateway list which has joined the target session;
after receiving a session joining request message for joining a target session sent by a client, a signaling server queries whether the target session already exists, and if the target session already exists, selects a target gateway from a session network to which the target session belongs according to the session joining request message, or selects the target gateway from a pre-established active gateway list to join the target session;
and if the target session does not exist, creating the target session, and then selecting a target gateway from a pre-established active gateway list to join the target session according to the session joining request message.
The scenario of the scheme of the embodiment is that the target session does not have a situation that the session needs to be created.
When a session is created, a streaming media gateway, i.e. a target gateway, needs to be selected for a client of a currently initiated target session, so that media data of the current client in the session process is forwarded to other session terminals, i.e. other clients in a session network, through the session network to which the target session belongs by the target gateway.
The session network to which the target session belongs is a session network established based on the current target session, one target session corresponds to one session network, the session network is formed by networking a plurality of streaming media gateways participating in the current session, a client and a signaling server, and the signaling server provides signaling service for the streaming media data access and forwarding of the session network.
In this embodiment, the signaling server may pre-establish and maintain an active gateway list, where the active gateway list records a streaming media gateway participating in the current session network networking. The streaming media gateway may specifically be a WebRTC gateway.
The signaling server maintains the active gateway list, and only the streaming media gateways in the active gateway list participate in the networking process of the session network, and the list is established in the system starting stage.
In the embodiment, the signaling server controls the streaming media gateway to dynamically join and/or leave the session network, and dynamically adjusts the network topology function of the streaming media gateway, so as to realize fine scheduling management of network traffic and realize effective utilization of network resources.
When selecting a stream media gateway for a client terminal joining the current target session, the signaling server selects a target gateway from a pre-established active gateway list to join the target session according to the session joining request message.
When the signaling server selects a target gateway to join a target session, a custom algorithm may be adopted, which is not specifically limited in this embodiment, and specifically, when the gateway is selected, the following factors may be considered:
the bandwidth of the gateway, the geographical location of the gateway, the load condition of the gateway, the network delay of the gateway, etc., and is preferably selected based on the above factors.
Further, as an embodiment, the step of selecting a target gateway to join the target session according to the session join request message and recording a current session gateway list that has joined the target session may include the following scheme:
and selecting a target gateway to join the target session according to the session joining request message, recording a current session gateway list joined in the target session, a client list distributed by the target gateway and client lists distributed by other gateways in the current session gateway list, and constructing a session network of the target session.
The client distributed by the target gateway is the client associated with the target gateway.
Step S103, notifying the target gateway of the message that the target session is established, and notifying other gateways in the current session gateway list of the address of the target gateway so that the other gateways and the target gateway establish a transmission channel;
and step S104, returning the address of the target gateway to the client.
After the signaling server finishes the selection of the target gateway, the signaling server notifies the target gateway of the message created by the target session, and simultaneously notifies other gateways in the current session gateway list of the address of the target gateway so as to establish a transmission channel between the other gateways and the target gateway, thereby realizing the forwarding of streaming media data by each gateway in the session network.
And simultaneously, the address of the target gateway is returned to the client so as to access the media data of the client in the session process through the target gateway and forward the media data to other session terminals through the session network to which the target session belongs.
According to the scheme, the embodiment specifically comprises the steps of receiving a session joining request message for joining the target session, which is sent by the client; selecting a target gateway to join the target session according to the session joining request message, and recording a current session gateway list which is joined in the target session; notifying the target gateway of the message that the target session is established, and notifying other gateways in the current session gateway list of the address of the target gateway so that the other gateways and the target gateway can establish a transmission channel; and returning the address of the target gateway to the client. According to the scheme, the networking topology of the streaming media gateway (such as a WebRTC gateway) can be dynamically adjusted according to the addition of the client into the session, the streaming media gateway is responsible for forwarding the client flow to other streaming media gateway nodes of the session network related to the session, and then the other streaming media gateway related nodes push the flow to other clients of the session network, so that the forwarding of invalid flow in the gateway cluster is reduced.
Compared with the prior art, the method and the device have the advantages that the session is taken as a unit, the stream media gateway is controlled to dynamically join the session network through the signaling service, the network topology function of the stream media gateway can be dynamically adjusted, fine scheduling management of network flow is realized, and effective utilization of network resources is realized.
Referring to fig. 4, fig. 4 is a flowchart illustrating a dynamic networking method of a streaming media gateway according to another exemplary embodiment of the present application. Based on the embodiment shown in fig. 3, in this embodiment, the method further includes:
step S105, accessing the media data of the client in the session process through the target gateway, and forwarding the media data to other session terminals through the session network to which the target session belongs.
Compared with the embodiment shown in fig. 3, the present embodiment further includes a scheme of forwarding the streaming media data of the client through the target gateway.
Specifically, after the signaling server completes the selection of the target gateway, the signaling server notifies the target gateway of the message that the target session has been created, and notifies the address of the target gateway to other gateways in the current session gateway list, and the other gateways establish transmission channels with the target gateway.
And simultaneously, the signaling server returns the address of the target gateway to the client.
The media data of the client in the session process is accessed to the target gateway based on the address of the target gateway, and the target gateway forwards the media data of the client in the session process to other session terminals through the session network to which the target session belongs. Therefore, the forwarding of the streaming media data by each gateway in the session network is realized.
The following explanation of the process of joining the WebRTC gateway to the session network by using the WebRTC gateway as an example is as follows:
1. the client sends a message to the signaling server to join the session s 1;
2. the signaling server searches whether the session s1 exists or not, and if not, the session is established;
3. the signaling server selects a WebRTC gateway gw1 to join the session s1, and simultaneously records a WebRTC gateway list s1.gateway of the joined session s1 and a client list gW1.clients distributed by the WebRTC gateway gw 1;
4. the signaling server informs the WebRTC gateway gw1 of the message that the session s1 has been created;
5. the signaling server informs other WebRTC gateways in the s1.gateway of the address of the WebRTC gateway gw1, if only the WebRTC gateway gw1 exists in the s1.gateway, the process is ended, otherwise, the process goes to step 6;
6. other WebRTC gateways receive the message added by the WebRTC gateway gw1, and actively establish a transmission channel with the WebRTC gateway gw 1;
7. the signaling server returns the address of the WebRTC gateway gw1 to the client;
8. after the WebRTC gateway gw1 joins the session network process, the media data of the client can be accessed through the WebRTC gateway gw1 and forwarded to other session members in the session network.
According to the scheme, the embodiment specifically comprises the steps of receiving a session joining request message for joining the target session, which is sent by the client; selecting a target gateway to join the target session according to the session joining request message, and recording a current session gateway list which is joined in the target session; notifying the target gateway of the message that the target session is established, and notifying other gateways in the current session gateway list of the address of the target gateway so that the other gateways and the target gateway can establish a transmission channel; and returning the address of the target gateway to the client, accessing the media data of the client in the session process through the target gateway, and forwarding the media data to other session terminals through the session network to which the target session belongs. According to the scheme, the networking topology of the streaming media gateway (such as a WebRTC gateway) can be dynamically adjusted according to the addition of the client into the session, the streaming media gateway is responsible for forwarding the client flow to other streaming media gateway nodes of the session network related to the session, and then the other streaming media gateway related nodes push the flow to other clients of the session network, so that the forwarding of invalid flow in the gateway cluster is reduced.
Compared with the prior art, the method and the device have the advantages that the session is taken as a unit, the stream media gateway is controlled to dynamically join the session network through the signaling service, the network topology function of the stream media gateway can be dynamically adjusted, fine scheduling management of network flow is realized, and effective utilization of network resources is realized.
Referring to fig. 5, fig. 5 is a flowchart illustrating a dynamic networking method for a streaming media gateway according to still another exemplary embodiment of the present application. Based on the embodiment shown in fig. 4, in this embodiment, the step S102 may include:
and step S1021, selecting a target gateway from a pre-established active gateway list according to the session joining request message to join the target session, and recording a current session gateway list which has joined the target session.
And in the step S1021, selecting a target gateway from a pre-established active gateway list according to the session join request message to join the target session, and recording a current session gateway list that has joined the target session, wherein the method further includes:
step S100, after the system is started, the active gateway list is established and maintained, and the active gateway list comprises: and the WebRTC gateway participates in session network networking.
Compared with the embodiment shown in fig. 4, the present embodiment further includes a scheme for establishing and maintaining an active gateway list.
Specifically, in this embodiment, the signaling server may establish and maintain an active gateway list, where the active gateway list records a streaming media gateway participating in networking of the current session network. The streaming media gateway may specifically be a WebRTC gateway.
The signaling server maintains the active gateway list, and only the streaming media gateways in the active gateway list participate in the networking process of the session network, and the list is established in the system starting stage.
In the embodiment, the signaling server controls the streaming media gateway to dynamically join and/or leave the session network, and dynamically adjusts the network topology function of the streaming media gateway, so as to realize fine scheduling management of network traffic and realize effective utilization of network resources.
When selecting the stream media gateway for the client terminal joining the current target session, the signaling server selects the target gateway from the established active gateway list to join the target session according to the session joining request message.
The streaming media gateway is taken as a WebRTC gateway for example:
in this embodiment, the signaling server maintains a list of active WebRTC gateways, and only the WebRTC gateways in the list participate in the networking process of the session network, and the list is established in the system start-up phase.
Specifically, as an embodiment, the step of establishing and maintaining the active gateway list may include:
after a system signaling service is started, starting a WebRTC gateway cluster, wherein the WebRTC gateway cluster comprises a plurality of WebRTC gateways;
monitoring the condition that each WebRTC gateway sends heartbeat information regularly; the timing monitoring time is consistent with the heartbeat information sending period, and the signaling server negotiates with all WebRTC gateways for agreement.
After the WebRTC gateway cluster is started, each WebRTC gateway sends heartbeat information to the signaling server at regular time.
And the signaling server adds the WebRTC gateway which continuously sends the heartbeat information into the active gateway list according to the monitored condition, and deletes the WebRTC gateway which interrupts sending the heartbeat information from the active gateway list. Therefore, the dynamic state of the streaming media gateway is monitored through the signaling server, the network topology function of the streaming media gateway is dynamically adjusted, the fine scheduling management of network flow is realized, and the effective utilization of network resources is realized.
Referring to fig. 6, fig. 6 is a flowchart illustrating a dynamic networking method for a streaming media gateway according to another exemplary embodiment of the present application. Based on the embodiment shown in fig. 5, in this embodiment, the method further includes:
step S106, receiving a session leaving request message for leaving the target session sent by the client;
step S107, searching a target gateway associated with the client according to the session leaving request message;
step S108, deleting the client from the client list distributed by the target gateway associated with the client;
step S109, if the client list is empty, determining that the target gateway leaves the target session, and notifying other gateways in the current session gateway list of the message that the target gateway leaves the target session, so that the other gateways disconnect transmission channels with the target gateway, so that the target gateway leaves the session network.
Compared with the embodiment shown in fig. 5, this embodiment further includes a scheme that the streaming media gateway leaves the session network.
Specifically, in this embodiment, as an implementation manner, when a signaling server selects a target gateway to join in a target session according to a session join request message, the signaling server records a current session gateway list that has joined in the target session, and also records a client list that has been allocated by the target gateway and a client list that has been allocated by other gateways in the current session gateway list, constructs a session network of the target session, and then maintains the current session gateway list and the client lists that have been allocated by the gateways.
The client distributed by the target gateway is the client associated with the target gateway.
When the user needs to leave the current target session, a leave session request can be initiated to the client.
And when receiving a session leaving request of a user, the client sends a session leaving request message for leaving the target session to the signaling server.
And the signaling server receives a session leaving request message which is sent by the client and leaves the target session, and searches a target gateway associated with the client according to the session leaving request message.
Then, deleting the client from a client list distributed by a target gateway associated with the client; and if the client list is not empty, namely the target gateway has the allocated clients, continuing to maintain the session process in which other clients participate in the current target session.
If the client list is empty, judging that the target gateway leaves the target session, notifying other gateways in the current session gateway list of the message that the target gateway leaves the target session, and disconnecting transmission channels with the target gateway after the other gateways receive the notification, so that the target gateway leaves the session network.
According to the scheme, the embodiment specifically comprises the steps of receiving a session joining request message for joining the target session, which is sent by the client; selecting a target gateway to join the target session according to the session joining request message, and recording a current session gateway list which is joined in the target session; notifying the target gateway of the message that the target session is established, and notifying other gateways in the current session gateway list of the address of the target gateway so that the other gateways and the target gateway can establish a transmission channel; and returning the address of the target gateway to the client. In addition, when a session leaving request message which is sent by the client and leaves the target session is received, a target gateway related to the client is searched according to the session leaving request message; deleting the client from a list of clients assigned to a target gateway associated with the client; if the client list is empty, the target gateway is judged to leave the target session, and the message that the target gateway leaves the target session is notified to other gateways in the current session gateway list so that the other gateways disconnect transmission channels with the target gateway and leave the session network, so that the target gateway can dynamically adjust the networking topology of a streaming media gateway (such as a WebRTC gateway) according to the joining or leaving of the client, the streaming media gateway is responsible for forwarding client traffic to other streaming media gateway nodes of the session network related to the session, and then the other streaming media gateway related nodes push the traffic to other clients of the session network, thereby reducing the forwarding of invalid traffic in a gateway cluster.
Compared with the prior art, the method and the device have the advantages that the session is taken as a unit, the stream media gateway is controlled to dynamically join and/or leave the session network through the signaling service, the network topology function of the stream media gateway can be dynamically adjusted, fine scheduling management of network flow is realized, and effective utilization of network resources is realized.
It should be noted that the above embodiments can be implemented in a reasonable combination according to actual situations.
Referring to fig. 7, fig. 7 is a flowchart illustrating a dynamic networking method for a streaming media gateway according to another exemplary embodiment of the present application. The embodiment provides a dynamic networking method for a streaming media gateway, which comprises the following steps:
step S201, receiving a session leaving request message for leaving a target session sent by a client;
step S202, searching a target gateway associated with the client according to the session leaving request message;
step S203, deleting the client from the client list distributed by the target gateway associated with the client;
step S204, if the client list is empty, the target gateway is judged to leave the target session, and the message that the target gateway leaves the target session is notified to other gateways in the current session gateway list of the session network to which the target session belongs, so that the other gateways disconnect transmission channels with the target gateway, and the target gateway leaves the session network.
Specifically, in this embodiment, when performing session network networking according to a session request, the signaling server records a current session gateway list of a joined target session, and also records client lists allocated to all gateways of the joined session, constructs a session network of the target session, and subsequently maintains the current session gateway list and the client lists allocated to all the gateways.
Wherein, the client distributed by each gateway is the client associated with the gateway.
In this embodiment, when the user needs to leave the current target session, a leave session request may be initiated to the client.
And when receiving a session leaving request of a user, the client sends a session leaving request message for leaving the target session to the signaling server.
And the signaling server receives a session leaving request message which is sent by the client and leaves the target session, and searches a target gateway associated with the client according to the session leaving request message.
Then, deleting the client from a client list distributed by a target gateway associated with the client; and if the client list is not empty, namely the target gateway has the allocated clients, continuing to maintain the session process in which other clients participate in the current target session.
If the client list is empty, judging that the target gateway leaves the target session, notifying other gateways in the current session gateway list of the message that the target gateway leaves the target session, and disconnecting transmission channels with the target gateway after the other gateways receive the notification, so that the target gateway leaves the session network.
The following explains the process of leaving the session network by the WebRTC gateway by taking the WebRTC gateway as an example as follows:
1. the client sends a message leaving the session s1 to the signaling server;
2. the signaling server searches for a WebRTC gateway gw1 associated with the client, and deletes the client from a client list gw1. clients;
3. if the client list gW1.clients are not empty, continuing to maintain the current session based on other clients in the client list, otherwise, entering step 4;
4. if the client list gw1.clients is empty, the signaling server notifies all other gateways in the client list s1.gateways, the WebRTC gateway gw1 leaves the session s1, and the other gateways receive the message that the WebRTC gateway gw1 leaves the session s1, and disconnect the transmission channel with the WebRTC gateway gw1.
5. The Webrtc gateway gw1 finishes the process of leaving the session network.
According to the scheme, the embodiment specifically comprises the steps of receiving a session joining request message for joining the target session, which is sent by the client; selecting a target gateway to join the target session according to the session joining request message, and recording a current session gateway list which is joined in the target session; notifying the target gateway of the message that the target session is established, and notifying other gateways in the current session gateway list of the address of the target gateway so that the other gateways and the target gateway can establish a transmission channel; and returning the address of the target gateway to the client. In addition, when a session leaving request message which is sent by the client and leaves the target session is received, a target gateway related to the client is searched according to the session leaving request message; deleting the client from a list of clients assigned to a target gateway associated with the client; if the client list is empty, the target gateway is judged to leave the target session, and the message that the target gateway leaves the target session is notified to other gateways in the current session gateway list so that the other gateways disconnect transmission channels with the target gateway and leave the session network, so that the target gateway can dynamically adjust the networking topology of a streaming media gateway (such as a WebRTC gateway) according to the joining or leaving of the client, the streaming media gateway is responsible for forwarding client traffic to other streaming media gateway nodes of the session network related to the session, and then the other streaming media gateway related nodes push the traffic to other clients of the session network, thereby reducing the forwarding of invalid traffic in a gateway cluster.
Compared with the prior art, the method and the device have the advantages that the session is taken as a unit, the stream media gateway is controlled to dynamically join and/or leave the session network through the signaling service, the network topology function of the stream media gateway can be dynamically adjusted, fine scheduling management of network flow is realized, and effective utilization of network resources is realized.
In addition, an embodiment of the present application further provides a device for dynamic networking of a streaming media gateway, where the device for dynamic networking of a streaming media gateway includes:
the joining request receiving module is used for receiving a session joining request message for joining the target session, which is sent by the client;
the recording module is used for selecting a target gateway to join the target session according to the session joining request message and recording a current session gateway list which is joined in the target session;
a sending module, configured to notify the target gateway of the message that the target session has been created, and notify other gateways in the current session gateway list of an address of the target gateway, so that the other gateways and the target gateway establish a transmission channel; and returning the address of the target gateway to the client.
For the principle and implementation process of implementing dynamic networking of a streaming media gateway in this embodiment, please refer to the above embodiments, which are not described herein again.
In addition, an embodiment of the present application further provides a device for dynamic networking of a streaming media gateway, where the device for dynamic networking of a streaming media gateway includes:
a leaving request receiving module, configured to receive a session leaving request message for leaving a target session sent by a client;
the searching module is used for searching the target gateway related to the client according to the session leaving request message;
a deleting module, configured to delete the client from a client list allocated to a target gateway associated with the client;
and the judging and notifying module is used for judging that the target gateway leaves the target session if the client list is empty, and notifying other gateways in a current session gateway list of the session network to which the target session belongs of the message that the target gateway leaves the target session so that the other gateways disconnect transmission channels with the target gateway and the target gateway leaves the session network.
For the principle and implementation process of implementing dynamic networking of a streaming media gateway in this embodiment, please refer to the above embodiments, which are not described herein again.
In addition, the embodiment of the present application further provides a terminal device, where the terminal device includes a memory, a processor, and a dynamic networking program of the streaming media gateway, where the dynamic networking program of the streaming media gateway is stored in the memory and is capable of running on the processor, and when the dynamic networking program of the streaming media gateway is executed by the processor, the steps of the dynamic networking method of the streaming media gateway according to the embodiment are implemented.
Since the dynamic networking program of the streaming media gateway is executed by the processor, all technical solutions of all the embodiments are adopted, so that at least all the beneficial effects brought by all the technical solutions of all the embodiments are achieved, and detailed description is omitted here.
In addition, an embodiment of the present application further provides a computer-readable storage medium, where a streaming media gateway dynamic networking program is stored on the computer-readable storage medium, and when the streaming media gateway dynamic networking program is executed by a processor, the steps of the streaming media gateway dynamic networking method according to the foregoing embodiment are implemented.
Since the dynamic networking program of the streaming media gateway is executed by the processor, all technical solutions of all the embodiments are adopted, so that at least all the beneficial effects brought by all the technical solutions of all the embodiments are achieved, and detailed description is omitted here.
Compared with the prior art, the method, the device, the system, the terminal device and the medium for dynamic networking of the streaming media gateway provided by the embodiment of the application receive a session joining request message for joining a target session, which is sent by a client; selecting a target gateway to join the target session according to the session joining request message, and recording a current session gateway list which is joined in the target session; notifying the target gateway of the message that the target session is established, and notifying other gateways in the current session gateway list of the address of the target gateway so that the other gateways and the target gateway can establish a transmission channel; and returning the address of the target gateway to the client. According to the scheme, the networking topology of the streaming media gateway (such as a WebRTC gateway) can be dynamically adjusted according to the joining or leaving of the client to the session, the streaming media gateway is responsible for forwarding the client flow to other streaming media gateway nodes of the session network related to the session, and then the other streaming media gateway related nodes push the flow to other clients of the session network, so that the forwarding of invalid flow in the gateway cluster is reduced.
Compared with the prior art, the method and the device have the advantages that the session is taken as a unit, the stream media gateway is controlled to dynamically join and/or leave the session network through the signaling service, the network topology function of the stream media gateway can be dynamically adjusted, fine scheduling management of network flow is realized, and effective utilization of network resources is realized.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, a controlled terminal, or a network device) to execute the method of each embodiment of the present application.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (14)

1. A method for dynamically networking a streaming media gateway is characterized by comprising the following steps:
receiving a session joining request message for joining a target session, which is sent by a client;
selecting a target gateway to join the target session according to the session joining request message, and recording a current session gateway list which is joined in the target session;
notifying the target gateway of the message that the target session is established, and notifying other gateways in the current session gateway list of the address of the target gateway so that the other gateways and the target gateway can establish a transmission channel;
and returning the address of the target gateway to the client.
2. The method for dynamically networking a streaming media gateway according to claim 1, wherein the method further comprises:
and accessing the media data of the client in the session process through the target gateway, and forwarding the media data to other session terminals through the session network to which the target session belongs.
3. The method for dynamically networking a streaming media gateway according to claim 1, wherein the step of selecting a target gateway to join the target session according to the session join request message, and the step of recording a current session gateway list that has joined the target session comprises:
and selecting a target gateway to join the target session according to the session joining request message, recording a current session gateway list joined in the target session and a client list distributed by the target gateway, and constructing a session network of the target session.
4. The method for dynamically networking a streaming media gateway according to claim 3, wherein the step of selecting a target gateway to join the target session according to the session join request message comprises:
and selecting a target gateway from a pre-established active gateway list to join the target session according to the session joining request message.
5. The method for dynamically networking a streaming media gateway according to claim 4, wherein the step of selecting a target gateway from a pre-established active gateway list according to the session join request message further comprises:
after the system is started, the active gateway list is established and maintained, and the active gateway list comprises: and the WebRTC gateway is used for web page instant messaging participating in session network networking.
6. The method for dynamically networking a streaming media gateway according to claim 5, wherein the step of establishing and maintaining the active gateway list after system startup comprises:
after a system signaling service is started, starting a WebRTC gateway cluster, wherein the WebRTC gateway cluster comprises a plurality of WebRTC gateways;
monitoring the condition that each WebRTC gateway sends heartbeat information regularly;
and according to the monitored condition, adding the WebRTC gateway which continuously sends the heartbeat information into the active gateway list, and deleting the WebRTC gateway which interrupts sending the heartbeat information from the active gateway list.
7. The method for dynamically networking by a streaming media gateway according to claim 4, wherein the step of receiving the session join request message for joining the target session sent by the client further comprises:
searching whether the target session exists or not;
if the target session exists, selecting a target gateway from a session network to which the target session belongs according to the session joining request message, or selecting the target gateway from a pre-established active gateway list to join the target session;
if the target session does not exist, the target session is created, and the steps are executed: and selecting a target gateway from a pre-established active gateway list to join the target session according to the session joining request message.
8. The method for dynamically networking by a streaming media gateway according to claim 3, wherein the method further comprises:
receiving a session leaving request message sent by the client to leave the target session;
searching a target gateway associated with the client according to the session leaving request message;
deleting the client from a list of clients assigned to a target gateway associated with the client;
if the client list is empty, judging that the target gateway leaves the target session, and notifying other gateways in the current session gateway list of the message that the target gateway leaves the target session so that the other gateways disconnect transmission channels with the target gateway and the target gateway leaves the session network.
9. A method for dynamically networking a streaming media gateway is characterized by comprising the following steps:
receiving a session leaving request message for leaving a target session, which is sent by a client;
searching a target gateway associated with the client according to the session leaving request message;
deleting the client from a list of clients assigned to a target gateway associated with the client;
if the client list is empty, judging that the target gateway leaves the target session, and notifying other gateways in a current session gateway list of the session network to which the target session belongs of the target gateway leaving message of the target gateway, so that the other gateways disconnect transmission channels with the target gateway, and the target gateway leaves the session network.
10. A dynamic networking device for a streaming media gateway is characterized in that the dynamic networking device for the streaming media gateway comprises:
the joining request receiving module is used for receiving a session joining request message for joining the target session, which is sent by the client;
the recording module is used for selecting a target gateway to join the target session according to the session joining request message and recording a current session gateway list which is joined in the target session;
a sending module, configured to notify the target gateway of the message that the target session has been created, and notify other gateways in the current session gateway list of an address of the target gateway, so that the other gateways and the target gateway establish a transmission channel; and returning the address of the target gateway to the client.
11. A dynamic networking device for a streaming media gateway is characterized in that the dynamic networking device for the streaming media gateway comprises:
a leaving request receiving module, configured to receive a session leaving request message for leaving a target session sent by a client;
the searching module is used for searching the target gateway related to the client according to the session leaving request message;
a deleting module, configured to delete the client from a client list allocated to a target gateway associated with the client;
and the judging and notifying module is used for judging that the target gateway leaves the target session if the client list is empty, and notifying other gateways in a current session gateway list of the session network to which the target session belongs of the message that the target gateway leaves the target session so that the other gateways disconnect transmission channels with the target gateway and the target gateway leaves the session network.
12. A dynamic networking system for a streaming media gateway, comprising: client, gateway and respectively with client and gateway communication connection's signaling server, wherein:
the client is used for sending a session joining request message for joining a target session to the signaling server and receiving an address of a target gateway returned by the signaling server;
the signaling server is used for receiving a session joining request message for joining the target session, which is sent by the client; selecting a target gateway to join the target session according to the session joining request message, and recording a current session gateway list which is joined in the target session; notifying the target gateway of the message that the target session is established, and notifying other gateways in the current session gateway list of the address of the target gateway so that the other gateways and the target gateway can establish a transmission channel; returning the address of the target gateway to the client;
and the gateway is used for forwarding the media data of the client in the session process to other session terminals through the session network to which the target session belongs.
13. A terminal device, characterized in that the terminal device comprises a memory, a processor and a dynamic networking program of a streaming media gateway stored on the memory and capable of running on the processor, and when the dynamic networking program of the streaming media gateway is executed by the processor, the steps of the dynamic networking method of the streaming media gateway according to any one of claims 1 to 8 or the steps of the dynamic networking method of the streaming media gateway according to claim 9 are implemented.
14. A computer-readable storage medium, wherein a streaming media gateway dynamic networking program is stored on the computer-readable storage medium, and when being executed by a processor, the streaming media gateway dynamic networking program implements the steps of the streaming media gateway dynamic networking method according to any one of claims 1 to 8, or the steps of the streaming media gateway dynamic networking method according to claim 9.
CN202011167481.7A 2020-10-27 2020-10-27 Streaming media gateway dynamic networking method, device, system, terminal equipment and medium Active CN112367309B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011167481.7A CN112367309B (en) 2020-10-27 2020-10-27 Streaming media gateway dynamic networking method, device, system, terminal equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011167481.7A CN112367309B (en) 2020-10-27 2020-10-27 Streaming media gateway dynamic networking method, device, system, terminal equipment and medium

Publications (2)

Publication Number Publication Date
CN112367309A true CN112367309A (en) 2021-02-12
CN112367309B CN112367309B (en) 2023-05-09

Family

ID=74512309

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011167481.7A Active CN112367309B (en) 2020-10-27 2020-10-27 Streaming media gateway dynamic networking method, device, system, terminal equipment and medium

Country Status (1)

Country Link
CN (1) CN112367309B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112637545A (en) * 2021-03-08 2021-04-09 浙江华创视讯科技有限公司 Unified conference platform system, gateway and conference management and conference creation method

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005120035A1 (en) * 2004-06-04 2005-12-15 Zte Corporation Method and system for interconnecting digital group system and public telephone system
CN101742009A (en) * 2008-11-07 2010-06-16 华为技术有限公司 Method, system and device for session association
CN102118691A (en) * 2009-12-30 2011-07-06 中兴通讯股份有限公司 Method and system for sending forward media stream
CN104468293A (en) * 2014-11-28 2015-03-25 国家信息中心 VPN accessing method
CN106211362A (en) * 2016-08-23 2016-12-07 海能达通信股份有限公司 Cluster session method, device, terminal unit and network equipment
US20160359927A1 (en) * 2014-02-21 2016-12-08 Huawei Technologies Co., Ltd. Method and device for establishing channel
US20190045015A1 (en) * 2017-08-07 2019-02-07 Citrix Systems, Inc. Systems and methods to retain existing connections so that there is no connection loss when nodes are added to a cluster for capacity or when a node is taken out from the cluster for maintenance
CN110868348A (en) * 2019-10-17 2020-03-06 深圳绿米联创科技有限公司 Multi-gateway communication method, device and system and electronic equipment
CN111010444A (en) * 2019-12-20 2020-04-14 创盛视联数码科技(北京)有限公司 System and method for realizing Wowza streaming media engine distributed cluster

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005120035A1 (en) * 2004-06-04 2005-12-15 Zte Corporation Method and system for interconnecting digital group system and public telephone system
CN101742009A (en) * 2008-11-07 2010-06-16 华为技术有限公司 Method, system and device for session association
CN102118691A (en) * 2009-12-30 2011-07-06 中兴通讯股份有限公司 Method and system for sending forward media stream
US20160359927A1 (en) * 2014-02-21 2016-12-08 Huawei Technologies Co., Ltd. Method and device for establishing channel
CN104468293A (en) * 2014-11-28 2015-03-25 国家信息中心 VPN accessing method
CN106211362A (en) * 2016-08-23 2016-12-07 海能达通信股份有限公司 Cluster session method, device, terminal unit and network equipment
US20190045015A1 (en) * 2017-08-07 2019-02-07 Citrix Systems, Inc. Systems and methods to retain existing connections so that there is no connection loss when nodes are added to a cluster for capacity or when a node is taken out from the cluster for maintenance
CN110868348A (en) * 2019-10-17 2020-03-06 深圳绿米联创科技有限公司 Multi-gateway communication method, device and system and electronic equipment
CN111010444A (en) * 2019-12-20 2020-04-14 创盛视联数码科技(北京)有限公司 System and method for realizing Wowza streaming media engine distributed cluster

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
董海韬等: "SSL反向代理网关请求分发的系统架构设计", 《网络新媒体技术》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112637545A (en) * 2021-03-08 2021-04-09 浙江华创视讯科技有限公司 Unified conference platform system, gateway and conference management and conference creation method
CN112637545B (en) * 2021-03-08 2021-06-08 浙江华创视讯科技有限公司 Unified conference platform system, gateway and conference management and conference creation method

Also Published As

Publication number Publication date
CN112367309B (en) 2023-05-09

Similar Documents

Publication Publication Date Title
US8924593B2 (en) Apparatus and method for communication services network
JP5436571B2 (en) Method and apparatus for providing communication history
US20060286993A1 (en) Throttling server communications in a communication network
US20150358808A1 (en) Exchanging A Contact Profile Between Client Devices During A Communication Session
KR101524313B1 (en) METHOD FOR A REQUEST AND RESPONSE OF AN INSTANT MESSAGE DISPOSITION NOTIFICATION IN A CONVERGED-IP message SERVICE AND SYSTEM THEREOF
RU2493665C1 (en) Method and system for subscription service implementation in ims network
US11968275B2 (en) Push notifications for multiple user devices
CN111031498B (en) Network system supporting 5G terminal short message service and construction method thereof
US20220312156A1 (en) Method and apparatus for multicast service session operation and communications device
JP2023515393A (en) Mode switching method and equipment
CN114064275A (en) Data processing method and device
CN112367309B (en) Streaming media gateway dynamic networking method, device, system, terminal equipment and medium
US9485283B2 (en) Method and apparatus for enabling communications between users
CN113329447A (en) Communication method and system acting on IP multimedia subsystem IMS slice network
KR20140021157A (en) Apparatus and method for providing group communication service
US8472596B2 (en) Communication system, processing apparatus, and communication method in communication system
US9596577B1 (en) Relaying mobile communications
JP2008199395A (en) Radio terminal calling method of mobile communication system, gateway device and mobile communication system
EP3758308B1 (en) Correspondence processing method and device based on interworking rcs system
JP6807952B2 (en) Methods and devices for determining the communication network that provides communication services to terminal communication devices
WO2009054661A1 (en) Procedure for managing data synchronization under multiple devices environment
CN108337215B (en) File transmission method, system and device and electronic equipment
CN115022110B (en) Message distribution method, readable medium and electronic device
JP5975998B2 (en) Conference messaging system and method between universal plug and play telephony device and wide area network (WAN) device
US20230300200A1 (en) Methods, systems, and computer readable media for processing binding requests in a telecommunications network

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