Summary of the invention
The object of the present invention is to provide a kind of multimedia messaging service, MMS issuing message dynamic flow method, be used to solve the speed problem that issues that MMSC dynamically adjusts issuing message.
Another object of the present invention is to provide a kind of multimedia messaging service, MMS issuing message dynamic flow system, be used to solve the speed problem that issues that MMSC dynamically adjusts issuing message.
According to an aspect of the present invention, provide a kind of multimedia messaging service, MMS issuing message dynamic flow method, may further comprise the steps:
A, receive issuing message that Multimedia Message center MMSC sends when surpassing the disposal ability of SMSC as sms center SMSC, SMSC is to the MMSC transmitted traffic message that transfinites;
B, MMSC generate the dynamic flow control messages, and according to the dynamic flow control messages, dynamically adjust the transmission rate of issuing message according to the flow of the being received message that transfinites.
According to a further aspect in the invention, provide a kind of multimedia messaging service, MMS issuing message dynamic flow system, having comprised:
Sms center SMSC is used for when receiving issuing message that Multimedia Message center MMSC sends when surpassing the disposal ability of SMSC, and SMSC is to the MMSC transmitted traffic message that transfinites;
MMSC is used for generating the dynamic flow control messages, and according to the dynamic flow control messages, dynamically adjusting the transmission rate of issuing message according to the flow of the being received message that transfinites.
Compared with prior art, beneficial effect of the present invention is: the invention provides a kind of MMSC and adjust the method that issues speed of issuing message according to the flow of the SMSC feedback response dynamics that transfinites, realized both sides' dynamic equilibrium, make MMSC can adapt to the disposal ability of MMSC better, improve service success rate.
Embodiment
, should be appreciated that following illustrated preferred embodiment only is used for description and interpretation the present invention, and be not used in qualification the present invention a preferred embodiment of the present invention will be described in detail below in conjunction with accompanying drawing.
Fig. 1 has shown the flow process signal of media information sending down service message dynamic flow method provided by the invention, as shown in Figure 1:
Step S101, when SMSC receives issuing message that the MMSC coding/decoding module of MMSC sends when surpassing the disposal ability of SMSC, SMSC will comprise the flow message that transfinites in the response of MMSC coding/decoding module feedback.
Step S102, the flow that the MMSC coding/decoding module sends according to the SMSC that the receives message that transfinites generates the dynamic flow control messages, and is sent to the MMSC cache module.
The MMSC cache module is received when flow transfinites message, if this moment, MMSC was not in the dynamic flow state of a control, then the MMSC cache module is converted to the flow control state with current state after receiving the dynamic flow control messages, and the fixedly quota of setting dynamic flow control proving time and the increase of flow control value, reduce the flow control value in this moment simultaneously, promptly reduce by first value of flow control constantly, obtain second value of flow control constantly.If MMSC is in the flow control state, then the dynamic flow control messages received in current second in MMSC cache module record.Wherein, reduce by first value of flow control constantly and can take the method that reduces by half.
The dynamic flow control proving time of the duration of dynamic flow state of a control for setting, if the dynamic flow control proving time does not arrive, then the dynamic flow control messages received in current second in MMSC cache module record, if the dynamic flow control proving time arrives, then the MMSC cache module judges whether receive the dynamic flow control messages last second when receiving second timed message, if receive the dynamic flow control messages last second, expression present flow rate controlling value surpasses the SMSC disposal ability, promptly second value of flow control constantly surpasses the SMSC disposal ability, then reduce by second value of flow control constantly, if do not receive the dynamic flow control messages last second, expression present flow rate controlling value does not surpass the SMSC disposal ability, promptly second value of flow control does not constantly surpass the SMSC disposal ability, then increases by second value of flow control constantly.Wherein, reduce by second value of flow control constantly and can take the method that reduces by half, increase the method that second value of flow control constantly takes to increase the fixedly quota of setting.
Fig. 2 has shown the structural representation of media information sending down service message dynamic flow provided by the invention system, and as shown in Figure 2, this system comprises SMSC and MMSC.
Wherein, SMSC is used for when receiving issuing message that Multimedia Message center MMSC sends when surpassing the disposal ability of SMSC, and SMSC is to the MMSC transmitted traffic message that transfinites.
MMSC comprises MMSC coding/decoding module and MMSC cache module.The MMSC coding/decoding module receives flow that SMSC the sends message that transfinites, and generates the dynamic flow control messages, and is sent to the MMSC cache module.After the MMSC cache module receives the dynamic flow control messages, if MMSC is not in the dynamic flow state of a control, then current state is converted to the dynamic flow state of a control, set the fixedly quota that dynamic flow control proving time and flow control value increase, and reduce by first value of flow control constantly, obtain second value of flow control constantly; If MMSC is in the dynamic flow state of a control, then the dynamic flow control messages received in current second in MMSC cache module record, the dynamic flow control proving time of the duration of dynamic flow state of a control for setting, if the dynamic flow control proving time does not arrive, then the dynamic flow control messages received in current second in MMSC cache module record, if the dynamic flow control proving time arrives, then the MMSC cache module judges whether receive the dynamic flow control messages last second when receiving second timed message, if receive the dynamic flow control messages last second, expression present flow rate controlling value surpasses the SMSC disposal ability, promptly second value of flow control constantly surpasses the SMSC disposal ability, then reduce by second value of flow control constantly, if do not receive the dynamic flow control messages last second, expression present flow rate controlling value does not surpass the SMSC disposal ability, promptly second value of flow control does not constantly surpass the SMSC disposal ability, then increases by second value of flow control constantly.Wherein, reduce by second value of flow control constantly and can take the method that reduces by half, increase the method that second value of flow control constantly takes to increase the fixedly quota of setting.
Fig. 3 has shown the flow process that issues of MMSC issuing message that the specific embodiment of the invention provides, as shown in Figure 3:
Step S301, the MMSC business module produces issuing message, and issuing message is sent to the MMSC cache module.
Step S302, the MMSC cache module is received the issuing message of business module, or application spatial cache and this message of buffer memory, or directly sends to the MMSC coding/decoding module, the issuing message of MMSC cache module control per second some sends to the MMSC coding/decoding module.
Step S303, MMSC coding/decoding module receive after issuing message is encoded by the SMPP agreement and are handed down to SMSC that the message that is handed down to SMSC is submit_sm.
Step S304, SMSC receive the submit_sm message of MMSC, return response sumit_sm_resp to MMSC, and to user's transmitting short message content.
Step S305, if this moment SMSC handling property deficiency, then in submit_sm_resp message to MMSC return state sign indicating number 0x14, wish that MMSC can reduce transmission frequency;
Step S306, the MMSC coding/decoding module receives that the response message that SMSC returns decodes by the SMPP agreement, if judge conditional code 0x14, then send the dynamic flow control messages to cache module, the MMSC cache module is received the dynamic flow control messages that the MMSC coding/decoding module sends, and adjusts speed according to current state and issues.
Fig. 4 has shown the MMSC cache module logical process flow process that the embodiment of the invention provides, as shown in Figure 4:
Step S401, MMSC cache module begin to start.
Step S402, MMSC cache module application spatial cache, initialization idle queues and used formation is set a second timer, and initialization present flow rate controlling value is removed dynamic flow state of a control etc.
Step S403, the MMSC cache module is received processing messages, processing messages comprises professional issuing message and second timer message.
Step S404, whether what the judgement of MMSC cache module was received is sending down service message, if, execution in step S405, if not, execution in step S406.
Step S405 receives that message is that sending down service message then enters sending down service Message Processing flow process.
Step S406, if the message that the MMSC cache module is received be not sending down service message then judge whether to be timed message second, if, execution in step S407, otherwise return.
Step S407 is if the message of receiving is second timer message then enters the timed message handling process.
Step S408, if the message that the MMSC cache module is received be not second timer message then judge whether to be the dynamic flow control messages, if, execution in step S409, otherwise return.
Step S409 is if the message of receiving is the dynamic flow control messages then enters dynamic flow control messages handling process.
Fig. 5 has shown the MMSC cache module dynamic flow Message Processing flow process that the embodiment of the invention provides, as shown in Figure 5:
Step S501 judges currently whether be in the flow control state, if execution in step S505 then, if not, then the dynamic flow control messages is received in expression for the first time, needs to reduce present flow rate controlling value, execution in step S502.
Step S502 sets the dynamic flow state of a control.
Step S503 sets the dynamic flow control proving time.
Step S504, the present flow rate controlling value reduces by half, and returns.
Step S505 writes down and received the dynamic flow control messages in current second, returns.
Fig. 6 has shown the MMSC cache module timed message second handling process that the embodiment of the invention provides, as shown in Figure 6:
Step S601 receives a second timed message, and new one second of expression beginning judges currently whether be in the flow control state, if execution in step S602 then, if not execution in step S607.
Step S602 judges whether the flow control proving time finish, if execution in step S603 then, if not execution in step S607.
Step S603 judges last second and whether receives the dynamic flow control messages, if receive, expression present flow rate controlling value still surpasses the disposal ability of SMSC, needs to continue to reduce present flow rate controlling value, execution in step S604; If do not receive the dynamic flow control messages last second, expression present flow rate controlling value SMSC can handle, and then need increase the flow control value and continue to judge execution in step S605.
Step S604, the present flow rate controlling value reduces by half.
Step S605, the present flow rate controlling value increases fixedly quota.
Step S606, revise the present flow rate controlling value and reset the dynamic flow control proving time, if the present flow rate controlling value is less than system's Minimum Flow Control value, then putting the present flow rate controlling value is system's Minimum Flow Control value, if the present flow rate controlling value is greater than system's maximum stream flow controlling value, then putting the present flow rate controlling value is system's maximum stream flow controlling value, and end dynamic flow state of a control is also removed the dynamic flow control time.
Step S607 counts zero clearing with the issuing message bar that has sent in this second.
Step S608 judges that whether several numbers of issuing message bar that sent in this second are less than the present flow rate controlling value; Judged result is true, and then expression can continue to send, then execution in step S609; Judged result is false, represents that then the quota that allows in this second to send uses up, and can not continue to send, and returns.
Step S609 gets and uses the formation node, the sending down service message of buffer memory is taken out send to coding/decoding module and encode, and simultaneously, this node is inserted idle queues.
Step S610, the bar number that has sent in this second adds 1, jumps to step S608 and carries out.