Media server dispatching method, apparatus and system
Technical field
The present invention relates to the communications field, in particular to a kind of media server dispatching method, apparatus and system.
Background technology
Media server is the visual plant of field of telecommunications, there is provided audio, video elementary ability, in application server
Under the control of (Application Server, referred to as AS), colourful audio frequency and video service is provided the user, such as plays language
Sound, play video, collect the digits, audio frequency and video record, transmit/receive fax, automatic speech recognition (Automatic Speech
Recognition, referred to as ASR), from Text To Speech (Text To Speech, referred to as TTS), audio/video conference etc..
With the development of cloud computing technology, traditional media server is not supported virtual due to the limitation of its specialized hardware
The abilities such as change, resource elastic telescopic, have been not suitable with the requirement to telecommunication apparatus under cloud computing framework.W media server meeting
As the following capital equipment for providing media services.W media server is towards virtualization, distribution, resource elastic telescopic etc.
Characteristic direction develops, and is effectively improved the resource utilization of network, reduces the capital expenditures of telecom operators
(Capital Expenditure, referred to as CAPEX)/operation cost (Operating Expense, referred to as OPEX).
W media server is typically functionally divided into signaling processing module and medium process module, wherein signalling module
Performance requirement is not high, and the disposal ability of medium process module, very high to performance consumption, and for different media formats, no
Process performance with operation flow is also widely different, and system is in the case of busy, it is easy to packet saltus step occurs, influences
The situation of Consumer's Experience.Current existing each manufacturer is typically all simply to be dispatched according to the number of users of access, and is propped up
The transcoding announcement process of the terminal for holding AMR forms and the terminal for supporting PCMA forms, the occupancy to system resource is not a number
In magnitude, distribution is extremely unreasonable, so when clustering is disposed, how in real time, rationally resource effectively allocates, for
Media server is a very big challenge, and one it is in the urgent need to address the problem of.
For in correlation technique to media server scheduling reasonability it is low the problem of, there is presently no the side of efficiently solving
Case.
The content of the invention
The embodiments of the invention provide a kind of media server dispatching method, apparatus and system, at least to solve related skill
The problem of reasonability dispatched in art to media server is low.
According to one embodiment of present invention, there is provided a kind of media server dispatching method, including:Obtain media services
The disposal ability score of the pending business of device processing, wherein, the disposal ability score is used to evaluate media server processes industry
The ability of business;Determined to handle the target medium server of the pending business according to the disposal ability score;Described in scheduling
Pending business described in target medium server process.
Alternatively, determined to handle the target medium server of the pending business according to the disposal ability score
Including:Found out from the disposal ability score of acquisition and meet that the disposal ability score of preparatory condition handles energy as target
Power score;Determine that media server is as the target medium server corresponding to the target disposal ability score.
Alternatively, the disposal ability score conduct for meeting preparatory condition is found out from the disposal ability score of acquisition
Target disposal ability score includes:The disposal ability score of acquisition is ranked up from high to low;Described in after sequence
Minimum disposal ability score is found out in disposal ability score as the target disposal ability score.
Alternatively, obtain media server processes described in pending business the disposal ability score include it is following it
One:Receive the disposal ability score of the media server renewal;Timing extracts the processing from the media server
Ability score.
Alternatively, before the disposal ability score of pending business described in the media server processes is obtained,
Methods described also includes:Obtain the operation information of the media server processes current business;Counted according to the operation information
The disposal ability score of current business described in the media server processes, wherein, the disposal ability score is used to comment
The ability of valency media server processes business.
According to another embodiment of the invention, there is provided a kind of media server dispatching method, including:Obtain media clothes
The operation information for device processing current business of being engaged in;The current business according to the operation information counts the media server processes
Disposal ability score, wherein, the disposal ability score is used to evaluate the ability of media server processes business;Described in transmission
Disposal ability score to media server controlling equipment, wherein, the media server controlling equipment is according to the disposal ability
Score determines to handle the target medium server of pending business, and dispatches pending described in the target medium server process
Business.
Alternatively, obtaining the operation information of media server processes current business includes:The current business is obtained to perform
Operation corresponding to action type;The operation information corresponding to every kind of action type is detected respectively.
Alternatively, according to the operation information counts the media server processes current business the processing energy
Power score includes:Every kind of behaviour is calculated according to preset parameter value corresponding to the operation information and every kind of operation information
Make the operation score of information;The processing of current business according to the operation score counts the media server processes
Ability score.
Alternatively, the operation information includes at least one of:Operate time delay, operation calls number.
According to another embodiment of the invention, there is provided a kind of media server dispatching device, including:First obtains mould
Block, for obtaining the disposal ability score of the pending business of media server processes, wherein, the disposal ability score is used to comment
The ability of valency media server processes business;Determining module, for waiting to hold according to disposal ability score determination processing
The target medium server of industry business;Scheduler module, for dispatching pending business described in the target medium server process.
Alternatively, the determining module includes:Searching unit, for being found out from the disposal ability score of acquisition
Meet the disposal ability score of preparatory condition as target disposal ability score;Determining unit, for determining the target processing
Media server corresponding to ability score is as the target medium server.
Alternatively, first acquisition module includes one below:Receiving unit, for receiving the media server more
The new disposal ability score;Extraction unit, the disposal ability score is extracted from the media server for timing.
According to another embodiment of the invention, there is provided a kind of media server dispatching device, including:Second obtains mould
Block, for obtaining the operation information of media server processes current business;First statistical module, for according to the operation information
The disposal ability score of current business described in the media server processes is counted, wherein, the disposal ability score is used to comment
The ability of valency media server processes business;Sending module, dispatched for sending the disposal ability score to media server
Equipment, wherein, the media server controlling equipment determines to handle the target of pending business according to the disposal ability score
Media server, and dispatch pending business described in the target medium server process.
Alternatively, second acquisition module includes:Acquiring unit, the operation pair performed for obtaining the current business
The action type answered;Detection unit, for detecting the operation information corresponding to every kind of action type respectively.
Alternatively, first statistical module includes:Computing unit, for according to the operation information and it is every kind of described in
Preset parameter value corresponding to operation information calculates the operation score of every kind of operation information;Statistic unit, for according to
Operate the disposal ability score that score counts current business described in the media server processes.
According to another embodiment of the invention, there is provided a kind of media server dispatches system, including:Media server
Controlling equipment and media server, wherein, the media server controlling equipment is connected with the media server;The media
Server scheduling equipment is used for the disposal ability score for obtaining the pending business of media server processes, wherein, the processing energy
Power score is used for the ability for evaluating media server processes business;Determine that processing is described pending according to the disposal ability score
The target medium server of business;Dispatch pending business described in the target medium server process;The media server
For obtaining the operation information of media server processes current business;Counted according to the operation information at the media server
The disposal ability score of the current business is managed, wherein, the disposal ability score is used to evaluate media server processes business
Ability;The disposal ability score is sent to the media server controlling equipment.
Alternatively, the media server controlling equipment is used for:Found out from the disposal ability score of acquisition full
The disposal ability score of sufficient preparatory condition is as target disposal ability score;Determine matchmaker corresponding to the target disposal ability score
Body server is as the target medium server.
Alternatively, the media server controlling equipment is used for:The disposal ability score of acquisition is entered from high to low
Row sequence;Minimum disposal ability score is found out from the disposal ability score after sequence and handles energy as the target
Power score.
Alternatively, the media server controlling equipment is used for one below:Receive the institute of the media server renewal
State disposal ability score;Timing extracts the disposal ability score from the media server.
Alternatively, the media server is used for:Obtain action type corresponding to the operation that the current business performs;Point
The operation information corresponding to every kind of action type is not detected.
Alternatively, the media server is used for:According to corresponding to the operation information and every kind of operation information
Preset parameter value calculates the operation score of every kind of operation information;Counted according to the operation score at the media server
Manage the disposal ability score of the current business.
Alternatively, the operation information includes at least one of:Operate time delay, operation calls number.
By the present invention, the disposal ability score of the pending business of media server processes is obtained, wherein, disposal ability obtains
Divide the ability for being used for evaluating media server processes business;Determined to handle the target matchmaker of pending business according to disposal ability score
Body server;The pending business of regulation goal media server processes, it can be seen that, using such scheme according to media server
Disposal ability score target medium server is determined from media server, and regulation goal media server processes are pending
Business so that can be scheduled according to the ability of media server processes business to media server, this improves to matchmaker
The reasonability of body server scheduling is low to the reasonability of media server scheduling in correlation technique so as to solve the problems, such as.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, this hair
Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is a kind of flow chart one of media server dispatching method according to embodiments of the present invention;
Fig. 2 is a kind of flowchart 2 of media server dispatching method according to embodiments of the present invention;
Fig. 3 is a kind of structured flowchart one of media server dispatching device according to embodiments of the present invention;
Fig. 4 is a kind of structured flowchart two of media server dispatching device according to embodiments of the present invention;
Fig. 5 is a kind of structured flowchart three of media server dispatching device according to embodiments of the present invention;
Fig. 6 is a kind of structured flowchart four of media server dispatching device according to embodiments of the present invention;
Fig. 7 is a kind of structured flowchart five of media server dispatching device according to embodiments of the present invention;
Fig. 8 is a kind of structured flowchart six of media server dispatching device according to embodiments of the present invention;
Fig. 9 is a kind of structured flowchart of media server scheduling system according to embodiments of the present invention;
Figure 10 is the schematic diagram according to a kind of w media server external network framework of alternative embodiment of the present invention;
Figure 11 is the schematic diagram according to a kind of w media server architecture 1 of alternative embodiment of the present invention;
Figure 12 is the schematic diagram according to a kind of w media server architecture 2 of alternative embodiment of the present invention;
Figure 13 is the schematic diagram of a kind of statistics and scheduling computational methods according to alternative embodiment of the present invention;
Figure 14 is the schematic diagram of playback dynamic dispatching flow in a kind of framework 1 according to alternative embodiment of the present invention;
Figure 15 is the schematic diagram of playback dynamic dispatching flow in a kind of framework 2 according to alternative embodiment of the present invention.
Embodiment
Describe the present invention in detail below with reference to accompanying drawing and in conjunction with the embodiments.It should be noted that do not conflicting
In the case of, the feature in embodiment and embodiment in the application can be mutually combined.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, "
Two " etc. be for distinguishing similar object, without for describing specific order or precedence.
Embodiment 1
A kind of media server dispatching method is provided in the present embodiment, and Fig. 1 is one kind according to embodiments of the present invention
The flow chart one of media server dispatching method, as shown in figure 1, the flow comprises the following steps:
Step S102, the disposal ability score of the pending business of media server processes is obtained, wherein, disposal ability score
For evaluating the ability of media server processes business;
Step S104, determined to handle the target medium server of pending business according to disposal ability score;
Step S106, the pending business of regulation goal media server processes.
Alternatively, above-mentioned media server dispatching method can be, but not limited to be applied to next generation network (Next
Generation Network, referred to as NGN) and/IP multimedia subsystem (IP Multimedia Subsystem, referred to as
IMS) in the scene of field of telecommunications and field of cloud calculation.Such as:The scene being scheduled for w media server.
Alternatively, above-mentioned media server dispatching method can be, but not limited to be applied to media server controlling equipment, example
Such as:Application server, session initial protocol server SIP_PROXY, signalling processing equipment.
By above-mentioned steps, the disposal ability score of the pending business of media server processes is obtained, wherein, disposal ability
Score is used for the ability for evaluating media server processes business;Determined to handle the target of pending business according to disposal ability score
Media server;The pending business of regulation goal media server processes, it can be seen that, using such scheme according to media services
The disposal ability score of device determines target medium server from media server, and regulation goal media server processes are waited to hold
Industry is engaged in so that media server can be scheduled according to the ability of media server processes business, this improves right
The reasonability of media server scheduling is low to the reasonability of media server scheduling in correlation technique so as to solve the problems, such as.
Alternatively, in above-mentioned steps S104, the disposal ability score for meeting preparatory condition can be found out, and according to looking into
The disposal ability score found out determines that its corresponding media server is target medium server.Such as:From the processing energy of acquisition
The disposal ability score for meeting preparatory condition is found out in power score as target disposal ability score;Determine target disposal ability
Media server corresponding to score is as target medium server.For preparatory condition, as the higher expression matchmaker of disposal ability score
When the disposal ability of body server is stronger, preparatory condition can be that highest point manages ability score, similarly, when disposal ability score is got over
When the disposal ability of low presentation medium server is stronger, preparatory condition can be that lowest part manages ability score, in addition, preparatory condition
It can also be a score range.
It is alternatively possible to pass through the ranking and searching target disposal ability score to disposal ability score.Such as:To acquisition
Disposal ability score is ranked up from high to low, and minimum disposal ability score is found out from the disposal ability score after sequence
As target disposal ability score.
Alternatively, the mode for obtaining disposal ability score can passively be received from media server, can also be actively
Extracted from media server, the frequency of extraction can be setting.Such as:Obtain the place of the pending business of media server processes
The mode of reason ability score can be, but not limited to include one below:
Mode one, receive the disposal ability score of media server renewal.
Mode two, regularly from media server extraction process ability score.
Alternatively, can be according to the operation information pair of media server processes current business before above-mentioned steps S102
The disposal ability score of media server is counted.Such as:Obtain the operation information of media server processes current business, root
According to the disposal ability score of operation information statistics media server processes current business, wherein, disposal ability score is used to evaluate
The ability of media server processes business.
Another media server dispatching method is additionally provided in the present embodiment, and Fig. 2 is according to embodiments of the present invention
A kind of flowchart 2 of media server dispatching method, as shown in Fig. 2 the flow comprises the following steps:
Step S202, obtain the operation information of media server processes current business;
Step S204, the disposal ability score of media server processes current business is counted according to operation information, wherein, place
Reason ability score is used for the ability for evaluating media server processes business;
Step S206, disposal ability score is sent to media server controlling equipment, wherein, media server controlling equipment
Determined to handle the target medium server of pending business according to disposal ability score, and regulation goal media server processes are treated
Execution business.
Alternatively, above-mentioned media server dispatching method can be, but not limited to be applied to NGN/IMS field of telecommunications and cloud meter
In the scene in calculation field.Such as:The scene being scheduled for w media server.
Alternatively, above-mentioned media server dispatching method can be, but not limited to be applied to media server, such as:Software matchmaker
Body server etc..
Pass through above-mentioned steps, the operation information of acquisition media server processes current business;Matchmaker is counted according to operation information
The disposal ability score of body server process current business, wherein, disposal ability score is used to evaluate media server processes industry
The ability of business;Disposal ability score is sent to media server controlling equipment, wherein, media server controlling equipment is according to processing
Ability score determines to handle the target medium server of pending business, and the pending industry of regulation goal media server processes
Business, it can be seen that, using such scheme according to the operation information of media server processes current business to media server processes
The ability of business is counted, and statistical result is sent to the controlling equipment of media server, it is taken according to media
The ability of business device processing business is scheduled to media server, this improves the reasonability dispatched to media server, from
And solve the problems, such as low to the reasonability of media server scheduling in correlation technique.
Alternatively, can the operation according to corresponding to different action types obtains action type in above-mentioned steps S202
Information.Such as:Action type corresponding to obtaining the operation that current business performs, detect operated corresponding to every kind of action type respectively
Information.
Alternatively, in above-mentioned steps S204, operation information can be entered using preset parameter value corresponding to operation information
The score of various parameters is calculated in row, and disposal ability score is counted further according to the score of various parameters.Such as:According to operation
Preset parameter value corresponding to information and every kind of operation information calculates the operation score of every kind of operation information, according to operation score system
Count the disposal ability score of media server processes current business.
Alternatively, aforesaid operations information can be, but not limited to include at least one of:Operate time delay, operation calls time
Number.
Embodiment 2
Additionally provide a kind of media server dispatching device in the present embodiment, the device be used to realizing above-described embodiment and
Preferred embodiment, repeating no more for explanation was carried out.As used below, term " module " can realize predetermined work(
The combination of the software and/or hardware of energy.Although device described by following examples is preferably realized with software, firmly
Part, or the realization of the combination of software and hardware is also what may and be contemplated.
Fig. 3 is a kind of structured flowchart one of media server dispatching device according to embodiments of the present invention, as shown in figure 3,
The device includes:
First acquisition module 32, for obtaining the disposal ability score of the pending business of media server processes, wherein, place
Reason ability score is used for the ability for evaluating media server processes business;
Determining module 34, coupled to the first acquisition module 32, for being determined to handle pending industry according to disposal ability score
The target medium server of business;
Scheduler module 36, coupled to determining module 34, for the pending business of regulation goal media server processes.
Alternatively, above-mentioned media server dispatching device can be, but not limited to be applied to next generation network (Next
Generation Network, referred to as NGN) and/IP multimedia subsystem (IP Multimedia Subsystem, referred to as
IMS) in the scene of field of telecommunications and field of cloud calculation.Such as:The scene being scheduled for w media server.
Alternatively, above-mentioned media server dispatching device can be, but not limited to be applied to media server controlling equipment, example
Such as:Application server, session initial protocol server SIP_PROXY, signalling processing equipment.
By said apparatus, the first acquisition module obtains the disposal ability score of the pending business of media server processes,
Wherein, disposal ability score is used for the ability for evaluating media server processes business;Determining module is true according to disposal ability score
Surely the target medium server of pending business is handled;The pending business of scheduler module regulation goal media server processes, by
This is visible, and target medium service is determined from media server according to the disposal ability score of media server using such scheme
Device, and the pending business of regulation goal media server processes so that can be according to the ability pair of media server processes business
Media server is scheduled, right in correlation technique so as to solve this improves the reasonability dispatched to media server
The problem of reasonability of media server scheduling is low.
Fig. 4 is a kind of structured flowchart two of media server dispatching device according to embodiments of the present invention, as shown in figure 4,
Alternatively, above-mentioned determining module 34 includes:
Searching unit 42, the disposal ability score of preparatory condition is met for being found out from the disposal ability score of acquisition
As target disposal ability score;
Determining unit 44, coupled to searching unit 42, for determining media server corresponding to target disposal ability score
As target medium server.
Alternatively, above-mentioned searching unit 42 is used for:The disposal ability score of acquisition is ranked up from high to low;From sequence
Minimum disposal ability score is found out in disposal ability score afterwards as target disposal ability score.
Fig. 5 is a kind of structured flowchart three of media server dispatching device according to embodiments of the present invention, as shown in figure 5,
Alternatively, above-mentioned first acquisition module 32 includes one below:
Receiving unit 52, for receiving the disposal ability score of media server renewal;
Extraction unit 54, for timing from media server extraction process ability score.
Alternatively, said apparatus can with but be not limited to include:3rd acquisition module, for obtaining the media server
Handle the operation information of current business;Second statistical module, coupled between the 3rd acquisition module and the first acquisition module, it is used for
The disposal ability score of current business according to the operation information counts the media server processes, wherein, institute
State the ability that disposal ability score is used to evaluate media server processes business
Another media server dispatching device is additionally provided in the present embodiment, and the device is used to realize above-described embodiment
And preferred embodiment, carried out repeating no more for explanation.As used below, term " module " can be realized predetermined
The combination of the software and/or hardware of function.Although device described by following examples is preferably realized with software, firmly
Part, or the realization of the combination of software and hardware is also what may and be contemplated.
Fig. 6 is a kind of structured flowchart four of media server dispatching device according to embodiments of the present invention, as shown in fig. 6,
The device includes:
Second acquisition module 62, for obtaining the operation information of media server processes current business;
First statistical module 64, coupled to the second acquisition module 62, for being counted according to operation information at media server
The disposal ability score of current business is managed, wherein, disposal ability score is used for the ability for evaluating media server processes business;
Sending module 66, coupled to the first statistical module 64, dispatched for sending disposal ability score to media server
Equipment, wherein, media server controlling equipment determines to handle the target medium service of pending business according to disposal ability score
Device, and the pending business of regulation goal media server processes.
Alternatively, above-mentioned media server dispatching device can be, but not limited to be applied to NGN/IMS field of telecommunications and cloud meter
In the scene in calculation field.Such as:The scene being scheduled for w media server.
Alternatively, above-mentioned media server dispatching device can be, but not limited to be applied to media server, such as:Software matchmaker
Body server etc..
By said apparatus, the second acquisition module obtains the operation information of media server processes current business;First system
The disposal ability score that module counts media server processes current business according to operation information is counted, wherein, disposal ability score
For evaluating the ability of media server processes business;Sending module sends disposal ability score to media server scheduling and set
It is standby, wherein, media server controlling equipment determines to handle the target medium server of pending business according to disposal ability score,
And the pending business of regulation goal media server processes, it can be seen that, worked as using such scheme according to media server processes
The operation information of preceding business is counted to the ability of media server processes business, and statistical result is sent into media services
The controlling equipment of device, it is scheduled according to the ability of media server processes business to media server, therefore, carry
The high reasonability to media server scheduling is low to the reasonability of media server scheduling in correlation technique so as to solve
Problem.
Fig. 7 is a kind of structured flowchart five of media server dispatching device according to embodiments of the present invention, as shown in fig. 7,
Alternatively, above-mentioned second acquisition module 62 includes:
Acquiring unit 72, for obtaining action type corresponding to the operation of current business execution;
Detection unit 74, coupled to acquiring unit 72, for detecting operation information corresponding to every kind of action type respectively.
Fig. 8 is a kind of structured flowchart six of media server dispatching device according to embodiments of the present invention, as shown in figure 8,
Alternatively, above-mentioned first statistical module 64 includes:
Computing unit 82, every kind of behaviour is calculated for the preset parameter value according to corresponding to operation information and every kind of operation information
Make the operation score of information;
Statistic unit 84, coupled to computing unit 82, for according to the operation score statistics current industry of media server processes
The disposal ability score of business.
It should be noted that above-mentioned modules can be realized by software or hardware, for the latter, Ke Yitong
Cross in the following manner realization, but not limited to this:Above-mentioned module is respectively positioned in same processor;Or above-mentioned module is respectively positioned at more
In individual processor.
Embodiment 3
A kind of media server scheduling system is additionally provided in the present embodiment, and Fig. 9 is according to embodiments of the present invention one
The structured flowchart of kind media server scheduling system, as shown in figure 9, the system includes:Media server controlling equipment 92 and matchmaker
Body server 94, wherein,
Media server controlling equipment 92 is connected with media server 94;
Media server controlling equipment 92 is used for the disposal ability score for obtaining the pending business of media server processes, its
In, disposal ability score is used for the ability for evaluating media server processes business;Handled according to disposal ability score determination and wait to hold
The target medium server of industry business;The pending business of regulation goal media server processes;
Media server 94 is used for the operation information for obtaining media server processes current business;Counted according to operation information
The disposal ability score of media server processes current business, wherein, disposal ability score is used to evaluate media server processes
The ability of business;Disposal ability score is sent to media server controlling equipment.
Alternatively, above-mentioned media server scheduling system can be, but not limited to be applied to next generation network (Next
Generation Network, referred to as NGN) and/IP multimedia subsystem (IP Multimedia Subsystem, referred to as
IMS) in the scene of field of telecommunications and field of cloud calculation.Such as:The scene being scheduled for w media server.
By said system, media server controlling equipment obtains the disposal ability of the pending business of media server processes
Score, wherein, disposal ability score is used for the ability for evaluating media server processes business;At disposal ability score determination
Manage the target medium server of pending business;The pending business of regulation goal media server processes;Media server obtains
The operation information of media server processes current business;The processing of media server processes current business is counted according to operation information
Ability score, wherein, disposal ability score is used for the ability for evaluating media server processes business;Send disposal ability score extremely
Media server controlling equipment, it can be seen that, the place using such scheme media server controlling equipment according to media server
Reason ability score determines target medium server, and the pending industry of regulation goal media server processes from media server
Business so that media server can be scheduled according to the ability of media server processes business, and media server according to
The operation information of media server processes current business is counted to the ability of media server processes business, and statistics is tied
Fruit is sent to the controlling equipment of media server, this improves the reasonability dispatched to media server, so as to solve phase
The problem of reasonability dispatched in the technology of pass to media server is low.
Alternatively, media server controlling equipment 92 is used for:It is default that satisfaction is found out from the disposal ability score of acquisition
The disposal ability score of condition is as target disposal ability score;Determine that media server corresponding to target disposal ability score is made
For target medium server.
Alternatively, media server controlling equipment 92 is used for:The disposal ability score of acquisition is ranked up from high to low;
Minimum disposal ability score is found out from the disposal ability score after sequence as target disposal ability score.
Alternatively, media server controlling equipment 92 is used for one below:Receive the disposal ability of media server renewal
Score;Regularly from media server extraction process ability score.
Alternatively, media server 94 is used for:Obtain action type corresponding to the operation that current business performs;Detect respectively
Operation information corresponding to every kind of action type.
Alternatively, media server 94 is used for:According to preset parameter value corresponding to operation information and every kind of operation information
Calculate the operation score of every kind of operation information;Obtained according to the disposal ability of operation score statistics media server processes current business
Point.
Alternatively, aforesaid operations information includes at least one of:Operate time delay, operation calls number.
It is described in detail with reference to alternative embodiment of the present invention.
Alternative embodiment of the present invention provides a kind of method of dynamic media resource statistics, and this method comprises the following steps:
Step 11, statistics granularity starts, and statistics empties;
Step 12, business starts, and calls this operation to start to count interface;
Step 13, service ending, this operation is called to terminate statistics interface.
Simultaneously additionally provide it is a kind of dispatch calculate method, this method comprise the following steps for:
Step 21, statistics dynamics terminates, and starts statistics and collects;
Step 22, combined data scores;
Step 23, score data is supplied to upper layer module;
Step 24, upper layer module carries out load balancing to follow-up business, accessed according to resource statistics score height
After new business, it is scheduled according to the disposal ability of each medium process module (equivalent to above-mentioned media server).
In addition, on the basis of above-mentioned method, alternative embodiment of the present invention additionally provides a kind of dispatcher software media services
The system of device, the system realize that the dynamically distributes of media resource are adjusted on the basis of above-mentioned resource dynamic statistics function is combined
Degree.
Alternative embodiment of the present invention is described in detail below in conjunction with the accompanying drawings.
Figure 10 is according to a kind of schematic diagram of w media server external network framework of alternative embodiment of the present invention, such as
Shown in Figure 10, the network architecture includes:
NGN/IMS core nets 1002, it is AM access module of the mobile phone terminal from wireless side up-downgoing;
AS modules 1004, are application system network elements, such as CRBT, VMS etc., dispose application system on ip networks, are used
In the various controls using logic, for coordinating control of the mobile phone terminal with the traffic signaling between w media server.
W media server 1006, for handling media business.
Figure 11 is according to a kind of schematic diagram of w media server architecture 1 of alternative embodiment of the present invention, such as Figure 11 institutes
Show, the framework includes:
Signaling processing module 1102, with the interface module of applications, for SIP signaling resolutions into internal command, together
When inside request or response be converted into SIP signalings and be sent to applications.In the case of framework 1, signaling processing mould
Block is used to message distribution give each medium process module, and a signaling processing module is used for the message point of multiple medium process modules
Hair.Outside upper layer application network element does not have to how many medium process module inside soft media be concerned about, only and a signaling handles mould
Block interacts.
Medium process module 1104, for completing the function of various audio-video frequency media forwardings and conversion.
Player function, for reading media file, the form that the media conversion of file format is supported into terminal is (if text
Part form and terminal support that form is consistent, then not transcoding), terminal is sent to by Real-time Transport Protocol.For example terminal supports audio
PCMA forms, and the audio inside playback file is AMR forms, that medium process module needs AMR format contents to be converted into
The PCMA forms that terminal is supported.The process of audio format transcoding is usually that source format audio is first converted into liner code, Ran Houzai
To Coded by Linear Codes into object format.Video format generally comprises H263, H264 etc., and video data will be transcoded into from H263
H264, then it is also required to source data to be decoded into yuv data, then re-starts and be encoded into H264 forms.If video data will
H264 low resolution is transcoded into from H264 big resolution ratio, then source data is also decoded into yuv data, then contracted
Put, finally encoded.
Sound-recording function, terminal is sent the form that the media code circulation to come up changes the file for needing to preserve into.Such as terminal
AMR forms are supported, and the file preserved is PCMA forms, then system first has to the AMR form type code streams of terminal uplink to be transcoded into
PCMA formatted datas, are then saved in file.
Conferencing function, the code stream of multiple terminal uplinks is each decoded into liner code, is then mixed into liner code all the way, so
Change the form that each terminal is supported into the circulation of mixed liner code afterwards, be sent to each terminal.If video conference, then
It is that the code stream of each terminal uplink is all decoded into yuv data, then uniformly zooms in and out and synthesize, after obtains synthesis
Yuv data after, carry out coding for each terminal and issue.
Also include in Figure 11, count scheduler module 1106, the module mainly completes two functions:Data statistics, scheduling meter
Calculate.
Data statistics function carries out the system of duration to every kind of processing mainly during miscellaneous service flow processing
Meter, obtains newest process performance data.
The content of statistical disposition duration includes:The voice data of various forms is decoded into liner code, Coded by Linear Codes into each
The voice data of kind of form, the video data decoding of various forms are into yuv data, yuv data encodings into various format video numbers
According to, audio linear code audio mixing, video yuv Data Synthesis, collect the digits detection, Jing Yin detection in band, mainly compare consumption including this eight kinds
The operation of performance.Certainly also other contents for needing to count are not excluded for, as long as it is related to the standalone feature of audio frequency and video processing,
All in the protection domain of this patent.
The data of statistics have two types, when process performance data, second, single CPU number of processes.
Process performance data are that timing is carried out at the beginning of every kind of operation, terminate timing after the completion of operation, obtain
This operation takes.In one particle size range, all operations are collected, and are calculated after the completion of final statistics statistics
The average delay of every kind of operation is obtained, the process performance of the time delay namely this server, the shorter expression process performance of time delay
It is stronger.Certain this time delay is associated together with action type.To consider that operation flow may need to relate to when scheduling
And operation.For example in signalling module, for playback operation, the form that terminal is supported is AMR, and the form of playback file is
PCMA, then this business need comprising two operation:PCMA is decoded into linear data, linear data is encoded into AMR.
Single CPU number of processes data are namely in statistics granularity, the statistics of the number of every kind of operation.
Scheduling calculates main processing procedure:According to above-mentioned statistics, the meter of progress server process performance scores
Calculate.Consider processing delay and number of processes, given a mark, score is more low, and next business preferentially distributes to the server.
After the score of each granularity has counted, signaling processing module or signaling processing module are regularly sent to
Timing is inquired about, and it is high preferentially to be distributed to score according to the score rank of each server follow-up business by signaling processing module
Server.
In w media server architecture 1, signaling processing module is equivalent to above-mentioned media server controlling equipment, media
Processing module and statistics scheduler module are equivalent to above-mentioned media server.
Figure 12 is according to a kind of schematic diagram of w media server architecture 2 of alternative embodiment of the present invention, the unit-frame of framework 2
The main distinction of structure 1 is:Framework 1 is that a signaling processing module corresponds to multiple medium process modules, and signaling processing module can
Individually to dispose, ext nal network element only needs to interact with signaling processing module;And framework 2 is that a signaling processing module is corresponding
The function of dispatching just is not present in one medium process module, signaling processing module here, simply the parsing forwarding of signaling, typically
In the case of close and be located on a server, it needs to be determined which media server be handed down to, ext nal network element is probably ext nal network element
SIPPROXY is also likely to be application server (AS).As shown in figure 12, the framework 2 includes:
Signaling processing module 1202, the parsing for the signaling come in for outside, is converted into internal command, is transmitted at media
Module is managed, main signaling includes:Media capability negotiation, playback operation signaling, recording operation signaling, the meeting operation letter of terminal
Make, the signaling that collects the digits, the playback signaling of stopping, stopping recording signaling, terminal exits signaling etc..
It is just the same in medium process module 1204, and framework 1, it will not be repeated here.
Scheduler module 1206 is counted, basic function is as framework 1;Difference is calculated in the scheduling in framework 2
Point be to be obtained to ext nal network element, or timing is sent to ext nal network element, and obtained to signaling processing module in framework 1.
Regardless of mode, scheduler module function or relatively independent is counted, simply under different network environments, the side that uses
Method is different.
In w media server architecture 2, SIPPROXY or application server (AS) are equivalent to above-mentioned media services
Device controlling equipment, signaling processing module, medium process module and statistics scheduler module are equivalent to above-mentioned media server.
Figure 13 is the schematic diagram of a kind of statistics and scheduling computational methods according to alternative embodiment of the present invention, such as Figure 13 institutes
Show, this method comprises the following steps:
Step S1302, a statistics granularity start, and empty total statistics area information.This granularity is according to scene
Situation dynamic is changed, and can do a Configuration Values, such as 1 second.
Step S1304, operation flow operation start.Described before these operations namely:The voice data of various forms
Be decoded into liner code, Coded by Linear Codes into the voice datas of various forms, various forms video data decoding into yuv data,
Yuv data encodings are into the detection, quiet of collecting the digits in various format video datas, audio linear code audio mixing, video yuv Data Synthesis, band
Sound detection etc..
Step S1306, the interface for calling statistics scheduler module to provide, indicate that this operation starts to count.Interface is mainly joined
Number includes:Form translation type, such as:PCMA is decoded into liner code, or H264 is decoded into yuv data.
Step S1308, operation terminate, and call and stop statistics interface, stop this operation statistics.
Step S1310, this operation data summarization into total statistics area.
Finally, the data in total statistics area are generally such:
PCMA is decoded into liner code:Total time-consuming:100ms, number 5
AMR is decoded into liner code:Total time-consuming:10000ms, number 100
Coded by Linear Codes is into PCMA:Total time-consuming 200ms, number 10
Coded by Linear Codes is into G729:Total time-consuming 1000, number 20 times
H264 is decoded into yuv data:Total time-consuming 10000, number 5
H263 is decoded into yuv data:Total time-consuming 20000, number 20
Yuv data encodings are into H264:Total time-consuming 10000, number 10
Yuv data encodings are into H263:Total time-consuming 1000, number 1
Yuv data dwindle into VGA from resolution ratio 720P:Total time-consuming 1000, number 1
Three-route code audio mixing:Total time-consuming 100ms, number 1
Four linear yards of audio mixings:Total time-consuming 250, number 2
Three road yuv Data Synthesis:Total time-consuming 5000, number 5
Four road yuv Data Synthesis:Total time-consuming 6500, number 5
Etc. ...
Step S1312 in Figure 13, this statistics granularity time arrive, total statistics area statistics are scheduled
Score calculates.
Score data is made up of two parts data:Time delay score counts and call number score statistics.
Step S1314, time delay score statistics.The average delay of every kind of operation is obtained first, and obtained data are similar to following
So:
PCMA is decoded into liner code:Averagely time-consuming 20ms
AMR is decoded into liner code:It is average time-consuming:100ms
Coded by Linear Codes is into PCMA:Averagely time-consuming 20ms
Coded by Linear Codes is into G729:Averagely time-consuming 50
H264 is decoded into yuv data:Averagely time-consuming 2000
H263 is decoded into yuv data:Averagely time-consuming 1000
Yuv data encodings are into H264:Averagely time-consuming 1000
Yuv data encodings are into H263:Averagely time-consuming 1000
Yuv data dwindle into VGA from resolution ratio 720P:Averagely time-consuming 1000
Three-route code audio mixing:Averagely time-consuming 100ms
Four linear yards of audio mixings:Averagely time-consuming 125
Three road yuv Data Synthesis:Averagely time-consuming 1000
Four road yuv Data Synthesis:Averagely time-consuming 1300
Etc. ...
In addition, the average delay of the empirical value of also one group similar configuration, under normal circumstances every kind of operation.
Then with real-time average delay/configuration empirical value, the score of each type of operation is obtained.Final score is every kind of
The score sum of type.The next scheduled highest priority of the minimum expression of final score.Score is low, represents real-time mean time
Prolong lower.
Step S1316 in Figure 13, call number score statistics.
Real-time calling number data:
PCMA is decoded into liner code:Number 5
AMR is decoded into liner code:Number 100
Coded by Linear Codes is into PCMA:Number 10
Coded by Linear Codes is into G729:Number 20 times
H264 is decoded into yuv data:Number 5
H263 is decoded into yuv data:Number 20
Yuv data encodings are into H264:Number 10
Yuv data encodings are into H263:Number 1
Yuv data dwindle into VGA from resolution ratio 720P:Number 1
Three-route code audio mixing:Number 1
Four linear yards of audio mixings:Number 2
Three road yuv Data Synthesis:Number 5
Four road yuv Data Synthesis:Number 5
Etc. ...
In addition, the configuration empirical value of also one group of every kind of operation calls once, such as:Each PCMA is decoded into liner code and obtained
Point:0.01
Each AMR is decoded into liner code score:0.1
Each Coded by Linear Codes is into PCMA scores:0.01
Each Coded by Linear Codes is into G729 scores:0.05
Each H264 is decoded into yuv data scores:1
Each H263 is decoded into yuv data scores:0.8
Each yuv data encodings are into H264 scores:1
Each yuv data encodings are into H263 scores:0.8
Each yuv data dwindle into VGA scores from resolution ratio 720P:0.2
Each three-route code audio mixing score:0.05
Four linear yards of audio mixing scores every time:0.06
Three road yuv Data Synthesis scores every time:0.5
Four road yuv Data Synthesis scores every time:0.6
Etc. ...
Operate score every time corresponding to number × every kind of operation of every kind of operation, obtain the score of real-time calling:
PCMA is decoded into liner code score:0.05
AMR is decoded into liner code score:10
Coded by Linear Codes is into PCMA scores:0.1
Coded by Linear Codes is into G729 scores:1
H264 is decoded into yuv data scores:5
H263 is decoded into yuv data scores:16
Yuv data encodings are into H264 scores:10
Yuv data encodings are into H263 scores:0.8
Yuv data dwindle into VGA scores from resolution ratio 720P:0.2
Three-route code audio mixing score:0.05
Four linear yards of audio mixing scores:0.12
Three road yuv Data Synthesis scores:2.5
Four road yuv Data Synthesis scores:3
Etc. ...
Then each item data is added up, obtains call number total score.The lower expression load of score is lower, more should
The business of being allocated.
Step S1318, comprehensive real-time time delay score and real-time calling score, simple weighted summation, obtains final sheet
The score of server.
Step S1320, the data for reporting signalling module or ext nal network element are exactly this final score.Can certainly
It is that signalling module or ext nal network element regularly obtain this data.
Figure 14 is the schematic diagram of playback dynamic dispatching flow in a kind of framework 1 according to alternative embodiment of the present invention, is such as schemed
Shown in 14, the flow comprises the following steps:
Step S1402, AS/SIPPROXY submit terminal capability negotiation request to arrive signaling processing module.
Step S1404, the score for each medium process module that signaling processing module is got before, one is taken to obtain
Minimum node is divided to issue.
Step S1406, AS/SIPPROXY submit to the request of terminal playback to signaling processing module.
Step S1408, signaling processing module are directly handed down to the request medium process module distributed before.Herein
Without carrying out reselecting node, because terminal distribution a to medium process module when capability negotiation, subsequently
The processing of this terminal can all be carried out on this media server.
Step S1410, medium process module call statistics scheduler module to provide when carrying out encoding and decoding to audio, video data
Interface, start to count.
Step S1412, medium process module call statistics scheduler module when terminating to carry out encoding and decoding to audio, video data
The interface of offer, terminate statistics.
Step S1414, statistics scheduler module update the score of current granularity.
Step S1416, signalling module are timed to statistics scheduler module and obtain newest score.
Figure 15 is the schematic diagram of playback dynamic dispatching flow in a kind of framework 2 according to alternative embodiment of the present invention, is such as schemed
Shown in 15, the flow comprises the following steps:
Step S1502, AS or SIPPROXY sort according to the score of all statistics scheduler modules, obtain minimum score
Module, terminal capability negotiation request is submitted to arrive signaling processing module corresponding to this module.
Step S1504, signaling processing module parsing signaling, completes capability negotiation procedure.
Step S1506, AS or SIPPROXY submit to terminal playback request arrive before signaling processing module.Here
Without carrying out reselecting node.
Step S1508, signaling processing module are directly handed down to the request medium process module distributed before.
Step S1510, medium process module call statistics scheduler module to provide when carrying out encoding and decoding to audio, video data
Interface, start to count.
Step S1512, medium process module call statistics scheduler module when terminating to carry out encoding and decoding to audio, video data
The interface of offer, terminate statistics.
Step S1514, statistics scheduler module update the score of current granularity.
Step S1516, AS or SIPPROXY are timed to statistics scheduler module and obtain newest score.
In alternative embodiment of the present invention, if granularity is smaller, that just may be considered one kind that dynamic comes into force substantially
Dispatching method.
The above embodiments are merely illustrative of the technical solutions of the present invention rather than is limited, the ordinary skill of this area
Technical scheme can be modified by personnel or equivalent substitution, without departing from the spirit and scope of the present invention, this
The protection domain of invention should be to be defined described in claim.
Embodiment 4
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method of example can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but a lot
In the case of the former be more preferably embodiment.Based on such understanding, technical scheme is substantially in other words to existing
The part that technology contributes can be embodied in the form of software product, and the computer software product is stored in a storage
In medium (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone, calculate
Machine, server, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiments of the invention additionally provide a kind of storage medium.Alternatively, in the present embodiment, above-mentioned storage medium can
The program code for performing following steps to be arranged to storage to be used for:
S11, the disposal ability score of the pending business of media server processes is obtained, wherein, disposal ability score is used for
Evaluate the ability of media server processes business;
S12, determined to handle the target medium server of pending business according to disposal ability score;
S13, the pending business of regulation goal media server processes.
Alternatively, storage medium is also configured to the program generation that storage is used to perform the method and step of above-described embodiment record
Code:
S21, obtain the operation information of media server processes current business;
S22, the disposal ability score of media server processes current business is counted according to operation information, wherein, handle energy
Power score is used for the ability for evaluating media server processes business;
S23, send disposal ability score to media server controlling equipment, wherein, media server controlling equipment according to
Disposal ability score determines to handle the target medium server of pending business, and regulation goal media server processes are pending
Business.
Alternatively, in the present embodiment, above-mentioned storage medium can include but is not limited to:USB flash disk, read-only storage (ROM,
Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc or
CD etc. is various can be with the medium of store program codes.
Alternatively, in the present embodiment, processor performs above-mentioned implementation according to the program code stored in storage medium
The method and step that example is recorded.
Alternatively, the specific example in the present embodiment may be referred to described in above-described embodiment and optional embodiment
Example, the present embodiment will not be repeated here.
Obviously, those skilled in the art should be understood that above-mentioned each module of the invention or each step can be with general
Computing device realize that they can be concentrated on single computing device, or be distributed in multiple computing devices and formed
Network on, alternatively, they can be realized with the program code that computing device can perform, it is thus possible to they are stored
Performed in the storage device by computing device, and in some cases, can be with different from shown in order execution herein
The step of going out or describing, they are either fabricated to each integrated circuit modules respectively or by multiple modules in them or
Step is fabricated to single integrated circuit module to realize.So, the present invention is not restricted to any specific hardware and software combination.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should be included in the scope of the protection.