CN102026106B - Platform and method for realizing balanced flow transmission of a plurality of downstream nodes - Google Patents

Platform and method for realizing balanced flow transmission of a plurality of downstream nodes Download PDF

Info

Publication number
CN102026106B
CN102026106B CN200910092502.0A CN200910092502A CN102026106B CN 102026106 B CN102026106 B CN 102026106B CN 200910092502 A CN200910092502 A CN 200910092502A CN 102026106 B CN102026106 B CN 102026106B
Authority
CN
China
Prior art keywords
message
sent
downstream node
thread
mobile station
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.)
Active
Application number
CN200910092502.0A
Other languages
Chinese (zh)
Other versions
CN102026106A (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.)
Haining hi tech Zone Science and Innovation Center Co., Ltd
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN200910092502.0A priority Critical patent/CN102026106B/en
Priority to PCT/CN2010/074546 priority patent/WO2011029336A1/en
Publication of CN102026106A publication Critical patent/CN102026106A/en
Application granted granted Critical
Publication of CN102026106B publication Critical patent/CN102026106B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/30Routing of multiclass traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering

Abstract

The invention discloses a message transmitting platform for realizing balanced flow transmission of a plurality of downstream nodes. The message transmitting platform is used for realizing balanced control on transmitted flow by adopting a region number segment routing strategy and transmitting messages to the downstream nodes of the regions corresponding to destination numbers according to the destination numbers. The method also discloses a message transmitting method for realizing balanced flow transmission of the plurality of downstream nodes. The method comprises the following steps of: realizing balanced control on the transmitted flow by adopting the region number segment routing strategy; and transmitting the messages to the downstream nodes of the regions corresponding to the destination numbers according to the destination numbers. The platform and the method can realize balanced flow transmission of the plurality of downstream nodes, so that requirements on cost reduction and full utilization of system resources can be met.

Description

A kind of platform and method that realizes that the flow equalization to a plurality of downstream nodes issues
Technical field
The present invention relates to the technical field that the large flow of note/multimedia message issues, relate in particular to and a kind ofly by regional routing policy, realize that the message that the flow equalization to a plurality of downstream nodes issues sends platform and message method.
Background technology
Along with the development of short message/colorful message service, relevant issuing service is numerous, as the directive sending of the miscellaneous services such as mobile phone newspaper, weather forecast, mobile informatiom.The performance of high traffic and flow equalization problem highlight gradually, thereby the load that causes Short Message Service Gateway and MMS center to be born is increasing.Particularly at dispatching platform, connect under the scene of national platform of a plurality of downstream nodes, here, downstream node comprises Short Message Service Gateway/MMS center.When the national platform issuing service for a plurality of downstream nodes, can even paralyse to each downstream node temporary impact, that is to say, high traffic concentrates the large flow produced while issuing can cause Short Message Service Gateway/MMS center all to face the bottleneck on performance.Therefore, the flow of downstream node being realized to balanced control, reduce the impact to Short Message Service Gateway/MMS center, realize the steady, lasting of flow, to use to greatest extent current systematic function, is the current problem in the urgent need to inquiring into.At present, industry has three kinds of implementations that improve the issuing message disposal ability of whole systems usually, below sets forth respectively.
The first implementation: increase Short Message Service Gateway/MMS center at downstream node, by the investment of hardware device, realize the hard raising of systematic function, the Organization Chart of implementation as shown in Figure 1.Yet the investment that adopts this method to need is larger, not too is applicable to the requirement reduced costs.Wherein, in Fig. 1, the Short Message Service Gateway in each area 2 is: for the increased hardware device that reduces pressure.
The second implementation: in message, send increase equipment between platform and downstream node, allow newly-increased equipment be cushioned and flow control message, process checking, qualified message just sends to Short Message Service Gateway or MMS center simultaneously, and the Organization Chart of implementation as shown in Figure 2.Although adopt this mode can alleviate by buffer device the pressure of lower level network element,, increase new equipment and still mean the spending that increases engineering, not too be applicable to the requirement reduced costs.
The third implementation: when message sends out from message transmission platform, need carry out flow restriction, mostly computational methods are the mode with time slip-window, calculate the message traffic sent from native system in some moment, when flow exceeds standard, just postpone sending.Yet, adopt this mode only when connecting a Short Message Service Gateway or a MMS center, ability generation effect, under the scene of the national platform issuing service for a plurality of downstream nodes, adopt its shortcoming of this mode to highlight, DeGrain, when message sends platform and connects a plurality of sms centers/MMS gateway, although the portion downstream node flow at full capacity, part of nodes is in idle condition, system resource does not take full advantage of, and can't accomplish the soft lifting of lower volatility.In sum, at present, particularly under the scene for the national platform issuing service of a plurality of downstream nodes, in the urgent need to a kind of implementation that can realize that the flow equalization to a plurality of downstream nodes issues.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of platform and method that realizes that the flow equalization to a plurality of downstream nodes issues, can realize the flow equalization of a plurality of downstream nodes is issued the requirement be fully utilized with the requirement guaranteeing to reduce costs and system resource.
For achieving the above object, technical scheme of the present invention is achieved in that
A kind of message that realizes that the flow equalization to a plurality of downstream nodes issues sends platform, and described message sends platform, specifically comprises: task control thread, route analysis thread and message send-thread group; Wherein,
The task control thread, sending for creating message of task, and extract destination Mobile Station International ISDN Number corresponding to described task;
The route analysis thread, for according to route information table, described destination Mobile Station International ISDN Number being carried out to route analysis, by each destination Mobile Station International ISDN Number of corresponding different regions number segment, correspondence is added in different queues to be sent the storage of classifying respectively;
Message send-thread group, the current flow situation for the downstream node according to different, according to the flow equalization principle, according to the destination Mobile Station International ISDN Number of storing in different queues to be sent, be issued to message the downstream node in the corresponding area of destination Mobile Station International ISDN Number.
Wherein, described route analysis thread, be further used for the corresponding relation according to the prefix section in described route information table, downstream node sign (ID) and queue ID to be sent, and destination Mobile Station International ISDN Number is carried out to route analysis.
Wherein, described message send-thread group specifically comprises a plurality of message send-threads; Described message send-thread group, the mode that is further used for adopting the multi-threaded parallel of different messages send-thread to process.
Wherein, each message send-thread is from the queue a plurality of to be sent of controlling separately, according to the destination Mobile Station International ISDN Number of storing in current queue to be sent, message is issued to the downstream node in the corresponding area of destination Mobile Station International ISDN Number, and need detect in real time the flow of downstream node corresponding to current queue to be sent, when flow being detected in real time and surpass the allocative abilities of described downstream node, obstruction issues the message of described downstream node, when the flow recovery being detected in real time, the message restarted described downstream node issues.
Wherein, described message send-thread, be further used for surpassing the allocative abilities of described downstream node or flow being detected in real time while recovering when flow being detected in real time, extract a destination Mobile Station International ISDN Number one of them that control from message send-thread queue to be sent, and message is issued to the downstream node in the corresponding area of destination Mobile Station International ISDN Number of current extraction, and after issuing, all need the flow of downstream node is re-started to real-time detection at every turn; When flow being detected in real time and surpass the allocative abilities of described downstream node, other queues to be sent of selecting the message send-thread to be controlled in the mode of poll, according to the destination Mobile Station International ISDN Number extracted, message is issued to the downstream node in the corresponding area of destination Mobile Station International ISDN Number of current extraction from other queues to be sent.
A kind of message method that realizes that the flow equalization to a plurality of downstream nodes issues, the method comprises:
The task that task control thread creation message sends, and extract destination Mobile Station International ISDN Number corresponding to described task;
The route analysis thread carries out route analysis according to route information table to described destination Mobile Station International ISDN Number, and by each destination Mobile Station International ISDN Number of corresponding different regions number segment, correspondence is added in different queues to be sent the storage of classifying respectively;
The flow situation that message send-thread group is current according to different downstream nodes, according to the flow equalization principle, according to the destination Mobile Station International ISDN Number of storing in different queues to be sent, be issued to message the downstream node in the corresponding area of destination Mobile Station International ISDN Number.
Wherein, described route analysis specifically comprises: the corresponding relation according to the prefix section in described route information table, downstream node ID and queue ID to be sent, carry out route analysis to destination Mobile Station International ISDN Number.
Wherein, described message send-thread group is controlled the described concrete employing that issues: the mode that the multi-threaded parallel of different messages send-thread is processed; Wherein, described message send-thread group specifically comprises a plurality of message send-threads.
Wherein, when each message send-thread is realized described issuing according to described flow equalization principle, further need to detect in real time the different current flow situations of downstream node; Wherein,
Each message send-thread is from the queue a plurality of to be sent of controlling separately, according to the destination Mobile Station International ISDN Number of storing in current queue to be sent, message is issued to the downstream node in the corresponding area of destination Mobile Station International ISDN Number, when the flow that downstream node corresponding to current queue to be sent detected in real time surpasses the allocative abilities of described downstream node, obstruction issues the message of described downstream node, when the flow recovery of downstream node corresponding to current queue to be sent being detected in real time, the message restarted described downstream node issues.
Wherein, realize that by described real-time detection described issuing further comprises:
When the flow that surpasses the allocative abilities of described downstream node or downstream node detected in real time when the flow that downstream node detected in real time recovers, extract a destination Mobile Station International ISDN Number one of them that control from message send-thread queue to be sent, and message is issued to the downstream node in the corresponding area of destination Mobile Station International ISDN Number of current extraction, and after issuing, all need the flow of downstream node is re-started to real-time detection at every turn; When the flow that downstream node detected in real time surpasses the allocative abilities of described downstream node, other queues to be sent of selecting the message send-thread to be controlled in the mode of poll, according to the destination Mobile Station International ISDN Number extracted, message is issued to the downstream node in the corresponding area of destination Mobile Station International ISDN Number of current extraction from other queues to be sent.
Wherein, the relation between message send-thread and its queue to be sent of controlling, adopt MOD(queue to be sent ID, M) calculate acquisition, and N=M; Wherein, the quantity that M is the message send-thread, the sum that N is queue to be sent.
The present invention adopts prefix section routing policy to realize the equilibrium control of sending flow rate, and according to destination Mobile Station International ISDN Number, message is issued to the downstream node in the corresponding area of destination Mobile Station International ISDN Number.
Adopt the present invention, the time message of the Short Message Service Gateway/MMS center that connects a plurality of areas send platform by regional routing policy realization the implementation method to the flow equalization of a plurality of downstream nodes, avoid the temporary impact to certain several node.
The accompanying drawing explanation
Fig. 1 is the system architecture diagram that prior art increases sms center;
Fig. 2 is that prior art sends at sms center and message the system architecture diagram that increases equipment between platform;
The system architecture diagram that Fig. 3 is the present invention's balanced issuing message in the message source;
Fig. 4 is the inner bay composition that message of the present invention sends platform.
Embodiment
Basic thought of the present invention is: adopt prefix section routing policy to realize the equilibrium control of sending flow rate, and according to destination Mobile Station International ISDN Number, message is issued to the downstream node in the corresponding area of destination Mobile Station International ISDN Number.
Enforcement below in conjunction with accompanying drawing to technical scheme is described in further detail.
A kind of message that realizes that the flow equalization to a plurality of downstream nodes issues sends platform, this message sends platform, adopt prefix section routing policy to realize the equilibrium control of sending flow rate, and according to destination Mobile Station International ISDN Number, message is issued to the downstream node in the corresponding area of destination Mobile Station International ISDN Number.Thereby downstream node receives the message that comes from message transmission platform and will offer the destination Mobile Station International ISDN Number user.Here, message sends platform and sends to downstream node: send to the message of downstream node according to various host-host protocols, the message the inside at least includes message content and destination Mobile Station International ISDN Number, and wherein message content can be specially short message content or MMS content.
Send platform for message, message sends platform and specifically comprises: task control thread, route analysis thread and message send-thread group.Wherein, the task that the task control thread sends for creating message, the purpose of creation task is in order to send out under message; And the task control thread need extract destination Mobile Station International ISDN Number corresponding to task; By task and destination Mobile Station International ISDN Number input route analysis thread.The route analysis thread, for according to route information table, destination Mobile Station International ISDN Number being carried out to route analysis, by each destination Mobile Station International ISDN Number of corresponding different regions number segment, correspondence is added in different queues to be sent the storage of classifying respectively; By different queue input message send-thread groups to be sent.Message send-thread group, the current flow situation for the downstream node according to different, according to the flow equalization principle, according to the destination Mobile Station International ISDN Number of storing in different queues to be sent, be issued to message the downstream node in the corresponding area of destination Mobile Station International ISDN Number.Wherein, queue to be sent and downstream node can be relation one to one.
Here, the route analysis thread, be further used for the corresponding relation according to the prefix section in route information table, downstream node sign (ID) and queue ID to be sent, and the destination Mobile Station International ISDN Number extracted by the task control thread is carried out to route analysis and sequence.
Here, message send-thread group specifically comprises a plurality of message send-threads; Message send-thread group, the mode that is further used for adopting the multi-threaded parallel of different messages send-thread to process.Wherein, message send-thread and queue to be sent can be the relation of one-to-many.
Here, each message send-thread is from the queue a plurality of to be sent of controlling separately, according to the destination Mobile Station International ISDN Number of storing in current queue to be sent, message is issued to the downstream node in the corresponding area of destination Mobile Station International ISDN Number, and need to detect in real time the flow of downstream node corresponding to current queue to be sent, when flow being detected in real time and surpass the allocative abilities of downstream node, the message of blocking downstream node issues, when the flow recovery being detected in real time, the message restarted downstream node issues.
For the message send-thread, the message send-thread is further used for surpassing the allocative abilities of downstream node or flow being detected in real time while recovering when flow being detected in real time, extract a destination Mobile Station International ISDN Number one of them that control from message send-thread queue to be sent, and message is issued to the downstream node in the corresponding area of destination Mobile Station International ISDN Number of current extraction, and after issuing, all need the flow of downstream node is re-started to real-time detection at every turn; When flow being detected in real time and surpass the allocative abilities of downstream node, other queues to be sent of selecting the message send-thread to be controlled in the mode of poll, according to the destination Mobile Station International ISDN Number extracted, message is issued to the downstream node in the corresponding area of destination Mobile Station International ISDN Number of current extraction from other queues to be sent.
The present invention mainly comprises: described in the invention with prefix section routing policy, realize that the equilibrium of sending flow rate controls, thereby reach even to the flow of each downstream node, continue, issue disposal ability with raising, mainly be applicable to the scene for the national platform issuing service of a plurality of downstream nodes, the networking interface as shown in Figure 3.Connecting a plurality of downstream nodes, while such as Short Message Service Gateway/MMS center, carrying out the message Batch sending, because number has noncontinuity, therefore, can realize different routing policies based on each prefix section, and different downstream nodes is created to corresponding queue to be sent; The mode that adopts multi-threaded parallel to process, the message send-thread extracts destination Mobile Station International ISDN Number from the queue to be sent of controlling separately, and message is issued to the downstream node in the corresponding area of destination Mobile Station International ISDN Number of current extraction, in issuing process, need to detect in real time the flow of corresponding downstream node, if flow surpasses the allocative abilities of this downstream node, the message of blocking this downstream node issues, if flow detection is recovered, the message restarted this downstream node issues work.The present invention is by the routing policy of such kind of area number segment, and the mode of a plurality of queue multi-threaded parallel processing to be sent, realizes that the equilibrium of flow issues, thereby can effectively reduce the temporary impact to each downstream node.
Below respectively from the angle of system and method to the present invention's elaboration of giving an example.
Specifically, for system of the present invention, message sends platform as the core component in system, and as shown in Figure 4, its internal module can comprise: task control thread, route analysis thread, message send-thread group.
Wherein, the task control thread is mainly used in creating in real time the task that issues, extracting task objective number, real-time update task status function.
The task that issues and destination Mobile Station International ISDN Number that the route analysis thread is mainly used in being responsible for inputting carry out route analysis according to route information table, and according to the corresponding relation of the prefix section in route information table, downstream node ID and queue ID to be sent, the destination Mobile Station International ISDN Number extracted by the task control thread is carried out to route analysis, then corresponding destination Mobile Station International ISDN Number is put into to queue to be sent corresponding to this area.Here it is to be noted: the destination Mobile Station International ISDN Number of different prefix sections is put into respectively different queue classification storages to be sent, and different queues to be sent is corresponding to different downstream nodes.Because downstream node is distinguished according to area, therefore, like this, in subsequent operation, queue to be sent is under the control of message send-thread, just can extract the destination Mobile Station International ISDN Number of a certain prefix section of correspondence that queue to be sent carries, and message is issued to the downstream node in the corresponding area of destination Mobile Station International ISDN Number of current extraction.Thereby by the routing policy of prefix section, the message equilibrium is issued to each downstream node, is particularly useful for processing for the flow equalization under the scene of the national platform issuing service of a plurality of downstream nodes.
Message send-thread group is mainly used in being responsible for receiving each queue to be sent of input, the current flow situation according to each downstream node, according to the flow equalization principle, extract the destination Mobile Station International ISDN Number of storing in queue to be sent, and message is issued to the downstream node in the corresponding area of destination Mobile Station International ISDN Number of current extraction.
Specifically, for method of the present invention, the realization flow of the inventive method mainly comprises following several respects content:
One, system creation N queue to be sent, the establishment of now queue to be sent is actually the establishment principle according to the form of queue to be sent, first create empty queue to be sent, during follow-up the sequence, just by the data destination Mobile Station International ISDN Number, be added in the queue to be sent of the corresponding sky created.
Here, the information that queue to be sent comprises can comprise: issue mission bit stream, nodal information, destination Mobile Station International ISDN Number district, last time and issue skew, sending flow rate etc.Queue to be sent completes and task is realized to the classification storage of destination Mobile Station International ISDN Number according to downstream node, follow-up, the message send-thread, by issuing the start offset number that deviation post determines each transmission the last time of queue to be sent, determines the destination address issued by nodal information.Wherein, nodal information can be downstream node ID.
Two, create route information table.
Here, the information that route information table mainly comprises has: the queue ID to be sent of prefix section, downstream node ID, correspondence.Route information table is disassembled for the destination Mobile Station International ISDN Number of task, and whenever a task creation, the task control thread carries out route analysis to each destination Mobile Station International ISDN Number successively, then corresponding destination Mobile Station International ISDN Number is joined in queue to be sent.
Three, the task control thread has been analyzed all destination Mobile Station International ISDN Number of task, and the request message that will sort sends to the route analysis thread, and notice route analysis thread is sorted.
Four, the route analysis thread, according to the mapping table of number segment and downstream node, carries out the creation operation of queue to be sent, and creation operation now is: be destination Mobile Station International ISDN Number by data, be added in the queue to be sent of the corresponding sky created before.For example number 13594200001 needs to send, the corresponding downstream node of number segment 1359420 number is 3, at first the route analysis thread checks that whether having remained transmit queue for node number 3 these tasks has created, if have, 13594200001 numbers are joined to the end of corresponding queue to be sent; If do not have queue to be sent to be created, create a new queue to be sent, corresponding downstream node number is 3.The rest may be inferred, completes the sorting operation to all destination Mobile Station International ISDN Number.After the sequence flow processing, queue to be sent is sent to each message send-thread, notify each message send-thread to start to carry out transmission flow.
Five, the message send-thread adopts the mode that multi-threaded parallel is processed, if queue to be sent add up to N; The numbering of each queue to be sent is respectively: 0..N-1; The quantity of message send-thread is M, and N >=M; A plurality of queues to be sent of each message send-thread management, by MOD(queue ID to be sent, M) calculate the control relation between message send-thread and its queue to be sent of controlling, and controlled each queue assignment to be sent to corresponding message send-thread.For example, the sum of queue to be sent is 10, and the sum of message send-thread is 5, and No. 0 message send-thread can be controlled queue 0,5 to be sent; No. 3 the message send-thread can be controlled queue 3,8 to be sent.
Here, when message sends, at first the message send-thread need to check the flow of corresponding downstream node, issue condition if meet flow, the current message send-thread extracts a destination Mobile Station International ISDN Number from queue to be sent, and message is issued to the downstream node in the corresponding area of destination Mobile Station International ISDN Number of current extraction.And whether the flow that all needs to detect current downstream node after issuing issues condition and still meets at every turn.In practice, usually after the current message send-thread selects its queue to be sent controlling to issue the message of some, should forward immediately the next queue to be sent of being controlled by this current message send-thread to is issued, the rest may be inferred, the scale factor sent according to message selects the destination Mobile Station International ISDN Number of suitable number at every turn from queue to be sent, and message is issued to the downstream node in the current corresponding area of destination Mobile Station International ISDN Number of choosing.Wherein, for scale factor, every scale factor issued of taking turns adopts the flow proportional of each downstream node to obtain.
Below, adopt message as shown in Figure 4 to send platform, describe implementation method of the present invention and handling process in detail, the mode adopted here is to utilize internal storage to create queue to be sent, this handling process comprises the following steps:
Step 101: system starts and initialized process.
Here, when system starts, application has a certain size internal storage, creates N queue to be sent in internal storage, for each queue to be sent is numbered 0 to N-1, is: the form of queue to be sent is set, and creates empty queue to be sent.The open ended destination Mobile Station International ISDN Number of each queue to be sent is several to be sent according to message the order of magnitude that platform can send message and is configured.Wherein, the relevant information that the size of internal storage need to be carried by task and platform send the order of magnitude equilibrium of message to downstream node to be determined, and the restriction of the internal memory of machine is determined.
Create queue to be sent except needs when system startup and initialization, also need to create M message send-thread, and M is less than or equal to N.Create route information table, read route data.Route data mainly comprises prefix section, node ID and corresponding queue ID to be sent, and the parameters such as scale factor of destination Mobile Station International ISDN Number are extracted in each queue to be sent at every turn.
When initialization, also need to calculate the control relation between message send-thread and downstream node number.Such as message sends platform, 10 message send-threads, M=10 are arranged; And 20 downstream nodes, N=20.Remainder after downstream node MOD10 determines this downstream node by which message send-thread is controlled and processed.Such as No. 1 message send-thread control No. 1 and No. 11 downstream nodes, No. 8 the message send-thread is controlled No. 8 and No. 18 nodes, by that analogy.Here it is to be noted: because queue to be sent and downstream node are corresponding, therefore, also can calculate the relation between message send-thread and its queue to be sent of controlling, by MOD(queue to be sent ID, M) controlled each queue assignment to be sent to corresponding message send-thread.Like this, by the corresponding relation of queue to be sent and downstream node, the destination Mobile Station International ISDN Number of a certain prefix section of the follow-up correspondence that just transmit queue can be carried under the control of message send-thread, send to corresponding regional downstream node.
Step 102: the task control thread creates in real time message and issues task.
Here, creation task comprises: the basic task information such as the time that issues of (1) task, calling number, charging policy; (2) all purpose Subscriber Numbers.Mission bit stream passes to the route analysis thread by task after creating.
Step 103: the route analysis thread receives new task, route data according to storage inside, comprise prefix section and corresponding purpose downstream node ID thereof, difference according to downstream node number creates out a plurality of queues to be sent, and all destination Mobile Station International ISDN Number of task are carried out after route analysis, number being stored in corresponding queue to be sent.
Here, being: according to the route data of storing in route information table, by data--destination Mobile Station International ISDN Number is added in the queue to be sent of the sky established in step 101 successively.
Step 104: after the complete all destination Mobile Station International ISDN Number of route analysis thread process, the task of each downstream node of correspondence that the route analysis thread creation is gone out sends to corresponding message send-thread, and notifies each message send-thread to start to carry out transmission flow.
Step 105: message send-thread, at first check the flow of corresponding downstream node, issue condition if meet flow, a queue to be sent of controlling from it, extract a destination Mobile Station International ISDN Number, and message is issued to the downstream node in the corresponding area of destination Mobile Station International ISDN Number of current extraction.And whether the flow that all needs to detect current downstream node after issuing issues condition and still meets at every turn.After selecting certain downstream node to issue some message, should forward immediately next queue to be sent to and be issued, the rest may be inferred.
Here, the work of No. 1 message send-thread of take is example: No. 1 message send-thread first checks the message traffic of No. 1 corresponding downstream node of queue to be sent, if flow does not surpass restriction, just from queue to be sent, take out a destination Mobile Station International ISDN Number, and message is issued to the downstream node in the corresponding area of destination Mobile Station International ISDN Number of current extraction, record the skew that this sends message after sending successfully, and then inspection message transmitted traffic, after flow surpasses restriction or after processing messages number this processing messages parameter factors over setting, start to process No. 11 queues to be sent.Processed No. 11 queues to be sent later again poll return and process No. 1 queue to be sent.Each message send-thread repeats identical message and sends task, until all Subscriber Numbers all are sent out.Because be the simultaneously conditional message sent to a plurality of downstream nodes, thereby instantaneous load and the impulsive force of downstream node have been reduced.
In sum, message that the present invention discusses sends platform when connecting a plurality of Short Message Service Gateway/MMS center message Batch sending, routing policy according to the prefix section, destination Mobile Station International ISDN Number is carried out to control of queue, each node is created to a plurality of queues to be sent, poll ground a plurality of node issuing messages downstream, can reduce energetically the engineering cost that note/multimedia message sends platform, alleviate the load of Short Message Service Gateway/MMS center, the efficiency of raising system, realize as far as possible using conventional network resources, enhance the competitiveness.
Below application processing procedure of the present invention on whole nation level mobile newspaper platform is described as follows:
At first, start service processor.Service processor reads relevant configuration information, and here, relevant configuration information comprises the number N=20 of queue to be sent, the number M=10 of message send-thread; A certain size internal memory of service processor application creates 20 queues to be sent and 10 message send-threads in internal memory.Create route information table, read route data, route data is recorded in internal memory.And the message send-thread that creates other.
Secondly, the initial message send-thread, and calculate the control relation between message send-thread and queue to be sent.Remainder after queue number MOD10 to be sent determines which message send-thread this is controlled and process by by queue to be sent.Corresponding relation due to queue to be sent and downstream node, therefore, according to the message send-thread calculated and the relation of thread to be sent, the corresponding relation of outbound message send-thread and downstream node: for example: No. 1 message send-thread control No. 1 and No. 11 downstream nodes, No. 8, No. 8 Thread controls and No. 18 downstream nodes.
Then, upgrade the mobile phone newspaper content, trigger processor establishment mobile phone newspaper and order the task that issues.This generic task has magnanimity purpose Subscriber Number.
Further, the task control thread reads task, and the route analysis thread, according to all destination Mobile Station International ISDN Number of the complete task of routing iinformation table analysis, becomes a plurality of little tasks by Task-decomposing, then request message is sent to each message send-thread, notify each message send-thread to start the transmission task.
Finally, the message send-thread starts to send task by configuration parameter.At first check the flow of corresponding downstream node, issue condition if meet flow, from queue to be sent, extract a destination Mobile Station International ISDN Number, and message is issued to the downstream node in the corresponding area of destination Mobile Station International ISDN Number of current extraction, record the skew that this sends message after sending successfully.After issuing, all need the flow condition that detects current downstream node whether to meet at every turn, after flow surpasses restriction or after processing messages number this processing messages parameter factors over setting, should forward immediately next queue to be sent to is issued, the rest may be inferred, until task sends, finishes.
A kind of method that realizes that the flow equalization to a plurality of downstream nodes issues, the method comprises: adopt prefix section routing policy to realize that the equilibrium of sending flow rate controls, and according to destination Mobile Station International ISDN Number, message is issued to the downstream node in the corresponding area of destination Mobile Station International ISDN Number.
Here, can send platform by message and send a message to downstream node.After sending a message to downstream node, can also comprise: by downstream node, message is offered to the destination Mobile Station International ISDN Number user.Here, message sends platform and sends to downstream node: send to the message of downstream node according to various host-host protocols, the message the inside at least includes message content and destination Mobile Station International ISDN Number, and wherein message content can be specially short message content or MMS content.
The above-mentioned concrete processing procedure that sends a message to downstream node comprises the following steps:
Step 2011: the task that task control thread creation message sends, and extract destination Mobile Station International ISDN Number corresponding to task.
Here, destination Mobile Station International ISDN Number can adopt the form of destination Mobile Station International ISDN Number list to exist.
Step 2012: the route analysis thread carries out route analysis according to route information table to destination Mobile Station International ISDN Number, and by each destination Mobile Station International ISDN Number of corresponding different regions number segment, correspondence is added in different queues to be sent the storage of classifying respectively.
When here, route information table and different queues to be sent are initialization, created.While carrying out route analysis, can carry out one by one route analysis to destination Mobile Station International ISDN Number according to the route information table created, after analysis finishes, by each destination Mobile Station International ISDN Number of corresponding different regions number segment, correspondence is added in the different queue to be sent created the storage of classifying respectively.
Here, sequence specifically comprises: the corresponding relation according to the prefix section in route information table, downstream node ID and queue ID to be sent, carry out route analysis to destination Mobile Station International ISDN Number.
Step 2013: the flow situation that message send-thread group is current according to different downstream nodes, according to the flow equalization principle, extract the destination Mobile Station International ISDN Number of storing in different queues to be sent, message is issued to the downstream node in the corresponding area of destination Mobile Station International ISDN Number of current extraction.Wherein, queue to be sent and downstream node can be relation one to one.
Below the concrete processing procedure of step 2013 is set forth.
Message send-thread group is controlled the concrete employing that issues of destination Mobile Station International ISDN Number in queue to be sent: the mode that the multi-threaded parallel of different messages send-thread is processed.Wherein, message send-thread group specifically comprises a plurality of message send-threads.Wherein, message send-thread and queue to be sent can be the relation of one-to-many.
When the message send-thread is realized issuing of destination Mobile Station International ISDN Number according to the flow equalization principle, further need to detect in real time the different current flow situations of downstream node.Wherein, specifically comprise: each message send-thread is from the queue a plurality of to be sent of controlling separately, according to the destination Mobile Station International ISDN Number of storing in current queue to be sent, message is issued to the downstream node in the corresponding area of destination Mobile Station International ISDN Number, when the flow that downstream node detected in real time surpasses the allocative abilities of downstream node, obstruction issues the message of downstream node, and when the flow recovery of downstream node being detected in real time, the message restarted downstream node issues.Wherein, the flow here refers to: the flow of the downstream node that current queue to be sent is corresponding, and below do not do and repeat.
Here, realize that by above-mentioned real-time detection issuing further of destination Mobile Station International ISDN Number comprises: when the flow that surpasses the allocative abilities of downstream node or downstream node detected in real time when the flow that downstream node detected in real time recovers, extract a destination Mobile Station International ISDN Number one of them that control from message send-thread queue to be sent, and message is issued to the downstream node in the corresponding area of destination Mobile Station International ISDN Number of current extraction, and after issuing, all need the flow of downstream node is re-started to real-time detection at every turn; When the flow that downstream node detected in real time surpasses the allocative abilities of downstream node, other queues to be sent of selecting the message send-thread to be controlled in the mode of poll, according to the destination Mobile Station International ISDN Number extracted, message is issued to the downstream node in the corresponding area of destination Mobile Station International ISDN Number of current extraction from other queues to be sent.
Here it is to be noted: the relation between message send-thread and its queue to be sent of controlling adopts MOD(queue to be sent ID, M) calculate acquisition, and N=M; Wherein, the quantity that M is the message send-thread, the sum that N is queue to be sent.
The above, be only preferred embodiment of the present invention, is not intended to limit protection scope of the present invention.

Claims (11)

1. the message that a realization issues the flow equalization of a plurality of downstream nodes sends platform, it is characterized in that, described message sends platform, specifically comprises: task control thread, route analysis thread and message send-thread group; Wherein,
The task control thread, create the task of message transmission, and extract destination Mobile Station International ISDN Number corresponding to described task for the internal storage of application when system starts; The real-time update task status;
The route analysis thread, for the described task and the described destination Mobile Station International ISDN Number that issue are carried out to route analysis according to route information table to described destination Mobile Station International ISDN Number, by each destination Mobile Station International ISDN Number of corresponding different regions number segment, correspondence is added in different queues to be sent the storage of classifying respectively;
Message send-thread group, for receiving each queue to be sent, the current flow situation according to different downstream nodes, according to the flow equalization principle, extract the destination Mobile Station International ISDN Number of storing in each queue to be sent, message is issued to the downstream node in the corresponding area of destination Mobile Station International ISDN Number, described downstream node comprises Short Message Service Gateway or MMS center;
By cooperatively interacting of described task control thread, route analysis thread and message send-thread group, described message sends platform and realizes the flow equalization of a plurality of Short Message Service Gateway or MMS center is issued, and the system resource that makes message send platform and a plurality of Short Message Service Gateway or MMS center formation is fully utilized.
2. message according to claim 1 sends platform, it is characterized in that, described route analysis thread, be further used for the corresponding relation according to the prefix section in described route information table, downstream node sign (ID) and queue ID to be sent, and destination Mobile Station International ISDN Number is carried out to route analysis.
3. message according to claim 1 and 2 sends platform, it is characterized in that, described message send-thread group specifically comprises a plurality of message send-threads; Described message send-thread group, the mode that is further used for adopting the multi-threaded parallel of different messages send-thread to process.
4. message according to claim 3 sends platform, it is characterized in that, each message send-thread is from the queue a plurality of to be sent of controlling separately, according to the destination Mobile Station International ISDN Number of storing in current queue to be sent, message is issued to the downstream node in the corresponding area of destination Mobile Station International ISDN Number, and need detect in real time the flow of downstream node corresponding to current queue to be sent, when flow being detected in real time and surpass the allocative abilities of described downstream node, obstruction issues the message of described downstream node, when the flow recovery being detected in real time, the message restarted described downstream node issues.
5. message according to claim 4 sends platform, it is characterized in that, described message send-thread, be further used for surpassing the allocative abilities of described downstream node or flow being detected in real time while recovering when flow being detected in real time, extract a destination Mobile Station International ISDN Number one of them that control from message send-thread queue to be sent, and message is issued to the downstream node in the corresponding area of destination Mobile Station International ISDN Number of current extraction, and after issuing, all need the flow of downstream node is re-started to real-time detection at every turn; When flow being detected in real time and surpass the allocative abilities of described downstream node, other queues to be sent of selecting the message send-thread to be controlled in the mode of poll, according to the destination Mobile Station International ISDN Number extracted, message is issued to the downstream node in the corresponding area of destination Mobile Station International ISDN Number of current extraction from other queues to be sent.
6. the message method that a realization issues the flow equalization of a plurality of downstream nodes, is characterized in that, the method comprises:
The task that task control thread creation message sends, and extract destination Mobile Station International ISDN Number corresponding to described task;
The route analysis thread carries out route analysis according to route information table to described destination Mobile Station International ISDN Number, and by each destination Mobile Station International ISDN Number of corresponding different regions number segment, correspondence is added in different queues to be sent the storage of classifying respectively;
The flow situation that message send-thread group is current according to different downstream nodes, according to the flow equalization principle, according to the destination Mobile Station International ISDN Number of storing in different queues to be sent, be issued to message the downstream node in the corresponding area of destination Mobile Station International ISDN Number.
7. method according to claim 6, is characterized in that, described route analysis specifically comprises: the corresponding relation according to the prefix section in described route information table, downstream node ID and queue ID to be sent, carry out route analysis to destination Mobile Station International ISDN Number.
8. according to the described method of claim 6 or 7, it is characterized in that, described message send-thread group is controlled the described concrete employing that issues: the mode that the multi-threaded parallel of different messages send-thread is processed; Wherein, described message send-thread group specifically comprises a plurality of message send-threads.
9. method according to claim 8, is characterized in that, when each message send-thread is realized described issuing according to described flow equalization principle, further needs to detect in real time the different current flow situations of downstream node; Wherein,
Each message send-thread is from the queue a plurality of to be sent of controlling separately, according to the destination Mobile Station International ISDN Number of storing in current queue to be sent, message is issued to the downstream node in the corresponding area of destination Mobile Station International ISDN Number, when the flow that downstream node corresponding to current queue to be sent detected in real time surpasses the allocative abilities of described downstream node, obstruction issues the message of described downstream node, when the flow recovery of downstream node corresponding to current queue to be sent being detected in real time, the message restarted described downstream node issues.
10. method according to claim 9, is characterized in that, by described real-time detection, realizes that described issuing further comprises:
When the flow that surpasses the allocative abilities of described downstream node or downstream node detected in real time when the flow that downstream node detected in real time recovers, extract a destination Mobile Station International ISDN Number one of them that control from message send-thread queue to be sent, and message is issued to the downstream node in the corresponding area of destination Mobile Station International ISDN Number of current extraction, and after issuing, all need the flow of downstream node is re-started to real-time detection at every turn; When the flow that downstream node detected in real time surpasses the allocative abilities of described downstream node, other queues to be sent of selecting the message send-thread to be controlled in the mode of poll, according to the destination Mobile Station International ISDN Number extracted, message is issued to the downstream node in the corresponding area of destination Mobile Station International ISDN Number of current extraction from other queues to be sent.
11. method according to claim 10, is characterized in that, the relation between message send-thread and its queue to be sent of controlling adopts MOD(queue to be sent ID, M) calculate acquisition, and N=M; Wherein, the quantity that M is the message send-thread, the sum that N is queue to be sent.
CN200910092502.0A 2009-09-10 2009-09-10 Platform and method for realizing balanced flow transmission of a plurality of downstream nodes Active CN102026106B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN200910092502.0A CN102026106B (en) 2009-09-10 2009-09-10 Platform and method for realizing balanced flow transmission of a plurality of downstream nodes
PCT/CN2010/074546 WO2011029336A1 (en) 2009-09-10 2010-06-25 Platform and method for implementing flow balanced distribution to multiple downstream nodes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910092502.0A CN102026106B (en) 2009-09-10 2009-09-10 Platform and method for realizing balanced flow transmission of a plurality of downstream nodes

Publications (2)

Publication Number Publication Date
CN102026106A CN102026106A (en) 2011-04-20
CN102026106B true CN102026106B (en) 2014-01-01

Family

ID=43731980

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910092502.0A Active CN102026106B (en) 2009-09-10 2009-09-10 Platform and method for realizing balanced flow transmission of a plurality of downstream nodes

Country Status (2)

Country Link
CN (1) CN102026106B (en)
WO (1) WO2011029336A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105871721B (en) * 2015-01-19 2020-05-05 中兴通讯股份有限公司 Segment routing processing method, processing device and sending device
CN108769936B (en) * 2018-06-27 2021-06-08 平安科技(深圳)有限公司 Short message distribution method and device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1744582A (en) * 2004-08-31 2006-03-08 华为技术有限公司 Network instant communication system and method for providing instant message subscribing
CN101350942A (en) * 2007-07-19 2009-01-21 中国移动通信集团公司 System and method for transmitting multimedia information as well as multimedia information service gateway
CN101472246A (en) * 2007-12-28 2009-07-01 中国移动通信集团公司 Method for transmitting and authenticating message as well as corresponding system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7899047B2 (en) * 2001-11-27 2011-03-01 Microsoft Corporation Virtual network with adaptive dispatcher

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1744582A (en) * 2004-08-31 2006-03-08 华为技术有限公司 Network instant communication system and method for providing instant message subscribing
CN101350942A (en) * 2007-07-19 2009-01-21 中国移动通信集团公司 System and method for transmitting multimedia information as well as multimedia information service gateway
CN101472246A (en) * 2007-12-28 2009-07-01 中国移动通信集团公司 Method for transmitting and authenticating message as well as corresponding system

Also Published As

Publication number Publication date
WO2011029336A1 (en) 2011-03-17
CN102026106A (en) 2011-04-20

Similar Documents

Publication Publication Date Title
CN101141742B (en) Application communication method of terminal
CN101147381A (en) Data processing device
CN102340734A (en) Positioning application management method and device
CN101242360A (en) A network address conversion method and system based on priority queue
CN102026106B (en) Platform and method for realizing balanced flow transmission of a plurality of downstream nodes
CN113785511A (en) Apparatus, method and computer program
CN103856503B (en) Processing method of file data of NAS cluster system and NAS cluster system
CN107589990A (en) A kind of method and system of the data communication based on thread pool
CN102413054B (en) Method, device and system for controlling data traffic as well as gateway equipment and switchboard equipment
CN102811176A (en) Data traffic control method and device
CN109286584A (en) Fragmentation and reassembly method, device and equipment in a kind of multiple nucleus system
CN101478486B (en) Method, equipment and system for switch network data scheduling
CN103607360A (en) Message processing method, line card and switching equipment
CN103179009A (en) Dynamic adaptive calling method of distributed management system
CN105761039A (en) Method for processing express delivery information big data
CN100359891C (en) Method for improving multimedia message central service processing property by buffer storage
CN102594650A (en) Method for processing multicast message and exchange access apparatus
CN1804822A (en) Multi-interruption cache device and method
CN101742701A (en) Device, method and system for treating AT command
CN101075219B (en) Method and system for processing interruption
WO2013075513A1 (en) Short message buffering method and system
CN102571581A (en) Re-routing method, re-routing system, base station controller, and core network equipment in MOCN
CN100589372C (en) Data synchronization method between virtual connection module of network service
CN102056097A (en) Message sending method based on gateway and Parlay X gateway
CN112866276B (en) Primary and secondary reset judgment system based on mimicry service function framework

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20191223

Address after: 314400 No.11, Weisan Road, Nongfa District, Chang'an Town, Haining City, Jiaxing City, Zhejiang Province

Patentee after: Haining hi tech Zone Science and Innovation Center Co., Ltd

Address before: 518057 Nanshan District Guangdong high tech Industrial Park, South Road, science and technology, ZTE building, Ministry of Justice

Patentee before: ZTE Communications Co., Ltd.