CN111432158A - Load balancing method and device for media nodes, storage medium and electronic device - Google Patents
Load balancing method and device for media nodes, storage medium and electronic device Download PDFInfo
- Publication number
- CN111432158A CN111432158A CN202010131349.4A CN202010131349A CN111432158A CN 111432158 A CN111432158 A CN 111432158A CN 202010131349 A CN202010131349 A CN 202010131349A CN 111432158 A CN111432158 A CN 111432158A
- Authority
- CN
- China
- Prior art keywords
- media
- media node
- node
- target
- target media
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/14—Systems for two-way working
- H04N7/15—Conference systems
- H04N7/152—Multipoint control units therefor
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/1066—Session management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/40—Support for services or applications
- H04L65/403—Arrangements for multi-party communication, e.g. for conferences
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
- H04L65/70—Media network packetisation
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Telephonic Communication Services (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The embodiment of the application provides a load balancing method and device of a media node, a storage medium and an electronic device, wherein the method comprises the following steps: determining a first target media node according to a media coding and decoding capacity residual value of a media node in a media service cluster, and starting a video conference by using the first target media node, wherein the media coding and decoding capacity residual value represents the number of video paths which can be decoded by the media node at present; the method comprises the steps of determining a second target media node according to a network transmission capacity residual value of the media node, and sending channel information of the second target media node to a terminal, wherein the network transmission capacity residual value represents the number of terminals which can be accessed by the media node at present, and the channel information is used for indicating the terminal to access the video conference through the second target media node, so that the problems that in the prior art, the conference effect is poor and media server resources cannot be fully utilized due to the fact that the coding and decoding capacity of the media node and the network transmission capacity cannot be simultaneously scheduled in a video conference scene are solved.
Description
Technical Field
The present application relates to the technical field of multimedia services, and in particular, to a method and an apparatus for load balancing of media nodes, a storage medium, and an electronic apparatus.
Background
A video conference system includes a Multipoint Control Unit (MCU) and various participating devices such as a video conference server and a terminal. The terminal collects image and sound and sends the image and sound to the MCU through coding. And the MCU fuses or does not fuse the images sent by the terminals according to the conference requirement and then sends the fused images to each participating terminal. Therefore, the audio and video conversation of the multi-party participants is realized. The video conference system server is often a cluster stacking system, and may be composed of a plurality of signaling nodes and a plurality of media nodes. Each media node is configured with a media codec processor and a network transmission device with different capabilities. In a large conference, a plurality of distributed media nodes are generally set to support one conference at the same time, and at this time, the load balancing of media resources is complicated.
The existing media resource load balancing scheme generally uses a media node resource pool to assign a capability value to each media node, and the capability value generally represents the coding and decoding processing capability of the media node. And when a new conference is added, selecting a media node with the maximum idle capacity value for starting the conference.
In a cross-node large-scale conference scenario, in addition to the codec capability of the media node, the network transmission capability of the media node is also considered. When multiple conferences are dispatched in a balanced manner purely from the dimension of the encoding and decoding capacity, the conference effect may be poor due to insufficient network bandwidth of part of terminals, or, because the network transmission capacity is not considered, the situation that the encoding and decoding capacity of part of media nodes is full but the network transmission capacity is empty may occur, and the network transmission resources of the media nodes cannot be fully utilized.
In the related art, no effective solution exists at present for the problems that the conference effect is poor and the media server resources cannot be fully utilized due to the fact that the encoding and decoding capabilities of media nodes and the network transmission capability in a video conference scene cannot be simultaneously balanced and scheduled.
Disclosure of Invention
The embodiment of the application provides a load balancing method and device for media nodes, a storage medium and an electronic device, so as to solve the problems that in the related art, the conference effect is poor and the resources of a media server cannot be fully utilized due to the fact that the coding and decoding capacity and the network transmission capacity of the media nodes in a video conference scene cannot be balanced and scheduled at the same time.
According to an embodiment of the present application, there is provided a load balancing method for a media node, including: determining a first target media node according to a media coding and decoding capacity residual value of a media node in a media service cluster, and starting a video conference by using the first target media node, wherein the media coding and decoding capacity residual value represents the number of video paths which can be decoded by the media node currently; determining a second target media node according to the network transmission capacity residual value of the media node, and sending channel information of the second target media node to the terminal, wherein the network transmission capacity residual value represents the number of terminals which can be currently accessed by the media node, and the channel information is used for indicating the terminal to access the video conference through the second target media node.
Optionally, determining a first target media node according to a remaining value of media coding and decoding capabilities of media nodes in a media service cluster, and starting a video conference using the first target media node, where the method includes: determining the media node with the largest residual value of the media encoding and decoding capability in the media service cluster as the first target media node; and starting the video conference by using the first target media node under the condition that the residual value of the media coding and decoding capability of the first target media node is greater than or equal to the value of the media coding and decoding capability required by the video conference.
Optionally, before determining the second target media node according to the network transmission capability value of the media node, the method further includes: and receiving an access request sent by the terminal, wherein the access request is used for requesting access to the channel information of the video conference.
Optionally, the determining a second target media node according to the network transmission capability value of the media node includes: acquiring a network transmission capacity residual value of the first target media node; determining the first target media node as the second target media node when the remaining value of the network transmission capability of the first target media node is greater than 0; and under the condition that the network transmission capacity residual value of the first target media node is 0, determining the media node with the maximum network transmission capacity residual value in the media service cluster as the second target media node.
Optionally, after determining the media node with the largest remaining value of network transmission capability in the media service cluster as the second target media node, the method further includes: and under the condition that the remaining value of the network transmission capability of the second target media node is 0, sending an indication message for refusing to access the video conference to the terminal.
Optionally, after sending the channel information of the second target media node to the terminal, the method further includes: after the terminal accesses the video conference, updating the network transmission capacity residual value of the second target media node; and/or after the terminal exits the video conference, updating the network transmission capacity residual value of the second target media node.
According to another embodiment of the present application, there is also provided a load balancing apparatus for a media node, including:
the first determining module is used for determining a first target media node according to a media coding and decoding capacity residual value of a media node in a media service cluster, wherein the media coding and decoding capacity residual value represents the number of video paths which can be decoded by the media node currently;
a start module for starting a video conference using the first target media node;
a second determining module, configured to determine a second target media node according to a network transmission capability remaining value of the media node, where the network transmission capability remaining value indicates a number of terminals that the media node can currently access;
and a sending module, configured to send channel information of the second target media node to the terminal, where the channel information is used to instruct the terminal to access the video conference through the second target media node.
Optionally, the first determining module includes: a determining unit, configured to determine a media node with a largest residual value of media coding and decoding capabilities in the media service cluster as the first target media node;
the starting module comprises: a starting unit, configured to start the video conference by using the first target media node when the remaining value of the media encoding and decoding capability of the first target media node is greater than or equal to the value of the media encoding and decoding capability required by the video conference.
Optionally, the apparatus further comprises:
and the receiving module is used for receiving an access request sent by the terminal, wherein the access request is used for requesting to access the channel information of the video conference.
Optionally, the second determining module includes:
an obtaining unit, configured to obtain a network transmission capability remaining value of the first target media node;
a first determining unit, configured to determine that the first target media node is the second target media node when a remaining value of network transmission capability of the first target media node is greater than 0;
a second determining unit, configured to determine, as the second target media node, a media node with a largest network transmission capability remaining value in the media service cluster when the network transmission capability remaining value of the first target media node is 0.
Optionally, the sending module includes:
a sending unit, configured to send, to the terminal, an indication message for denying access to the video conference when a remaining value of network transmission capability of the second target media node is 0.
Optionally, the apparatus further comprises:
the first updating module is used for updating the network transmission capacity residual value of the second target media node after the terminal accesses the video conference;
and the second updating module is used for updating the network transmission capacity residual value of the second target media node after the terminal exits the video conference.
According to another embodiment of the application, there is also provided a computer-readable storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
According to another embodiment of the present application, there is also provided an electronic device comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the computer program to perform the steps of any of the above method embodiments.
Through the embodiment of the application, the first target media node is determined according to the residual value of the media coding and decoding capability of the media nodes in the media service cluster, the video conference is started by using the first target media node, determining a second target media node according to the network transmission capacity residual value of the media node, and sending channel information of the second target media node to the terminal, wherein the channel information is used for indicating the terminal to access the video conference through the second target media node, so that the problems of poor conference effect and insufficient utilization of media server resources caused by the fact that the encoding and decoding capacity of the media node and the network transmission capacity cannot be simultaneously scheduled in the video conference scene in the prior art are solved, meanwhile, the residual value of the media coding and decoding capacity and the residual value of the network transmission capacity of the media node are considered, the available resources of the media node are more comprehensively scheduled, and the resource allocation effect of the video conference is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic view of a scenario of an optional load balancing method for a media node according to an embodiment of the present application;
fig. 2 is a flowchart of an alternative load balancing method for a media node according to an embodiment of the present application;
fig. 3 is a flowchart of an alternative method for load balancing of codec resources of a conference media service according to an embodiment of the present application;
fig. 4 is a flowchart of an alternative method for load balancing transmission resources of a conference media service network according to an embodiment of the present application;
fig. 5 is a block diagram illustrating an alternative load balancing apparatus of a media node according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an alternative electronic device according to an embodiment of the present application.
Detailed Description
The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The embodiment of the application provides a load balancing method of a media node. Fig. 1 is a schematic view of a scene of a load balancing method for optional media nodes according to an embodiment of the present application, where in the scene shown in fig. 1, all media nodes of a video conference form a media service cluster, all media nodes are accessed to and intercommunicated with a cluster intranet, and media data exchange between the media nodes all goes through the cluster intranet; and part or all of the media nodes are accessed to the cluster external network and used for external service and accessed to the video conference terminal. Part or all of the media nodes have media coding and decoding capability; the media nodes accessed to the cluster external network have external media transmission capability and can be used as media proxy nodes of media nodes with exhausted media transmission capability.
Of course, the technical solution provided in the embodiment of the present application is also applicable to a media service cluster of a single network (non-cluster intranet), and at this time, the media transmission capability value of a single media node can be appropriately reduced for media data exchange between media nodes.
The embodiment of the application provides a load balancing method of a media node. Fig. 2 is a flowchart of an optional load balancing method for a media node according to an embodiment of the present application, and as shown in fig. 2, the method includes:
step S202, a first target media node is determined according to a media coding and decoding capacity residual value of a media node in a media service cluster, and a video conference is started by using the first target media node, wherein the media coding and decoding capacity residual value represents the number of video paths which can be decoded by the media node at present;
step S204, a second target media node is determined according to the network transmission capacity residual value of the media node, and channel information of the second target media node is sent to the terminal, wherein the network transmission capacity residual value represents the number of terminals which can be accessed by the media node at present, and the channel information is used for indicating the terminal to access the video conference through the second target media node.
Through the method, the first target media node is determined according to the residual value of the media coding and decoding capability of the media nodes in the media service cluster, the video conference is started by using the first target media node, determining a second target media node according to the network transmission capacity residual value of the media node, and sending channel information of the second target media node to the terminal, wherein the channel information is used for indicating the terminal to access the video conference through the second target media node, so that the problems of poor conference effect and insufficient utilization of media server resources caused by the fact that the encoding and decoding capacity of the media node and the network transmission capacity cannot be simultaneously scheduled in the video conference scene in the prior art are solved, meanwhile, the residual value of the media coding and decoding capacity and the residual value of the network transmission capacity of the media node are considered, the available resources of the media node are more comprehensively scheduled, and the resource allocation effect of the video conference is improved.
It should be noted that the media node capability values referred to in the embodiments of the present application mainly include media codec capability and media transmission capability (network transmission capability). Wherein, the media coding and decoding capability represents that: the encoding capability is converted into the decoding capability, and one media node can decode 720p H264 paths of video; the media transmission capability means: one media node can transmit the number of terminal access paths of the default configuration conference bandwidth. The media nodes which do not access the cluster external network have no media transmission capability, and the capability value is 0.
For example, the following steps are carried out: a media node with a media codec capability of 80 indicates that it can decode 80 passes 720p H264 of video. A media transmission capability of 40 for one media node indicates that it can access 40 terminal conferences.
The media coding and decoding capability cost of the conference is fusion layout lattice number, one path of video decoding cost and one path of fusion layout coding cost; the media transmission capability overhead of the conference is the number of terminals participating in the conference.
Optionally, determining a first target media node according to a remaining value of media coding and decoding capabilities of media nodes in a media service cluster, and starting a video conference using the first target media node, where the method includes: determining the media node with the largest residual value of the media encoding and decoding capability in the media service cluster as the first target media node; and starting the video conference by using the first target media node under the condition that the residual value of the media coding and decoding capability of the first target media node is greater than or equal to the value of the media coding and decoding capability required by the video conference.
Optionally, before determining the second target media node according to the network transmission capability value of the media node, the method further includes: and receiving an access request sent by the terminal, wherein the access request is used for requesting access to the channel information of the video conference.
Optionally, the determining a second target media node according to the network transmission capability value of the media node includes: acquiring a network transmission capacity residual value of the first target media node; determining the first target media node as the second target media node when the remaining value of the network transmission capability of the first target media node is greater than 0; and under the condition that the network transmission capacity residual value of the first target media node is 0, determining the media node with the maximum network transmission capacity residual value in the media service cluster as the second target media node.
Optionally, after determining the media node with the largest remaining value of network transmission capability in the media service cluster as the second target media node, the method further includes: and under the condition that the remaining value of the network transmission capability of the second target media node is 0, sending an indication message for refusing to access the video conference to the terminal.
Optionally, after sending the channel information of the second target media node to the terminal, the method further includes: after the terminal accesses the video conference, updating the network transmission capacity residual value of the second target media node; and/or after the terminal exits the video conference, updating the network transmission capacity residual value of the second target media node.
In order to better understand the technical solutions involved in the embodiments of the present application, the following describes methods for load balancing of media codec capabilities and load balancing of network transmission capabilities, respectively, with reference to the accompanying drawings.
Fig. 3 is a flowchart of an optional method for load balancing of codec resources of a conference media service according to an embodiment of the present application, and as shown in fig. 3, the method includes the following steps:
1) before starting the conference, dynamically updating the residual coding and decoding capacity values of all the media nodes;
2) traversing all media nodes, and finding the media node with the maximum residual encoding and decoding capacity value, wherein the value is X (the residual value of the media encoding and decoding capacity);
3) calculating the encoding and decoding capability value required by the current conference, wherein the value is Y;
4) if X < Y, returning to the media node failure and the media service capacity is insufficient, otherwise, returning to the media node X;
5) the conference is initiated using the selected media node.
Fig. 4 is a flowchart of an optional method for load balancing transmission resources of a conference media service network according to an embodiment of the present application, as shown in fig. 4, including the following steps:
1. the terminal initiates a conference media channel information acquisition request to the MCU;
2. if the conference is not started successfully, returning to the failure of starting the conference, and skipping to the 8 th step;
3. the signaling service judges whether the residual media transmission capacity value of the media node A where the conference is located is greater than 0, if so, the transmission channel information (address rtpIPs and port rtpPort) of the media node A is used for returning;
4. the signaling node judges that the residual media transmission capacity value of the media node A where the conference is located is 0, traverses all the media nodes, selects the media node B with the maximum residual media transmission capacity value, and returns by using the transmission channel information (rtpIPs, rtpPort) of the media node B;
5. if the residual transmission capacity values of all the media nodes are 0, returning that the media capacity is insufficient, and refusing the terminal to enter the meeting;
6. after the terminal enters into the meeting, updating the residual media transmission capacity value of the used media node, and subtracting one;
7. after the terminal quits, updating the residual media transmission capacity value of the media node, and adding one;
8. the flow ends.
By the method provided by the embodiment of the application, the media coding and decoding capacity and the media transmission capacity of all the media nodes can be fully utilized, and the effect of the conference terminal is ensured; the video conference media service cluster can be conveniently stretched, if the encoding and decoding capabilities are insufficient, only the media nodes accessed to the cluster intranet need to be added, and the cluster extranet IP does not need to be distributed.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. 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, or a network device) to execute the method according to the embodiments of the present application.
According to another aspect of the embodiments of the present application, there is also provided a load balancing apparatus for a media node, which is used for implementing the load balancing method for the media node. Fig. 5 is a block diagram of a structure of an optional load balancing apparatus for a media node according to an embodiment of the present application, and as shown in fig. 5, the apparatus includes:
a first determining module 502, configured to determine a first target media node according to a media codec capability remaining value of a media node in a media service cluster, where the media codec capability remaining value represents a number of video paths that can be decoded by the media node currently;
a start module 504, configured to start a video conference using the first target media node;
a second determining module 506, configured to determine a second target media node according to a network transmission capability remaining value of the media node, where the network transmission capability remaining value indicates a number of terminals that the media node can currently access;
a sending module 508, configured to send channel information of the second target media node to the terminal, where the channel information is used to instruct the terminal to access the video conference through the second target media node.
Optionally, the first determining module 502 includes: a determining unit, configured to determine a media node with a largest residual value of media coding and decoding capabilities in the media service cluster as the first target media node;
the initiating module 504 includes: a starting unit, configured to start the video conference by using the first target media node when the remaining value of the media encoding and decoding capability of the first target media node is greater than or equal to the value of the media encoding and decoding capability required by the video conference.
Optionally, the apparatus further comprises:
and the receiving module is used for receiving an access request sent by the terminal, wherein the access request is used for requesting to access the channel information of the video conference.
Optionally, the second determining module 506 includes:
an obtaining unit, configured to obtain a network transmission capability remaining value of the first target media node;
a first determining unit, configured to determine that the first target media node is the second target media node when a remaining value of network transmission capability of the first target media node is greater than 0;
a second determining unit, configured to determine, as the second target media node, a media node with a largest network transmission capability remaining value in the media service cluster when the network transmission capability remaining value of the first target media node is 0.
Optionally, the sending module 508 includes:
a sending unit, configured to send, to the terminal, an indication message for denying access to the video conference when a remaining value of network transmission capability of the second target media node is 0.
Optionally, the apparatus further comprises:
the first updating module is used for updating the network transmission capacity residual value of the second target media node after the terminal accesses the video conference;
and the second updating module is used for updating the network transmission capacity residual value of the second target media node after the terminal exits the video conference.
According to another aspect of the embodiment of the present application, there is also provided an electronic apparatus for implementing the load balancing method for a media node, where the electronic apparatus may be applied to, but is not limited to, the server 104 shown in fig. 1. As shown in fig. 6, the electronic device comprises a memory 402 and a processor 404, wherein the memory 402 has a computer program stored therein, and the processor 404 is configured to execute the steps of any of the above method embodiments by the computer program.
Optionally, in this embodiment, the electronic apparatus may be located in at least one network device of a plurality of network devices of a computer network.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, determining a first target media node according to the residual value of the media coding and decoding capability of the media nodes in the media service cluster, and starting a video conference by using the first target media node, wherein the residual value of the media coding and decoding capability represents the number of video paths which can be decoded by the media nodes at present;
and S2, determining a second target media node according to the network transmission capacity residual value of the media node, and sending channel information of the second target media node to the terminal, wherein the network transmission capacity residual value represents the number of terminals which can be accessed by the media node at present, and the channel information is used for indicating the terminal to access the video conference through the second target media node.
Alternatively, it can be understood by those skilled in the art that the structure shown in fig. 6 is only an illustration, and the electronic device may also be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 6 is a diagram illustrating a structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 6, or have a different configuration than shown in FIG. 6.
The memory 402 may be configured to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for load balancing a media node in the embodiment of the present application, and the processor 404 executes various functional applications and data processing by running the software programs and modules stored in the memory 402, that is, implements the method for load balancing a media node. The memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 402 may further include memory located remotely from the processor 404, which may be connected to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The memory 402 may be used for storing program steps of a load balancing method of a media node, but is not limited thereto. As an example, as shown in fig. 6, the memory 402 may include, but is not limited to, a first determining module 502, an initiating module 504, a second determining module 506, a sending module 508, and the like in the load balancing apparatus of the media node. In addition, the load balancing apparatus may further include, but is not limited to, other module units in the load balancing apparatus of the media node, which is not described in this example again.
Optionally, the transmission device 406 is used for receiving or sending data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 406 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices to communicate with the internet or a local area Network. In one example, the transmission device 406 is a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
In addition, the electronic device further includes: the display 408 is used for displaying the alarm push of the suspicious account; and a connection bus 410 for connecting the respective module parts in the above-described electronic apparatus.
Embodiments of the present application further provide a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, determining a first target media node according to the residual value of the media coding and decoding capability of the media nodes in the media service cluster, and starting a video conference by using the first target media node, wherein the residual value of the media coding and decoding capability represents the number of video paths which can be decoded by the media nodes at present;
and S2, determining a second target media node according to the network transmission capacity residual value of the media node, and sending channel information of the second target media node to the terminal, wherein the network transmission capacity residual value represents the number of terminals which can be accessed by the media node at present, and the channel information is used for indicating the terminal to access the video conference through the second target media node.
Optionally, the storage medium is further configured to store a computer program for executing the steps included in the method in the foregoing embodiment, which is not described in detail in this embodiment.
Alternatively, in this embodiment, a person skilled in the art may understand that all or part of the steps in the methods of the foregoing embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
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.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a storage medium, and including instructions for causing one or more computer devices (which may be personal computers, servers, network devices, or the like) to execute all or part of the steps of the method described in the embodiments of the present application.
In the above embodiments of the present application, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.
Claims (10)
1. A method for load balancing of media nodes, comprising:
determining a first target media node according to a media coding and decoding capacity residual value of a media node in a media service cluster, and starting a video conference by using the first target media node, wherein the media coding and decoding capacity residual value represents the number of video paths which can be decoded by the media node currently;
determining a second target media node according to the network transmission capacity residual value of the media node, and sending channel information of the second target media node to a terminal, wherein the network transmission capacity residual value represents the number of terminals which can be accessed by the media node currently, and the channel information is used for indicating the terminal to access the video conference through the second target media node.
2. The method of claim 1, wherein determining a first target media node based on a media codec capability remaining value of a media node in a media service cluster, and wherein initiating a video conference using the first target media node comprises:
determining the media node with the largest residual value of the media encoding and decoding capability in the media service cluster as the first target media node;
and starting the video conference by using the first target media node under the condition that the residual value of the media coding and decoding capability of the first target media node is greater than or equal to the value of the media coding and decoding capability required by the video conference.
3. The method of claim 1, wherein before determining the second target media node based on the network transport capability value of the media node, the method further comprises:
and receiving an access request sent by the terminal, wherein the access request is used for requesting access to the channel information of the video conference.
4. The method of claim 1, wherein determining the second target media node based on the network transmission capability value of the media node comprises:
acquiring a network transmission capacity residual value of the first target media node;
determining the first target media node as the second target media node when the remaining value of the network transmission capability of the first target media node is greater than 0;
and under the condition that the network transmission capacity residual value of the first target media node is 0, determining the media node with the maximum network transmission capacity residual value in the media service cluster as the second target media node.
5. The method of claim 4, wherein after determining the media node with the largest remaining value of network transmission capability in the media service cluster as the second target media node, the method further comprises:
and under the condition that the remaining value of the network transmission capability of the second target media node is 0, sending an indication message for refusing to access the video conference to the terminal.
6. The method of claim 1, wherein after sending the channel information of the second target media node to the terminal, the method further comprises:
after the terminal accesses the video conference, updating the network transmission capacity residual value of the second target media node; and/or
And after the terminal exits the video conference, updating the network transmission capacity residual value of the second target media node.
7. An apparatus for load balancing of media nodes, comprising:
the first determining module is used for determining a first target media node according to a media coding and decoding capacity residual value of a media node in a media service cluster, wherein the media coding and decoding capacity residual value represents the number of video paths which can be decoded by the media node currently;
a start module for starting a video conference using the first target media node;
a second determining module, configured to determine a second target media node according to a network transmission capability remaining value of the media node, where the network transmission capability remaining value indicates a number of terminals that the media node can currently access;
and a sending module, configured to send channel information of the second target media node to the terminal, where the channel information is used to instruct the terminal to access the video conference through the second target media node.
8. The apparatus of claim 1,
the first determining module includes:
a determining unit, configured to determine a media node with a largest residual value of media coding and decoding capabilities in the media service cluster as the first target media node;
the starting module comprises:
a starting unit, configured to start the video conference by using the first target media node when the remaining value of the media encoding and decoding capability of the first target media node is greater than or equal to the value of the media encoding and decoding capability required by the video conference.
9. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to carry out the method of any one of claims 1 to 6 when executed.
10. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010131349.4A CN111432158B (en) | 2020-02-28 | 2020-02-28 | Load balancing method and device for media nodes, storage medium and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010131349.4A CN111432158B (en) | 2020-02-28 | 2020-02-28 | Load balancing method and device for media nodes, storage medium and electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111432158A true CN111432158A (en) | 2020-07-17 |
CN111432158B CN111432158B (en) | 2022-02-08 |
Family
ID=71547286
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010131349.4A Active CN111432158B (en) | 2020-02-28 | 2020-02-28 | Load balancing method and device for media nodes, storage medium and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111432158B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112312061A (en) * | 2020-10-15 | 2021-02-02 | 浙江华创视讯科技有限公司 | Video conference method, device, electronic equipment and storage medium |
CN112954449A (en) * | 2021-01-29 | 2021-06-11 | 浙江大华技术股份有限公司 | Video stream processing method, system, electronic device and storage medium |
CN113038065A (en) * | 2021-05-27 | 2021-06-25 | 江苏怀业信息技术股份有限公司 | Data transmission method and data transmission device of video conference system |
CN113157460A (en) * | 2021-05-20 | 2021-07-23 | 苏州达家迎信息技术有限公司 | Service node splitting method and device, storage medium and electronic equipment |
CN113791896A (en) * | 2021-08-23 | 2021-12-14 | 咪咕文化科技有限公司 | Connection path determination method, device and readable storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080158339A1 (en) * | 2005-07-20 | 2008-07-03 | Reha Civanlar | System and method for a conference server architecture for low delay and distributed conferencing applications |
CN101707687A (en) * | 2009-11-10 | 2010-05-12 | 中兴通讯股份有限公司 | Video conference service dispatching method and video conferphone system |
CN102025630A (en) * | 2010-12-14 | 2011-04-20 | 成都市华为赛门铁克科技有限公司 | Load balancing method and load balancing system |
CN102256101A (en) * | 2011-07-26 | 2011-11-23 | 中兴通讯股份有限公司 | Method and system for converting media capability in video conference, and application server |
CN103354557A (en) * | 2009-08-31 | 2013-10-16 | 华为终端有限公司 | Media control server cascade system, multimedia code stream control method and apparatus thereof |
CN106303360A (en) * | 2015-06-10 | 2017-01-04 | 中兴通讯股份有限公司 | Terminal meeting load-balancing method, Apparatus and system |
CN106790249A (en) * | 2017-01-22 | 2017-05-31 | 阔地教育科技有限公司 | A kind of server resource dispatching method and device |
CN110475091A (en) * | 2019-08-13 | 2019-11-19 | 国家电网有限公司 | The processing method and processing device of video conference |
-
2020
- 2020-02-28 CN CN202010131349.4A patent/CN111432158B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080158339A1 (en) * | 2005-07-20 | 2008-07-03 | Reha Civanlar | System and method for a conference server architecture for low delay and distributed conferencing applications |
CN103354557A (en) * | 2009-08-31 | 2013-10-16 | 华为终端有限公司 | Media control server cascade system, multimedia code stream control method and apparatus thereof |
CN101707687A (en) * | 2009-11-10 | 2010-05-12 | 中兴通讯股份有限公司 | Video conference service dispatching method and video conferphone system |
CN102025630A (en) * | 2010-12-14 | 2011-04-20 | 成都市华为赛门铁克科技有限公司 | Load balancing method and load balancing system |
CN102256101A (en) * | 2011-07-26 | 2011-11-23 | 中兴通讯股份有限公司 | Method and system for converting media capability in video conference, and application server |
CN106303360A (en) * | 2015-06-10 | 2017-01-04 | 中兴通讯股份有限公司 | Terminal meeting load-balancing method, Apparatus and system |
CN106790249A (en) * | 2017-01-22 | 2017-05-31 | 阔地教育科技有限公司 | A kind of server resource dispatching method and device |
CN110475091A (en) * | 2019-08-13 | 2019-11-19 | 国家电网有限公司 | The processing method and processing device of video conference |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112312061A (en) * | 2020-10-15 | 2021-02-02 | 浙江华创视讯科技有限公司 | Video conference method, device, electronic equipment and storage medium |
CN112312061B (en) * | 2020-10-15 | 2023-05-12 | 浙江华创视讯科技有限公司 | Video conference method and device, electronic equipment and storage medium |
CN112954449A (en) * | 2021-01-29 | 2021-06-11 | 浙江大华技术股份有限公司 | Video stream processing method, system, electronic device and storage medium |
CN113157460A (en) * | 2021-05-20 | 2021-07-23 | 苏州达家迎信息技术有限公司 | Service node splitting method and device, storage medium and electronic equipment |
CN113157460B (en) * | 2021-05-20 | 2023-06-30 | 苏州达家迎信息技术有限公司 | Service node splitting method and device, storage medium and electronic equipment |
CN113038065A (en) * | 2021-05-27 | 2021-06-25 | 江苏怀业信息技术股份有限公司 | Data transmission method and data transmission device of video conference system |
CN113038065B (en) * | 2021-05-27 | 2021-10-29 | 江苏怀业信息技术股份有限公司 | Data transmission method and data transmission device of video conference system |
CN113791896A (en) * | 2021-08-23 | 2021-12-14 | 咪咕文化科技有限公司 | Connection path determination method, device and readable storage medium |
CN113791896B (en) * | 2021-08-23 | 2024-07-19 | 咪咕文化科技有限公司 | Connection path determination method, device and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN111432158B (en) | 2022-02-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111432158B (en) | Load balancing method and device for media nodes, storage medium and electronic device | |
US11284126B2 (en) | Method and system for streaming media live broadcast | |
CN109067578B (en) | Method and device for multicast fast switching | |
CN110225146B (en) | Intranet and extranet mapping method and device, electronic equipment, medium and video conference system | |
CN111246152B (en) | Video conference automatic recovery method and device, storage medium and electronic device | |
CN109889521B (en) | Memory, communication channel multiplexing implementation method, device and equipment | |
US11539919B1 (en) | Dynamic cloud video composition | |
US8872886B2 (en) | Method, apparatus, and system for establishing multi-cascade channel | |
US20170163761A1 (en) | Method, device and system for obtaining live video | |
CN110933357A (en) | Method and system for integrating monitoring system with video conference system | |
CN112312061B (en) | Video conference method and device, electronic equipment and storage medium | |
WO2015190614A1 (en) | Communication apparatus, communication system, communication management system, communication control method, and computer program product | |
EP2652929B1 (en) | A system and a method for providing a communication service in a communication network | |
CN112398689A (en) | Network recovery method and device, storage medium and electronic equipment | |
CN112788053A (en) | Real-time communication method, device, server, system and storage medium | |
CN113141352B (en) | Multimedia data transmission method and device, computer equipment and storage medium | |
US20170034227A1 (en) | System and methods for an online conference session | |
CN106358008B (en) | Method for avoiding repeated call access and conference television terminal equipment | |
CN103369292A (en) | Call processing method and gateway | |
JP5108728B2 (en) | Communication system and communication method | |
CN114710485A (en) | Processing method and processing apparatus | |
JP3686395B2 (en) | Television communication system | |
CN112637542B (en) | Call connection establishment method, device, computer equipment and storage medium | |
CN113873338B (en) | Data transmission method, terminal device and computer readable storage medium | |
CN118337947A (en) | Cloud video conference access method, device, system, equipment and medium |
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 |