CN111787372B - Streaming media distribution method based on multiple condition scheduling - Google Patents
Streaming media distribution method based on multiple condition scheduling Download PDFInfo
- Publication number
- CN111787372B CN111787372B CN202010621055.XA CN202010621055A CN111787372B CN 111787372 B CN111787372 B CN 111787372B CN 202010621055 A CN202010621055 A CN 202010621055A CN 111787372 B CN111787372 B CN 111787372B
- Authority
- CN
- China
- Prior art keywords
- streaming media
- scheduling
- server
- equipment
- address
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/262—Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
- H04N21/26208—Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/239—Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
- H04N21/2393—Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/24—Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a streaming media distribution method based on multiple condition scheduling, which comprises the following steps: firstly, a service server determines necessary information required by a newly built streaming media channel according to enterprise and store equipment, the necessary information is sent to an MMS in a form of calling an internal RPC, the MMS initiates an equipment information inquiry request to the network management server according to a network management server address and an MAC address, and the equipment network management server inquires equipment information according to the MAC address and returns the equipment information to the MMS; the MMS inquires the geographic position of the equipment according to the public network IP address and the IP address geographic position information database, and performs first node group election according to the scheduling strategy. The invention has the beneficial effects that: the cluster supports dynamic adjustment and hot plug; the clusters can select the optimal line to distribute the streaming media by combining the geographic position; the cluster supports high availability; the cluster supports real-time alarming and dynamically shields problematic distribution nodes; clusters support resource limitations.
Description
Technical Field
The invention relates to the field of streaming media distribution, in particular to a streaming media distribution method based on multiple condition scheduling.
Background
The existing streaming media platform is usually a fixed node and cannot adapt to the flexible and dynamic characteristics of the internet monitoring industry. The fixed streaming media node can not select the optimal audio/video forwarding line for the client, so that delay is increased, even audio/video can not be played, and the user experience is seriously affected. After the node has a problem, all audio and video channels under the current node cannot be used, and the nodes can only be used after being restored.
Disclosure of Invention
The invention aims to solve the technical problem of providing a streaming media distribution method based on various condition scheduling, and the streaming media distribution method is used for selecting an optimal line to distribute audio and video streams.
In order to solve the technical problems, the present invention provides a streaming media distribution method based on multiple condition scheduling, including:
firstly, a service server determines necessary information required by a newly built streaming media channel according to enterprise and store equipment, the necessary information is sent to an MMS in a form of calling an internal RPC, the MMS initiates an equipment information inquiry request to the network management server according to a network management server address and an MAC address, and the equipment network management server inquires equipment information according to the MAC address and returns the equipment information to the MMS; the MMS inquires the geographic position of the equipment according to the public network IP address and the IP address geographic position information database, and performs first node group election according to a scheduling strategy;
reporting node information to MMS once in a preset period, and carrying out second election by the MMS according to the real-time state and rated bandwidth information of all nodes in the group selected for the first time, wherein the election basis is the current utilization rate of the bandwidth, and the final streaming media node is elected;
MMS initiates RPC call to the selected streaming media node, newly establishes streaming media channel; the streaming media node initiates a push flow request to the node to the equipment network management server according to the network management server address and the MAC address where the equipment is located;
and finally, the business obtains a push stream result and a distribution address, and transmits information to the front end for audio and video stream distribution.
In one embodiment, the necessary information includes a MAC address, a network management server address, a channel ID, and a primary and secondary stream.
In one embodiment, the device information includes a device public network IP address.
In one embodiment, the real-time status of the node includes upstream and downstream bandwidths and channel numbers.
In one embodiment, the nominal bandwidth information is provided by alicloud.
In one embodiment, the preset period is 1 minute.
In one embodiment, the distribution nodes are interconnected using a high-speed intranet.
Based on the same inventive concept, the present application also provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, said processor implementing the steps of any one of the methods when executing said program.
Based on the same inventive concept, the present application also provides a computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, implements the steps of any of the methods.
Based on the same inventive concept, the present application also provides a processor for running a program, wherein the program runs to perform any one of the methods.
The invention has the beneficial effects that:
the cluster supports dynamic adjustment and hot plug; the clusters can select the optimal line to distribute the streaming media by combining the geographic position; the cluster supports high availability; the cluster supports real-time alarming and dynamically shields problematic distribution nodes; clusters support resource limitations.
Drawings
Fig. 1 is a schematic structural diagram of a streaming media distribution method based on various conditional scheduling according to the present invention.
Detailed Description
The present invention will be further described with reference to the accompanying drawings and specific examples, which are not intended to be limiting, so that those skilled in the art will better understand the invention and practice it.
The invention uses FLV, RTMP, RTSP, HLS and other main stream media package formats to realize the cloud distribution function of the video of the monitoring camera, including live broadcast, video playback, video download, large-scale M3U8 distribution and the like.
The system adopts a multi-master multi-slave architecture, the service is firstly positioned to the nearest dispatching master node according to the domain name, the master node uses a plurality of dispatching nodes to carry out load balancing to provide dispatching service, and then the selected DataSwitch node is responsible for forwarding the audio and video streams. A single cluster system may serve streaming media traffic throughout a continental region.
Firstly, a service server determines necessary parameters required by a newly built streaming media channel according to enterprise and store equipment: the method comprises the steps of sending necessary information to MMS (streaming media scheduling server) in the form of internal RPC call by MAC address, network management server address, channel ID and main and auxiliary stream, wherein the MMS initiates a device information inquiry request to the network management server according to the network management server address and the MAC address, and the device network management server inquires device information according to the MAC address, wherein the device information comprises the most important device public network IP address and returns the device information to the MMS. The MMS inquires the geographic position of the equipment according to the public network IP address and the IP address geographic position information database, and performs first node group election according to the scheduling strategy.
The node information is reported to MMS once every minute, the MMS carries out second election according to the real-time state (including uplink and downlink bandwidths and channel number) of all nodes in the group selected for the first time and rated bandwidth information provided by the Arian, and the election is based on the current utilization rate of the bandwidth, and the final streaming media node is elected.
MMS initiates RPC call to the selected streaming media node, and creates a streaming media channel. And the streaming media node initiates a push flow request to the node to the equipment network management server according to the network management server address and the MAC address where the equipment is located.
And finally, the business obtains a push stream result and a distribution address, and transmits information to the front end for audio and video stream distribution. The streaming media distribution channel established by the method is generally the optimal scheme, and can provide high-quality user experience.
The IP address geographic position information database provides accurate equipment geographic positions, high-speed intranet interconnection is used between the distribution nodes, high-speed private line interconnection is used between the dispatching nodes and the distribution nodes, and the distribution nodes support CDN acceleration.
The above-described embodiments are merely preferred embodiments for fully explaining the present invention, and the scope of the present invention is not limited thereto. Equivalent substitutions and modifications will occur to those skilled in the art based on the present invention, and are intended to be within the scope of the present invention. The protection scope of the invention is subject to the claims.
Claims (10)
1. A streaming media distribution method based on multiple conditional scheduling, comprising:
step 101, a service server determines necessary information required by newly establishing a streaming media channel according to enterprise and store equipment, wherein the necessary information comprises an MAC address, a network management server address, a channel ID and a main and auxiliary stream, the necessary information is sent to a streaming media scheduling server in an internal RPC calling mode, the streaming media scheduling server initiates an equipment information inquiry request to the network management server according to the network management server address and the MAC address, and the equipment network management server inquires equipment information according to the MAC address and returns the equipment information to the streaming media scheduling server; the streaming media scheduling server queries the geographic position of the equipment according to the equipment information and the IP address geographic position information database, and performs node group election according to a scheduling strategy;
step 102, reporting node information to a streaming media scheduling server once in a preset period, and performing group election by the streaming media scheduling server according to the real-time state and rated bandwidth information of all nodes in the group selected by the node group;
step 103, the streaming media scheduling server initiates a remote procedure call to the selected streaming media node, and creates a streaming media channel; the streaming media node initiates a push flow request to the node to the equipment network management server according to the network management server address and the MAC address where the equipment is located;
104, the business server obtains the push result and the distribution address, and transmits the information to the front end for audio and video stream distribution; the dispatching server and the distributing server are interconnected by a high-speed private line, and the distributing server are interconnected by a high-speed intranet.
2. The streaming media distribution method based on multiple conditional scheduling of claim 1, wherein for elections in the group, the election basis is a current utilization of bandwidth.
3. The streaming media distribution method based on multiple conditional scheduling according to claim 1, wherein the device information includes a device public network IP address.
4. The streaming media distribution method based on multiple condition scheduling according to claim 1, wherein the real-time status of the node includes uplink and downlink bandwidths, channel number.
5. The streaming media distribution method based on multiple conditional scheduling according to claim 1, wherein the streaming media node is a data exchange server node.
6. The streaming media distribution method based on multiple condition scheduling according to claim 1, wherein the preset period is 1 minute.
7. The streaming media distribution method based on multiple condition scheduling according to claim 1, wherein the distribution server and the distribution server use a high-speed intranet interconnection.
8. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 7 when the program is executed.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the steps of the method according to any one of claims 1 to 7.
10. A processor for running a program, wherein the program when run performs the method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010621055.XA CN111787372B (en) | 2020-07-01 | 2020-07-01 | Streaming media distribution method based on multiple condition scheduling |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010621055.XA CN111787372B (en) | 2020-07-01 | 2020-07-01 | Streaming media distribution method based on multiple condition scheduling |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111787372A CN111787372A (en) | 2020-10-16 |
CN111787372B true CN111787372B (en) | 2023-06-23 |
Family
ID=72760974
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010621055.XA Active CN111787372B (en) | 2020-07-01 | 2020-07-01 | Streaming media distribution method based on multiple condition scheduling |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111787372B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114124959A (en) * | 2021-12-06 | 2022-03-01 | 天地伟业技术有限公司 | Data processing device of cloud streaming media service and cloud streaming media cluster |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110139126A (en) * | 2019-06-18 | 2019-08-16 | 洛阳师范学院 | Mobile video system resource share method based on user mutual behavior perception |
Family Cites Families (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9532092B1 (en) * | 2009-12-30 | 2016-12-27 | Akamai Technologies, Inc. | Multiple bitrate format-agnostic streaming architecture |
CN102523298A (en) * | 2011-12-22 | 2012-06-27 | 上海因特奈信息有限公司 | Video acquiring and sharing system based on mobile terminal and process method thereof |
CN103501444B (en) * | 2013-09-29 | 2017-01-04 | 深圳市同洲电子股份有限公司 | A kind of video resource management method and video resource manager |
CN103685263A (en) * | 2013-12-06 | 2014-03-26 | 乐视致新电子科技(天津)有限公司 | Method, server and system for broadcasting media resources in turn |
CN104618506B (en) * | 2015-02-24 | 2019-09-27 | 深圳梨享计算有限公司 | A kind of content distribution network system of crowdsourcing, method and apparatus |
CN105187848B (en) * | 2015-08-18 | 2018-06-29 | 浪潮软件集团有限公司 | Content distribution network system and method |
US9967227B2 (en) * | 2015-11-11 | 2018-05-08 | Fastly, Inc. | Enhanced content route selection in content delivery networks |
US9838724B2 (en) * | 2015-11-18 | 2017-12-05 | International Business Machines Corporation | Media distribution network for live streaming |
CN105916030A (en) * | 2016-06-12 | 2016-08-31 | 浪潮软件集团有限公司 | Method, device and system for recording breakpoint information of video on demand |
CN106453328A (en) * | 2016-10-18 | 2017-02-22 | 乐视控股(北京)有限公司 | Publishing method for live broadcast video file, publishing client and edge streaming media server |
CN108668178B (en) * | 2017-03-31 | 2020-12-04 | 华为技术有限公司 | Multicast implementation method and related network equipment |
CN107027045A (en) * | 2017-04-11 | 2017-08-08 | 广州华多网络科技有限公司 | Pushing video streaming control method, device and video flowing instructor in broadcasting end |
CN107438098B (en) * | 2017-07-17 | 2020-06-23 | 网宿科技股份有限公司 | Dynamic content distribution method and system |
CN108055264B (en) * | 2017-12-13 | 2021-01-01 | 平安科技(深圳)有限公司 | Scheduling apparatus and method for push streaming server, and computer-readable storage medium |
CN110392071B (en) * | 2018-04-18 | 2021-06-22 | 网宿科技股份有限公司 | Uploading and downloading methods of streaming media resources, distribution system and streaming media server |
CN109040800A (en) * | 2018-08-20 | 2018-12-18 | 南京星邺汇捷网络科技有限公司 | EPG dispatching method, device and electronic equipment |
CN109361893A (en) * | 2018-11-21 | 2019-02-19 | 华平信息技术股份有限公司 | Video conference is gone the same way multi-source live broadcasting method and system |
-
2020
- 2020-07-01 CN CN202010621055.XA patent/CN111787372B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110139126A (en) * | 2019-06-18 | 2019-08-16 | 洛阳师范学院 | Mobile video system resource share method based on user mutual behavior perception |
Non-Patent Citations (3)
Title |
---|
An NFV and Microservice Based Architecture for On-the-Fly Component Provisioning in Content Delivery Networks;Narjes Tahghigh Jahromi et al;《2018 15th IEEE Annual Consumer Communications & Networking Conference (CCNC)》;第1-7页 * |
P2P流媒体***数据调度机制研究;魏小东;《万方平台》;第1-89页 * |
分布式流媒体监控***绿色节能优化策略研究与设计;翁韬;《中国优秀硕士学位论文全文数据库信息科技辑》;I136-364 * |
Also Published As
Publication number | Publication date |
---|---|
CN111787372A (en) | 2020-10-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11785311B2 (en) | Optimized delivery techniques | |
CN105392068B (en) | The parallel distribution method of the more transmission channel network direct broadcasting videos of distribution and system | |
US20110219114A1 (en) | Pod-based server backend infrastructure for peer-assisted applications | |
WO2014059828A1 (en) | Method and system for adjusting control policy | |
JP2013537742A (en) | Method and apparatus for delivery of internet protocol television services | |
CN108063911B (en) | Video conference capacity expansion method | |
CN102026276A (en) | Method for guaranteeing mobile peer-to-peer network stream media service experience quality | |
CN111787372B (en) | Streaming media distribution method based on multiple condition scheduling | |
CN110445723A (en) | A kind of network data dispatching method and fringe node | |
EP2351300B1 (en) | Method and system for establishing digital media streams | |
CN101325510B (en) | Control method and apparatus for active dynamic distribution of unicast and multicast resource | |
CN102307216B (en) | Peer-to-peer (P2P) stream media broadcast method and system for multimedia telephone | |
CN102291458B (en) | Method for peer-to-peer (p2p) server framework | |
CN102907044B (en) | Business scheduling method and device under many wideband network gateways | |
CN105577646A (en) | Method for aggregating bandwidth on user side, device and content distribution system | |
Chitimalla et al. | Application-aware software-defined EPON access network | |
CN104902340A (en) | Peer-node global server load balance media content delivery method and system | |
US9083620B2 (en) | Network group management system | |
CN112584193B (en) | Method for constructing real-time streaming media cluster scheduling by utilizing UDP (user datagram protocol) characteristics | |
Mohamed Fati et al. | IPTV: Delivering TV services over IP networks | |
Wang et al. | Design and Implementation of Distributed Video Live-Streaming System Based on SRS | |
CN102263686B (en) | Method for controlling multiple operations under a kind of multiple edge framework and system | |
US20110137983A1 (en) | Realization to the Great Volume of Data Based Dynamic Policy | |
WO2017071524A1 (en) | Multimedia resource publishing method and apparatus | |
Kulatunga et al. | HySAC: a hybrid delivery system with adaptive content management for IPTV networks |
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 |