Short message channel distribution method, device and system

文档序号:1835053 发布日期:2021-11-12 浏览:18次 中文

阅读说明:本技术 一种短信通道分发方法、装置和系统 (Short message channel distribution method, device and system ) 是由 许涛 于 2021-09-26 设计创作,主要内容包括:本发明涉及通信技术领域中的一种短信通道分发方法、装置和系统,包括以下步骤:获取短信通道列表,其中短信通道列表包括两个以上的短信通道,并基于短信通道的负载能力,划分短信通道的检验优先级;计算每组短信通道的分发极值;当收到短信下发任务时,获取需要下发短信的手机号码,并根据手机号码获取检验数值;判断检验数值与分发极值的大小,若检验数值小于分发极值,则根据检验优先级,执行短信下发任务;若检验数值大于或等于分发极值,则判断检验数值与下一检验优先级的短信通道的分发极值的大小,具有短信通道利用率高、分配合理、稳定性高、短信连续性强的优点,突破了不同负载能力的短信通道无法合理分配短信分发的瓶颈。(The invention relates to a method, a device and a system for distributing short message channels in the technical field of communication, which comprises the following steps: acquiring a short message channel list, wherein the short message channel list comprises more than two short message channels, and dividing the inspection priority of the short message channels based on the load capacity of the short message channels; calculating a distribution extreme value of each group of short message channels; when a short message sending task is received, acquiring a mobile phone number needing to send the short message, and acquiring a check value according to the mobile phone number; judging the sizes of the inspection value and the distribution extreme value, and if the inspection value is smaller than the distribution extreme value, executing a short message issuing task according to the inspection priority; if the check value is greater than or equal to the distribution extreme value, the check value and the distribution extreme value of the short message channel of the next check priority are judged, the short message channel distribution method has the advantages of high short message channel utilization rate, reasonable distribution, high stability and strong short message continuity, and breaks through the bottleneck that short message channels with different load capacities cannot reasonably distribute short messages.)

1. A short message channel distribution method is characterized by comprising the following steps:

acquiring a short message channel list, wherein the short message channel list comprises more than two short message channels, and dividing the inspection priority of the short message channels based on the load capacity of the short message channels;

calculating the distribution extreme value of each group of short message channels according to the inspection priority and the load capacity;

when a short message sending task is received, acquiring a mobile phone number needing to send the short message, and acquiring a check value according to the mobile phone number;

judging the sizes of the inspection value and the distribution extreme value, and if the inspection value is smaller than the distribution extreme value, executing a short message issuing task according to the inspection priority; if the check value is greater than or equal to the distribution extreme value, the check value and the distribution extreme value of the short message channel of the next check priority are judged.

2. The method of claim 1, wherein the dividing of the inspection priority of the short message channel comprises the following steps:

acquiring the load capacity of more than one short message channel, and configuring the distribution flow proportion of each short message channel according to the load capacity, wherein the sum of the distribution flow proportions is 1;

and according to the proportion value of each distribution flow proportion, the higher the proportion value is, the higher the inspection priority is, and the classification is carried out.

3. The method of claim 1, wherein the step of calculating the distribution extremum of each group of short message channels comprises the following steps:

acquiring the load capacity of the short message channel and the load capacity of all short message channels with higher inspection priority than the current short message channel, and calculating the total split load;

calculating the total load sum of the load capacity of all the short message channels, and calculating the ratio of the split load sum to the total load sum according to the split load sum;

obtaining a distribution extreme value according to the ratio;

and repeating the steps to obtain the distribution extreme value of each group of short message channels.

4. The short message channel distribution method of claim 2, further comprising the steps of:

when more than two distribution flow ratio values are the same, acquiring the average arrival rate of the short message channel in a preset time period and the charging information of the short message channel;

calculating the score of the short message channel according to the average arrival rate and the charging information of the short message channel;

the higher the score of the short message channel is set, the higher the inspection priority is.

5. The method as claimed in claim 2, wherein the check value is obtained according to the mobile phone number, wherein the check value is the last two digits of the mobile phone number.

6. A short message channel distribution device is characterized by comprising an acquisition module, a short message channel list determining module, an execution module and an analysis module;

the acquisition module is used for acquiring the short message sending content when receiving a short message sending request;

the short message channel list determining module is used for acquiring a short message channel list, wherein the short message channel list comprises more than two short message channels;

the execution module is used for executing the short message issuing task according to the inspection priority when the inspection value is smaller than the distribution extreme value;

the analysis module is used for judging the inspection priority of the short message channel and the sizes of the inspection value and the distribution extreme value.

7. The apparatus as claimed in claim 1, wherein the obtaining module is further configured to obtain the charging information and the average arrival rate of the short message channel.

8. The apparatus of claim 1, wherein the analysis module is further configured to calculate a score of the short message channel.

9. A short message channel distribution system, comprising a processor and a storage medium, wherein the storage medium stores a short message channel distribution method according to any one of claims 1 to 5.

10. A computer-readable storage medium storing a computer program, wherein the computer program is executed by a processor to perform the short message channel distribution method according to any one of claims 1 to 5.

Technical Field

The invention relates to the technical field of communication, in particular to a method, a device and a system for distributing short message channels.

Background

At present, in order to improve the availability and stability of short message service, a plurality of short message channels are usually established to issue short messages, and a certain distribution method is adopted to issue short messages to users through the short message channels, and the common distribution method comprises randomly selecting the short message channels to issue and polling the short message channels to issue, so that the flow of each short message channel is basically ensured to be balanced, and the breakdown of a certain short message channel caused by overload is avoided.

However, both the random selection short message channel issuing and the polling short message channel issuing are only suitable for being used when the load capacity and the stability of the short message channel are the same, when the load capacity and the stability of different short message channels are different, the short message channel with better load capacity cannot exert the maximum effect because an independent flow ratio cannot be configured for each short message channel, the short message channel with poorer load capacity becomes the bottleneck of the whole short message service, and meanwhile, when a certain mobile phone number is issued with continuous short messages, the short message channels may be distributed to different short message channels, so that the channel numbers displayed by the short messages received by a user are inconsistent, and the continuity of the short message content is influenced.

Disclosure of Invention

Aiming at the defects in the prior art, the invention provides a method, a device and a system for distributing short message channels, which have the advantages of high short message channel utilization rate, reasonable distribution, high stability and strong short message continuity, and break through the bottleneck that short message channels with different load capacities cannot reasonably distribute short messages.

In order to solve the technical problem, the invention is solved by the following technical scheme:

a short message channel distribution method comprises the following steps:

acquiring a short message channel list, wherein the short message channel list comprises more than two short message channels, and dividing the inspection priority of the short message channels based on the load capacity of the short message channels;

calculating the distribution extreme value of each group of short message channels according to the inspection priority and the load capacity;

when a short message sending task is received, acquiring a mobile phone number needing to send the short message, and acquiring a check value according to the mobile phone number;

judging the sizes of the inspection value and the distribution extreme value, and if the inspection value is smaller than the distribution extreme value, executing a short message issuing task according to the inspection priority; if the check value is greater than or equal to the distribution extreme value, the check value and the distribution extreme value of the short message channel of the next check priority are judged.

Optionally, the dividing the inspection priority of the short message channel includes the following steps:

acquiring the load capacity of more than one short message channel, and configuring the distribution flow proportion of each short message channel according to the load capacity, wherein the sum of the distribution flow proportions is 1;

according to the proportion value of each distribution flow proportion, the lower the proportion value is, the higher the inspection priority is.

Optionally, the calculating a distribution extremum of each group of short message channels includes the following steps:

acquiring the load capacity of the short message channel and the load capacity of all short message channels with higher inspection priority than the current short message channel, and calculating the total split load;

calculating the total load sum of the load capacity of all the short message channels, and calculating the ratio of the split load sum to the total load sum according to the split load sum;

obtaining a distribution extreme value according to the ratio;

and repeating the steps to obtain the distribution extreme value of each group of short message channels.

Optionally, the method further comprises the following steps:

when more than two distribution flow ratio values are the same, acquiring the average arrival rate of the short message channel in a preset time period and the charging information of the short message channel;

calculating the score of the short message channel according to the average arrival rate and the charging information of the short message channel;

the higher the score of the short message channel is set, the higher the inspection priority is.

Optionally, the check value is obtained according to the mobile phone number, where the check value is the last two digits of the mobile phone number.

A channel distribution device comprises an acquisition module, a short message channel list determining module, an execution module and an analysis module;

the acquisition module is used for acquiring the short message sending content when receiving a short message sending request;

the short message channel list determining module is used for acquiring a short message channel list, wherein the short message channel list comprises more than two short message channels;

the execution module is used for executing the short message issuing task according to the inspection priority when the inspection value is smaller than the distribution extreme value;

the analysis module is used for judging the inspection priority of the short message channel and the sizes of the inspection value and the distribution extreme value.

Optionally, the obtaining module is further configured to obtain charging information and an average arrival rate of the short message channel.

Optionally, the analysis module is further configured to calculate a score of the short message channel.

A short message channel distribution system comprises a processor and a storage medium, wherein the storage medium stores a short message channel distribution method which is executed by the system.

A computer-readable storage medium storing a computer program which, when executed by a processor, performs a short message channel distribution method as set forth in any one of the above.

Compared with the prior art, the technical scheme provided by the invention has the following beneficial effects:

the short message channels are subjected to inspection priority division, the distribution extreme value of the short message channel is obtained, and the last two digits of the mobile phone number are compared with the distribution extreme value of the short message channel, so that the connection between the mobile phone number and the short message channel is established, the short messages distributed by the short message channel with strong load capacity are more, the load capacity is weak, the distributed short messages are fewer, the utilization rate of the short message channel is improved, the stability of the short message channel is improved, meanwhile, the short messages distributed by the same mobile phone number can be distributed by using the same short message channel, the short message distribution has continuity, and better experience of a user is provided.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.

Fig. 1 is a flowchart of a method, an apparatus, and a system for distributing short message channels according to an embodiment of the present invention.

Detailed Description

The present invention will be described in further detail with reference to examples, which are illustrative of the present invention and are not to be construed as being limited thereto.

As shown in fig. 1, a method for distributing short message channels includes the following steps: the method comprises the following steps of obtaining a short message channel list, wherein the short message channel list comprises more than two short message channels, and dividing the inspection priority of the short message channels based on the load capacity of the short message channels, wherein the inspection priority of the short message channels is divided, and the method comprises the following steps: acquiring the load capacity of more than one short message channel, and configuring the distribution flow proportion of each short message channel according to the load capacity, wherein the sum of the distribution flow proportions is 1; according to the proportion value of each distribution flow proportion, the lower the proportion value is, the higher the inspection priority is, and the classification is carried out.

Firstly, the distribution flow proportion of each short message channel is configured in a background management system, specifically, if the number of the short message channels is three, namely a short message channel A, a short message channel B and a short message channel C, the load capacity of the short message channel A is 100qps, the load capacity of the short message channel B is 200qps, and the load capacity of the short message channel C is 125qps, the distribution flow proportion of the short message channel A is calculated in a manner of 100qps/(100qps +200qps +125 qps): 100% ≈ 24%; the distribution flow proportion of the short message channel B is calculated in a mode of 200qps/(100qps +200qps +125qps) × 100% and approximately equals 47%; the distribution flow proportion of the short message channel C is calculated in a mode of 125qps/(100qps +200qps +125qps) × 100% ≈ 29%, at the moment, the distribution flow proportion of the short message channel A is smaller than the distribution flow proportion of the short message channel C is smaller than the distribution flow proportion of the short message channel B, the inspection priority value of the short message channel A is the highest, the inspection priority value of the short message channel B is the lowest, and the distribution flow proportion of each short message channel is stored into a database, wherein the database can be an MYSQL database.

Calculating the distribution extreme value of each group of short message channels according to the inspection priority and the load capacity, wherein the distribution extreme value of each group of short message channels is calculated, and the method comprises the following steps: acquiring the load capacity of the short message channel and the load capacity of all the short message channels with higher inspection priority than the current short message channel, and calculating the total split load; calculating the total load sum of the load capacity of all the short message channels, and calculating the ratio of the split load sum to the total load sum according to the split load sum; obtaining a distribution extreme value according to the ratio; and repeating the steps to obtain the distribution extreme value of each group of short message channels.

Taking the three groups of short message channels as an example, the calculation mode of the ratio of the split load sum of the short message channel a to the total load sum is 100qps/(100qps +200qps +125qps) × 100% ≈ 24%, and the distribution extreme value is 24 at this time; the calculation mode of the ratio of the split load sum of the short message channel C to the total load sum is (100qps +125qps)/(100qps +200qps +125qps) × 100% ≈ 53%, and the distribution extreme value is 53 at this moment; the calculation mode of the ratio of the total split load sum of the short message channel B to the total load sum is (100qps +125qps +200qps)/(100qps +200qps +125qps) × 100% ≈ 100%, and the distribution extreme value is 100 at this time.

When a short message issuing task is received, a mobile phone number needing to issue a short message is obtained, a check value is obtained according to the mobile phone number, the check value is obtained according to the mobile phone number, wherein the check value is the last two digits of the mobile phone number, when the short message issuing task is performed, the task comprises the mobile phone number issued by the short message and short message content, and the combination mode is 100 because the last two digits of the mobile phone number are combined into 00-99.

Judging the sizes of the inspection value and the distribution extreme value, and if the inspection value is smaller than the distribution extreme value, executing a short message issuing task according to the inspection priority; if the check value is greater than or equal to the distribution extreme value, the check value and the distribution extreme value of the short message channel of the next check priority are judged.

Taking the above-mentioned short message channel a, short message channel B and short message channel C as an example, if the last two digits of the processed mobile phone number are 77, when the short message channel a is checked, because 77 is greater than the distribution extremum 24 of the short message channel a, at this time, the short message channel a does not conform to the short message issuing condition, then the short message channel C with the checking priority lower than the short message channel a is selected, at this time, because 77 is greater than the distribution extremum 53 of the short message channel C, the short message channel C also does not conform to the short message channel issuing condition, and then the short message channel B with the checking priority lower than the short message channel C, at this time, because 77 is less than the distribution extremum 100 of the short message channel B, the short message channel B conforms to the short message issuing condition, thereby obtaining that the short message received by the mobile phone number with the last two digits of the mobile phone number 77 needs to be issued through the short message channel B, and further achieving the purpose of short message channel issuing.

Meanwhile, for the same mobile phone number, because the last two digits of the mobile phone number are determined, no matter how many times the short message sending tasks of the mobile phone number are sent, the short message sending tasks are sent through the same short message channel, so that the short messages received on the mobile phone number are guaranteed to be the same channel number of the short message channel, the load capacity of the short message channel is distinguished, the utilization rate of the short message channel with strong load capacity is improved, and the utilization rate of the short message channel with weak load capacity is reduced.

In this embodiment, the short message sending task may be understood as a request task that a merchant wants to send a short message to a short message platform when needing to send the short message to a user according to a service requirement, such as performing identity authentication, advertising service information, and the like, and when receiving the short message sending task, short message sending information corresponding to the short message sending task is obtained, where the short message sending information may be included in the short message sending task, that is, the short message sending task carries the short message sending information, specifically, the short message sending information may include short message sending content, short message type, short message sender, short message receiver, and the like, where the short message sender may be understood as each merchant platform, and the short message receiver may be understood as a consumer.

When more than two distribution flow ratio values are the same, acquiring the average arrival rate of the short message channel in a preset time period and the charging information of the short message channel; calculating the score of the short message channel according to the average arrival rate and the charging information of the short message channel; the higher the score of the short message channel is set, the higher the inspection priority is.

The average arrival rate of the short message channel in the preset time period can be understood as the success rate of sending the short message to the user terminal in the preset time period when the short message channel executes the short message sending task or sends the short message based on the short message channel, for example, the average arrival rate of the short message channel in the preset time period can include the success rate of sending the short message to the user terminal in 10s by the channel in a time of tracing back 10 days from the current time; for example, 1000 short messages are sent based on the short message channel D within 10 days, wherein if the short messages are successfully sent to 850 user terminals within 10s, the average arrival rate of the short message channel D is 85%; the charging information of the short message channel can be understood as the charging standard for sending a short message based on the short message channel, for example, the charging standard for sending a short message based on the short message channel D is 1 wool.

Then, setting channel weight according to the average arrival rate and the charging standard of the short message channel, wherein the channel weight can be set by a controller of the short message platform according to needs, and can be set according to the busy degree of the short message channel, wherein the more busy the short message channel is, the smaller the set channel weight is, otherwise, the more idle the short message channel is, the larger the set channel weight is; the setting can also be performed according to the speed of sending the short message through the short message channel, wherein the faster the short message sending speed of the short message channel is, the larger the set channel weight is, and conversely, the slower the short message sending speed of the short message channel is, the smaller the set channel weight is, for example, the score of the short message channel corresponding to each short message channel can be calculated according to the following formula: average arrival rate 100 × 35% + charging information 1000 × 15% + channel weight 50%.

It should be noted that the score of the short message channel may be evaluated and determined in real time, or may be evaluated and updated every preset time, or the current latest score of the short message channel determined each time may replace the original score of the short message channel.

A channel distribution device comprises an acquisition module, a short message channel list determining module, an execution module and an analysis module;

the acquisition module is used for acquiring the sending content of the short message when receiving the short message sending request, and is also used for acquiring the charging information and the average arrival rate of the short message channel; the short message channel list determining module is used for acquiring a short message channel list, wherein the short message channel list comprises more than two short message channels; the execution module is used for executing the short message issuing task according to the inspection priority when the inspection value is smaller than the distribution extreme value; the analysis module is used for judging the inspection priority and the inspection value of the short message channel and the size of the distribution extreme value, and the analysis module is also used for calculating the score of the short message channel.

A short message channel distribution system comprises a processor and a storage medium, wherein the storage system in the storage medium executes any one of the short message channel distribution methods.

A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, performs any one of the above-mentioned short message channel distribution methods.

More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wire segments, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless section, wire section, fiber optic cable, RF, etc., or any suitable combination of the foregoing.

In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules, or units is only one type of division of logical functions, and there may be other divisions in actual implementation, for example, multiple units, modules, or components may be combined or integrated into another device, or some features may be omitted, or not executed.

The units may or may not be physically separate, and components displayed as units may be one physical unit or a plurality of physical units, that is, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.

In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.

In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication section, and/or installed from a removable medium. The computer program, when executed by a Central Processing Unit (CPU), performs the above-described functions defined in the method of the present application. It should be noted that the computer readable medium mentioned above in the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. The computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing.

The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.

The above description is only an embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions within the technical scope of the present invention are intended to be covered by the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

10页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种基于本地设备的局域无线控制及网络通讯系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类