CN106209860A - A kind of real-time classroom live streaming media load allocation method - Google Patents
A kind of real-time classroom live streaming media load allocation method Download PDFInfo
- Publication number
- CN106209860A CN106209860A CN201610556405.2A CN201610556405A CN106209860A CN 106209860 A CN106209860 A CN 106209860A CN 201610556405 A CN201610556405 A CN 201610556405A CN 106209860 A CN106209860 A CN 106209860A
- Authority
- CN
- China
- Prior art keywords
- server
- classroom
- user terminal
- load
- streaming media
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
- H04L65/75—Media network packet handling
Abstract
The present invention proposes a kind of real-time classroom live streaming media load allocation method, comprises the following steps: when First user terminal is reached the standard grade, and load distribution server controls Nginx server and the distribution of described First user terminal is connected on a certain classroom server;Described load controls server record user terminal and connects the information of classroom server, and generates allocation strategy information;Described load distribution server controls server request to load and caches described allocation strategy information;When there being new user terminal to reach the standard grade, the user terminal newly reached the standard grade distribution is connected on the server of corresponding classroom by described Nginx server by described load distribution server according to its allocation strategy information cached.The real-time classroom live streaming media load allocation method that the present invention proposes, it is possible to the user terminal in specific classroom is assigned on same station server, it is ensured that the synchronicity of this class live-broadcast and stability.
Description
Technical field
The present invention relates to live streaming media field, and particularly to a kind of real-time classroom live streaming media load distribution side
Method.
Background technology
Along with the development of the Internet, use a network for live streaming media or program request is increasingly becoming a kind of trend, slowly melt
Enter in daily life, in work, learn and the various aspects such as amusement form focus, either video conference,
It is more and more extensive that line education or Web TV, video website are all applied.Streaming Media (Stream Media) refers to use stream
The media formats that the mode of formula transmission is play at Internet/Intranet, such as audio frequency, video or multimedia file.Streaming Media
Need not download whole file before broadcasting, only beginning content is stored in internal memory, in a computer packet is delayed
Deposit and make stream medium data correctly export, can watch with download limit, limit.Its principle is the multimedia file transmitted to user
It is divided into different fragments according to broadcast time order, the most successively these fragments is issued user, just play these fragments continuously
Define continuous print sound and image.
Stream transmission refers mainly to multimedia files such as whole Voice & Video and three-dimensional media through the specifically side of compression
Formula resolves to compressed package one by one, video server to subscriber computer order or transmit in real time.Using stream transmission side
In the system of formula, not necessarily like employing downloading mode, user waits until that whole file is all downloaded complete like that, but only need to be through several
Second or the start-up study of tens seconds can utilize the decompression apparatus multimedia file decompression to compression on the computer of user again
After play out and watch.Now the remainder of multimedia file is downloaded continuing in the server on backstage.With simple
Downloading mode is compared, and this streaming manner playing download limit, multimedia file limit not only makes the startup time significantly
Shorten, and the demand of system cache capacity is greatly reduced, greatly reduce user and be used in the time of wait.At present, stream
Medium technique has been widely used in internet arena.
Traditional network flow-medium Play System is generally basede on C/S model, but owing to streaming media playing needs to consume greatly
The network bandwidth of amount and server resource, the most this pattern seriously limits the development of network flow-medium business.Account for one
As a example by the network video stream with a width of 300kbps, when there being 1000 users to watch simultaneously, the bandwidth of needs is 300Mbps.
Such performance requirement can not meet for most of servers.If supporting several ten thousand even use of hundreds of thousands
Family, uses this C/S model to be nearly impossible.Increase number of servers and raising bandwidth is a kind of solution, will not
Same user's distribution is connected to different servers, thus reduces the load of single server, by certain load balancing technology,
Outside is sent on a certain station server that the request come is evenly distributed in symmetrical structure, and the server receiving request is only
On the spot respond the request of client, the load-balancing technique namely often said.
Along with the explosive increase of internet information, load balancing (load balance) be the most no longer one the strangest
Topic, as the term suggests, load balancing is i.e. that load is shared different service unit (such as Web servers, FTP service
Device, enterprise's key application server and other mission critical server etc.), both ensure the availability of service, ensure again response foot
Enough fast, well experience to user.The visit capacity and the data traffic that quickly increase have expedited the emergence of load balanced product miscellaneous,
The load balancing hardware of a lot of specialties provides good function, but expensive, and this makes load balancing software receive greatly vigorously
Meeting, nginx is exactly one of them.
The open version of nginx first is published on 2004, within 2011, has issued 1.0 versions.Its feature is stability
High, powerful, low in resources consumption, for the market share that it is current, nginx has greatly the impetus grabbed a share of the market with apache.
The characteristic wherein having to mention is exactly its load-balancing function, and this has also become a lot of company to select its main cause.
For the live streaming media field of online education, there is certain district compared with general streaming media live broadcast technology
Not, there is its particularity, for specific a certain classroom, need associated user to be assigned on same station server as far as possible,
To ensure synchronicity and the stability of this class live-broadcast so that the user in same classroom has identical viewing environment, this
Bright precisely in order to solve the technical scheme that this problem is proposed.
Summary of the invention
The present invention proposes a kind of real-time classroom live streaming media load allocation method, it is possible to by the user terminal in specific classroom
It is assigned on same station server, it is ensured that the synchronicity of this class live-broadcast and stability.
In order to achieve the above object, the present invention proposes a kind of real-time classroom live streaming media load allocation method, including under
Row step:
When First user terminal is reached the standard grade, load distribution server controls Nginx server by described First user
Terminal distribution is connected on a certain classroom server;
Described load controls server record user terminal and connects the information of classroom server, and generates allocation strategy letter
Breath;
Described load distribution server controls server request to load and caches described allocation strategy information;
When there being new user terminal to reach the standard grade, described load distribution server passes through according to its allocation strategy information cached
The user terminal newly reached the standard grade distribution is connected on the server of corresponding classroom by described Nginx server.
Further, the information of described user terminal includes classroom ID and ID.
Further, described allocation strategy information also includes the user terminal of same classroom ID is assigned to same classroom
On server.
Further, it is different from as the classroom ID and the classroom ID distributing classroom server of user terminal of newly reaching the standard grade
Time, distributed and be connected on an other classroom server.
Further, described load control server judges whether by the user terminal of this school student all according to school ID
It is connected on same classroom server.
Further, described load controls the server binding by WEB server download school ID with classroom server
Data.
The real-time classroom live streaming media load allocation method that the present invention proposes, uses load distribution server to pass through
User terminal distribution identical for classroom ID is connected to identical classroom server by Nginx server, thus by specific classroom
User terminal is assigned on same station server, it is ensured that the synchronicity of this class live-broadcast and stability so that the use in same classroom
Family all has identical viewing environment.
Accompanying drawing explanation
Fig. 1 show the real-time classroom live streaming media load allocation method flow chart of present pre-ferred embodiments.
Fig. 2 show the real-time classroom live streaming media load allocating system structure chart of present pre-ferred embodiments.
Detailed description of the invention
Provide the detailed description of the invention of the present invention below in conjunction with accompanying drawing, but the invention is not restricted to following embodiment.Root
According to following explanation and claims, advantages and features of the invention will be apparent from.It should be noted that, accompanying drawing all uses the simplest
The form changed and all use non-ratio accurately, is only used for conveniently, aids in illustrating lucidly the purpose of the embodiment of the present invention.
Refer to Fig. 1 and Fig. 2, Fig. 1 and show the real-time classroom live streaming media load distribution of present pre-ferred embodiments
Method flow diagram, Fig. 2 show the real-time classroom live streaming media load allocating system structure chart of present pre-ferred embodiments.This
Invention proposes a kind of real-time classroom live streaming media load allocation method, comprises the following steps:
Step S100: when First user terminal is reached the standard grade, load distribution server controls Nginx server by described the
One user terminal distribution is connected on a certain classroom server;
Step S200: described load controls server record user terminal and connects the information of classroom server, and generation point
Join policy information;
Step S300: described load distribution server controls server request to load and caches described allocation strategy letter
Breath;
Step S400: when there being new user terminal to reach the standard grade, the distribution plan that described load distribution server caches according to it
The user terminal newly reached the standard grade distribution is connected on the server of corresponding classroom by slightly information by described Nginx server.
According to present pre-ferred embodiments, the information of described user terminal 500 includes classroom ID and ID, wherein user
ID is for indicating the identity information of user terminal 500, and classroom ID is for indicating the Classroom Information that user terminal is currently joined into.
Described allocation strategy information also includes the user terminal 500 of same classroom ID is assigned to same classroom server
On 100, user terminal 500 identical for classroom ID shows that its classroom added is identical, assigns them to same class
On hall server 100, identical to ensure the server environment of same classroom user terminal 500.When on First user terminal 500
During line, load controls server 200 and not yet generates allocation strategy information, it is judged that the classroom ID of active user's terminal 500 is first
Occur, control Nginx server 400 by load distribution server 300 and active user's terminal 500 distribution is connected to a certain
On classroom server 100;Described load control server 200 records user terminal 500 and connects the information of classroom server 100,
And generate allocation strategy information, classroom server 100 information that the user terminal 500 of i.e. current classroom ID connects;Load distribution
Server 300 controls server 200 to load asks and caches described allocation strategy information, when having on new user terminal 500
During line, if its classroom ID is identical with the classroom ID of the user terminal 500 distributed before, will be current by Nginx server 400
User terminal is assigned to identical classroom server 100.
Further, when user terminal 500 of newly reaching the standard grade classroom ID with distribute the classroom ID of classroom server 100 the most not
Time identical, being distributed and be connected on an other classroom server 100, different classroom ID shows active user's terminal 500
The classroom of the classroom added and allocated user terminal 500 also differs, and needs to be connected to an other class for its distribution
On hall server 100, now need to obtain allocation strategy information, if current classroom ID is to occur for the first time, Nginx server
400 distribute a new classroom server 100 for active user's terminal 500, and Nginx server 400 feedback allocation situation is given negative
Carry distribution server 300, update and record allocation strategy information to load control server 200;If current classroom ID is not
When occurring for the first time, load distribution server 300 controls, according to from load, the allocation strategy information that server 200 caches, and passes through
User terminal 500 distribution is connected to corresponding classroom server 100 by Nginx server 400.
According to present pre-ferred embodiments, described load controls server 200 and judges whether this school according to school ID
The user terminal 500 of student is all connected on same classroom server 100.The information of described user terminal 500 also includes learning
School ID, the user terminal 500 belonging to school of same institute has identical school ID, and described load controls server 200 and first sentences
Whether the school ID of disconnected active user's terminal 500 belongs to the school for learning disabilities pre-set, if the school ID of active user's terminal 500
When belonging to school for learning disabilities, assign it to specific classroom server 100, there is the user terminal 500 of identical school ID afterwards
Also all distribution is connected on this specific classroom server 100.
Further, described load control server 200 downloads school ID and classroom server by WEB server 600
The binding data of 100.Load controls server 200 and obtains the school ID of school for learning disabilities and by it with special by WEB server 600
Fixed classroom server 100 is bound, and the school ID of the user terminal 500 that follow-up basis is reached the standard grade judges whether to assign it to spy
Fixed classroom server 100.
All classrooms server 100 controls server 200 to load and reports the online situation of server, when there being classroom server
During 100 off-line, load controls server 200 can be connected to other classroom server by the user terminal 500 newly reached the standard grade distribution
100, the user terminal 500 having been dispensed into offline service device can redistribute classroom server 100 equally.
In sum, the real-time classroom live streaming media load allocation method that the present invention proposes, use load distribution service
User terminal distribution identical for classroom ID is connected to identical classroom server by Nginx server by device, thus by specific
The user terminal in classroom is assigned on same station server, it is ensured that the synchronicity of this class live-broadcast and stability so that same class
The user of hall has identical viewing environment.
Although the present invention is disclosed above with preferred embodiment, so it is not limited to the present invention.Skill belonging to the present invention
Art field has usually intellectual, without departing from the spirit and scope of the present invention, when being used for a variety of modifications and variations.Cause
This, protection scope of the present invention is when being as the criterion depending on those as defined in claim.
Claims (6)
1. a real-time classroom live streaming media load allocation method, it is characterised in that comprise the following steps:
When First user terminal is reached the standard grade, load distribution server controls Nginx server by described First user terminal
Distribution is connected on a certain classroom server;
Described load controls server record user terminal and connects the information of classroom server, and generates allocation strategy information;
Described load distribution server controls server request to load and caches described allocation strategy information;
When there being new user terminal to reach the standard grade, described load distribution server passes through described according to its allocation strategy information cached
The user terminal newly reached the standard grade distribution is connected on the server of corresponding classroom by Nginx server.
Real classroom the most according to claim 1 live streaming media load allocation method, it is characterised in that described user terminal
Information include classroom ID and ID.
Real-time classroom live streaming media load allocation method the most according to claim 2, it is characterised in that described distribution plan
Slightly information also includes being assigned on same classroom server the user terminal of same classroom ID.
Real-time classroom live streaming media load allocation method the most according to claim 2, it is characterised in that use of reaching the standard grade when newly
When the classroom ID of family terminal and the classroom ID distributing classroom server is different from, is distributed and be connected to an other classroom
On server.
Real-time classroom live streaming media load allocation method the most according to claim 1, it is characterised in that described load control
Control server judges whether to be all connected on same classroom server the user terminal of this school student according to school ID.
Real-time classroom live streaming media load allocation method the most according to claim 5, it is characterised in that described load control
Control server downloads the binding data of school ID and classroom server by WEB server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610556405.2A CN106209860B (en) | 2016-07-13 | 2016-07-13 | Real-time classroom streaming media live broadcast load distribution method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610556405.2A CN106209860B (en) | 2016-07-13 | 2016-07-13 | Real-time classroom streaming media live broadcast load distribution method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106209860A true CN106209860A (en) | 2016-12-07 |
CN106209860B CN106209860B (en) | 2021-07-30 |
Family
ID=57475354
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610556405.2A Active CN106209860B (en) | 2016-07-13 | 2016-07-13 | Real-time classroom streaming media live broadcast load distribution method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106209860B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11463421B2 (en) * | 2016-08-08 | 2022-10-04 | Record Sure Limited | Method of generating a secure record of a conversation |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050202390A1 (en) * | 2004-01-23 | 2005-09-15 | Allen J. V. | Course evaluation survey management and reporting system and method |
CN101938508A (en) * | 2009-07-01 | 2011-01-05 | 中国电信股份有限公司 | Method and system for shortening time delay in peer-to-peer network streaming media live broadcast system |
US20110016057A1 (en) * | 2009-07-17 | 2011-01-20 | Matthew Jeremy Halpern | Online music workshop and method for implementing the same |
CN104065646A (en) * | 2014-06-04 | 2014-09-24 | 广州华多网络科技有限公司 | Online class fault processing method, device and system |
CN104348700A (en) * | 2013-07-31 | 2015-02-11 | 波利康公司 | Method and system for sending microblog |
CN104780226A (en) * | 2015-05-06 | 2015-07-15 | 成都麦子信息技术有限公司 | Online education platform |
CN104811468A (en) * | 2014-01-29 | 2015-07-29 | 莘翔四海(北京)科技有限公司 | File processing method and device |
-
2016
- 2016-07-13 CN CN201610556405.2A patent/CN106209860B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050202390A1 (en) * | 2004-01-23 | 2005-09-15 | Allen J. V. | Course evaluation survey management and reporting system and method |
CN101938508A (en) * | 2009-07-01 | 2011-01-05 | 中国电信股份有限公司 | Method and system for shortening time delay in peer-to-peer network streaming media live broadcast system |
US20110016057A1 (en) * | 2009-07-17 | 2011-01-20 | Matthew Jeremy Halpern | Online music workshop and method for implementing the same |
CN104348700A (en) * | 2013-07-31 | 2015-02-11 | 波利康公司 | Method and system for sending microblog |
CN104811468A (en) * | 2014-01-29 | 2015-07-29 | 莘翔四海(北京)科技有限公司 | File processing method and device |
CN104065646A (en) * | 2014-06-04 | 2014-09-24 | 广州华多网络科技有限公司 | Online class fault processing method, device and system |
CN104780226A (en) * | 2015-05-06 | 2015-07-15 | 成都麦子信息技术有限公司 | Online education platform |
Non-Patent Citations (1)
Title |
---|
程行荣等: "基于 V N C 和 P 2P 技术的实时课堂直播系统", 《计算机时代》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11463421B2 (en) * | 2016-08-08 | 2022-10-04 | Record Sure Limited | Method of generating a secure record of a conversation |
Also Published As
Publication number | Publication date |
---|---|
CN106209860B (en) | 2021-07-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8161159B1 (en) | Network configuration with smart edge servers | |
CN101616170B (en) | Method for supplying media stream service and system thereof | |
CN101471919A (en) | Method and device for downloading slicing of equipment based on point-to-point transmission protocol | |
CN105337901A (en) | Router intelligent bandwidth allocation method and device | |
CN105450675A (en) | Method for selecting CDN service nodes through clients in streaming medium playing | |
CN113157418A (en) | Server resource allocation method and device, storage medium and electronic equipment | |
US11838572B2 (en) | Streaming video trunking | |
CN103825943B (en) | SCORM Standard Coursewares Play System and its implementation based on P2P | |
CN101262413B (en) | Method, system and device for media buffer | |
US8732787B2 (en) | Method and system for establishing digital media streams | |
Wang et al. | PLVER: Joint stable allocation and content replication for edge-assisted live video delivery | |
EP3902279A1 (en) | Audio and video stream distribution method in audio and video stream distribution system, and dynamic parent node | |
CN110493245A (en) | A kind of stream medium data dissemination system based on distributed parallel system | |
Rovcanin et al. | A DASH-based performance-oriented adaptive video distribution solution | |
CN106209860A (en) | A kind of real-time classroom live streaming media load allocation method | |
CN108668140B (en) | Audio and video interaction state synchronization method and device | |
Ab Wahid et al. | Review on cloud computing application in P2P video streaming | |
Zhou et al. | Performance analysis of thunder crystal: A crowdsourcing-based video distribution platform | |
Ha et al. | A novel Hybrid CDN-P2P mechanism For effective real-time media streaming | |
CN105847401A (en) | Request information processing method and device | |
CN106302465A (en) | A kind of method and device of playing audio-video data | |
Wang et al. | Design and Implementation of Distributed Video Live-Streaming System Based on SRS | |
WO2017071524A1 (en) | Multimedia resource publishing method and apparatus | |
CN104581192B (en) | A kind of low delay based on sandwich construction, high concurrent media flow distribution method | |
CN112449202B (en) | Video live broadcasting method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | 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 |