CN104581192A - Low-delay and high-concurrency media stream distribution method based on multi-layer structure - Google Patents

Low-delay and high-concurrency media stream distribution method based on multi-layer structure Download PDF

Info

Publication number
CN104581192A
CN104581192A CN201410850172.8A CN201410850172A CN104581192A CN 104581192 A CN104581192 A CN 104581192A CN 201410850172 A CN201410850172 A CN 201410850172A CN 104581192 A CN104581192 A CN 104581192A
Authority
CN
China
Prior art keywords
media stream
server
swap
client
swap server
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
CN201410850172.8A
Other languages
Chinese (zh)
Other versions
CN104581192B (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.)
JIANGSU LEMOTE TECHNOLOGY Corp Ltd
Original Assignee
JIANGSU LEMOTE TECHNOLOGY Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by JIANGSU LEMOTE TECHNOLOGY Corp Ltd filed Critical JIANGSU LEMOTE TECHNOLOGY Corp Ltd
Priority to CN201410850172.8A priority Critical patent/CN104581192B/en
Publication of CN104581192A publication Critical patent/CN104581192A/en
Application granted granted Critical
Publication of CN104581192B publication Critical patent/CN104581192B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/231Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
    • H04N21/23103Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion using load balancing strategies, e.g. by placing or distributing content on different disks, different memories or different servers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management 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/262Content 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/26208Content 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
    • H04N21/26216Content 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 involving the channel capacity, e.g. network bandwidth
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/437Interfacing the upstream path of the transmission network, e.g. for transmitting client requests to a VOD server

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Databases & Information Systems (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a low-delay and high-concurrency media stream distribution method based on a multi-layer structure. A core server layer, an exchange server layer and a user server layer are involved. The method includes the steps that after a user machine requests for a media stream, a user server determines whether the media stream which the user machine requests for has been in a service list of the user server or not, the media stream is directly sent to the user machine if the media stream which the user machine requests for has been in the service list of the user server, the request is sent to an exchange server if the media stream which the user machine requests for is not in the service list of the user server, the exchange server determines whether the media stream which the user machine requests for has been in a service list of the exchange server or not, the media stream is sent to the user server and then transmitted downwards to the user machine if the media stream which the user machine requests for has been in the service list of the exchange server, and the exchange server requests a core server for the media stream if the media stream which the user machine requests for is not in the service list of the exchange server. By means of the method, the number of concurrency users of classroom stream media is greatly increased; meanwhile, the utilization rate of all stages of servers is increased, and the bandwidth between the servers is reduced.

Description

A kind of low delay based on sandwich construction, high concurrent media stream distributing method
Technical field
The present invention relates to a kind of streaming media distribution method, particularly relate to a kind of low delay based on sandwich construction, high concurrent media stream distributing method.
Background technology
In multimedia classroom environment, network online live time need transmission camera and microphone to gather data to video reception person.And when online numerous time, the disposal ability of single server is just not enough to the requirement supporting the real-time displaying video of all users.In this case generally can adopt server cluster, namely master server band multiple stage is from the structure of server, master server audio/video flow is pushed under it from server, be equivalent to the broadcast of data flow.But adopt in this way and still can produce some problems, when such as carrying out many live TV streams at the same time, the bandwidth demand between principal and subordinate's server is just very large, and principal and subordinate's server binds underaction by force simultaneously.
Summary of the invention
For the deficiencies in the prior art, the object of this invention is to provide a kind of low delay based on sandwich construction, high concurrent media stream distributing method, solve prior art under high complications, require wide bandwidth problem between principal and subordinate's server.
Technical scheme of the present invention is such, a kind of low delay based on sandwich construction, high concurrent media stream distributing method, and comprise and store and provide some Core servers of Media Stream, described Media Stream is provided with the ID for distinguishing mutually; At least two swap servers, every platform swap server is connected with whole Core server; Some client servers, every platform client server is connected with at least two swap servers, and subscriber computer is connected with client server; The process that subscriber computer obtains Media Stream is:
1) subscriber computer sends request the client server connected to it, comprises ID and the catalogue of Media Stream in solicited message;
2), after client server receives request, process in accordance with the following steps:
2a) inquire about the Media Stream list that this client server is being served, judge whether this Media Stream exists according to Media Stream ID, if existed, directly by this media stream to subscriber computer, process ends; If there is no, step 2b is entered);
2b) inquire about the state of swap server in the swap server list of this client server, selection mode is available swap server, enters step 2c); If all swap server states are all unavailable in swap server list, return error message, process ends;
2c) client server initiates request to the swap server selected, and comprises ID and the catalogue of Media Stream in solicited message;
3), after swap server receives request, process in accordance with the following steps:
3a) inquire about the Media Stream list that this swap server is being served, judge whether this Media Stream exists according to Media Stream ID, if existed, directly by this media stream to client server, process ends; If there is no, step 3b is entered);
3b) according to the directory information in solicited message, select corresponding Core server, and the ID of Media Stream and catalogue are sent to the Core server of this correspondence;
4) after Core server receives request, according to ID and the directory information of Media Stream in solicited message, the Media Stream of asking is determined, and by this media stream to the swap server of request service;
5) after swap server receives Media Stream, by media stream to client server;
6) after client server receives Media Stream, by media stream to subscriber computer, process ends.
Further, described step 2b) for inquire about this client server successively swap server list in the shape body of swap server, select First state to be available swap server, enter step 2c); If all swap server states are unavailable, return error message, process ends.
Technical scheme provided by the present invention, when few increase time delay, greatly increases the concurrent user number of classroom Streaming Media, improves the utilance of server at different levels simultaneously, reduce the bandwidth between server at different levels, have following effect:
A) Streaming Media arrives the process of recipient from source, and the time delay consumed on the server is very low, almost negligible.
B) computational resource of single medium stream takies very low, and single server, under the support of enough bandwidth, can support that more than thousand people's is concurrent.
C) whole system can support 1,000,000 grades concurrent.
D) ask as required, when multilayer is mutual, from active obtaining top service device when needing, when not needing, do not account for the resource of top service device.
E) fault of separate unit client server only can affect the user under it, can not affect other users.
F) multichannel backup, can be switched to reserve link fast when primary link failure, make service uninterrupted.
Accompanying drawing explanation
Fig. 1 is network topology schematic diagram.
Fig. 2 is medium stream request distribution procedure schematic diagram of the present invention.
Embodiment
Below in conjunction with embodiment, the invention will be further described, but not as a limitation of the invention.
Incorporated by reference to Fig. 1 and Fig. 2, the server hierarchies that the present embodiment relates to is arranged, is specifically divided into:
Kernel service layer: be made up of four Core servers, Core server is the source of Media Stream, and this stratum server provides different Media Streams, and Media Stream is distinguished by ID, and ID is 64 integers from 1.
Exchange Service layer: be made up of three swap servers, be responsible for bridge joint kernel service layer and user service layer, form the cluster of server, subscribe to the media stream resources of all Core servers on all kernel service layers, provide complete Media Stream list to user service layer.
User service layer: be made up of six client servers, is responsible for the connection of actual user's machine, and gives subscriber computer media stream.The every station server of this layer connects at least two swap servers, and channeling link backup mechanism, when the swap server used is unavailable, can enable the swap server of certain reserve link fast, realizes the effect continued to flow.
As shown in Figure 2, its process is as follows for the Requests routing process of Media Stream:
1) after user selects certain Media Stream by subscriber computer, subscriber computer sends request the client server connected to it, comprises ID and the catalogue of Media Stream in solicited message.
2), after client server receives request, client server processes in accordance with the following steps:
2a) inquire about Media Stream: inquire about the Media Stream list that this client server is being served, judge whether this Media Stream exists according to Media Stream ID.If existed, directly by this media stream to subscriber computer, process terminates; If there is no, step 2b is entered).
2b) select swap server: the state of inquiring about swap server in the swap server list of this client server successively, if its state is available, then select this swap server; If unavailable, judge swap server state thereafter, until last station server in swap server list.If chosen available swap server, enter step 2c); If do not chosen, return error message, process ends.
2c) client server initiates request to the available swap server selected, and comprises ID and the catalogue of Media Stream in solicited message.
3), after swap server receives request, process in accordance with the following steps:
3a) inquire about Media Stream: inquire about the Media Stream list that this swap server is being served, judge whether this Media Stream exists according to Media Stream ID.If existed, directly by this media stream to client server, process terminates; If there is no, step 3b is entered).
3b) select Core server: according to the directory information in solicited message, select any platform Core server to provide service, and the ID of Media Stream and catalogue are sent to selection Core server.
4) after Core server receives request, according to ID and the directory information of Media Stream in solicited message, the Media Stream of asking is determined, and by this media stream to the swap server of request service.
5) after swap server receives Media Stream, by media stream to client server.
6) after client server receives Media Stream, by media stream to subscriber computer, process ends.

Claims (2)

1. based on low delay, the high concurrent media stream distributing method of sandwich construction, it is characterized in that, comprise and store and provide some Core servers of Media Stream, described Media Stream is provided with the ID for distinguishing mutually; At least two swap servers, every platform swap server is connected with whole Core server; Some client servers, every platform client server is connected with at least two swap servers, and subscriber computer is connected with client server; The process that subscriber computer obtains Media Stream is:
1) subscriber computer sends request the client server connected to it, comprises ID and the catalogue of Media Stream in solicited message;
2), after client server receives request, process in accordance with the following steps:
2a) inquire about the Media Stream list that this client server is being served, judge whether this Media Stream exists according to Media Stream ID, if existed, directly by this media stream to subscriber computer, process ends; If there is no, step 2b is entered);
2b) inquire about the shape body of swap server in the swap server list of this client server, selection mode is available swap server, enters step 2c); If all swap server states are all unavailable in swap server list, return error message, process ends;
2c) client server initiates request to the swap server selected, and comprises ID and the catalogue of Media Stream in solicited message;
3), after swap server receives request, process in accordance with the following steps:
3a) inquire about the Media Stream list that this swap server is being served, judge whether this Media Stream exists according to Media Stream ID, if existed, directly by this media stream to client server, process ends; If there is no, step 3b is entered);
3b) according to the directory information in solicited message, select corresponding Core server, and the ID of Media Stream and catalogue are sent to the Core server of this correspondence;
4) after Core server receives request, according to ID and the directory information of Media Stream in solicited message, the Media Stream of asking is determined, and by this media stream to the swap server of request service;
5) after swap server receives Media Stream, by media stream to client server;
6) after client server receives Media Stream, by media stream to subscriber computer, process ends.
2. the low delay based on sandwich construction according to claim 1, high concurrent media stream distributing method, it is characterized in that, described step 2b) for inquire about this client server successively swap server list in the state of swap server, select First state to be available swap server, enter step 2c); If all swap server states are unavailable, return error message, process ends.
CN201410850172.8A 2014-12-31 2014-12-31 A kind of low delay based on sandwich construction, high concurrent media flow distribution method Active CN104581192B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410850172.8A CN104581192B (en) 2014-12-31 2014-12-31 A kind of low delay based on sandwich construction, high concurrent media flow distribution method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410850172.8A CN104581192B (en) 2014-12-31 2014-12-31 A kind of low delay based on sandwich construction, high concurrent media flow distribution method

Publications (2)

Publication Number Publication Date
CN104581192A true CN104581192A (en) 2015-04-29
CN104581192B CN104581192B (en) 2018-01-30

Family

ID=53096247

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410850172.8A Active CN104581192B (en) 2014-12-31 2014-12-31 A kind of low delay based on sandwich construction, high concurrent media flow distribution method

Country Status (1)

Country Link
CN (1) CN104581192B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107333080A (en) * 2017-05-24 2017-11-07 清华大学 A kind of high speed, high resolution image data recording method, apparatus and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050235047A1 (en) * 2004-04-16 2005-10-20 Qiang Li Method and apparatus for a large scale distributed multimedia streaming system and its media content distribution
CN102209041A (en) * 2011-07-13 2011-10-05 上海红神信息技术有限公司 Scheduling method, device and system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050235047A1 (en) * 2004-04-16 2005-10-20 Qiang Li Method and apparatus for a large scale distributed multimedia streaming system and its media content distribution
CN102209041A (en) * 2011-07-13 2011-10-05 上海红神信息技术有限公司 Scheduling method, device and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
吕燕乐: "P2P与组播技术在流媒体中的研究与应用", 《中国优秀硕士学位论文全文数据库》 *
邢金阁: "流媒体服务系统的设计与实现", 《中国优秀硕士学位论文全文数据库》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107333080A (en) * 2017-05-24 2017-11-07 清华大学 A kind of high speed, high resolution image data recording method, apparatus and system
CN107333080B (en) * 2017-05-24 2019-11-22 清华大学 A kind of high speed, high resolution image data recording method, apparatus and system

Also Published As

Publication number Publication date
CN104581192B (en) 2018-01-30

Similar Documents

Publication Publication Date Title
CN101141459B (en) Method of implementing data transmission or stream media transmission using combination of HTTP and P2P
CN106850581B (en) Distribution backup method, system and server for interactive live broadcast streaming media data
WO2019084972A1 (en) Streaming media live broadcast method and system
CN107707926A (en) A kind of live TV stream transmission method, device and system
CN104135672A (en) HLS-based method for realizing seamless disaster recovery of video on demand
CN105553978A (en) Belt conveyor visualization auxiliary maintenance system and interaction process of streaming media
CN102420868A (en) Service providing method, device and system
JP2009163698A (en) System and method for streaming service
CN102624565B (en) Method for processing single-point failure in application layer multicast system
CN102761550A (en) Method, device and system for implementing streaming media
WO2017128902A1 (en) Streaming media multicast system and method using multiple ring topology most networks
CN104602035A (en) Streaming media on-demand method and streaming media on-demand system
CN102111608A (en) Communication method and device of video monitoring system
CN101163230A (en) Method of performing on-site living broadcast and client terminal node preparation through network camera
CN111131759A (en) Real-time multimedia transmission system and use method thereof
CN113485821A (en) High-reliability video conference system, control method thereof and storage medium
CN109857591A (en) A kind of method and apparatus for transmitting data validation
CN104581192A (en) Low-delay and high-concurrency media stream distribution method based on multi-layer structure
CN112613919A (en) Information processing method and related device
CN101651823B (en) Streaming media server system and relevant method thereof
CN104954368A (en) File processing method and system in direct recording and broadcasting interactive system
CN104580219A (en) Method and system for providing live broadcast streams
CN104661106A (en) Distributed video-on-demand system for intelligent ubiquitous terminal
CN103731337A (en) Transfer method, system and device for text chat and conversation and agent client terminal
WO2017071524A1 (en) Multimedia resource publishing method and apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant