CN107734361A - Streaming media server dispatching method, system, readable storage medium storing program for executing and server - Google Patents

Streaming media server dispatching method, system, readable storage medium storing program for executing and server Download PDF

Info

Publication number
CN107734361A
CN107734361A CN201710923431.9A CN201710923431A CN107734361A CN 107734361 A CN107734361 A CN 107734361A CN 201710923431 A CN201710923431 A CN 201710923431A CN 107734361 A CN107734361 A CN 107734361A
Authority
CN
China
Prior art keywords
streaming media
media server
forwarding
server
interface channel
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.)
Withdrawn
Application number
CN201710923431.9A
Other languages
Chinese (zh)
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.)
Jiangxi Oufijuneng Iot Technology Co ltd
Original Assignee
Shenzhen Rong Innovation 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 Shenzhen Rong Innovation Technology Co Ltd filed Critical Shenzhen Rong Innovation Technology Co Ltd
Priority to CN201710923431.9A priority Critical patent/CN107734361A/en
Publication of CN107734361A publication Critical patent/CN107734361A/en
Withdrawn legal-status Critical Current

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/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
    • H04N21/2404Monitoring of server processing errors or hardware failure
    • 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
    • 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/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25808Management of client data
    • 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/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25808Management of client data
    • H04N21/25816Management of client data involving client authentication
    • 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

Abstract

The invention discloses a kind of streaming media server dispatching method, system, readable storage medium storing program for executing and server, methods described is applied to central server, and the central server communicates with multiple streaming media servers simultaneously, and methods described includes:Obtain the video request instruction of the access target monitoring device of client access server forwarding;Inquire about corresponding with the target monitoring equipment with the presence or absence of the streaming media server of forwarding unit interface channel, the equipment interface channel in the multiple streaming media server;If so, then obtaining all streaming media servers for having forwarded the equipment interface channel, and therefrom search the minimum streaming media server of total forwarding way;The streaming media server for calling total forwarding way minimum undertakes video distribution function.The present invention, which solves existing video monitoring platform, can not meet when undertaking a large amount of concurrencies and accessing, while the problem of take into account economy and server high availability.

Description

Streaming media server dispatching method, system, readable storage medium storing program for executing and server
Technical field
The present invention relates to technical field of video monitoring, more particularly to a kind of streaming media server dispatching method, system, can Read storage medium and server.
Background technology
With the progress and the improvement of people's living standards of science and technology, people are also gradually lifted to the attention rate of safety.Video Monitoring technology has gradually come into the life of people, especially in smart home and wisdom city field, has obtained widely available.
Modern security protection industry development, monitoring scale is increasing, and the number of devices of access is more and more, while with interconnection Network service is flourished, and monitor video is also no longer limited to inside a LAN, progressively towards increasing interconnection Network users, such as kindergarten's monitoring, the monitor video that numerous parents may watch in kindergarten simultaneously.
Therefore, whole video monitoring platform is required to undertake a large amount of concurrencies access, but in deployment video monitoring platform The principle of economy and server high availability is considered when (server) again, cost-effectiveness requirement does not dispose streaming media service excessively Device, reduce operation cost;It is unavailable that server high availability is then that requirement can not cause to service due to the request of high concurrent.It is but existing The video monitoring platform for having technology can not meet when undertaking a large amount of concurrencies and accessing, while take into account economy and server height can With the requirement of property.
The content of the invention
Therefore, one embodiment of the present of invention proposes a kind of streaming media server dispatching method, solves existing video prison Control platform can not meet when undertaking a large amount of concurrencies and accessing, while the problem of take into account economy and server high availability.
Streaming media server dispatching method according to an embodiment of the invention, it is genuinely convinced in described applied to central server Business device communicates with multiple streaming media servers simultaneously, and methods described includes:
Obtain the video request instruction of the access target monitoring device of client access server forwarding;
Inquire about in the multiple streaming media server with the presence or absence of the streaming media server of forwarding unit interface channel, institute It is corresponding with the target monitoring equipment to state equipment interface channel;
If so, then obtaining all streaming media servers for having forwarded the equipment interface channel, and therefrom search total forwarding The minimum streaming media server of way;
The streaming media server for calling total forwarding way minimum undertakes video distribution function.
Streaming media server dispatching method according to embodiments of the present invention, supervised for the access target that monitor client is sent The video request instruction of equipment is controlled, can inquire about whether there is having forwarded equipment interface channel corresponding with target monitoring equipment first Streaming media server, if in the presence of further therefrom searching the minimum streaming media server of total forwarding way as scheduling Server go to undertake video distribution function, i.e., according to the transfer capability of streaming media server go distribute load number, Er Feisuo There is the mean allocation of streaming media server, therefore can ensure that the request relative equilibrium of same equipment interface channel is assigned to just On the streaming media server for forwarding the passage, the phenomenon of generating unit shunting media server overload is avoided, so as to meet The requirement that a large amount of concurrencies access is undertaken, and because convection media server carries out rational equilibrium assignment, therefore can be maximum The configuration quantity of the reduction streaming media server of limit, ensures economy, while is not in the load of some streaming media server It is very high, and the situation that other streaming media servers are very empty, so as to realize long-time steady operation, ensure the request of high concurrent also not The disabled situation of service occurs.
In addition, streaming media server dispatching method according to the above embodiment of the present invention, can also have what is added as follows Technical characteristic:
Further, in one embodiment of the invention, the Streaming Media clothes for calling total forwarding way minimum The step of business device undertakes video distribution function includes:
Judge whether the minimum streaming media server of total forwarding way has reached the default forwarding upper limit;
If it is not, the streaming media server for then calling total forwarding way minimum undertakes video distribution function.
Wherein, the service for every streaming media server is provided with the forwarding upper limit of service, when some streaming media servers It is also not in avalanche effect to delay after machine, and will not cause causes other streaming media server load too high and cause service crashes.
Further, in one embodiment of the invention, the Streaming Media clothes for judging that total forwarding way is minimum After whether business device has reached the step of default forwarding upper limit, methods described also includes:
When the streaming media server for determining total forwarding way minimum has reached the default forwarding upper limit, search simultaneously Judge other stream matchmakers for having forwarded the equipment interface channel in addition to the minimum streaming media server of total forwarding way Always whether the minimum streaming media server of forwarding way has reached the default forwarding upper limit in body server;
If it is not, then call in other streaming media servers for having forwarded the equipment interface channel total forwarding way most Small streaming media server undertakes video distribution function.
Wherein, using the strategy of dynamic dispatching, when the minimum streaming media server of always forwarding way has reached default turn , can the Automatic-searching minimum Streaming Media of total forwarding way time in the streaming media server of forwarding unit interface channel when sending out the upper limit Server goes to undertake video distribution function, is further ensured that server high availability.
Further, in one embodiment of the invention, methods described also includes:
If all streaming media servers in the streaming media server for having forwarded the equipment interface channel have reached To the default forwarding upper limit, then taken in other Streaming Medias in addition to the streaming media server for having forwarded the equipment interface channel It is engaged in device, finds a streaming media server for not forwarding the equipment interface channel and total forwarding way minimum;
The equipment interface channel is not forwarded described in judging and whether the streaming media server of total forwarding way minimum reaches The default forwarding upper limit;
If it is not, the equipment interface channel and the streaming media server of total forwarding way minimum are not forwarded described in then calling Undertake the function of video distribution.
And in the streaming media server for not forwarding the equipment interface channel and total forwarding way minimum described in the judgement After the step of whether reaching the default forwarding upper limit, methods described also includes:
Reach when determining the streaming media server for not forwarding the equipment interface channel and always forwarding way minimum During the default forwarding upper limit, search and judge not forward and do not forwarded except described in the streaming media server of the equipment interface channel Total turn in other streaming media servers beyond the equipment interface channel and the streaming media server of total forwarding way minimum Whether the minimum streaming media server of hair way has reached the default forwarding upper limit;
If it is not, the equipment is not forwarded except described in then calling the streaming media server for not forwarding the equipment interface channel Total forwarding way in other streaming media servers beyond interface channel and the streaming media server of total forwarding way minimum is most Small streaming media server undertakes video distribution function.
Wherein, the strategy of the more perfect dynamic dispatching of use, when in the streaming media server of forwarding unit interface channel All streaming media servers when having reached the default forwarding upper limit, can the never Streaming Media of forwarding unit interface channel automatically The minimum streaming media server of total forwarding way time is found in server to go to undertake video distribution function, i.e., forwarding unit ought connect The streaming media server in connection road is all delayed after machine, other streaming media servers adapter services is still had, so as to lift server height Availability.
Further, in one embodiment of the invention, methods described also includes;
When each streaming media server reaches the forwarding upper limit in the multiple streaming media server, then to described Client returns to miscue information.
Wherein, by returning to miscue information to client, allow users to know in time the operation conditions of server, Improve reliability of service.
Further, in one embodiment of the invention, the Streaming Media clothes for calling total forwarding way minimum After the step of business device undertakes video distribution function, methods described also includes:
Equipment access gateway corresponding to target monitoring equipment is notified to control the target monitoring equipment to start video and send.
An alternative embodiment of the invention proposes a kind of streaming media server scheduling system, solves existing video monitoring and puts down Platform can not meet when undertaking a large amount of concurrencies and accessing, while the problem of take into account economy and server high availability.
Streaming media server scheduling system according to embodiments of the present invention, applied to central server, the center service Device communicates with multiple streaming media servers simultaneously, and the system includes:
Acquisition module, refer to for obtaining the video request of access target monitoring device of client access server forwarding Order;
Enquiry module, for inquiring about in the multiple streaming media server with the presence or absence of the stream of forwarding unit interface channel Media server, the equipment interface channel are corresponding with the target monitoring equipment;
Searching modul, for when the enquiry module inquire in the multiple streaming media server exist forwarded it is described During the streaming media server of equipment interface channel, all streaming media servers for having forwarded the equipment interface channel are obtained, and Therefrom search the minimum streaming media server of total forwarding way;
Calling module, the streaming media server for calling total forwarding way minimum undertake video distribution function.
An alternative embodiment of the invention also propose one kind can storage medium, be stored thereon with computer program, the program The step of above method is realized when being executed by processor.
An alternative embodiment of the invention also proposes a kind of server, including memory, processor and is stored in storage The step of the above method is realized on device and the computer program that can run on a processor, during the computing device described program Suddenly.
The additional aspect and advantage of the present invention will be set forth in part in the description, and will partly become from the following description Obtain substantially, or recognized by embodiments of the invention.
Brief description of the drawings
In description of the above-mentioned and/or additional aspect and advantage of the embodiment of the present invention from combination accompanying drawings below to embodiment It will be apparent and be readily appreciated that, wherein:
Fig. 1 is the structural representation of the video monitoring platform of mode according to embodiments of the present invention;
Fig. 2 is the flow chart of streaming media server dispatching method according to a first embodiment of the present invention;
Fig. 3 is the flow chart of streaming media server dispatching method according to a second embodiment of the present invention;
Fig. 4 is the structural representation of streaming media server scheduling system according to a third embodiment of the present invention.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is Part of the embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
The present invention proposes streaming media server dispatching method, and its running environment is in video monitoring platform, such as security protection row Video monitoring platform in industry.For video monitoring platform, it is necessary to there is software and hardware to provide technical support.It is referring to Fig. 1, of the invention In video monitoring platform framework part by being formed with lower part:Monitor client 100, client access server 200, in Central server 300, streaming media server 400, equipment access gateway 500, monitoring device 600.
Wherein, monitor client 100 is located at user network side, and user network can be internet and LAN, and monitoring is objective Family end 100 can have with computer or mobile device (such as mobile phone, flat board), on monitor client 100 to be used to log in and access to regard The client software of frequency monitor supervision platform.Therefore monitor client 100, which can provide the user, logs in monitor supervision platform, query facility row The functions such as table, startup/arrestment video access.
Client access server 200, central server 300, streaming media server 400, equipment access gateway 500 are located at Open the Internet access port when platform network side, can be made up of a local Intranet, and Internet service being provided.
Client access server 200 is used for the connection for receiving numerous client softwares, and corresponding its logs in, equipment obtains Take, the response of the request of video access and forward process.
Central server 300 is used for the instruction for receiving client access server 200, and according to request scheduling Streaming Media clothes Business device 400 undertakes the function of video distribution, while notifies equipment access gateway 500 to control monitoring device 600 to start video and send.
Equipment access gateway 500 is responsible for monitoring device 600 and is adapted to, and accesses monitoring device 600, and to 600 turns of monitoring device Send out control instruction while receive the response result of monitoring device 600, and result is returned to central server 300.
For monitoring device 600 positioned at monitoring network side, monitoring device 600 is, for example, monitoring camera.Monitoring device 600 is used for Offer receives platform instruction, and streaming media server 400 establishes equipment interface channel and sends video to streaming media server 400 Data.Streaming media server 400 is used to forward the equipment interface channel established with streaming media server 400.
It is pointed out that when the scale is smaller of video monitoring platform, above-mentioned all component can be located at same local In net.
Referring to Fig. 2, above-mentioned running environment is based on, the streaming media server dispatching party that first embodiment of the invention proposes Method, applied to central server 300, central server 300 communicates with multiple streaming media servers 400 simultaneously, methods described bag Include:
S101, obtain the video request instruction of the access target monitoring device of client access server forwarding;
Wherein, the client software in monitor client 100 is used to obtain the standard before starting video access by user first Standby information, including input user code and password carry out debarkation authentication, and for debarkation authentication by rear, user can control client software Start video access, the initiation access request for being directed to target monitoring equipment is accessed, for example, monitoring device in video monitoring platform 600 have 4, specifically include monitoring device A, monitoring device B, monitoring device C and monitoring device D, and user wants to obtain monitoring device B The video content of monitoring, therefore, user need to use client software to initiate accessing monitoring equipment B video request and instructed, i.e., The information of target monitoring equipment, such as the ID of target monitoring equipment are carried in video request instruction.The video request instructs meeting Client access server 200 is first sent to, then central server 300 is forwarded to by client access server 200, so as to Central server 300 is set to obtain the accessing monitoring equipment B of the forwarding of client access server 200 video request instruction.
Streaming server, which will be registered, simultaneously is connected to central server, reports the service condition of oneself to streaming server in real time, Service condition includes the equipment interface channel information and data of forwarding, the link information and quantity of client.
S102, inquire about in the multiple streaming media server with the presence or absence of the streaming media service of forwarding unit interface channel Device, the equipment interface channel are corresponding with the target monitoring equipment;
Wherein, the multiple streaming media servers 400 communicated with central server 300, which will be registered, is connected to central server 300, and the service condition of oneself is reported to central server 300 in real time, the equipment connection that service condition includes each forwarding is logical Road information and data, the link information of client and quantity.Wherein, equipment interface channel information refers to some streaming media service Device 400 specifically establishes equipment interface channel with which or which monitoring device 600.It is assumed here that streaming media server 400 have 4, are streaming media server A, streaming media server B, streaming media server C and streaming media server D respectively, wherein, Streaming media server A establishes equipment interface channel with monitoring device B and monitoring device C, streaming media server B with Monitoring device A establishes equipment interface channel, and streaming media server C establishes equipment with monitoring device B and monitoring device D Interface channel, streaming media server D do not establish equipment interface channel with any monitoring device.Therefore, the equipment in step S102 Interface channel is corresponding with monitoring device B, therefore inquires about in the multiple streaming media server and connect with the presence or absence of forwarding unit The streaming media server in road is connected, is to inquire about which streaming media server establishes equipment interface channel with monitoring device B.
For the above situation, it can inquire and forward the streaming media server of the equipment interface channel to be taken including Streaming Media Be engaged in device A, streaming media server C, and accordingly, not forwarding the streaming media server of the equipment interface channel includes streaming media service Device B, streaming media server D.
S103, if so, then obtaining all streaming media servers for having forwarded the equipment interface channel, and therefrom search total Forward the minimum streaming media server of way;
Wherein, due to the streaming media server for having forwarded the equipment interface channel in platform be present, i.e. streaming media service Device A and streaming media server C, therefore, it is minimum that total forwarding way can be searched from streaming media server A and streaming media server C Streaming media server, if streaming media server A compares with streaming media server C, streaming media server A altogether forwarded 3 Bar equipment interface channel (two of which is equipment interface channel corresponding with monitoring device B and monitoring device C), streaming media service Device C forwarded altogether 5 equipment interface channels, and (two of which is that equipment corresponding with monitoring device B and monitoring device D connection is logical Road), therefore, streaming media server A is the minimum streaming media server of total forwarding way.Here, due to streaming media server C It forwarded 5 equipment interface channels altogether, and streaming media server A forwarded 3 equipment interface channels altogether, therefore, can be with It is interpreted as, streaming media server C is busier with respect to streaming media server A.
S104, the streaming media server for calling total forwarding way minimum undertake video distribution function.
Wherein, the streaming media server minimum due to have found total forwarding way, i.e. streaming media server A, can call stream Media server A undertakes video distribution function, afterwards, is notified that equipment corresponding to target monitoring equipment (i.e. monitoring device B) connects Function Access Gateway controls the target monitoring equipment (monitoring device B) to start video and sent, and (Streaming Media takes other streaming media servers Business device B, streaming media server C, streaming media server D) it is not involved in monitoring device B video transmission process.
Streaming media server dispatching method according to embodiments of the present invention, supervised for the access target that monitor client is sent The video request instruction of equipment is controlled, can inquire about whether there is having forwarded equipment interface channel corresponding with target monitoring equipment first Streaming media server, if in the presence of further therefrom searching the minimum streaming media server of total forwarding way as scheduling Server go to undertake video distribution function, i.e., according to the transfer capability of streaming media server go distribute load number, Er Feisuo There is the mean allocation of streaming media server, therefore can ensure that the request relative equilibrium of same equipment interface channel is assigned to just On the streaming media server for forwarding the passage, the phenomenon of generating unit shunting media server overload is avoided, so as to meet The requirement that a large amount of concurrencies access is undertaken, and because convection media server carries out rational equilibrium assignment, therefore can be maximum The configuration quantity of the reduction streaming media server of limit, ensures economy, while is not in the load of some streaming media server It is very high, and the situation that other streaming media servers are very empty, so as to realize long-time steady operation, ensure the request of high concurrent also not The disabled situation of service occurs.
Referring to Fig. 3, same running environment is based on, the streaming media server dispatching party that second embodiment of the invention proposes Method, applied to central server 300, central server 300 communicates with multiple streaming media servers 400 simultaneously, methods described bag Include:
S201, obtain the video request instruction of the access target monitoring device of client access server forwarding;
S202, inquire about in the multiple streaming media server with the presence or absence of the streaming media service of forwarding unit interface channel Device, the equipment interface channel are corresponding with the target monitoring equipment;
S203, if so, then obtaining all streaming media servers for having forwarded the equipment interface channel, and therefrom search total Forward the minimum streaming media server of way;
In the present embodiment, it is assumed that monitoring device 600 has 6 in video monitoring platform, specifically includes monitoring device A, monitoring Equipment B, monitoring device C, monitoring device D, monitoring device E, monitoring device F, user want to obtain in the video of monitoring device B monitoring Hold.Streaming media server 400 also has 6, is streaming media server A, streaming media server B, streaming media server C, stream respectively Media server D, streaming media server E, streaming media server F, wherein:
Streaming media server A established with monitoring device B and monitoring device C equipment interface channel (forwarded with Equipment interface channel corresponding to monitoring device B and monitoring device C, similarly hereinafter);
Streaming media server B establishes equipment interface channel with monitoring device A;
Streaming media server C establishes equipment interface channel with monitoring device B and monitoring device D;
Streaming media server D does not establish equipment interface channel with any monitoring device;
Streaming media server E establishes equipment interface channel with monitoring device B;
Streaming media server F establishes equipment interface channel with monitoring device E and monitoring device F.
Therefore, all streaming media servers for having forwarded the equipment interface channel are obtained, i.e., can get Streaming Media clothes Business device A, streaming media server C, streaming media server E (accordingly, do not forward the streaming media server of the equipment interface channel Respectively streaming media server B, streaming media server D, streaming media server F), it is assumed that (stream in these three streaming media servers Media server A, streaming media server C, streaming media server E), the minimum streaming media server of total forwarding way is Streaming Media Server A.
S204, judges whether the minimum streaming media server of total forwarding way has reached the default forwarding upper limit;If It is then to perform step S205, if it is not, then performing step S206;
Wherein, in the present embodiment, respectively each streaming media server pre-sets the forwarding upper limit of a service, often The forwarding upper limit of individual streaming media server can be with identical, can also be different, for convenience of description, in the present embodiment, each flows matchmaker The forwarding upper limit of body server is identical, it is assumed that forwarding the upper limit all be 5, i.e. a streaming media server at most with 5 monitoring devices Establish equipment interface channel (namely at most 5 equipment interface channels of forwarding).
Here, it can judge whether streaming media server A has reached the forwarding upper limit (it is pointed out that in step S203 Simply list the equipment interface channel relation of part, for streaming media server A, not only with monitoring device B and monitoring device C Equipment interface channel is established, equipment interface channel can also be established with other monitoring devices, is not limited to above-mentioned 6 monitoring devices Scope)
S205, search and judge in addition to the minimum streaming media server of total forwarding way it is other forwarded it is described Always whether the minimum streaming media server of forwarding way has reached default forwarding in the streaming media server of equipment interface channel The upper limit;If so, step S207 is then performed, if it is not, then performing step S208;
Wherein, if streaming media server A has reached the forwarding upper limit, can from beyond streaming media server A it is other Forward and search and sentence in the streaming media server (i.e. streaming media server C and streaming media server E) of the equipment interface channel Whether the minimum streaming media server of disconnected total forwarding way has reached the default forwarding upper limit, it is assumed here that streaming media server C Compared with streaming media server E, streaming media server C total forwarding way is minimum, then whether can judge streaming media server C Reach the default forwarding upper limit.
S206, the streaming media server for calling total forwarding way minimum undertake video distribution function.
Wherein, if media server A not up to forwards the upper limit, media server A can be called to undertake video distribution function.
S207, in other streaming media servers in addition to the streaming media server for having forwarded the equipment interface channel In, find one and do not forward the streaming media server of the equipment interface channel and total forwarding way minimum, and continue executing with step Rapid S209;
Wherein, if streaming media server C has reached the default forwarding upper limit, the equipment interface channel can forwarded Streaming media server beyond other streaming media servers (i.e. streaming media server B, streaming media server D, streaming media service Device F) in, find a minimum streaming media server of total forwarding way, it is assumed here that streaming media server B, streaming media service In device D, streaming media server F these three streaming media servers, streaming media server B total forwarding way is minimum.
S208, call total forwarding way in other streaming media servers for having forwarded the equipment interface channel minimum Streaming media server undertake video distribution function;
Wherein, if streaming media server C is not up to the default forwarding upper limit, streaming media server C can be called to undertake and regarded Frequency distribution function.
S209, judge described not forwarding the equipment interface channel and the streaming media server of total forwarding way minimum is It is no to reach the default forwarding upper limit;If so, step S210 is then performed, if it is not, then performing step S211;
Wherein, it can judge whether streaming media server B reaches the default forwarding upper limit;
S210, search and judge not forward in the streaming media server of the equipment interface channel except it is described do not forward it is described Total forwarding road in other streaming media servers beyond equipment interface channel and the streaming media server of total forwarding way minimum Whether the minimum streaming media server of number has reached the default forwarding upper limit;If it is not, then perform step S212;
Wherein, if streaming media server B has reached the default forwarding upper limit, can be taken in streaming media server D, Streaming Media Searched again in business device F and judge whether the minimum streaming media server of total forwarding way has reached the default forwarding upper limit, here It is assumed that both compare, streaming media server D total forwarding way is minimum.
S211, call and described do not forward the equipment interface channel and the streaming media server of total forwarding way minimum is held Carry on a shoulder pole the function of video distribution;
Wherein, if streaming media server B is not up to the default forwarding upper limit, streaming media server B is called to undertake video The function of distribution.
S212, call in the streaming media server for not forwarding the equipment interface channel and do not forward the equipment to connect except described The total forwarding way connected in other streaming media servers beyond road and the streaming media server of total forwarding way minimum is minimum Streaming media server undertake video distribution function.
Wherein, if streaming media server D is not up to the default forwarding upper limit, streaming media server D is called to undertake video The function of distribution.
In addition it should be pointed out that when in the multiple streaming media server each streaming media server reach When forwarding the upper limit, then miscue information is returned to the client., can SMS notification its server during if operation maintenance personnel Load completely please dynamically increases streaming server, and certain operation maintenance personnel can also check the statistics of platform, it will be seen that user, which accesses, to be increased After the trend added, increase streaming server shunting in advance.By returning to miscue information to client, allow users to obtain in time Know the operation conditions of server, improve reliability of service.
The streaming media server dispatching method that the present embodiment provides, it is that the service of every streaming media server is provided with service The forwarding upper limit, be also not in avalanche effect after some streaming media servers delay machine, will not cause causes other Streaming Medias Server load is too high and causes service crashes, using the strategy of dynamic dispatching, when the streaming media service that always forwarding way is minimum , can Automatic-searching total forwarding road in the streaming media server of forwarding unit interface channel when device has reached the default forwarding upper limit Streaming media server minimum for several times goes to undertake video distribution function, and ought forwarding unit interface channel streaming media server In all streaming media servers when having reached the default forwarding upper limit, can the never stream matchmaker of forwarding unit interface channel automatically The minimum streaming media server of total forwarding way time is found in body server to go to undertake video distribution function, i.e., ought forwarding unit The streaming media server of interface channel is all delayed after machine, other streaming media server adapter services is still had, so as to be further ensured that Server high availability.
It should be noted that what the present embodiment stressed is difference with a upper embodiment, between each embodiment The identical non-repeated description in similar part, can be with cross-reference.
Referring to Fig. 4, being based on same inventive concept, the streaming media server that third embodiment of the invention proposes dispatches system 101, applied to central server, the central server communicates with multiple streaming media servers simultaneously, and the system includes:
Acquisition module 10, refer to for obtaining the video request of access target monitoring device of client access server forwarding Order;
Enquiry module 20, for inquiring about in the multiple streaming media server with the presence or absence of forwarding unit interface channel Streaming media server, the equipment interface channel are corresponding with the target monitoring equipment;
Searching modul 30, for having been forwarded when the enquiry module 20 inquires to exist in the multiple streaming media server During the streaming media server of the equipment interface channel, all streaming media services for having forwarded the equipment interface channel are obtained Device, and therefrom search the minimum streaming media server of total forwarding way;
Calling module 40, the streaming media server for calling total forwarding way minimum undertake video distribution function.
In the present embodiment, the calling module 40 is specifically used for:
Judge whether the minimum streaming media server of total forwarding way has reached the default forwarding upper limit;
If it is not, the streaming media server for then calling total forwarding way minimum undertakes video distribution function.
In the present embodiment, the calling module 40 is additionally operable to:
When the streaming media server for determining total forwarding way minimum has reached the default forwarding upper limit, search simultaneously Judge other stream matchmakers for having forwarded the equipment interface channel in addition to the minimum streaming media server of total forwarding way Always whether the minimum streaming media server of forwarding way has reached the default forwarding upper limit in body server;
If it is not, then call in other streaming media servers for having forwarded the equipment interface channel total forwarding way most Small streaming media server undertakes video distribution function.
In the present embodiment, the calling module 40 is additionally operable to:
If all streaming media servers in the streaming media server for having forwarded the equipment interface channel have reached To the default forwarding upper limit, then taken in other Streaming Medias in addition to the streaming media server for having forwarded the equipment interface channel It is engaged in device, finds a streaming media server for not forwarding the equipment interface channel and total forwarding way minimum;
The equipment interface channel is not forwarded described in judging and whether the streaming media server of total forwarding way minimum reaches The default forwarding upper limit;
If it is not, the equipment interface channel and the streaming media server of total forwarding way minimum are not forwarded described in then calling Undertake the function of video distribution.
In the present embodiment, the calling module 40 is additionally operable to:
Reach when determining the streaming media server for not forwarding the equipment interface channel and always forwarding way minimum During the default forwarding upper limit, search and judge not forward and do not forwarded except described in the streaming media server of the equipment interface channel Total turn in other streaming media servers beyond the equipment interface channel and the streaming media server of total forwarding way minimum Whether the minimum streaming media server of hair way has reached the default forwarding upper limit;
If it is not, the equipment is not forwarded except described in then calling the streaming media server for not forwarding the equipment interface channel Total forwarding way in other streaming media servers beyond interface channel and the streaming media server of total forwarding way minimum is most Small streaming media server undertakes video distribution function.
In the present embodiment, the system 101 also includes:
Reminding module 50, for when in the multiple streaming media server each streaming media server reach forwarding During the upper limit, then miscue information is returned to the client.
In the present embodiment, the system 101 also includes;
Notification module 60, for notifying equipment access gateway corresponding to target monitoring equipment to control the target monitoring equipment Start video to send.
The technical characteristic and technique effect and the present invention for the streaming media server scheduling system that the embodiment of the present invention proposes are real The method for applying example proposition is identical, will not be described here.
In addition, embodiments of the invention also propose a kind of readable storage medium storing program for executing, computer instruction is stored thereon with, the instruction The step of above method is realized when being executed by processor.
In addition, embodiments of the invention also propose a kind of server, including memory, processor and it is stored in memory Computer program that is upper and can running on a processor, the step of realizing the above method during computing device described program.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system including the system of processor or other can be held from instruction The system of row system, device or equipment instruction fetch and execute instruction) use, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicate, propagate or pass Defeated program is for instruction execution system, device or equipment or the dress used with reference to these instruction execution systems, device or equipment Put.
The more specifically example (non-exhaustive list) of computer-readable medium includes following:Connected up with one or more Electrical connection section (electronic installation), portable computer diskette box (magnetic device), random access memory (RAM), read-only storage (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device, and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium, which can even is that, to print the paper of described program thereon or other are suitable Medium, because can then enter edlin, interpretation or if necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combinations thereof.Above-mentioned In embodiment, software that multiple steps or method can be performed in memory and by suitable instruction execution system with storage Or firmware is realized.If, and in another embodiment, can be with well known in the art for example, realized with hardware Any one of row technology or their combination are realized:With the logic gates for realizing logic function to data-signal Discrete logic, have suitable combinational logic gate circuit application specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or the spy for combining the embodiment or example description Point is contained at least one embodiment or example of the present invention.In this manual, to the schematic representation of above-mentioned term not Necessarily refer to identical embodiment or example.Moreover, specific features, structure, material or the feature of description can be any One or more embodiments or example in combine in an appropriate manner.
Although an embodiment of the present invention has been shown and described, it will be understood by those skilled in the art that:Not In the case of departing from the principle and objective of the present invention a variety of change, modification, replacement and modification can be carried out to these embodiments, this The scope of invention is limited by claim and its equivalent.

Claims (10)

1. a kind of streaming media server dispatching method, applied to central server, the central server simultaneously with multiple stream matchmakers Body server communicates, it is characterised in that methods described includes:
Obtain the video request instruction of the access target monitoring device of client access server forwarding;
Inquire about with the presence or absence of the streaming media server of forwarding unit interface channel in the multiple streaming media server, it is described to set Standby interface channel is corresponding with the target monitoring equipment;
If so, then obtaining all streaming media servers for having forwarded the equipment interface channel, and therefrom search total forwarding way Minimum streaming media server;
The streaming media server for calling total forwarding way minimum undertakes video distribution function.
2. streaming media server dispatching method according to claim 1, it is characterised in that described to call total forwarding road The step of minimum streaming media server of number undertakes video distribution function includes:
Judge whether the minimum streaming media server of total forwarding way has reached the default forwarding upper limit;
If it is not, the streaming media server for then calling total forwarding way minimum undertakes video distribution function.
3. streaming media server dispatching method according to claim 2, it is characterised in that described to judge total forwarding road After whether the minimum streaming media server of number has reached the step of default forwarding upper limit, methods described also includes:
When the streaming media server for determining total forwarding way minimum has reached the default forwarding upper limit, search and judge Other Streaming Medias for having forwarded the equipment interface channel in addition to the minimum streaming media server of total forwarding way take Whether the minimum streaming media server of total forwarding way has reached the default forwarding upper limit in business device;
If it is not, then call total forwarding way in other streaming media servers for having forwarded the equipment interface channel minimum Streaming media server undertakes video distribution function.
4. streaming media server dispatching method according to claim 3, it is characterised in that methods described also includes:
If all streaming media servers in the streaming media server for having forwarded the equipment interface channel have reached pre- If the forwarding upper limit, then in other streaming media servers in addition to the streaming media server for having forwarded the equipment interface channel In, find a streaming media server for not forwarding the equipment interface channel and total forwarding way minimum;
The equipment interface channel is not forwarded described in judging and whether the streaming media server of total forwarding way minimum reaches default The forwarding upper limit;
If it is not, the streaming media server for not forwarding the equipment interface channel described in then calling and always forwarding way minimum undertakes The function of video distribution.
5. streaming media server dispatching method according to claim 4, it is characterised in that do not forward institute described in the judgement State equipment interface channel and the step of whether the minimum streaming media server of total forwarding way reaches the default forwarding upper limit it Afterwards, methods described also includes:
Reach default when determining the streaming media server for not forwarding the equipment interface channel and always forwarding way minimum The forwarding upper limit when, search and judge not forward in the streaming media server of the equipment interface channel except it is described do not forward it is described Total forwarding road in other streaming media servers beyond equipment interface channel and the streaming media server of total forwarding way minimum Whether the minimum streaming media server of number has reached the default forwarding upper limit;
If it is not, the equipment is not forwarded to connect except described in then calling the streaming media server for not forwarding the equipment interface channel Total forwarding way in other streaming media servers beyond passage and the minimum streaming media server of total forwarding way is minimum Streaming media server undertakes video distribution function.
6. streaming media server dispatching method according to claim 5, it is characterised in that methods described also includes;
When each streaming media server reaches the forwarding upper limit in the multiple streaming media server, then to the client End returns to miscue information.
7. streaming media server dispatching method according to claim 1, it is characterised in that described to call total forwarding road After the step of minimum streaming media server of number undertakes video distribution function, methods described also includes:
Equipment access gateway corresponding to target monitoring equipment is notified to control the target monitoring equipment to start video and send.
8. a kind of streaming media server dispatches system, applied to central server, the central server simultaneously with multiple stream matchmakers Body server communicates, it is characterised in that the system includes:
Acquisition module, the video request instruction of the access target monitoring device for obtaining the forwarding of client access server;
Enquiry module, for inquiring about in the multiple streaming media server with the presence or absence of the Streaming Media of forwarding unit interface channel Server, the equipment interface channel are corresponding with the target monitoring equipment;
Searching modul, for having forwarded the equipment when the enquiry module inquires to exist in the multiple streaming media server During the streaming media server of interface channel, all streaming media servers for having forwarded the equipment interface channel are obtained, and therefrom Search the minimum streaming media server of total forwarding way;
Calling module, the streaming media server for calling total forwarding way minimum undertake video distribution function.
9. a kind of readable storage medium storing program for executing, is stored thereon with computer program, it is characterised in that real when the program is executed by processor The now method as described in claim 1-7 any one.
10. a kind of server, including memory, processor and storage are on a memory and the calculating that can run on a processor Machine program, it is characterised in that the side as described in claim 1 to 7 any one is realized during the computing device described program Method.
CN201710923431.9A 2017-09-30 2017-09-30 Streaming media server dispatching method, system, readable storage medium storing program for executing and server Withdrawn CN107734361A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710923431.9A CN107734361A (en) 2017-09-30 2017-09-30 Streaming media server dispatching method, system, readable storage medium storing program for executing and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710923431.9A CN107734361A (en) 2017-09-30 2017-09-30 Streaming media server dispatching method, system, readable storage medium storing program for executing and server

Publications (1)

Publication Number Publication Date
CN107734361A true CN107734361A (en) 2018-02-23

Family

ID=61208543

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710923431.9A Withdrawn CN107734361A (en) 2017-09-30 2017-09-30 Streaming media server dispatching method, system, readable storage medium storing program for executing and server

Country Status (1)

Country Link
CN (1) CN107734361A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108551571A (en) * 2018-05-16 2018-09-18 武汉微创光电股份有限公司 A kind of monitor video distribution method, device, system and Distributor
CN108833391A (en) * 2018-06-06 2018-11-16 北京世纪东方通讯设备有限公司 A kind of media flow point retransmission method and device for video monitoring system
CN109450911A (en) * 2018-11-26 2019-03-08 武汉虹信技术服务有限责任公司 A kind of across a network stream medium data transmission system and method
CN110290097A (en) * 2018-03-19 2019-09-27 腾讯科技(深圳)有限公司 Processing method, device, storage medium and the electronic device of data
CN110392233A (en) * 2019-06-20 2019-10-29 视联动力信息技术股份有限公司 Monitor video processing method, device and storage medium
CN110519616A (en) * 2019-10-10 2019-11-29 腾讯科技(深圳)有限公司 Distribution method, distribution node, control centre and the storage medium of video
CN111064923A (en) * 2019-11-18 2020-04-24 视联动力信息技术股份有限公司 Monitoring data processing method and device and storage medium
CN112995234A (en) * 2021-05-20 2021-06-18 武汉中科通达高新技术股份有限公司 Media transmission link management method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102857439A (en) * 2012-09-03 2013-01-02 国网电力科学研究院 Media data access and scheduling system architecture design method based on multi-node cooperation
US20160366198A1 (en) * 2015-06-09 2016-12-15 Arris Enterprises Llc Http live streaming (hls) video client synchronization

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102857439A (en) * 2012-09-03 2013-01-02 国网电力科学研究院 Media data access and scheduling system architecture design method based on multi-node cooperation
US20160366198A1 (en) * 2015-06-09 2016-12-15 Arris Enterprises Llc Http live streaming (hls) video client synchronization

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110290097A (en) * 2018-03-19 2019-09-27 腾讯科技(深圳)有限公司 Processing method, device, storage medium and the electronic device of data
CN108551571A (en) * 2018-05-16 2018-09-18 武汉微创光电股份有限公司 A kind of monitor video distribution method, device, system and Distributor
CN108551571B (en) * 2018-05-16 2020-07-07 武汉微创光电股份有限公司 Monitoring video distribution method, device and system and distribution server
CN108833391A (en) * 2018-06-06 2018-11-16 北京世纪东方通讯设备有限公司 A kind of media flow point retransmission method and device for video monitoring system
CN109450911A (en) * 2018-11-26 2019-03-08 武汉虹信技术服务有限责任公司 A kind of across a network stream medium data transmission system and method
CN110392233A (en) * 2019-06-20 2019-10-29 视联动力信息技术股份有限公司 Monitor video processing method, device and storage medium
CN110519616A (en) * 2019-10-10 2019-11-29 腾讯科技(深圳)有限公司 Distribution method, distribution node, control centre and the storage medium of video
CN111064923A (en) * 2019-11-18 2020-04-24 视联动力信息技术股份有限公司 Monitoring data processing method and device and storage medium
CN111064923B (en) * 2019-11-18 2022-08-23 视联动力信息技术股份有限公司 Monitoring data processing method and device and storage medium
CN112995234A (en) * 2021-05-20 2021-06-18 武汉中科通达高新技术股份有限公司 Media transmission link management method and device
CN112995234B (en) * 2021-05-20 2021-07-20 武汉中科通达高新技术股份有限公司 Media transmission link management method and device

Similar Documents

Publication Publication Date Title
CN107734361A (en) Streaming media server dispatching method, system, readable storage medium storing program for executing and server
US11265258B2 (en) Network device, controller, queue management method, and traffic management chip
US8300638B2 (en) Multimodal multilevel precedence and preemption
US11102087B2 (en) Service deployment for geo-distributed edge clouds
US20210092643A1 (en) User plane resource management method, user plane network element, and control plane network element
KR101387798B1 (en) Optimization of the presence information refresh for a wireless device
CN108366021B (en) Method and system for processing concurrent webpage access service
CN108483152A (en) Preengage boarding system, implementation method and background server, storage medium
CN110177055B (en) Pre-allocation method of edge domain resources in edge computing scene
CN103746934A (en) CDN bandwidth balancing method, CDN control center and system
CN112583734B (en) Burst flow control method and device, electronic equipment and storage medium
CN106936926B (en) Method and system for accessing data node
CN104320551A (en) Service processing method for call center routing and network equipment
CN105450694A (en) Redirecting the service request to destination address;
CN107707939A (en) Video access methods, access equalization server, central server and system
US20160248851A1 (en) Method, apparatus and system for voice service access
CN114025023B (en) Source returning method, device, equipment and computer readable storage medium
CN110366194A (en) Resource transfer method, apparatus and system
CN113746909A (en) Network connection method, device, electronic equipment and computer readable storage medium
CN114006915A (en) Resource request method, device, equipment and computer readable storage medium
CN114244548A (en) Cloud IDE-oriented dynamic scheduling and user authentication method
CN106131222A (en) A kind of server load balancing concocting method and system
CN109600346B (en) Intercommunication method, central server, stream server and intercommunication system
CN105245512B (en) A kind of unidirectional file transmission method and the server for realizing the transmission method
CN112217853B (en) Resource access method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
CB02 Change of applicant information

Address after: 518000 Guangdong city of Shenzhen province Nanshan District Guangdong streets Changhong technology science and technology twelve South Road, building 19 floor

Applicant after: Shenzhen Oufei New Technology Co.,Ltd.

Address before: 518000 Guangdong city of Shenzhen province Nanshan District Guangdong streets Changhong technology science and technology twelve South Road, building 19 floor

Applicant before: SHENZHEN TEMOBI INNOVATION TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
TA01 Transfer of patent application right

Effective date of registration: 20200429

Address after: 335000 No.7 road-0006, high tech Industrial Development Zone, Yingtan City, Jiangxi Province

Applicant after: Jiangxi oufijuneng IOT Technology Co.,Ltd.

Address before: 518000 Guangdong city of Shenzhen province Nanshan District Guangdong streets Changhong technology science and technology twelve South Road, building 19 floor

Applicant before: Shenzhen Oufei New Technology Co.,Ltd.

TA01 Transfer of patent application right
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20180223

WW01 Invention patent application withdrawn after publication