CN114726860A - Load balancing system and load balancing method for streaming media transmission - Google Patents

Load balancing system and load balancing method for streaming media transmission Download PDF

Info

Publication number
CN114726860A
CN114726860A CN202210276532.2A CN202210276532A CN114726860A CN 114726860 A CN114726860 A CN 114726860A CN 202210276532 A CN202210276532 A CN 202210276532A CN 114726860 A CN114726860 A CN 114726860A
Authority
CN
China
Prior art keywords
load
service
monitoring platform
video monitoring
video
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
CN202210276532.2A
Other languages
Chinese (zh)
Other versions
CN114726860B (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.)
China Standard Intelligent Security Technology Co Ltd
Original Assignee
China Standard Intelligent Security Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Standard Intelligent Security Technology Co Ltd filed Critical China Standard Intelligent Security Technology Co Ltd
Priority to CN202210276532.2A priority Critical patent/CN114726860B/en
Publication of CN114726860A publication Critical patent/CN114726860A/en
Application granted granted Critical
Publication of CN114726860B publication Critical patent/CN114726860B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1008Server selection for load balancing based on parameters of servers, e.g. available memory or workload
    • 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/80Responding to QoS

Abstract

The embodiment of the invention discloses a load balancing system and a load balancing method for streaming media transmission, and relates to the technical field of streaming media transmission. The method comprises the following steps: determining the configuration condition of each load of each service assembly according to the video quality acquired by the load of each service assembly on the video monitoring platform; the video quality at least comprises video data volume, video frame number, and the number of row pixels and column pixels in each frame of image of the video; and controlling the scheduling amount of each service assembly during the transmission facing the streaming media according to the determined configuration condition of each load of each service assembly so as to realize load balance. The invention can reasonably schedule the service components according to the video quality acquired by the load of each service component on the video monitoring platform, thereby improving the load balancing effect.

Description

Load balancing system and load balancing method for streaming media transmission
Technical Field
The invention belongs to the technical field of streaming media transmission, and particularly relates to a streaming media transmission-oriented load balancing system and a streaming media transmission-oriented load balancing method.
Background
Load balancing builds on existing network architectures and provides an inexpensive, efficient, transparent way to extend the bandwidth of network devices and servers, increase throughput, enhance network data processing capabilities, and increase network flexibility and availability. Load Balance means that tasks to be executed are distributed to a plurality of operation units for execution, such as a Web server, an FTP server, an enterprise key application server, other key task servers and the like, so that work tasks are completed together, and a large number of concurrent access service problems are solved. This clustering technique can achieve performance close to that of a mainframe with minimal investment.
Currently, the load balancing algorithm includes a polling method, a random method and a minimum connection method, wherein the polling method is to allocate tasks in turn, the random method is to allocate tasks randomly, and the minimum connection method is to allocate tasks to the node with the minimum connection number at this time. The applicability of the algorithms on a video monitoring platform is poor, because the specifications of videos acquired by monitoring equipment are different, if the number of pixel points contained in each video frame is different, service resources consumed for processing the videos are different, the current load balancing algorithm has limitations, and resource scheduling cannot be performed according to the quality of the monitored videos, so that the load balancing effect is poor.
Disclosure of Invention
In view of this, embodiments of the present invention provide a load balancing system and a load balancing method for streaming media transmission, which are used to solve the problem that the existing load balancing algorithm cannot schedule service resources according to the quality of a monitoring video, so that the effect of load balancing is poor. The invention can reasonably schedule the service components according to the video quality acquired by the load of each service component on the video monitoring platform, thereby improving the load balancing effect.
The embodiment of the invention provides a load balancing method facing to streaming media transmission, which comprises the following steps:
determining the configuration condition of each load of each service assembly according to the video quality acquired by the load of each service assembly on the video monitoring platform; the video quality at least comprises video data volume, video frame number, and the number of row pixels and column pixels in each frame of image of the video;
and controlling the scheduling amount of each service assembly during the transmission facing the streaming media according to the determined configuration condition of each load of each service assembly so as to realize load balance.
In an optional embodiment, the controlling, according to the determined configuration condition of each load of each service component, a scheduling amount of each service component during streaming media oriented transmission includes:
determining the weight of each service component according to the load number of each service component on the video monitoring platform and the configuration condition of each load of each service component;
and controlling the scheduling amount of each service component facing to the streaming media transmission according to the weight of each service component on the video monitoring platform.
In an optional embodiment, the controlling a scheduling amount of each service component when the service component faces streaming media transmission according to a weight of each service component on the video monitoring platform includes:
determining the round-robin scheduling times of each service assembly according to the weight of each service assembly on the video monitoring platform and the total scheduling times in one-time round-robin scheduling of all the service assemblies;
and controlling each service component to transmit streaming media by taking the determined round-robin scheduling times as corresponding scheduling amounts.
In an optional embodiment, the determining, according to the video quality acquired by the load of each service component on the video monitoring platform, the configuration condition of each load of each service component includes:
calculating a configuration ranking value of each load based on a first formula according to the video quality acquired by the load of each service assembly on the video monitoring platform; the configuration ranking value of the load is used for representing the configuration condition of the load, and the smaller the configuration ranking value is, the higher the configuration of the load is represented;
the determining the weight of each service component according to the number of the loads of each service component on the video monitoring platform and the configuration condition of each load of each service component comprises the following steps:
calculating the weight of each service component based on a second formula according to the number of the loads of each service component on the video monitoring platform and the configuration ranking value of each load of each service component;
the determining the round-robin scheduling times of each service component according to the weight of each service component on the video monitoring platform and the total scheduling times in one-time round-robin scheduling of all the service components comprises the following steps:
calculating the round-robin scheduling times of each service assembly based on a third formula according to the weight of each service assembly on the video monitoring platform and the total scheduling times in one-time round-robin scheduling of all the service assemblies;
wherein the first formula is:
Figure BDA0003555961400000031
the second formula is:
Figure BDA0003555961400000032
the third formula is:
Figure BDA0003555961400000033
in the first to third formulas, H (i _ a) represents a configuration ranking value of the a load of the i service component on the video monitoring platform; e (i) represents the weight of the ith service component on the video monitoring platform; c (i) represents the scheduling times of the ith service component on the video monitoring platform in one-time circular polling scheduling; i ═ 1,2, …, Z; z represents the total number of service components on the video monitoring platform; m (i _ a) represents the number of pixel points in each line in each frame image of the video collected by the a-th load of the ith service component on the video monitoring platform; n (i _ a) represents the first place on the video monitoring platformThe number of pixel points in each column in each frame image of the video collected by the a-th load of the i service components; d (i _ a) represents the video data volume collected by the a load of the i service component on the video monitoring platform; r (i _ a) represents the video frame number collected by the a-th load of the i-th service component on the video monitoring platform; d0Representing the data volume of a preset black pixel point; g (i) represents the load number of the ith service assembly on the video monitoring platform; f + represents a non-positive number test function, if the numerical value in the parentheses is a non-positive number, the function value is 1, otherwise, the function value is 0; k represents a positive variable with the value range of 1-a, G (i) -a-; l represents the total number of schedules in one round robin polling schedule for all service components.
In a second aspect, an embodiment of the present invention further provides a load balancing system for streaming media transmission, including:
the load configuration determining module is used for determining the configuration condition of each load of each service assembly according to the video quality acquired by the load of each service assembly on the video monitoring platform; the video quality at least comprises video data volume, video frame number, and the number of row pixel points and column pixel points in each frame of image of the video;
and the balancing module is used for controlling the scheduling amount of each service assembly during the transmission facing the streaming media according to the determined configuration condition of each load of each service assembly so as to realize load balancing.
In an optional embodiment, the equalization module includes:
the weight determining submodule is used for determining the weight of each service assembly according to the number of the loads of each service assembly on the video monitoring platform and the configuration condition of each load of each service assembly;
and the balancing submodule is used for controlling the scheduling amount of each service assembly facing to the streaming media transmission according to the weight of each service assembly on the video monitoring platform.
In an optional embodiment, the equalization submodule includes:
the scheduling frequency determining unit is used for determining the round-robin scheduling frequency of each service assembly according to the weight of each service assembly on the video monitoring platform and the total scheduling frequency in one-time round-robin scheduling of all the service assemblies;
and the balance control unit is used for controlling each service component to transmit the streaming media by taking the determined round-robin scheduling times as the corresponding scheduling amount.
In an optional embodiment, the load configuration determining module is specifically configured to calculate, based on a first formula, a configuration ranking value of each load according to a video quality acquired by a load of each service component on the video monitoring platform; the configuration ranking value of the load is used for representing the configuration condition of the load, and the smaller the configuration ranking value is, the higher the configuration of the load is represented;
the weight determining submodule is used for calculating the weight of each service assembly based on a second formula according to the number of the loads of each service assembly on the video monitoring platform and the configuration ranking value of each load of each service assembly;
the scheduling frequency determining unit is used for calculating the round-robin scheduling frequency of each service assembly based on a third formula according to the weight of each service assembly on the video monitoring platform and the total scheduling frequency in one-time round-robin scheduling of all the service assemblies;
wherein the first formula is:
Figure BDA0003555961400000051
the second formula is:
Figure BDA0003555961400000052
the third formula is:
Figure BDA0003555961400000053
in the first to third formulas, H (i _ a) represents a configuration ranking value of the a load of the i service component on the video monitoring platform; e (i) watchShowing the weight of the ith service component on the video monitoring platform; c (i) represents the scheduling times of the ith service component on the video monitoring platform in one-time circular polling scheduling; i ═ 1,2, …, Z; z represents the total number of service components on the video monitoring platform; m (i _ a) represents the number of pixel points in each line in each frame image of the video collected by the a-th load of the ith service component on the video monitoring platform; n (i _ a) represents the number of pixel points in each column in each frame image of a video collected by the a load of the i service component on the video monitoring platform; d (i _ a) represents the video data volume collected by the a load of the i service component on the video monitoring platform; r (i _ a) represents the video frame number collected by the a-th load of the i-th service component on the video monitoring platform; d0Representing the data volume of a preset black pixel point; g (i) represents the load number of the ith service assembly on the video monitoring platform; f + represents a non-positive number test function, if the numerical value in the parentheses is a non-positive number, the function value is 1, otherwise, the function value is 0; k represents a positive variable with the value range of 1-a, G (i) -a-; l represents the total number of schedules in one round robin polling schedule for all service components.
The invention provides a load balancing system and a load balancing method for streaming media transmission, which are characterized in that firstly, the configuration condition of each load of each service assembly is determined according to the video quality acquired by the load of each service assembly on a video monitoring platform, and then the scheduling amount of each service assembly in the streaming media transmission facing process is controlled according to the determined configuration condition of each load of each service assembly, so as to realize load balancing. The invention can reasonably schedule the service components according to the video quality acquired by the load of each service component on the video monitoring platform, reduces the pressure of each service of the whole monitoring platform cluster and achieves the load balance of the whole platform cluster.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of an embodiment of a method for load balancing for streaming media transmission according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating an embodiment of a method for load balancing for streaming media transmission according to the present invention;
fig. 3 is a schematic structural diagram of an embodiment of a load balancing system for streaming media transmission according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a second embodiment of a load balancing system for streaming media transmission according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a third embodiment of a load balancing system for streaming media transmission according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
It should be understood that the described embodiments are only some embodiments of the invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart of an embodiment of a load balancing method for streaming media transmission according to the present invention. Referring to fig. 1, the method includes the following steps S101-S102:
s101: and determining the configuration condition of each load of each service assembly according to the video quality acquired by the load of each service assembly on the video monitoring platform.
The video quality at least comprises video data volume, video frame number, and the number of row pixels and column pixels in each frame of image of the video.
In this embodiment, the configuration condition of each load of the service component is affected by the quality of the collected video, and the video quality is described by the video data volume, the video frame number, and the number of row pixels and column pixels in each frame of image of the video. Wherein, the relation between the load configuration and the video quality is as follows: the higher the video quality, the lower its load configuration, whereas the lower the video quality, the higher the load configuration.
S102: and controlling the scheduling amount of each service assembly during the transmission facing the streaming media according to the determined configuration condition of each load of each service assembly so as to realize load balance.
In this embodiment, the performance of each service component is in a direct proportion to the configuration of the load thereof, so that the adjustment amount of each service component can be controlled according to the configuration of each load, thereby achieving the effect of load balancing.
As an alternative embodiment, the step S102 includes steps S1021 to S1022:
s1021: and determining the weight of each service component according to the load number of each service component on the video monitoring platform and the configuration condition of each load of each service component.
S1022: and controlling the scheduling amount of each service component facing to the streaming media transmission according to the weight of each service component on the video monitoring platform.
In this embodiment, the number of loads of each service component and the configuration condition of each load of each service component on the video monitoring platform objectively reflect the service pressure condition of each service component, and then convert the service pressure condition into a weight form, that is, the smaller the service pressure is, the larger the weight value is, wherein the weight of the service component reflects the degree of probability that the service component is selected, and specifically, the larger the weight is, the higher the probability of selection is. Therefore, the more times the service components with better performance are selected, the pressure of each service of the whole monitoring platform cluster is further reduced, and the load balancing effect of the whole platform cluster is achieved.
The invention provides a load balancing method facing to streaming media transmission, which comprises the steps of firstly determining the configuration condition of each load of each service assembly according to the video quality acquired by the load of each service assembly on a video monitoring platform, and then controlling the scheduling amount of each service assembly facing to the streaming media transmission according to the determined configuration condition of each load of each service assembly so as to realize load balancing. The invention can reasonably schedule the service components according to the video quality acquired by the load of each service component on the video monitoring platform, reduces the pressure of each service of the whole monitoring platform cluster and achieves the load balance of the whole platform cluster.
Fig. 2 is a flowchart of an embodiment of a method for load balancing for streaming media transmission according to the present invention. Referring to fig. 2, the method includes the following steps S201-S204:
s201: and determining the configuration condition of each load of each service assembly according to the video quality acquired by the load of each service assembly on the video monitoring platform.
The video quality at least comprises video data volume, video frame number, and the number of row pixels and column pixels in each frame of image of the video.
As an alternative embodiment, step S201 includes: calculating a configuration ranking value of each load based on a first formula according to the video quality acquired by the load of each service assembly on the video monitoring platform; the configuration ranking value of the load is used for representing the configuration situation of the load, and the smaller the configuration ranking value is, the higher the configuration of the load is represented.
Preferably, the first formula is:
Figure BDA0003555961400000081
in the first formula, H (i _ a) represents a configuration ranking value of the a-th load of the i-th service component on the video monitoring platform, i is 1,2, …, Z; z represents the total number of service components on the video monitoring platform; m (i _ a) represents the number of pixel points in each line in each frame of image of the video collected by the a load of the ith service component on the video monitoring platform; n (i _ a) represents the number of pixel points in each column in each frame image of the video collected by the a-th load of the ith service component on the video monitoring platform; d (i _ a) represents the video data volume collected by the a-th load of the i-th service component on the video monitoring platform; r (i _ a) represents the ith clothes on the video monitoring platformThe video frame number collected by the a-th load of the service component; d0Representing the data volume of a preset black pixel point, F + represents a non-positive number test function, if the value in the bracket is a non-positive number, the function value is 1, otherwise, the function value is 0; k represents a positive variable with a value range of 1-a, G (i) -a-.
In this embodiment, the configuration ranking value of each load is obtained according to the video quality acquired by the load of each service component on the video monitoring platform (the smaller the configuration ranking value is, the higher the configuration of the represented load is), so that the configuration level of each load in each service component is known, and the subsequent service component scheduling is more reasonable and balanced.
S202: and determining the weight of each service component according to the load number of each service component on the video monitoring platform and the configuration condition of each load of each service component.
As an optional embodiment, in this step S202, specifically, the weight of each service component is calculated based on the second formula according to the number of loads of each service component on the video monitoring platform and the configuration ranking value of each load of each service component.
Preferably, the second formula is:
Figure BDA0003555961400000091
in a second formula, E (i) represents the weight of the ith service component on the video monitoring platform; g (i) represents the load number of the ith service component on the video monitoring platform.
In this embodiment, the weight of each service component is obtained according to the number of loads of each service component on the video monitoring platform and the configuration ranking value of the corresponding load, so that a higher weight is configured for a component with a high configuration and a component with a low load, a lower weight is assigned for a component with a low configuration and a component with a high load, the frequency of selecting the service component with a high weight is increased, and the service pressure of each service component is balanced.
S203: and determining the round-robin scheduling times of each service assembly according to the weight of each service assembly on the video monitoring platform and the total scheduling times in one-time round-robin scheduling of all the service assemblies.
As an optional embodiment, in step S203, the round-robin scheduling times of each service component are calculated based on a third formula according to the weight of each service component on the video monitoring platform and the total scheduling times in one-time round-robin scheduling of all the service components.
Preferably, the third formula is:
Figure BDA0003555961400000092
in a third formula, C (i) represents the scheduling times of the ith service component on the video monitoring platform in one-time circular polling scheduling; l represents the total number of schedules in one round robin polling schedule for all service components.
In this embodiment, the round-robin scheduling times of each service component are obtained according to the weight value of each service component on the video monitoring platform and the total scheduling times in one-time round-robin scheduling of the service components, so that the components with high weights process more requests, and the components with low weights reduce the scheduling times, thereby reducing the system load power consumption, reducing the pressure of each service of the whole monitoring platform cluster, and achieving load balancing of the whole platform cluster.
S204: and controlling each service component to transmit streaming media by taking the determined round-robin scheduling times as corresponding scheduling amounts.
The invention provides a load balancing method facing to streaming media transmission, which comprises the steps of firstly, determining the configuration condition of each load of each service assembly according to the video quality acquired by the load of each service assembly on a video monitoring platform; determining the weight of each service component according to the determined configuration condition of each load of each service component; and finally, according to the weight, the components with high weight process more requests, and the components with low weight reduce the scheduling times, so that the load power consumption of the system is reduced, the pressure of each service of the whole monitoring platform cluster is reduced, and the load balance of the whole platform cluster is achieved.
Fig. 3 is a schematic structural diagram of an embodiment of a load balancing system for streaming media transmission according to an embodiment of the present invention, and as shown in fig. 3, the system includes:
the load configuration determining module 1 is used for determining the configuration condition of each load of each service component according to the video quality acquired by the load of each service component on the video monitoring platform; the video quality at least comprises video data volume, video frame number, and the number of row pixels and column pixels in each frame of image of the video;
and the balancing module 2 is used for controlling the scheduling amount of each service component during streaming media oriented transmission according to the determined configuration condition of each load of each service component so as to realize load balancing.
The system of this embodiment may be configured to implement the technical solution of the method embodiment shown in fig. 1, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 4 is a schematic structural diagram of a second embodiment of a load balancing system for streaming media transmission according to an embodiment of the present invention, as shown in fig. 4, the system of this embodiment is based on the system structure shown in fig. 3, and further, the balancing module 2 includes:
the weight determining submodule 21 is configured to determine the weight of each service component according to the number of loads of each service component on the video monitoring platform and the configuration condition of each load of each service component.
And the balancing submodule 22 is used for controlling the scheduling amount of each service component facing to the streaming media transmission according to the weight of each service component on the video monitoring platform.
The system of this embodiment may be used to implement the technical solutions of the method embodiments shown in fig. 1 or fig. 2, and the implementation principles and technical effects are similar, which are not described herein again.
Fig. 5 is a schematic structural diagram of a second embodiment of a load balancing system for streaming media transmission according to an embodiment of the present invention, as shown in fig. 5, the system of this embodiment further includes, on the basis of the system structure shown in fig. 4, a balancing submodule 22, which includes:
the scheduling frequency determining unit 221 is configured to determine the round-robin scheduling frequency of each service component according to the weight of each service component on the video monitoring platform and the total scheduling frequency in one-time round-robin scheduling of all the service components;
and the balance control unit 222 is configured to control each service component to perform streaming media transmission by using the determined round-robin scheduling times as corresponding scheduling amounts.
The system of this embodiment may be configured to implement the technical solution of the method embodiment shown in fig. 2, and the implementation principle and the technical effect are similar, which are not described herein again.
Preferably, the load configuration determining module 1 is specifically configured to calculate, according to the quality of the video acquired by the load of each service component on the video monitoring platform, a configuration ranking value of each load based on the first formula; the configuration ranking value of the load is used for representing the configuration situation of the load, and the smaller the configuration ranking value is, the higher the configuration of the load is represented. The weight determining submodule 21 is specifically configured to calculate the weight of each service component based on the second formula according to the number of loads of each service component on the video monitoring platform and the configuration ranking value of each load of each service component. The scheduling frequency determining unit 221 is specifically configured to calculate the round-robin scheduling frequency of each service component based on the third formula according to the weight of each service component on the video monitoring platform and the total scheduling frequency in one-time round-robin scheduling of all the service components.
The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations. The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (8)

1. A load balancing method for streaming media transmission is characterized in that the method comprises the following steps:
determining the configuration condition of each load of each service assembly according to the video quality acquired by the load of each service assembly on the video monitoring platform; the video quality at least comprises video data volume, video frame number, and the number of row pixels and column pixels in each frame of image of the video;
and controlling the scheduling amount of each service assembly during the transmission facing the streaming media according to the determined configuration condition of each load of each service assembly so as to realize load balance.
2. The method according to claim 1, wherein the controlling the scheduling amount of each service component for streaming media transmission according to the determined configuration of each load of each service component comprises:
determining the weight of each service component according to the load number of each service component on the video monitoring platform and the configuration condition of each load of each service component;
and controlling the scheduling amount of each service assembly when the service assembly faces the streaming media transmission according to the weight of each service assembly on the video monitoring platform.
3. The method as claimed in claim 2, wherein the controlling the scheduling amount of each service component for streaming media transmission according to the weight of each service component on the video monitoring platform comprises:
determining the round-robin scheduling times of each service assembly according to the weight of each service assembly on the video monitoring platform and the total scheduling times in one-time round-robin scheduling of all the service assemblies;
and controlling each service component to transmit streaming media by taking the determined round-robin scheduling times as corresponding scheduling amounts.
4. The method for load balancing oriented to streaming media transmission according to claim 3, wherein the determining the configuration of each load of each service component according to the video quality collected by the load of each service component on the video monitoring platform includes:
calculating a configuration ranking value of each load based on a first formula according to the video quality acquired by the load of each service assembly on the video monitoring platform; the configuration ranking value of the load is used for representing the configuration condition of the load, and the smaller the configuration ranking value is, the higher the configuration of the load is represented;
the determining the weight of each service component according to the number of the loads of each service component on the video monitoring platform and the configuration condition of each load of each service component comprises the following steps:
calculating the weight of each service component based on a second formula according to the number of the loads of each service component on the video monitoring platform and the configuration ranking value of each load of each service component;
the determining the round-robin scheduling times of each service component according to the weight of each service component on the video monitoring platform and the total scheduling times in one-time round-robin scheduling of all the service components comprises the following steps:
calculating the round-robin scheduling times of each service assembly based on a third formula according to the weight of each service assembly on the video monitoring platform and the total scheduling times in one-time round-robin scheduling of all the service assemblies;
wherein the first formula is:
Figure FDA0003555961390000021
the second formula is:
Figure FDA0003555961390000022
the third formula is:
Figure FDA0003555961390000023
in the first to third formulas, H (i _ a) represents a configuration ranking value of the a load of the i service component on the video monitoring platform; e (i) represents the weight of the ith service component on the video monitoring platform; c (i) represents the scheduling times of the ith service assembly on the video monitoring platform in one-time circular polling scheduling; i ═ 1,2, …, Z; z represents the total number of service components on the video monitoring platform; m (i _ a) represents the a load collection of the i service component on the video monitoring platformThe number of pixel points in each line in each frame image of the obtained video; n (i _ a) represents the number of pixel points in each column in each frame image of the video collected by the a-th load of the ith service component on the video monitoring platform; d (i _ a) represents the video data volume collected by the a-th load of the i-th service component on the video monitoring platform; r (i _ a) represents the video frame number collected by the a-th load of the i-th service component on the video monitoring platform; d0Representing the data volume of a preset black pixel point; g (i) represents the load number of the ith service assembly on the video monitoring platform; f { } represents a non-positive number test function, if the numerical value in the brackets is a non-positive number, the function value is 1, otherwise, the function value is 0; k represents a value in the range of [1-a, G (i) -a]A positive variable of (d); l represents the total number of schedules in one round robin polling schedule for all service components.
5. A system for load balancing for streaming media transmission, comprising:
the load configuration determining module is used for determining the configuration condition of each load of each service assembly according to the video quality acquired by the load of each service assembly on the video monitoring platform; the video quality at least comprises video data volume, video frame number, and the number of row pixels and column pixels in each frame of image of the video;
and the balancing module is used for controlling the scheduling amount of each service assembly during the transmission facing the streaming media according to the determined configuration condition of each load of each service assembly so as to realize load balancing.
6. The system for load balancing oriented to streaming media transmission according to claim 5, wherein the balancing module comprises:
the weight determining submodule is used for determining the weight of each service assembly according to the number of the loads of each service assembly on the video monitoring platform and the configuration condition of each load of each service assembly;
and the balancing submodule is used for controlling the scheduling amount of each service assembly facing to the streaming media transmission according to the weight of each service assembly on the video monitoring platform.
7. The system for load balancing streaming media transmission according to claim 6, wherein the balancing sub-module includes:
the scheduling frequency determining unit is used for determining the round-robin scheduling frequency of each service assembly according to the weight of each service assembly on the video monitoring platform and the total scheduling frequency in one-time round-robin scheduling of all the service assemblies;
and the balance control unit is used for controlling each service component to transmit the streaming media by taking the determined round-robin scheduling times as the corresponding scheduling amount.
8. The system according to claim 7, wherein the load configuration determining module is specifically configured to calculate, based on a first formula, a configuration ranking value of each load according to a video quality acquired by a load of each service component on the video monitoring platform; the configuration ranking value of the load is used for representing the configuration condition of the load, and the smaller the configuration ranking value is, the higher the configuration of the load is represented;
the weight determining submodule is used for calculating the weight of each service assembly based on a second formula according to the number of the loads of each service assembly on the video monitoring platform and the configuration ranking value of each load of each service assembly;
the scheduling frequency determining unit is used for calculating the round-robin scheduling frequency of each service assembly based on a third formula according to the weight of each service assembly on the video monitoring platform and the total scheduling frequency in one-time round-robin scheduling of all the service assemblies;
wherein the first formula is:
Figure FDA0003555961390000041
the second formula is:
Figure FDA0003555961390000042
the third formula is:
Figure FDA0003555961390000043
in the first to third formulas, H (i _ a) represents a configuration ranking value of the a load of the i service component on the video monitoring platform; e (i) represents the weight of the ith service component on the video monitoring platform; c (i) represents the scheduling times of the ith service component on the video monitoring platform in one-time circular polling scheduling; i ═ 1,2, …, Z; z represents the total number of service components on the video monitoring platform; m (i _ a) represents the number of pixel points in each line in each frame image of the video collected by the a-th load of the ith service component on the video monitoring platform; n (i _ a) represents the number of pixel points in each column in each frame image of the video collected by the a-th load of the ith service component on the video monitoring platform; d (i _ a) represents the video data volume collected by the a-th load of the i-th service component on the video monitoring platform; r (i _ a) represents the video frame number collected by the a-th load of the i-th service component on the video monitoring platform; d0Representing the data volume of a preset black pixel point; g (i) represents the load number of the ith service assembly on the video monitoring platform; f { } represents a non-positive number check function, if the numerical value in parentheses is a non-positive number, the function value is 1, otherwise, the function value is 0; k represents a value in the range of [1-a, G (i) -a]A positive variable of (d); l represents the total number of schedules in one round robin polling schedule for all service components.
CN202210276532.2A 2022-03-21 2022-03-21 Load balancing system and load balancing method for streaming media transmission Active CN114726860B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210276532.2A CN114726860B (en) 2022-03-21 2022-03-21 Load balancing system and load balancing method for streaming media transmission

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210276532.2A CN114726860B (en) 2022-03-21 2022-03-21 Load balancing system and load balancing method for streaming media transmission

Publications (2)

Publication Number Publication Date
CN114726860A true CN114726860A (en) 2022-07-08
CN114726860B CN114726860B (en) 2022-10-21

Family

ID=82237509

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210276532.2A Active CN114726860B (en) 2022-03-21 2022-03-21 Load balancing system and load balancing method for streaming media transmission

Country Status (1)

Country Link
CN (1) CN114726860B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101753980A (en) * 2010-02-05 2010-06-23 上海悠络客电子科技有限公司 Method for realizing quasi real-time network video based on p2p technology
US20170041304A1 (en) * 2015-08-05 2017-02-09 Facebook, Inc. Managing a Device Cloud
CN110099083A (en) * 2018-01-30 2019-08-06 贵州白山云科技股份有限公司 A kind of load equilibration scheduling method and device for server cluster
CN110602156A (en) * 2019-03-11 2019-12-20 平安科技(深圳)有限公司 Load balancing scheduling method and device
CN110650171A (en) * 2018-06-27 2020-01-03 视联动力信息技术股份有限公司 Video networking service scheduling system and method
US20200059373A1 (en) * 2016-11-14 2020-02-20 Amazon Technologies, Inc. Transparently scalable virtual hardware security module
CN111193788A (en) * 2019-12-24 2020-05-22 视联动力信息技术股份有限公司 Audio and video stream load balancing method and device
US20210097106A1 (en) * 2019-09-30 2021-04-01 Citrix Systems, Inc. Generation and use of a dynamic bloom filter
CN113141317A (en) * 2021-03-05 2021-07-20 西安电子科技大学 Streaming media server load balancing method, system, computer equipment and terminal

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101753980A (en) * 2010-02-05 2010-06-23 上海悠络客电子科技有限公司 Method for realizing quasi real-time network video based on p2p technology
US20170041304A1 (en) * 2015-08-05 2017-02-09 Facebook, Inc. Managing a Device Cloud
US20200059373A1 (en) * 2016-11-14 2020-02-20 Amazon Technologies, Inc. Transparently scalable virtual hardware security module
CN110099083A (en) * 2018-01-30 2019-08-06 贵州白山云科技股份有限公司 A kind of load equilibration scheduling method and device for server cluster
CN110650171A (en) * 2018-06-27 2020-01-03 视联动力信息技术股份有限公司 Video networking service scheduling system and method
CN110602156A (en) * 2019-03-11 2019-12-20 平安科技(深圳)有限公司 Load balancing scheduling method and device
US20210097106A1 (en) * 2019-09-30 2021-04-01 Citrix Systems, Inc. Generation and use of a dynamic bloom filter
CN111193788A (en) * 2019-12-24 2020-05-22 视联动力信息技术股份有限公司 Audio and video stream load balancing method and device
CN113141317A (en) * 2021-03-05 2021-07-20 西安电子科技大学 Streaming media server load balancing method, system, computer equipment and terminal

Also Published As

Publication number Publication date
CN114726860B (en) 2022-10-21

Similar Documents

Publication Publication Date Title
CN116547958A (en) Method, system and computer readable medium for ranking process of network function selection
CN112162865A (en) Server scheduling method and device and server
CN106657191B (en) Load balancing method and related device and system
CN104243405A (en) Request processing method, device and system
CN111131486B (en) Load adjustment method and device of execution node, server and storage medium
CN111694663A (en) Load balancing method, device and system for server cluster
CN112261120B (en) Cloud-side cooperative task unloading method and device for power distribution internet of things
CN102217247B (en) Method, apparatus and system for implementing multiple web application requests scheduling
CN115604278A (en) Dynamic load balancing method and system
KR101448413B1 (en) Method and apparatus for scheduling communication traffic in atca-based equipment
CN109614228B (en) Comprehensive monitoring front-end system based on dynamic load balancing mode and working method
CN103744735A (en) Method and device for scheduling multi-core resource
CN114726860B (en) Load balancing system and load balancing method for streaming media transmission
CN117311973A (en) Computing device scheduling method and device, nonvolatile storage medium and electronic device
CN115421930B (en) Task processing method, system, device, equipment and computer readable storage medium
CN110995802A (en) Task processing method and device, storage medium and electronic device
CN115580618A (en) Load balancing method, device, equipment and medium
CN115643299A (en) Service deployment method and device and electronic equipment
CN108307206A (en) A kind of distribution method and device of live streaming encoding tasks
CN111459651B (en) Load balancing method, device, storage medium and scheduling system
CN113448717A (en) Resource scheduling method and device
CN114546631A (en) Task scheduling method, control method, core, electronic device and readable medium
CN114513423B (en) Bandwidth adjustment method, device, equipment and storage medium
CN114928606B (en) Scheduling method and system for server resources
CN108540336A (en) A kind of elastic telescopic dispatching method and device

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