CN100365978C - Method and device for realizing classified service to business provider - Google Patents

Method and device for realizing classified service to business provider Download PDF

Info

Publication number
CN100365978C
CN100365978C CNB2006100577086A CN200610057708A CN100365978C CN 100365978 C CN100365978 C CN 100365978C CN B2006100577086 A CNB2006100577086 A CN B2006100577086A CN 200610057708 A CN200610057708 A CN 200610057708A CN 100365978 C CN100365978 C CN 100365978C
Authority
CN
China
Prior art keywords
service provider
message
queue
response delay
rank
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.)
Expired - Fee Related
Application number
CNB2006100577086A
Other languages
Chinese (zh)
Other versions
CN1859122A (en
Inventor
韩卫正
陈克华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB2006100577086A priority Critical patent/CN100365978C/en
Publication of CN1859122A publication Critical patent/CN1859122A/en
Application granted granted Critical
Publication of CN100365978C publication Critical patent/CN100365978C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The present invention discloses a method for realizing classification services to business providers, which has the procedure that business providers are classified and each class is provided with corresponding a priority level; the level of each class of business provider is provided with a message queue and one or more processing threads. When messages sent to business providers by users are received and a system needs to send report messages to business providers, messages are put into the message queue corresponding to the levels of business providers; the message in each message queue is sent by the processing thread corresponding to each message queue. The present invention also discloses a device for providing classification services to business providers, which comprises a message receiving unit, a message transmitting unit, an initial setting unit, a queue manager, a thread manager, a message distributing unit and a message processing unit. The present invention can effectively ensure the service quality of bound-to messages submitted to business providers by users and also enables business providers to obtain business running conditions in time.

Description

Realization is to the method and the device of service provider's classified service
Technical field
The present invention relates to multimedia technology field, be specifically related to a kind of method and device of realizing service provider's classified service.
Background technology
At present, MMS (multimedia messaging service, MMS) is known as GPRS (GPRS) by industry and 3G market starts and the crucial motive force that develops, and it will very effectively promote the development of mobile communication business.MMS is further developing of SMS (SMS service) and EMS (enhanced message service, EMS), for the service of personal multi-media mobile communication provides complete end-to-end solution.From Content of Communication, Multimedia Message comprises image, audio frequency, video and data etc.; On function, multimedia messaging service, MMS has been contained terminal-to-terminal service, terminal to the multimedia message communication of using (mainly referring to value added service provider), VAS application-to-terminal service.It has not only realized between the terminal, the information transmission between terminal and the application, has also realized the diversity of content, comprises the various combinations of picture, voice, image, data and text.As the medium access platform of an opening, MMS can derive more colourful content service and use under mobile subscriber and ICP's interaction.And the user is the consumer of MMS, is again the content developer, and this can improve the use interest of terminal use to business undoubtedly.
The Multimedia Message architecture elements is as shown in Figure 1:
In multi-media messaging system, can comprise many different network types, wherein, relevant with multimedia messaging service, MMS diverse network will have: mobile network (2G, 3G), Internet (internet), MMS (multimedia messaging service, MMS) user agent, value added service provider, external server (such as mail, fax) etc.Wherein, the MMS relay is usually said MMSC (multimedia messaging service, MMS center), and it mainly provides following function: the intercommunication of transmission and reception Multimedia Message, support and external server, the Multimedia Message notice to MMS user agent, generation delivery report, address mapping, storing message, the routing forwarding to message, generation ticket, terminal capability negotiation etc.Wherein, be the most basic service alternately between mutual and MMSC and the value added service provider between MMSC and the user agent.
In multimedia messaging service, MMS, the service provider is because the cause that the multimedia element edit capability is strong, the source is wide, the service provider plays an important role in the carrying out of multimedia messaging service, MMS, therefore, MMSC and service provider alternately in the whole multimedia messaging service in occupation of very important position.
MMSC and terminal and service provider's reciprocal process is as shown in Figure 2:
It is directly mutual to pass through Internet (internet) between MMSC and the service provider, and this interface is called the MM7 interface.MMSC and service provider's is two-way alternately, comprises that MMSC sends message to the service provider and the service provider sends two kinds of situations of message to MMSC.MMSC comprises following three kinds of situations at present to the message that the service provider sends: the message that (1) terminal use submits to the service provider; (2) terminal use receives the delivering report message that successful back (also may be user refused message or message cross the after date user and successfully do not extract message yet) sends to the service provider; (3) the reading report message that MMSC sends to the service provider after terminal use's read messages.
Mutual by WAP (WAP (wireless application protocol)) gateway between MMSC and the terminal, this interface is called the MM1 interface.
In existing MMSC system, when MMSC sends message to the service provider, general all is that all message that send to each service provider are all left in the same message queue, obtains message by a plurality of processing threads from same formation then, sends to each service provider one by one.
Existing MMSC and service provider's interface adopts SOAP (Simple Object Access Protocol) agreement usually, and bearing protocol is HTTP (HTML (Hypertext Markup Language)).The Message Processing flow process can simply be described as shown in Figure 3:
At the multimedia messaging service, MMS center, by two threads: processing threads X and processing threads Y send message to SP (service provider).The message that sends to all SP is all put into same message queue, processing threads X obtains the message that sends to SP A from message queue, and this message sent to SP A, after processing threads X obtains the response message of SP A, processing threads Y obtains the message that sends to SP B from message queue, and this message sent to SP B, wait for the response message of SP B.
Characteristics of http protocol are asked and response is synchronous.Because it is a synchronous process to the service provider and the response of obtaining the service provider that processing threads sends message, a result who brings like this is exactly: after processing threads of MMSC sends a request message to the service provider, if this service provider's low-response, then this processing threads can be in the state of waiting for this service provider's response, other message in can't processing queue are up to the response message of receiving this service provider.In this case, when newly-increased message was arranged in the formation again, because these threads all are in the state of wait-for-response, the message in the formation can't in time be handled; Even the newly-increased message in the formation all is to send to the fast service provider of other responses, these message can in time not handled yet, and cause that message overstocks in the formation, even the situation of message occurs abandoning owing to queue length limit.That is to say under the processing of prior art, service provider's low-response, can influence the service provider that other normal process MMSC asks, bring following negative effect will for like this user's (comprising terminal use and service provider) of multimedia message:
The user can't be guaranteed to the service quality of the upstream message that the service provider submits to, influences terminal use's experience;
The service provider can't receive delivery report or reading report, causes the service provider can't in time obtain professional ruuning situation.
Summary of the invention
The purpose of this invention is to provide a kind of method that realizes service provider's classified service, can be to overcome the mode that adopts same formation to dispatch to the request message that sends to all service providers in the prior art because the response of partial service provider slowly influences other service providers' shortcoming, guarantee the service quality of user, and make the service provider can in time obtain professional ruuning situation to the upstream message of service provider's submission.
Another object of the present invention provides a kind of device of realizing service provider's classified service, so that the success rate that upstream message sends is improved at the multimedia messaging service, MMS center, and make the service provider carry out more accurate statistical analysis to the ruuning situation of business.
For this reason, the invention provides following technical scheme:
A kind of method that realizes service provider's classified service, described method comprises:
The service provider is classified, and be the corresponding priorities that is provided with of all categories;
Message queue of level allocation and one or more processing threads for every class service provider;
When receiving that the user sends to service provider's message or system need send report message to the service provider time, this message is put into the message queue of rank correspondence under this service provider;
Finish the transmission of each message in this message queue by the processing threads of corresponding each message queue.
Preferably, adjust this service provider's rank in real time according to each service provider's response delay.
Other step of level that described response delay according to each service provider is adjusted this service provider in real time comprises:
Other response delay interval of corresponding each service provider's level is set;
After described processing threads is received service provider's response message, calculate this service provider's response delay;
This service provider's rank is adjusted into the interval corresponding rank of response delay of its response delay ownership.
Preferably, adjacent rank corresponding response time delay segment part is intersected.
Alternatively, according to service provider's traffic carrying capacity and/or device processes speed the service provider is classified.
Alternatively, for different classes of service provider similar and different initial priority is set.
Preferably, distribute the service provider classification many processing threads low for the high service provider's classification of priority than priority.
A kind of realization comprises the device of service provider's classified service: message sink unit, message sending unit, it is characterized in that, and also comprise:
Classifying to the service provider in the initial setting up unit, and is the different priority of configuration of all categories;
Queue management device, message queue of level allocation that to be used for according to all kinds of service provider's priority levels be every class service provider, and set up the corresponding relation of each service provider and message queue;
Thread manager, the corresponding processing threads of level allocation that to be used for according to all kinds of service provider's priority levels be every class service provider;
The message Dispatching Unit links to each other with described message sink unit and described queue management device respectively, is used for the message that the user that described message sink unit is received sends to the service provider is put into the message queue of rank correspondence under this service provider;
Message processing unit, link to each other with described thread manager and described message sending unit respectively, the processing threads that is used for calling corresponding each message queue is finished the processing to this each message of message queue, and the message after will handling sends message sending unit to and sends to corresponding service provider.
Described device also comprises:
The priority adjustment unit links to each other with described thread manager with described queue management device respectively, is used for adjusting in real time according to each service provider's response delay this service provider's rank.
Described priority adjustment unit comprises:
The time delay interval is provided with subelement, is used to be provided with other response delay interval of corresponding each service provider's level;
The response delay computation subunit is used for according to each processing threads calculating this service provider's response delay to time that the service provider sends a request message and the time of receiving service provider's response message;
Adjust the notice subelement, be used for when the service provider's that described response delay computation subunit calculates response delay is not provided with in this service provider's that subelement is provided with the response delay interval in described time delay interval, notify rank that described queue management device revises this service provider rank for the interval correspondence of response delay of its response delay ownership.
By above technical scheme provided by the invention as can be seen, the present invention makes the multimedia messaging service, MMS center when initial launch, dispose different priority for each service provider according to conditions such as service provider's technical merit, traffic carrying capacity sizes, and according to service provider's rank of setting, for each other service provider of level is provided with a message queue respectively, thereby set up the corresponding relation of service provider's rank and message queue; And one or more threads are set handle the message that sends to other service provider of this grade for other service provider of each grade, the message queue that priority is high, have more processing threads, thereby when having guaranteed that the multimedia messaging service, MMS center sends a request message to the service provider, can preferentially message be sent to the high service provider of priority.
In service in system, according to service provider's response delay, dynamically adjust this service provider's rank.Like this, because network failure or other reasons, if certain service provider respond slack-off after, system can in time adjust service provider's rank, to put into other message queues to this service provider's request message, and avoid other are responded service provider's influence faster; And respond slower service provider after response accelerates, and also can in time be adjusted its service class, obtain the priority treatment of system.Like this, when the multimedia messaging service, MMS center is sent a request message to the service provider, can slowly not influence other service providers because of the response of partial service provider, thereby improved the transmitting efficiency and the success rate of upstream message effectively, brought better experience to the terminal use; Improved the transmitting efficiency and the success rate of delivery report, reading report, made the service provider carry out more accurate statistical analysis the service operation situation.
Description of drawings
Fig. 1 is a Multimedia Message architecture elements schematic diagram;
Fig. 2 is MMSC and terminal and service provider's a reciprocal process schematic diagram;
Fig. 3 is the handling process that MMSC sends message in the prior art to the service provider;
Fig. 4 is the realization flow figure of the inventive method;
Fig. 5 is the Message Processing flow process of each message queue among the present invention;
Fig. 6 is the Message Processing flow process of among the present invention service provider's priority dynamically being adjusted;
Fig. 7 is the terminal of respectively handling thread process among the present invention is submitted message to the service provider a flow process;
Fig. 8 be among the present invention each processing threads service provider to the flow process of terminal issuing message;
Fig. 9 is the theory diagram of apparatus of the present invention first embodiment;
Figure 10 is the theory diagram of apparatus of the present invention second embodiment.
Embodiment
Core of the present invention is when initial launch, technical merit according to the service provider, conditions such as traffic carrying capacity size dispose different priority (also can dispose identical priority to different service providers when initialization) for each service provider, and according to service provider's rank of setting, for each other service provider of level is provided with a message queue respectively, and for other service provider of each grade is provided with one or more threads and handles the message that sends to other service provider of this grade, for the high message queue of priority is provided with more processing threads.The processing threads of corresponding different stage message queue sends to corresponding business provider with the message of obtaining by http protocol respectively, and obtains response message from the service provider.Because other service provider's of each grade processing threads number difference, thereby make the high service provider's of rank message obtain the priority treatment at multimedia messaging service, MMS center.In service in system, according to service provider's response delay, dynamically adjust this service provider's rank.
In order to make those skilled in the art person understand the present invention program better, the present invention is described in further detail below in conjunction with drawings and embodiments.
With reference to Fig. 4, Fig. 4 shows the realization flow of the inventive method, may further comprise the steps:
Step 401: the service provider is classified, and be configuration corresponding priorities of all categories.
During the system initial launch, operator can classify to the service provider according to conditions such as service provider's technical merit (such as device processes speed, hardware configuration etc.), traffic carrying capacity sizes, for every class service provider disposes different priority, the service provider that traffic carrying capacity is big, technical merit is high disposes higher initial priority, disposes same initial priority also can for all service providers.
Step 402: be every class service provider's message queue of level allocation and one or more processing threads.
During a plurality of processing threads of initialization, need corresponding service provider rank be set for each thread.Like this, make the corresponding message queue of each service provider's rank and one or more processing threads, thereby set up the corresponding relation of service provider's rank and message queue and processing threads.Each service provider's rank comprises one or more service providers.After system receives that terminal sends to other service provider's of this grade message, it is stored in successively in should the message queue of rank, that is to say, the message that has comprised other all service providers of this level in other message queue of this grade is then by the transmission of one or more processing threads that should rank being responsible for finishing these message.
In order to guarantee that the multimedia messaging service, MMS center sends when request to the service provider, can preferentially message be sent to the high service provider of priority, can be the high message queue of priority, distribute more processing threads.For example, priority is that the processing threads number of 1 message queue correspondence is 10, and priority is that the processing threads number of 2 message queue correspondence is 8.When system initialization,, then can come to distribute required processing threads for its corresponding message queue according to classification to the service provider if disposed same initial priority for all service providers.
Step 403: when receive the user send to service provider's message or system need to the service provider send report message (such as, message such as delivery report, reading report) time, this message is put into the message queue of rank correspondence under this service provider.
Step 404: finish the transmission of each message in this message queue by the processing threads of corresponding each message queue.
That is to say, when processing threads obtains the message that sends to the service provider, only obtain the message that needs processing from the message queue of correspondence, only obtain Message Processing from message queue X such as processing threads X, processing threads Y only obtains Message Processing from message queue Y.
By above-mentioned flow process as seen, the present invention is by carrying out grade classification to each service provider, and the message queue and the processing threads of corresponding each grade are set, thereby realized effectively the service provider is carried out classified service.
Fig. 5 further shows the Message Processing flow process of each message queue among the present invention:
The message inlet is used to be distributed to SP (service provider's) request message, and request is put into different message queues according to the rank of SP; Queue management device is used to manage the mapping relations of SP rank and message queue; Message queue X, message queue Y are respectively the message queue corresponding to SP rank X, Y; Processing threads group X, processing threads group Y are respectively applied for the message among processing messages formation X, the message queue Y, and in the realization of reality, processing threads group X can be identical with processing threads number among the processing threads group Y, also can be different.SP A, SP B are respectively the SP of the different stage that inserts the multimedia messaging service, MMS center.
The message inlet is when the processing recipient is the request message of SP A, and at first the rank X according to SP A obtains corresponding to other message queue of SPA level X from queue management device, and will put into formation X to the request message of SPA.Equally, when the processing recipient was the request message of SP B, at first the rank Y according to SPB obtained corresponding to other message queue of SP B level Y from queue management device, and will put into formation Y to the request message of SP B.
Processing threads X gets access to the request message that sends to SP A from message queue X, after sending to SP A, wait for the response message of SP A.After processing threads X receives the response of SP A, from message queue X, obtain next the bar request message that sends to SP A.
Processing threads Y gets access to the request message that sends to SP B from message queue Y, after sending to SP B, wait for the response message of SP B.After processing threads Y receives the response of SP B, from message queue Y, obtain next the bar request message that sends to SP B.
Processing threads X and processing threads Y are parallel independent operatings, that is to say, are not subjected to influence corresponding to the processing threads of other message queues corresponding to the operation of the processing threads of certain message queue.Like this, adapt to the technical capability and the traffic carrying capacity of different business provider well, guaranteed service provider's service quality.Even certain service provider's equipment fault, also influence and the service provider's of its same level service quality only, and the message that can not influence other service provider of other grades sends.
In network operation process, because network or equipment fault may cause some service provider temporarily can not provide service, and also can change in different each service providers' of time period traffic carrying capacity.Like this, also just make each service provider's rank that dynamic change can take place, such as, the service provider of certain high priority is sometime because equipment fault can not provide professional, in order not influence other service providers, at this moment, just its priority should be adjusted into minimum; After its equipment fault was got rid of, its traffic handing capacity was higher than other service providers, at this moment, just service provider's priority should be brought up to suitable grade.
Therefore, in the present invention, in order to adapt to the variation of service provider's running status better, need influence the rank that factor that message sends is adjusted this service provider in real time according to each service provider's response delay or other.When specific implementation, other response delay interval of corresponding each service provider's level is set, such as, the time delay interval of priority 1 is 0 to 2 second, the time delay interval of priority 2 is 2 to 4 seconds, the rest may be inferred, and concrete value can be according to the network condition of different operators, the external condition setting that SP developing water equality influences time delay.After each processing threads is received service provider's response message, calculate this service provider's response delay, then this service provider's rank is adjusted into the interval corresponding rank of response delay of its response delay ownership.
Rank for fear of SP is frequently adjusted, and the time delay interval of different stage can suitably intersect, such as, the time delay interval of priority 1 is 0 to 3 second, the time delay interval of priority 2 is 2 to 5 seconds etc.
Fig. 6 further shows the Message Processing flow process of among the present invention service provider's priority dynamically being adjusted:
The message inlet is used to be distributed to SP (service provider's) request message, and request is put into different message queues according to the rank of SP; Queue management device is used to manage the mapping relations of SP rank and message queue; Message queue X, message queue Y are respectively the message queue corresponding to SP rank X, Y; Processing threads group X, processing threads group Y are respectively applied for the message among processing messages formation X, the message queue Y, and in the realization of reality, processing threads group X can be identical with processing threads number among the processing threads group Y, also can be different.SP A is for inserting a SP at multimedia messaging service, MMS center.
The message inlet is when the processing recipient is the request message of SP A, and at first the rank X according to SP A obtains corresponding to other message queue of SP A level X from queue management device, and will put into formation X to the request message of SP A.
Processing threads X gets access to the request message that sends to SP A from message queue X, after sending to SP A, wait for the response message of SP A.After processing threads X receives the response of SP A, calculate the response delay of SP A, and according to the interval of this response delay ownership, the rank of adjusting SP A is Y.
After adjusting the rank of SP A, when the message inlet is handled the recipient once more for the request message of SP A, just this request message is put into formation Y.
After message was put into formation Y, processing threads Y had just got access to the request message of giving SP A from message queue Y, after disposing, readjust the rank of SP A too according to the response delay of SP A.
Each processing threads of Fig. 6 only carries out different processing according to the different stage of SP, for each processing threads, does not have the difference of SP, only has the SP level difference.So for different SP, top flow chart handling process and indifference.
Utilize Message Processing flow process that the present invention submits to the service provider to the terminal use as shown in Figure 7:
1. the terminal use submits to a piece of news (MM1_submit.REQ) to MMSC, and by the message inlet this message is put into corresponding message queue;
Give terminal 2.MMSC give user's back response message (MM1_submit.RES);
3.MMSC will send to service provider (MM7_submit.REQ) after the corresponding processing threads processing of the message process of terminal use's submission;
4. this processing threads obtains service provider's response message (MM7_submit.RES);
5. if the user has asked delivery report, MMSC is confirming to send delivering report message (MM1_delievery_report.REQ) to the terminal use after the service provider receives message.
Utilize the present invention that the MMSC system is submitted to service provider's delivery report and reading report Message Processing flow process as shown in Figure 8:
1. the service provider submits to Multimedia Message (MM7_submit.REQ) to MMSC;
2.MMSC give its back response message (MM7_submit.RES) after receiving the message that the service provider submits to: this message is put into corresponding message queue, send by the processing threads corresponding with this formation;
3.MMSC after processing such as the storage of Multimedia Message process, routing inquiry, send Multimedia Message notification message (MM1_notification.REQ) to the terminal use;
4. after the user receives the Multimedia Message notice, send a push-notification-answer message (MM1_notification.RES) to MMSC;
5. after the user receives the Multimedia Message notice, in the message term of validity, extract message (MM1_retrieve.REQ);
6.MMSC multimedia information content is sent to terminal use (MM1_retrieve.RES);
7. after the terminal use receives the Multimedia Message of extraction, send an acknowledge message (MM1_acknowledgement.REQ) to MMSC;
8.MMSC after receiving user's affirmation message, send delivering report message (MM7_delievery_report.REQ): this message is put into corresponding message queue, send by the processing threads corresponding with this formation to the service provider;
9.MMSC the response message (MM7_delievery_report.RES) that obtains the service provider is to confirm that the service provider has successfully received delivering report message;
10. after the terminal use had read Multimedia Message, terminal sent the message (MM1_read_reply_recipeint.REQ) of a reading report to MMSC;
11.MMSC give service provider (MM7_read_reply.REQ): this message is put into corresponding message queue, send by the processing threads corresponding with this formation with this forwards;
12.MMSC the response message that obtains the service provider is to confirm that the service provider successfully receives reading report message (MM7_read_reply.RES).
From Fig. 7, flow process shown in Figure 8 as can be seen, the MMSC request message that sends to the service provider comprises MM7_deliver.REQ, MM7_delivery_report.REQ, MM7_read_reply.REQ message.Wherein, MM7_deliver.REQ message is the terminal use sends request message from purposes such as being used for program request, order to SP; MM7_delivery_report.REQ and MM7_read_reply.REQ are respectively after the terminal use receives successful back, terminal use's read messages, the request message that MMSC sends to the service provider, the statistics that this message can be used for being correlated with by the service provider.
Utilize the present invention, the user can be distributed to corresponding business provider quickly and efficiently to the various request messages that the service provider sends, improved transmitting efficiency greatly, and can not make and respond the influence that service provider faster is subjected to the service provider of low-response, and respond slower service provider after response accelerates, also can in time be adjusted its service class, be obtained the priority treatment of MMSC.
With reference to Fig. 9, Fig. 9 is the first embodiment theory diagram of apparatus of the present invention:
This device comprises: receiving element S1, transmitting element S2, initial setting up cell S 0, queue management device S3, thread manager S4, message Dispatching Unit S5 and message processing unit S6.
Wherein, message sink cell S 1 is used to receive all message that the user sends to the service provider; Message sending unit S2 is used to send to all message of service provider.
Initial setting up cell S 0 is used for the service provider is classified, and is the different priority of configuration of all categories;
Message queue of the level allocation that it is every class service provider that queue management device S3 is used for according to all kinds of service provider's priority levels, and set up the corresponding relation of each service provider and message queue;
The corresponding processing threads of level allocation that it is every class service provider that thread manager S4 is used for according to all kinds of service provider's priority levels;
Message Dispatching Unit S5 links to each other with message sink cell S 1 and queue management device S3 respectively, is used for the message that the user that message sink cell S 1 is received sends to the service provider is put into the message queue of rank correspondence under this service provider;
Message processing unit S6 links to each other with thread manager S4 and message sending unit S2 respectively, the processing threads that is used for calling corresponding each message queue is finished the processing to this each message of message queue, and the message after will handling sends message sending unit to and sends to corresponding service provider.
When receiving element receives that the user sends to service provider's message and (comprises that the terminal use sends the request message of purposes such as being used for program request, order to the service provider, and the terminal use receives MMSC after successful back (also may be user refused message or message cross the after date user and successfully do not extract message yet) or the terminal use's read messages to request message that the service provider sends) after, by the message Dispatching Unit this message is put into should other message queue of service provider's level.The processing threads that distributes for this message queue in the message processing unit invokes thread distributor, message in this message queue taken out successively handle, and the message after will handling sends message sending unit to, sends to corresponding service provider by message sending unit.
The indivedual service provider's levels that cause for the variation that makes in network operation situation and traffic carrying capacity else change the transmission and the reception that can not influence other service provider's message, can also in apparatus of the present invention first embodiment shown in Figure 9, a priority adjustment unit be set, so that adjust this service provider's rank in real time according to each service provider's response delay.
Reference apparatus of the present invention second embodiment theory diagram shown in Figure 10:
Priority adjustment unit S7 links to each other with thread manager S4 with queue management device S3 respectively, is used for adjusting in real time according to each service provider's response delay this service provider's rank.It comprises: the time delay interval is provided with subelement S71, response delay computation subunit S72, adjusts notice subelement S73.Wherein,
The time delay interval is provided with subelement S71 other response delay interval of corresponding each service provider's level is set, such as, the time delay interval that priority 1 is set is 0 to 2 second, the time delay interval of priority 2 is 2 to 4 seconds, the rest may be inferred, and concrete value can be according to the network condition of different operators, the external condition setting that SP developing water equality influences time delay.Frequently adjusted for the rank of further avoiding SP, the time delay interval of different stage can suitably intersect, such as, the time delay interval of priority 1 is 0 to 3 second, the time delay interval of priority 2 is 2 to 5 seconds etc.
Response delay computation subunit S72 is used for time of sending service provider's request message and receive service provider's response message according to each processing threads, calculates this service provider's response delay.
Adjust notice subelement S73 and be used for the response delay interval that the service provider's that comparison response delay computation subunit calculates response delay and time delay interval are provided with this service provider that subelement is provided with, and do not notify rank that described queue management device revises this service provider rank simultaneously for the interval correspondence of response delay of its response delay ownership at the two.
By priority adjustment unit S7 is set, can adapt to the variation of each carrier network state better, such as, the service provider of certain high priority is sometime because equipment fault can not provide professional, in order not influence other service providers, at this moment, just its priority can be adjusted into minimum by priority adjustment unit S7; After its equipment fault was got rid of, its traffic handing capacity was higher than other service providers, at this moment, just this service provider's priority can be brought up to suitable grade by priority adjustment unit S7.Can further improve transmitting efficiency, guarantee each service provider's service quality.
Though described the present invention by embodiment, those of ordinary skills know, the present invention has many distortion and variation and do not break away from spirit of the present invention, wish that appended claim comprises these distortion and variation and do not break away from spirit of the present invention.

Claims (10)

1. a realization is characterized in that to the method for service provider's classified service described method comprises:
The service provider is classified, and be the corresponding priorities that is provided with of all categories;
Message queue of level allocation and one or more processing threads for every class service provider;
When receiving that the user sends to service provider's message or system need send report message to the service provider time, this message is put into the message queue of rank correspondence under this service provider;
Finish the transmission of each message in this message queue by the processing threads of corresponding each message queue.
2. method according to claim 1 is characterized in that, described method further comprises:
Adjust this service provider's rank in real time according to each service provider's response delay.
3. method according to claim 2 is characterized in that, other step of level that described response delay according to each service provider is adjusted this service provider in real time comprises:
Other response delay interval of corresponding each service provider's level is set;
After described processing threads is received service provider's response message, calculate this service provider's response delay;
This service provider's rank is adjusted into the interval corresponding rank of response delay of its response delay ownership.
4. the method for stating according to claim 3 is characterized in that, adjacent rank corresponding response time delay segment part is intersected.
5. method according to claim 1 is characterized in that, according to service provider's traffic carrying capacity and/or device processes speed the service provider is classified.
6. method according to claim 1 is characterized in that, for different classes of service provider is provided with similar and different initial priority.
7. method according to claim 6 is characterized in that, for the high service provider's classification of priority is distributed the service provider classification many processing threads low than priority.
8. a realization comprises the device of service provider's classified service: message sink unit, message sending unit, it is characterized in that, and also comprise:
Classifying to the service provider in the initial setting up unit, and is the different priority of configuration of all categories;
Queue management device, message queue of level allocation that to be used for according to all kinds of service provider's priority levels be every class service provider, and set up the corresponding relation of each service provider and message queue;
Thread manager, the corresponding processing threads of level allocation that to be used for according to all kinds of service provider's priority levels be every class service provider;
The message Dispatching Unit links to each other with described message sink unit and described queue management device respectively, is used for the message that the user that described message sink unit is received sends to the service provider is put into the message queue of rank correspondence under this service provider;
Message processing unit, link to each other with described thread manager and described message sending unit respectively, the processing threads that is used for calling corresponding each message queue is finished the processing to this each message of message queue, and the message after will handling sends message sending unit to and sends to corresponding service provider.
9. device according to claim 8 is characterized in that, described device also comprises:
The priority adjustment unit links to each other with described thread manager with described queue management device respectively, is used for adjusting in real time according to each service provider's response delay this service provider's rank.
10. device according to claim 9 is characterized in that, described priority adjustment unit comprises:
The time delay interval is provided with subelement, is used to be provided with other response delay interval of corresponding each service provider's level;
The response delay computation subunit is used for according to each processing threads calculating this service provider's response delay to time that the service provider sends a request message and the time of receiving service provider's response message;
Adjust the notice subelement, be used for when the service provider's that described response delay computation subunit calculates response delay is not provided with in this service provider's that subelement is provided with the response delay interval in described time delay interval, notify rank that described queue management device revises this service provider rank for the interval correspondence of response delay of its response delay ownership.
CNB2006100577086A 2006-02-23 2006-02-23 Method and device for realizing classified service to business provider Expired - Fee Related CN100365978C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100577086A CN100365978C (en) 2006-02-23 2006-02-23 Method and device for realizing classified service to business provider

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100577086A CN100365978C (en) 2006-02-23 2006-02-23 Method and device for realizing classified service to business provider

Publications (2)

Publication Number Publication Date
CN1859122A CN1859122A (en) 2006-11-08
CN100365978C true CN100365978C (en) 2008-01-30

Family

ID=37297989

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100577086A Expired - Fee Related CN100365978C (en) 2006-02-23 2006-02-23 Method and device for realizing classified service to business provider

Country Status (1)

Country Link
CN (1) CN100365978C (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102789394B (en) * 2011-05-19 2014-12-24 阿里巴巴集团控股有限公司 Method, device and nodes for parallelly processing information and server cluster
CN104951373B (en) * 2015-05-28 2018-11-27 浙江元亨通信技术股份有限公司 The message queue processing method of scheduling system
CN105516276B (en) * 2015-11-30 2020-04-17 中电科华云信息技术有限公司 Message processing method and system based on bionic hierarchical communication
CN105912412A (en) * 2016-03-31 2016-08-31 北京奇虎科技有限公司 Message distribution method, message distribution device and message distribution system
CN106713018B (en) * 2016-12-08 2020-01-03 天翼物联科技有限公司 Method for scheduling message queue service data and implementing message queue
CN108667719B (en) * 2018-04-26 2020-11-27 广州品唯软件有限公司 Real-time message transmission method and system
CN112101394B (en) * 2019-06-18 2024-03-22 中国移动通信集团浙江有限公司 Provider domain deployment method, device, computing equipment and computer storage medium
CN111245745B (en) * 2020-01-07 2022-05-24 腾讯科技(深圳)有限公司 Message sending method, device, node equipment and storage medium
CN111897496B (en) * 2020-07-28 2023-12-19 上海德拓信息技术股份有限公司 Method for improving network IO read-write performance in distributed system
CN114039925B (en) * 2021-10-28 2023-11-28 北京思特奇信息技术股份有限公司 Dynamic flow control method based on priority in short message gateway system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1543608A (en) * 2001-03-22 2004-11-03 ֣���� Methods and systems for electronic mail, internet target and direct marketing, and electronic mail banner
WO2004100595A1 (en) * 2003-05-12 2004-11-18 Hutchison Whampoa Three G Ip (Bahamas) Limited Service restriction in mobile communication networks

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1543608A (en) * 2001-03-22 2004-11-03 ֣���� Methods and systems for electronic mail, internet target and direct marketing, and electronic mail banner
WO2004100595A1 (en) * 2003-05-12 2004-11-18 Hutchison Whampoa Three G Ip (Bahamas) Limited Service restriction in mobile communication networks

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
移动数据业务浅析. 蔡玉红,袁智坚.电信技术,第1期. 2005 *

Also Published As

Publication number Publication date
CN1859122A (en) 2006-11-08

Similar Documents

Publication Publication Date Title
CN100365978C (en) Method and device for realizing classified service to business provider
CN100502572C (en) Method and system of increasing system capacity of multimedia message service
US20030158902A1 (en) Multimedia instant communication system and method
CN101543014B (en) Communication system
CN101273577B (en) Method and equipment for group communication in communication system
EP1889450A1 (en) System and method for performing mobile services, in particular push and pull services in a wireless communication network
WO2009082961A1 (en) Information processing method, system, and information consolidation device
JP2004524746A (en) Mobile telephone broadcasting service system and service method utilizing cell broadcasting system
CN100490447C (en) Method and system for realizing information transfer service and a terminal
CA2596270A1 (en) Method and apparatus for interworking between push-to-talk over cellular (poc) systems and instant messaging (im) systems
US20200092614A1 (en) Video distribution method and device
TW200937215A (en) Dynamic, subscriber driven charging models for media distribution
KR100617775B1 (en) Method for managing duplicated message notification in multimedia messaging service
JP3899035B2 (en) Method and system for controlling incoming notification
US8819111B2 (en) Method and system for notifying an addressee of a communication session
US20050181766A1 (en) Method and device for delivering messages to mobile terminal devices in accordance with a user selectable attainability status
RU2352075C2 (en) Method and system for messages processing in service of multimedia messages
CN101321158A (en) Method, system and apparatus for limiting business resource subscription
WO2009103196A1 (en) System and method for sending multimedia message storage address
US7885642B2 (en) Method and device for performance optimisation of a data distribution network
KR20040098065A (en) A method for transmitting data, particularly having multimedia contents, in a mobile radio communication network
EP2034677B1 (en) A multimedia message group sending system and the method thereof
CN102917030B (en) Criticize classification
CN100499597C (en) Method for transmitting MM4 interface message in multimedia message system
US8503977B2 (en) Billing system, billing-information generation apparatus, billing-information generation method, computer readable recording medium recording billing information generation program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080130

Termination date: 20200223

CF01 Termination of patent right due to non-payment of annual fee