CN114726860B - 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
CN114726860B
CN114726860B CN202210276532.2A CN202210276532A CN114726860B CN 114726860 B CN114726860 B CN 114726860B CN 202210276532 A CN202210276532 A CN 202210276532A CN 114726860 B CN114726860 B CN 114726860B
Authority
CN
China
Prior art keywords
load
service
video
service component
monitoring platform
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210276532.2A
Other languages
Chinese (zh)
Other versions
CN114726860A (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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

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 quality of the video 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 pixel points and column pixel points 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 assembly when the service assembly faces the streaming media transmission according to the weight of each service assembly on the video monitoring platform.
In an optional embodiment, the controlling a scheduling amount of each service component in the streaming media oriented 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 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; d 0 Representing 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 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.
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 corresponding scheduling amounts.
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) 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 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 video frame number collected by the a-th load of the i-th service component on the video monitoring platform; d 0 Representing the data volume of a preset black pixel point; g (i) represents the first on the video monitoring platformThe load number of i service components; 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 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.
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 embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained by those skilled in the art 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 of an embodiment of a method for load balancing for streaming media transmission according to an embodiment of 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 are 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 relationship 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 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 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 quality of the video acquired by the load of each service component on the video monitoring platform, reduce the pressure of each service of the whole monitoring platform cluster and achieve 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 to 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 load of the i service component on the video surveillance platform, 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 number of video frames collected by the a-th load of the i-th service component on the video monitoring platform; d 0 Representing the data volume of a preset black pixel point, wherein F { } represents a non-positive number test function, if the numerical value in brackets is a non-positive number, the function value is 1, otherwise, the function value is 0; k represents a value range of [1-a, G (i) -a ]]A positive variable of (2).
In this embodiment, a 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 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 assembly 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 number of scheduling times in one-time round-robin scheduling of all 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, relieving 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 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.
The system of this embodiment may be used 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 used 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 is 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 flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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 embodiments 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 also within 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 (6)

1. A load balancing method for streaming media transmission is characterized by comprising 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, number of row pixels and number of column pixels in each frame of image of the video;
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;
wherein, the controlling the scheduling amount of each service component facing to the streaming media transmission according to the determined configuration condition 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;
controlling the scheduling amount of each service component during streaming media oriented transmission according to the weight of each service component on the video monitoring platform;
the 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 comprises the following steps:
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;
wherein the first formula is:
Figure DEST_PATH_IMAGE002
wherein, the first and the second end of the pipe are connected with each other,
Figure DEST_PATH_IMAGE004
indicating the video surveillance platform
Figure DEST_PATH_IMAGE006
A service component of
Figure DEST_PATH_IMAGE008
A configured ranking value for each load;
Figure DEST_PATH_IMAGE010
Figure DEST_PATH_IMAGE012
representing the total number of service components on the video monitoring platform;
Figure DEST_PATH_IMAGE014
indicating the first on a video surveillance platform
Figure 798763DEST_PATH_IMAGE006
A service component of
Figure 778221DEST_PATH_IMAGE008
The number of pixel points in each line in each frame of image of the video collected by each load;
Figure DEST_PATH_IMAGE016
indicating the first on a video surveillance platform
Figure 417013DEST_PATH_IMAGE006
A service component of
Figure 343380DEST_PATH_IMAGE008
The number of pixel points in each column in each frame of image of the video collected by each load;
Figure DEST_PATH_IMAGE018
indicating the video surveillance platform
Figure 751228DEST_PATH_IMAGE006
A service component of
Figure 370428DEST_PATH_IMAGE008
The amount of video data collected by each load;
Figure DEST_PATH_IMAGE020
indicating the first on a video surveillance platform
Figure 230937DEST_PATH_IMAGE006
A service component of
Figure 498013DEST_PATH_IMAGE008
The number of video frames collected by each load;
Figure DEST_PATH_IMAGE022
representing the data volume of a preset black pixel point;
Figure DEST_PATH_IMAGE024
indicating the first on a video surveillance platform
Figure 557105DEST_PATH_IMAGE006
The load number of each service component;
Figure DEST_PATH_IMAGE026
the test function represents a non-positive number, if the value in the parentheses is a non-positive number, the function value is 1, otherwise, the function value is 0;
Figure DEST_PATH_IMAGE028
represents a value range of
Figure DEST_PATH_IMAGE030
A positive number variable of (c).
2. The method for load balancing oriented to streaming media transmission according to claim 1, wherein the controlling the scheduling amount of each service component oriented to 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.
3. The method for load balancing oriented to streaming media transmission of claim 2,
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;
the second formula is:
Figure DEST_PATH_IMAGE032
the third formula is:
Figure DEST_PATH_IMAGE034
wherein the content of the first and second substances,
Figure DEST_PATH_IMAGE036
indicating the video surveillance platform
Figure 721108DEST_PATH_IMAGE006
A weight of each service component;
Figure DEST_PATH_IMAGE038
indicating the first on a video surveillance platform
Figure 68912DEST_PATH_IMAGE006
The scheduling times of each service component in one-time circular polling scheduling;
Figure DEST_PATH_IMAGE040
indicating the total number of schedules in one round robin polling schedule for all service components.
4. 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, the number of row pixel points and the number of column pixel points in each frame of image of the video;
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;
wherein, the equalization 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;
the balance submodule is used for controlling the scheduling amount of each service assembly during streaming media oriented transmission according to the weight of each service assembly on the video monitoring platform;
the load configuration determining module is specifically used for 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;
wherein the first formula is:
Figure DEST_PATH_IMAGE002A
wherein the content of the first and second substances,
Figure 789613DEST_PATH_IMAGE004
indicating the video surveillance platform
Figure 375315DEST_PATH_IMAGE006
A service component of
Figure 596037DEST_PATH_IMAGE008
A configured ranking value for each load;
Figure 634400DEST_PATH_IMAGE010
Figure 706262DEST_PATH_IMAGE012
representing the total number of service components on the video monitoring platform;
Figure 146470DEST_PATH_IMAGE014
indicating the first on a video surveillance platform
Figure 278374DEST_PATH_IMAGE006
A first of the service components
Figure 804034DEST_PATH_IMAGE008
The number of pixel points in each line in each frame of image of the video collected by each load;
Figure 945165DEST_PATH_IMAGE016
indicating the video surveillance platform
Figure 505459DEST_PATH_IMAGE006
A first of the service components
Figure 73844DEST_PATH_IMAGE008
The number of pixel points in each column in each frame of image of the video collected by each load;
Figure 821220DEST_PATH_IMAGE018
indicating the first on a video surveillance platform
Figure 500463DEST_PATH_IMAGE006
A service component of
Figure 649685DEST_PATH_IMAGE008
The amount of video data collected by each load;
Figure 123391DEST_PATH_IMAGE020
indicating the video surveillance platform
Figure 358064DEST_PATH_IMAGE006
A first of the service components
Figure 840997DEST_PATH_IMAGE008
The number of video frames collected by each load;
Figure 110305DEST_PATH_IMAGE022
representing the data volume of a preset black pixel point;
Figure 20492DEST_PATH_IMAGE024
indicating the video surveillance platform
Figure 742460DEST_PATH_IMAGE006
The load number of each service component;
Figure 29085DEST_PATH_IMAGE026
the test function of non-positive numbers is shown, if the numerical value in the brackets is the non-positive number, the function value is 1, otherwise, the function value is 0;
Figure 887320DEST_PATH_IMAGE028
represents a value range of
Figure 505426DEST_PATH_IMAGE030
A positive variable of (2).
5. The system for load balancing streaming media transmission according to claim 4, 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 corresponding scheduling amounts.
6. The system for load balancing streaming-oriented media transmission according to claim 5,
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;
the second formula is:
Figure DEST_PATH_IMAGE032A
the third formula is:
Figure DEST_PATH_IMAGE034A
wherein, the first and the second end of the pipe are connected with each other,
Figure 901641DEST_PATH_IMAGE036
indicating the video surveillance platform
Figure 726378DEST_PATH_IMAGE006
A weight of each service component;
Figure 439119DEST_PATH_IMAGE038
indicating the video surveillance platform
Figure 425529DEST_PATH_IMAGE006
A service component is inScheduling times in the secondary round robin scheduling;
Figure DEST_PATH_IMAGE042
indicating the total number of schedules in a one-cycle 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 CN114726860A (en) 2022-07-08
CN114726860B true 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 (6)

* 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
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
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

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10425392B2 (en) * 2015-08-05 2019-09-24 Facebook, Inc. Managing a device cloud
US10461943B1 (en) * 2016-11-14 2019-10-29 Amazon Technologies, Inc. Transparently scalable virtual hardware security module
US20210097106A1 (en) * 2019-09-30 2021-04-01 Citrix Systems, Inc. Generation and use of a dynamic bloom filter

Patent Citations (6)

* 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
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
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
CN114726860A (en) 2022-07-08

Similar Documents

Publication Publication Date Title
CN109218355B (en) Load balancing engine, client, distributed computing system and load balancing method
CN116547958A (en) Method, system and computer readable medium for ranking process of network function selection
CN106657191B (en) Load balancing method and related device and system
CN104243405A (en) Request processing method, device and system
CN112261120B (en) Cloud-side cooperative task unloading method and device for power distribution internet of things
WO2014194704A1 (en) A grouping processing method and system
CN115421930B (en) Task processing method, system, device, equipment and computer readable storage medium
CN115604278A (en) Dynamic load balancing method and system
CN109614228B (en) Comprehensive monitoring front-end system based on dynamic load balancing mode and working method
KR20130060350A (en) Method and apparatus for scheduling communication traffic in atca-based equipment
CN114726860B (en) Load balancing system and load balancing method for streaming media transmission
CN116382892B (en) Load balancing method and device based on multi-cloud fusion and cloud service
JP2008250669A (en) Web monitoring control system, web server control device and web server control program
CN117135130A (en) Server control method, device, electronic equipment and storage medium
CN114513423B (en) Bandwidth adjustment method, device, equipment and storage medium
CN110995802A (en) Task processing method and device, storage medium and electronic device
CN113419842B (en) Method and device for constructing edge computing microservice based on JavaScript
CN112437015A (en) Shunting scheduling method, device, system and computer readable storage medium
US11106680B2 (en) System, method of real-time processing under resource constraint at edge
CN108307206A (en) A kind of distribution method and device of live streaming encoding tasks
CN108540336A (en) A kind of elastic telescopic dispatching method and device
CN111459651B (en) Load balancing method, device, storage medium and scheduling system
CN113448717A (en) Resource scheduling method and device
US20140359104A1 (en) Grouping processing method and system
CN114546631A (en) Task scheduling method, control method, core, electronic device and readable 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