WO2020000664A1 - 短信分流方法、装置、计算机设备和存储介质 - Google Patents

短信分流方法、装置、计算机设备和存储介质 Download PDF

Info

Publication number
WO2020000664A1
WO2020000664A1 PCT/CN2018/105227 CN2018105227W WO2020000664A1 WO 2020000664 A1 WO2020000664 A1 WO 2020000664A1 CN 2018105227 W CN2018105227 W CN 2018105227W WO 2020000664 A1 WO2020000664 A1 WO 2020000664A1
Authority
WO
WIPO (PCT)
Prior art keywords
short message
gateway
short
sending
template
Prior art date
Application number
PCT/CN2018/105227
Other languages
English (en)
French (fr)
Inventor
张文聪
曹敏
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2020000664A1 publication Critical patent/WO2020000664A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/08Load balancing or load distribution
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/18Service support devices; Network management devices
    • H04W88/184Messaging devices, e.g. message centre

Definitions

  • the present application relates to a method, a device, a computer device, and a storage medium for shunting short messages.
  • Enterprise short messages are generally sent and received through short message gateways provided by operators.
  • the traditional method is to increase the number of short message gateways, classify and store short messages according to the short message number through a classification algorithm, and then push the short messages to the corresponding short message gateway for sending.
  • the inventors realized that although the traditional method solves the problem of sending short messages, the utilization of the short message gateway will decrease after the amount of short messages sent decreases, resulting in a waste of resources.
  • a method, an apparatus, a computer device, and a storage medium for distributing short messages are provided.
  • a short message shunting method includes:
  • the shunting mode In the shunting mode, obtaining the second short message number corresponding to the second short message template in the sending table, and determining the shunt gateway of the first short message gateway from the second short message gateway according to the second short message number; Each of the second short message templates corresponds to one second short message gateway; and
  • a short message shunting device includes:
  • a monitoring module configured to monitor the number of first short messages corresponding to the first short message template in the sending table; the first short message template corresponds to the first short message gateway;
  • a judging module configured to enable the offload mode for the first short message gateway when the number of first short messages corresponding to the first short message template exceeds a threshold
  • a selection module configured to obtain the second short message quantity corresponding to the second short message template in the sending table in the shunt mode, and determine the first short message from the second short message gateway according to the second short message quantity;
  • a sending module configured to send and send a part of the short message corresponding to the first short message template through the shunt gateway.
  • a computer device includes a memory and one or more processors.
  • the memory stores computer-readable instructions.
  • the one or more processors are executed. The following steps:
  • the shunting mode In the shunting mode, obtaining the second short message number corresponding to the second short message template in the sending table, and determining the shunt gateway of the first short message gateway from the second short message gateway according to the second short message number; Each of the second short message templates corresponds to one second short message gateway; and
  • One or more non-volatile storage media storing computer-readable instructions.
  • the computer-readable instructions When executed by one or more processors, the one or more processors execute the following steps:
  • the shunting mode In the shunting mode, obtaining the second short message number corresponding to the second short message template in the sending table, and determining the shunt gateway of the first short message gateway from the second short message gateway according to the second short message number; Each of the second short message templates corresponds to one second short message gateway; and
  • FIG. 1 is an application scenario diagram of a short message shunting method according to one or more embodiments.
  • FIG. 2 is a schematic flowchart of a short message shunting method according to one or more embodiments.
  • FIG. 3 is a schematic flowchart of a step of obtaining the number of second short messages to be sent according to one or more embodiments.
  • FIG. 4 is a schematic flowchart of a short message shunting method in another embodiment.
  • FIG. 5 is a block diagram of a short message shunting device according to one or more embodiments.
  • FIG. 6 is a block diagram of a computer device according to one or more embodiments.
  • the short message shunting method provided in this application can be applied to the application environment shown in FIG. 1.
  • the plurality of terminals 102 communicate with the server 104 through a network.
  • the terminal 102 may be, but is not limited to, a short message gateway, a short message cat, or other devices that communicate with short message operators.
  • the server 104 may be implemented by an independent server or a server cluster composed of multiple servers.
  • the terminal 102 may be a short message gateway, and a plurality of short message gateways are established to form a gateway pool.
  • the short message gateways in the gateway pool all communicate with the server 104.
  • the communication method between the short message gateway and the server 104 may be USB or Internet. , LAN, Bluetooth, Wi-Fi or ZigBee protocol.
  • the server 104 includes a database, and the database is configured to store the first to-be-sent short message and the second to-be-sent short message.
  • a sending table is established in the database through the server 104, and the first to-be-sent short message and the second to-be-sent short message are stored in
  • a plurality of task processes are established in the server 104, and the first to-be-sent short message and the second to-be-sent short message in the sending table are established by means of task process access. Send to the terminal 102 for short message transmission.
  • the server 104 establishes a monitoring process.
  • the monitoring process is used to monitor the number of short messages corresponding to each short message template in the sending table.
  • a shunt mode corresponding to the short message gateway of the short message template is enabled. It is worth noting that the short message template that exceeds the threshold is determined as the first short message template, then the other short message templates in the sending table are determined as the second short message template, and the second short message template may be one or two or more.
  • a method for offloading a short message is provided.
  • the method is applied to the server in FIG. 1 as an example, and includes the following steps:
  • Step 202 Monitor the number of first short messages corresponding to the first short message template in the sending table; the first short message template corresponds to the first short message gateway.
  • the sending table can be set in the database of the server. After the user edits the short message, the short message data is sent to the server through the server interface. When the server receives the short message data, the short message data is stored in the sending table.
  • the short message gateway is a device that interacts with the operator. The short message gateway can send short messages to the operator, and can also receive reply short messages. It is worth noting that the first and the second distinguish the detection objects in the sending table in this embodiment, and do not limit the type of the short message.
  • a monitoring program can also be established in the server.
  • the monitoring program can monitor the number of short messages of each type of short message template in the sending table.
  • the first short message number of the first short message template in the sending table can be monitored by the monitoring program. It is noted that each short message template corresponds to a short message gateway, and the first short message template corresponds to the first short message gateway.
  • step 204 when the number of first short messages corresponding to the first short message template exceeds a threshold, the offload mode for the first short message gateway is enabled.
  • the threshold can be set in the server in advance, and in the retransmission table, each SMS template corresponds to a threshold for the number of SMS.
  • the threshold for the number of SMS can be determined according to the maximum processing capacity of the corresponding SMS gateway. By setting the threshold, the backlog of SMS can be avoided during sending In the table, the SMS cannot be sent in time.
  • each SMS gateway can enable the shunt mode.
  • the shunt mode corresponding to the short message gateway can be turned on.
  • the opening of the shunt mode is helpful to reduce the pressure of sending short messages of the short message gateway. , Facilitate the timely sending of text messages.
  • Step 206 In the shunt mode, obtain the number of second short messages corresponding to the second short message template in the sending table, and determine the shunt gateway of the first short message gateway from the second short message gateway according to the second short message number; Corresponds to a second SMS gateway.
  • the second short message template may be one or more than two.
  • the second short message gateway is not limited here. In this embodiment, other short message gateways that do not need to enable the shunt mode are used as the second short message gateway.
  • the shunt gateway of the first short message gateway will also be selected from the second short message gateway.
  • the role of the shunt gateway is to perform the short message gateway. It is worth explaining that the shunting gateway of the short message is relative. In essence, the shunting gateway needs to complete the sending task of the short message corresponding to the second short message template while achieving the shunting function.
  • the method for obtaining the number of second short messages corresponding to the second short message template in the sending table in this embodiment may be obtained by monitoring through a monitoring program in the server, or may be determined by experience values.
  • each The SMS gateways correspond to the sending of SMS in a business scenario. Generally speaking, within a fixed time interval, such as within 24 hours, there is a certain regularity for sending SMS messages. Therefore, it is possible to obtain the number of second SMS messages based on experience. of. After obtaining the second number of short messages, the shunt gateway can be determined according to the second number of short messages of the second short message gateway.
  • step 208 a part of the short messages corresponding to the first short message template is sent to the short message through the shunt gateway.
  • the distribution gateway After determining the shunt gateway, you need to assign how to send the short message corresponding to the first short message template. For the first short message gateway, you can assign some of the short messages corresponding to the first short message template to the first short message gateway and the other short messages corresponding to the first short message template.
  • the distribution gateway performs the distribution transmission.
  • each short message template corresponds to a short message gateway, and the first short message template corresponds to the first short message gateway.
  • the first short message quantity exceeds a threshold, , Enable the shunt mode of the first short message gateway, and in the shunt mode, obtain the second short message number corresponding to the second short message template in the sending table, and determine the shunt gateway of the first short message gateway from the second concerned gateway according to the second short message number
  • the second short message gateway corresponds to the second short message template.
  • a part of the short messages corresponding to the first short message template is sent by the shunt gateway.
  • the second short message gateway as the offload gateway, it can cope with the sudden increase of short messages of a short message gateway, and simultaneously improve the utilization rate of the short message gateway.
  • a schematic flowchart of the steps for obtaining the quantity of the second short message to be sent is provided. Referring to FIG. 3, the method specifically includes:
  • Step 302 Obtain historical data of the second short message gateway.
  • the historical data includes the sending amount of short messages in each time period.
  • Step 304 Obtain the sending rate curves of the second short message gateway according to the historical data.
  • the sending rate curve may be data collected within a fixed time interval, such as data collected within 24 hours.
  • the abscissa of the curve can be accurate to minutes, and the unit of the ordinate can be one hundred, so the sending rate curve can reflect the sending amount of short messages per minute within 24 hours.
  • the sending rate curve can be data collected within one month or within one year.
  • multiple levels of sending rate curves can be configured to achieve more accurate invocation, such as configuring the length of the time axis
  • the transmission rate curve for one year, the unit of the time axis is day, and the transmission rate curve of the time axis length is one month, and the unit of the time axis is hour.
  • the precise time axis length is configured as the transmission rate curve of one day.
  • the timeline is in minutes.
  • the second short message gateway can obtain the short message sending amount per minute within 24 hours.
  • abnormal data shows that the number of short messages sent per minute continues to be at the maximum. status.
  • Step 306 Obtain the second short message quantity of the second short message template in the sending table according to the sending rate curve.
  • the sending rate curve can be used to calculate the total number of short messages sent by the second short message gateway over a period of time, so that the number of second short messages of the second short message gateway can be known.
  • the transmission rate curve of each second short message gateway is obtained by analyzing historical data, so when obtaining the number of second short messages, only the transmission rate curve corresponding to the second short message gateway can be called to obtain the first The second SMS quantity of the second SMS gateway does not need to monitor the data in the sending table again.
  • each second short message gateway can be scored to obtain the evaluation score of each second short message gateway.
  • the first short message gateway needs to be scored, and the score is based on the sending rate curve of each short message gateway. It is determined so that the maximum sending rate of the second short message gateway can be known in the sending rate curve. The maximum sending rate indicates the processing capacity of the second short message gateway, and the short message sending margin of the second short message gateway is currently available. The amount of text messages received. According to the processing capability of the short message gateway and the current short message sending margin, the current channel condition of the second short message gateway can be judged to score the second short message gateway.
  • the offload gateway of the first short message gateway it is necessary to first obtain the evaluation score of each second short message gateway, and then select the second short message gateway with the highest evaluation score as the second short message gateway corresponding to each second short message gateway.
  • the shunt gateway of this SMS gateway It is worth noting that the selection of the shunt gateway needs to refer to the evaluation score and the second short message number of the second short message gateway. Therefore, in the judgment logic of the server, the second short message gateway with the highest evaluation score is selected as the shunt gateway, and then the first Whether the number of short messages still exceeds the threshold. If so, determine the shunt gateway again.
  • the short message sending margin decreased sharply, and its evaluation score also decreased. Then determine again In the case of a shunt gateway, the second short message gateway with the highest evaluation score is replaced with another second short message gateway. Above, the first short message gateway always selects the second short message gateway with the highest evaluation score as its shunt gateway.
  • the number of shunt gateways is based on The number of first short messages and the number of second short messages are determined.
  • the priority information of the short message template is first obtained, and the short message template priority information may be set in the server in advance.
  • the short message template priority information may be set in the server in advance.
  • the priority information of the short message template is first obtained, and the short message template priority information may be set in the server in advance.
  • the evaluation score interval when selecting a shunt gateway, only the second short message gateway in the evaluation score interval is selected as the shunt gateway. Because there are many short message gateways, there may be multiple short message gateways at the same time that need to be offloaded by the offload gateway. By selecting the priority information of the short message template, you can ensure that the higher priority short message templates are offloaded.
  • a method for offloading through a short message gateway is provided, as shown in FIG. 4, which is as follows:
  • Step 402 Determine a first number range of the short message sent by the shunt gateway according to a proportion of the partial short messages in the first short message quantity in the first short message template.
  • the first number range of the short message sent by the shunt gateway refers to the range of digits in the short message sending number, and the sending number may be a number such as a mobile phone number.
  • the short message sending number is a mobile phone number
  • the mobile phone number is an 11-digit array.
  • certain numbers of the 11 digits can be selected as the flag bits, and then Probability and statistics rule, determine the first number interval through the proportion of some short messages sent by the shunt gateway in the first short message quantity.
  • select 3 digits as the flag bit and 3 digits can select the 3 digit mantissa of the mobile phone number. Therefore, the 3-digit mantissa varies between 000-999. For example, some short messages sent by the distribution gateway account for 40% of the number of the first short messages, and the first number range can be set to 000-399. It is worth noting that the selection of the flag bits can be selected according to actual needs. In addition, the first number interval can only meet the statistical law of probability, and no specific value is limited.
  • Step 404 Determine, according to the short message allocation amount and the first number interval, the second number interval in which each distribution gateway sends a short message.
  • the short message allocation amount refers to the short message sending amount corresponding to the first short message template allocated by each second short message gateway, and the second number range is within the first number range.
  • the remaining processing capacity of each of the distribution gateways can be obtained according to the second short message quantity of each of the distribution gateways and the maximum processing capability of each of the distribution gateways. Based on the remaining processing capabilities, the SMS allocation.
  • the short message gateway A, the short message gateway B, the short message gateway C, and the short message gateway D respectively occupy 20%, 20%, 30%, and 30%
  • the short message gateway A The second number range is 000-079
  • the second number range of SMS gateway B is 080-159
  • the second number range of SMS gateway C is 160-279
  • the second number range of SMS gateway D is 280-399.
  • the above is only for convenience of explanation, and does not limit the selection of the second number interval. As long as it satisfies the statistical law of probability, the selection of the second number interval may also be segmented or discrete.
  • Step 406 Send the short message corresponding to the first short message template in the second number interval through the corresponding distribution gateway.
  • this step through the setting of the number interval and the corresponding judgment logic set in the server, when the short message data is pushed in the sending table to the corresponding short message gateway that needs to be offloaded, it is first necessary to determine whether the number of the short message falls into the first number interval. If yes, then find the corresponding distribution gateway for short message transmission by judging that the number falls within the second number interval.
  • the mobile phone number of the first template short message is 188XXXX0246, and the first number range is 000-399. From this, it can be determined that the number falls into the first number range, the second number range of SMS gateway A is 000-079, and the short message gateway.
  • the second number range of B is 080-159
  • the second number range of SMS gateway C is 160-279
  • the second number range of SMS gateway D is 280-399. It can be determined that the number falls into the In the second number interval, the short message is transmitted by the short message gateway C.
  • the short message corresponding to the first short message template is accurately pushed to the corresponding offload gateway through the flag bit in the number sent by the short message.
  • the offload mode of the short message gateway is enabled.
  • the SMS gateway when the SMS gateway is abnormally connected to the operator, the SMS gateway ’s SMS sending capability will drop sharply. Even if the number of corresponding SMS messages in the sending table does not exceed the threshold, the SMS gateway cannot process the messages in the sending table in time. . Therefore, in this case, the offload mode of the short message gateway needs to be enabled.
  • the abnormal connection between the short message gateway and the operator may cause the short message sending capability of the short message gateway to decline or directly fail. If the abnormal connection only causes the short sending capability to decrease, then the actual short message sending capability of the current short message gateway can be detected, and then the shunt mode is enabled. If the connection failure causes a failure, all the short messages of the first short message template will be sent by the offload gateway.
  • steps in the flowcharts of FIGS. 2-4 are sequentially displayed in accordance with the directions of the arrows, these steps are not necessarily performed in the order indicated by the arrows. Unless explicitly stated in this document, the execution of these steps is not strictly limited, and these steps can be performed in other orders. Moreover, at least a part of the steps in Figure 2-4 may include multiple sub-steps or stages. These sub-steps or stages are not necessarily performed at the same time, but may be performed at different times. These sub-steps or stages The execution order of is not necessarily performed sequentially, but may be performed in turn or alternately with at least a part of another step or a sub-step or stage of another step.
  • a short message shunting device which includes: a monitoring module 502, a determination module 504, a selection module 506, and a sending module 508, where:
  • the monitoring module 502 is configured to monitor the number of first short messages corresponding to the first short message template in the sending table; the first short message template corresponds to the first short message gateway.
  • the judging module 504 is configured to enable the offload mode for the first short message gateway when the number of first short messages corresponding to the first short message template exceeds a threshold.
  • a selection module 506 is configured to obtain the second short message quantity corresponding to the second short message template in the sending table in the shunt mode, and determine the shunt gateway of the first short message gateway from the second short message gateway according to the second short message quantity; the second The short message templates correspond to a second short message gateway.
  • the sending module 508 is configured to send a part of the short message corresponding to the first short message template to the short message through the shunt gateway.
  • the selection module 506 is further configured to obtain historical data of the second short message gateway, where the historical data includes the sending amount of short messages in each time period; and according to the historical data, obtain the second short message gateway respectively.
  • a sending rate curve of the second short message gateway; according to the sending rate curve, the number of the second short messages of the second short message gateway in the sending table is obtained.
  • the selection module 506 is further configured to obtain a sending rate curve of the second short message gateway, and calculate the evaluation scores of the plurality of second short message gateways according to the sending rate curve;
  • the second short message gateway is used as a distribution gateway of the first short message gateway.
  • the selection module 506 is further configured to obtain a sending rate curve of the second short message gateway, calculate evaluation scores of the plurality of second short message gateways according to the sending rate curve, obtain priority information of the first short message template, and select priority.
  • the second short message gateway with the evaluation score corresponding to the level information serves as the offload gateway of the first short message gateway.
  • the sending module 508 is further configured to obtain the remaining processing capacity of each distribution gateway according to the second short message quantity of each distribution gateway and the maximum processing capacity of each said distribution gateway, and determine each distribution according to the remaining processing capacity. The amount of text messages allocated by the gateway.
  • the sending module 508 is further configured to determine a first number interval of the short message sent by the distribution gateway according to the proportion of some short messages in the first number of short messages; and determine each sub-flow according to the short message allocation amount and the first number interval.
  • the gateway sends the second number interval of the short message; and sends the short message corresponding to the first short message template in the second number zone through the corresponding distribution gateway.
  • an abnormality judgment module which is configured to enable the shunting of the short message gateway and / or the second short message gateway when an abnormal connection between the first short message gateway and / or the second short message gateway and the operator is detected mode.
  • Each module in the above-mentioned short message shunting device may be implemented in whole or in part by software, hardware, and a combination thereof.
  • the above-mentioned modules may be embedded in the hardware in or independent of the processor in the computer device, or may be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
  • a computer device is provided.
  • the computer device may be a server, and its internal structure diagram may be as shown in FIG. 6.
  • the computer device includes a processor, a memory, a network interface, and a database connected through a system bus.
  • the processor of the computer device is used to provide computing and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium stores an operating system, computer-readable instructions, and a database.
  • the internal memory provides an environment for the operation of the operating system and computer-readable instructions in a non-volatile storage medium.
  • the database of the computer device is used to store short message data, and a sending table is established in the database. The short message data received by the computer device is stored in the sending table.
  • the network interface of the computer device is used to communicate with external terminals through a network connection.
  • the external terminal can be a short message gateway.
  • the short message gateway can be sent from the sending table to the interface through the interface. SMS data is fetched and sent.
  • the computer-readable instructions are executed by a processor to implement a short message shunting method.
  • FIG. 6 is only a block diagram of a part of the structure related to the solution of the application, and does not constitute a limitation on the computer equipment to which the solution of the application is applied. Include more or fewer parts than shown in the figure, or combine certain parts, or have a different arrangement of parts.
  • a computer device includes a memory and one or more processors.
  • the memory stores computer-readable instructions.
  • the steps of the short message shunting method provided in any embodiment of the present application are implemented.
  • One or more non-volatile storage media storing computer-readable instructions, and when the computer-readable instructions are executed by one or more processors, the one or more processors implement the short message provided in any one of the embodiments of the present application Steps of the shunt method.
  • Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory can include random access memory (RAM) or external cache memory.
  • RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

一种短信分流方法,包括:监控发送表中第一短信模板对应的第一短信数量,第一短信模板与第一短信网关相对应,当第一短信模板对应的第一短信数量超过阈值时,开启对第一短信网关的分流模式,在所述分流模式下,分别获取发送表中第二短信模板对应的第二短信数量,根据第二短信数量,从第二短信网关中确定第一短信网关的分流网关,第二短信模板均对应一个第二短信网关,将第一短信模板对应的部分短信通过分流网关进行短信分流发送。

Description

短信分流方法、装置、计算机设备和存储介质
相关申请的交叉引用
本申请要求于2018年6月27日提交中国专利局,申请号为201810675800.1,申请名称为“短信分流方法、装置、计算机设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及一种短信分流方法、装置、计算机设备和存储介质。
背景技术
随着企业短信发送量的日益增长,消息发送平台的收发能力也进一步增强。企业短信一般通过运营商提供的短信网关进行短信的发送与接收。在一些传统节日或者购物节日时,短信的发送量呈突发性增长。如果不做一些处理,将导致短信无法及时发送给客户。传统的方法是通过增加短信网关的数量,通过分类算法根据短信号码,对短信进行分类存储,然后将短信推送至对应的短信网关进行发送。
然而,发明人意识到,传统方式虽然解决了短信发送的问题,然而在短信发送量下降后,短信网关的利用率将下降,造成资源的浪费。
发明内容
根据本申请公开的各种实施例,提供一种短信分流方法、装置、计算机设备和存储介质。
一种短信分流方法,所述方法包括:
监控发送表中第一短信模板对应的第一短信数量;所述第一短信模板与第一短信网关相对应;
当第一短信模板对应的第一短信数量超过阈值时,开启对所述第一短信网关的分流模式;
在所述分流模式下,分别获取发送表中第二短信模板对应的第二短信数量,根据所述第二短信数量,从所述第二短信网关中确定所述第一短信网关的分流网关;所述第二短信模板均对应一个所述第二短信网关;及
将所述第一短信模板对应的部分短信通过所述分流网关进行短信分流发送。
一种短信分流装置包括:
监控模块,用于监控发送表中第一短信模板对应的第一短信数量;所述第一短信模板与第一短信网关相对应;
判断模块,用于当第一短信模板对应的第一短信数量超过阈值时,开启对所述第一短信网关的分流模式;
选择模块,用于在所述分流模式下,分别获取发送表中第二短信模板对应的第二短信数量,根据所述第二短信数量,从所述第二短信网关中确定所述第一短信网关的分流网关;所述第二短信模板均对应一个所述第二短信网关;及
发送模块,用于将所述第一短信模板对应的部分短信通过所述分流网关进行短信分流发送。
一种计算机设备,包括存储器和一个或多个处理器,所述存储器中储存有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述一个或多个处理器执行以下步骤:
监控发送表中第一短信模板对应的第一短信数量;所述第一短信模板与第一短信网关相对应;
当第一短信模板对应的第一短信数量超过阈值时,开启对所述第一短信网关的分流模式;
在所述分流模式下,分别获取发送表中第二短信模板对应的第二短信数量,根据所述第二短信数量,从所述第二短信网关中确定所述第一短信网关的分流网关;所述第二短信模板均对应一个所述第二短信网关;及
将所述第一短信模板对应的部分短信通过所述分流网关进行短信分流发送。
一个或多个存储有计算机可读指令的非易失性存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行以下步骤:
监控发送表中第一短信模板对应的第一短信数量;所述第一短信模板与第一短信网关相对应;
当第一短信模板对应的第一短信数量超过阈值时,开启对所述第一短信网关的分流模式;
在所述分流模式下,分别获取发送表中第二短信模板对应的第二短信数量,根据所述第二短信数量,从所述第二短信网关中确定所述第一短信网关的分流网关;所述第二短信模板均对应一个所述第二短信网关;及
将所述第一短信模板对应的部分短信通过所述分流网关进行短信分流发送。
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征和优点将从说明书、附图以及权利要求书变得明显。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。
图1为根据一个或多个实施例中短信分流方法的应用场景图。
图2为根据一个或多个实施例中短信分流方法的流程示意图。
图3为根据一个或多个实施例中获取第二待发送短信的数量步骤的流程示意图。
图4为另一个实施例中短信分流方法的流程示意图。
图5为根据一个或多个实施例中短信分流装置的框图。
图6为根据一个或多个实施例中计算机设备的框图。
具体实施方式
为了使本申请的技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
本申请提供的短信分流方法,可以应用于如图1所示的应用环境中。多个终端102通过网络与服务器104进行通信。其中,终端102可以但不限于是短信网关、短信猫或其他与短信运营商通信的设备,服务器104可以用独立的服务器或者是多个服务器组成的服务器集群来实现。
进一步的,终端102可以是短信网关,多个短信网关之间建立联系,构成网关池,网关池中的短信网关均与服务器104进行通讯连接,短信网关与服务器104的通讯方式可以是USB、互联网、局域网、蓝牙、Wi-Fi或ZigBee协议等通信方式。
进一步的,服务器104包括数据库,数据库用于存储第一待发送短信和第二待发送短信,另外,通过服务器104在数据库中建立了发送表,第一待发送短信和第二待发送短信存储在数据库的发送表中,服务器104与终端102建立通讯连接之后,服务器104中建立起多个任务进程,通过任务进程取数的方式,将发送表中的第一待发送短信和第二待发送短信发送至终端102进行短信发送。
进一步的,服务器104还是建立监控进程,监控进程用于监控发送表中各个短信模板对应的短信数量,当短信模板对应的短信数量超过阈值时,开启对该短信模板对应短信网关的分流模式。值得说明的是,超过阈值的短信 模板确定为第一短信模板,那么,发送表中其他短信模板确定为第二短信模板,第二短信模板可以是一个,也可以是两个或多个。
在其中一个实施例中,如图2所示,提供了一种短信分流方法,以该方法应用于图1中的服务器为例进行说明,包括以下步骤:
步骤202,监控发送表中第一短信模板对应的第一短信数量;第一短信模板与第一短信网关相对应。
发送表可以设置在服务器的数据库中。用户编辑短信之后,通过服务器接口将短信数据发送至服务器,服务器在接收到短信数据时,将短信数据存储在发送表中。短信网关是与运营商进行交互的设备,通过短信网关可以将短信发送至运营商,同时也可以接收回复的短信。值得说明的是,第一和第二在本实施例中为发送表中对检测对象进行区分,并不是对短信的类型进行限定。
具体的,服务器中还可以建立监控程序,监控程序可以监控发送表中各类型短信模板的短信数量,本实施例中,可以通过监控程序监控发送表中第一短信模板的第一短信数量,值得说明的是,每一短信模板对应一个短信网关,第一短信模板对应第一短信网关。
步骤204,当第一短信模板对应的第一短信数量超过阈值时,开启对第一短信网关的分流模式。
阈值可以预先设置在服务器中,再发送表中,每一短信模板均对应一短信数量阈值,该短信数量阈值可以根据其对应短信网关的最大处理能力确定,通过设置阈值,可以避免短信积压在发送表中,导致短信无法及时发送。
本实施例中,每个短信网关均可以开启分流模式,在触发开启分流模式的条件时,可以开启对应于该短信网关的分流模式,分流模式的开启,有利于减轻该短信网关的短信发送压力,利于短信的及时发送。
步骤206,在分流模式下,分别获取发送表中第二短信模板对应的第二短信数量,根据第二短信数量,从第二短信网关中确定第一短信网关的分流网关;第二短信模板均对应一个第二短信网关。
第二短信模板可以是一个,也可以两个以上,这里不对第二短信网关进行限定。本实施例中,将其他不需要开启分流模式的短信网关作为第二短信网关,同时,第一短信网关的分流网关也将从第二短信网关中进行选择,分流网关的作用是为短信网关进行短信分流的网关,值得说明的是,分流网关是相对的,实质上,分流网关在实现分流作用的同时,还需要完成对应第二短信模板的短信的发送任务。
具体的,本实施例中获取发送表中第二短信模板对应的第二短信数量的方式,可以是通过服务器中监控程序进行监控获取,也可以通过经验值进行 判断,需要说明的是,每个短信网关均对应一种业务场景下的短信发送,一般而言,固定时间间隔内,如在24小时内,短信发送量存在一定的规律,因此,依据经验值来获取第二短信数量是可以实现的。在获取第二短信数量之后,从而可以根据第二短信网关的第二短信数量确定分流网关。
步骤208,将第一短信模板对应的部分短信通过分流网关进行短信分流发送。
确定分流网关后,需要分配如何发送第一短信模板对应的短信,对于第一短信网关,可以根据其处理能力为其分配一部分第一短信模板对应的短信,另一部分第一短信模板对应的短信则由分流网关进行分流发送。
上述短信分流方法中,通过监控发送表中第一短信模板对应的第一短信数量,每个短信模板均对应一个短信网关,第一短信模板对应第一短信网关,在第一短信数量超过阈值时,开启第一短信网关的分流模式,在分流模式下,获取发送表中第二短信模板对应的第二短信数量,根据第二短信数量,从第二担心网关中确定第一短信网关的分流网关,第二短信网关对应第二短信模板,在确定分流网关之后,通过分流网关将第一短信模板对应的部分短信进行分流发送。本申请实施例,通过将第二短信网关作为分流网关,即能应对某一短信网关的短信突发增长的情况,同时提高了短信网关的利用率。
在其中一个实施例中,提供一种获取第二待发送短信的数量步骤的示意性流程图,参见图3,具体包括:
步骤302,获取第二短信网关的历史数据,历史数据包括各个时间段短信发送量。
实质上,还需要获取短信网关的历史数据,方便在第二短信网关短信发送量突发增长时,调用第一短信网关的第一短信数量。
步骤304,根据历史数据,分别得到第二短信网关的发送速率曲线。
进一步的,发送速率曲线可以是固定时间间隔内统计的数据,如24小时内统计的数据。曲线的横坐标可以精确到分钟,纵坐标的单位可以是百条,那么通过发送速率曲线可以体现24小时内每分钟的短信发送量。
可选的,发送速率曲线可以是一个月内统计的数据,也可以是一年内统计的数据,另外,可以通过配置多个层级的发送速率曲线,实现更加精确的调用,例如:配置时间轴长度为一年的发送速率曲线,时间轴的单位为天,还配置时间轴长度为一个月的发送速率曲线,时间轴的单位为小时,另外,配置精确的时间轴长度为一天的发送速率曲线,时间轴单位为分钟。通过上述三种曲线,在调用第二短信模板的第二短信数量时,可以先判断当前第二短信网关当天的短信发送量是否超过设定值,若是,则说明该第二短信网关无法承担分流工作,若否,则判断当前小时内的短息发送量是否超过设定值, 若是,则说明该第二短信网关无法承担分流工作,若否,则判断当前分钟的短信发送量是否超过设定值,若是,则说明该第二短信网关无法承担分流工作,若否,则可以认为当前网关可以作为第一短信网关的分流网关。以上仅为一种具体的实施方式,还可以通过其他的配置方式,实现相同或者相近的技术效果。
进一步的,通过获取历史数据,然后通过大数据分析,得到第二短信网关在24小时内每分钟的短信发送量。
进一步的,由于在一业务场景下,均可能存在特定时间短信突发增长的情况,那么在进行大数据分析时,需要隔离这类异常数据,异常数据表现为每分钟的短信发送量持续处于最大状态。
步骤306,根据发送速率曲线,得到发送表中第二短信模板的第二短信数量。
本步骤中,通过发送速率曲线,可以计算第二短信网关在一段时间内的短信发送总量,从而可以知道第二短信网关的第二短信数量。
本申请实施例中,通过对历史数据分析,得到每个第二短信网关的发送速率曲线,从而在获取第二短信数量时,只需要调用对应第二短信网关的发送速率曲线,就可以得到第二短信网关的第二短信数量,无需再次对发送表中的数据进行监测。
在其中一个实施例中,可以对各个第二短信网关进行评分,得到各个第二短信网关的评价得分,实质上,还需要对第一短信网关进行评分,评分是根据各个短信网关的发送速率曲线确定的,从而发送速率曲线中,可以知道第二短信网关的最大发送速率,最大发送速率表示该第二短信网关的处理能力,另外就是第二短信网关的短信发送裕度,即当前可还可以接收的短信发送量。根据短信网关的处理能力和当前短信发送裕度,就可以判断当前第二短信网关的通道情况,以此对第二短信网关进行评分。
进一步的,在确定第一短信网关的分流网关时,首先需要获取各个第二短信网关的评价得分,然后根据各个第二短信网关对应的第二短信数量,选择评价得分最高的第二短信网关作为该短信网关的分流网关。值得说明的是,分流网关的选择需要参考评价得分以及第二短信网关的第二短信数量,因此,在服务器的判断逻辑上,先选择评价得分最高的第二短信网关作为分流网关,再判断第一短信数量是否还是超过阈值,若是,再次确定分流网关,由于此前评价得分最高的分流网关接收一部分第一短信模板对应的短信之后,短信发送裕度急剧下降,其评价得分也降低,那么再次确定分流网关时,评价得分最高的第二短信网关换为其他的第二短信网关,以上,第一短信网关总是会选择评价得分最高的第二短信网关作为其分流网关,分流网关的个数根据 第一短信数量以及第二短信数量确定。
在另一些实施例中,如果发送表中短信模板设置了优先级,那么在确定第一短信网关的分流网关时,首先获取短信模板的优先级信息,在服务器中可以预先设置短信模板优先级信息与评价得分区间的对应关系,在选择分流网关时,只选择评价得分区间内的第二短信网关作为分流网关。由于短信网关众多,在同一时间可能存在多个短信网关需要分流网关进行分流,通过短信模板的优先级信息进行选择,可以保证优先级较高的短信模板优先分流。
在其中一个实施例中,提供一种通过短信网关分流的方法,如图4所示,具体如下:
步骤402,根据第一短信模板的部分短信在第一短信数量中的占比,确定分流网关发送短信的第一号码区间。
本实施例中,分流网关发送短信的第一号码区间指的是短信发送号码中数字的区间,发送号码可以是手机号码等号码。
具体的,短信发送号码是手机号码,手机号码为11位数字的排列,在确定第一号码区间时,可以根据实际需求,以一定的规则选择11位中的若干个数字作为标志位,然后根据概率统计学规律,通过分流网关发送的部分短信在第一短信数量中的占比,确定第一号码区间。
进一步的,选择3位数字作为标志位,3位数字可以选择手机号码的3位尾数。因此,3位尾数在000-999之间变化,例如,分流网关发送的部分短信占第一短信数量的40%,可以设置第一号码区间为000-399。值得说明的是,标志位选择可以根据实际需求选择,另外,第一号码区间只要满足概率统计学规律即可,不对具体数值做限定。
步骤404,根据短信分配量以及第一号码区间,确定各个分流网关发送短信的第二号码区间。
在本实施例中,短信分配量指的是各个第二短信网关分配的第一短信模板对应短信的短信发送量,第二号码区间是在第一号码区间之内的。
在一实施例中,可以根据各个分流网关的第二短信数量以及各个所述分流网关的最大处理能力,得到各个所述分流网关的剩余处理能力,根据所述剩余处理能力,确定各个分流网关的短信分配量。
进一步的,若第一号码区间为000-399,短信网关A、短信网关B、短信网关C以及短信网关D依次占比为20%、20%、30%和30%,那么短信网关A的第二号码区间为000-079、短信网关B的第二号码区间为080-159、短信网关C的第二号码区间为160-279以及短信网关D的第二号码区间为280-399。以上仅为方便说明,并不对第二号码区间的选择进行限定,只要是其满足概率统计学规律,第二号码区间的选择也可以采用分段式、离散式等。
步骤406,将第二号码区间的第一短信模板对应的短信通过对应的分流网关进行发送。
本步骤中,通过号码区间的设置,在服务器中设置的相应的判断逻辑,短信数据在发送表中推送至对应的需要分流的短信网关时,首先需要判断短信的号码是否落入第一号码区间,若是,再通过判断号码落入的第二号码区间找到对应的分流网关进行短息发送。
进一步的,第一模板短信的手机号码为188XXXX0246,第一号码区间为000-399,由此可以判断,号码落入第一号码区间,短信网关A的第二号码区间为000-079、短信网关B的第二号码区间为080-159、短信网关C的第二号码区间为160-279以及短信网关D的第二号码区间为280-399,由此可以判断,该号码落入短信网关C的第二号码区间,该短信有短信网关C进行分流发送。
本申请实施例中,在得到各个第二短信网关的短信分配量之后,通过短信发送的号码中的标志位,将第一短信模板对应的短信精确的推送至对应分流网关中。
在一实施例中,在检测到短信网关与运营商连接异常时,开启短信网关的分流模式。一般而言,短信网关与运营商连接异常时,短信网关的短信发送能力将急剧的下降,即使发送表中对应的短信数量没有超过阈值,但是,该短信网关也不能及时处理发送表中的短信。因此,在这种情况下,需要开启该短信网关的分流模式。
进一步的,短信网关与运营商的连接异常可能导致短信网关的短信发送能力下降,或者直接故障,若连接异常仅导致发送能力下降,那么可以检测当前短信网关实际发送能力,然后开启分流模式,若连接故障导致故障,那么,第一短信模板的短信将全部由分流网关进行发送。
应该理解的是,虽然图2-4的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2-4中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。
在其中一个实施例中,如图5所示,提供了一种短信分流装置,包括:监控模块502、判断模块504、选择模块506和发送模块508,其中:
监控模块502,用于监控发送表中第一短信模板对应的第一短信数量; 第一短信模板与第一短信网关相对应。
判断模块504,用于当第一短信模板对应的第一短信数量超过阈值时,开启对第一短信网关的分流模式。
选择模块506,用于在分流模式下,分别获取发送表中第二短信模板对应的第二短信数量,根据第二短信数量,从第二短信网关中确定第一短信网关的分流网关;第二短信模板均对应一个第二短信网关。
发送模块508,用于将第一短信模板对应的部分短信通过分流网关进行短信分流发送。
在其中一个实施例中,选择模块506还用于获取所述第二短信网关的历史数据,所述历史数据包括各个时间段短信发送量;根据所述历史数据,分别得到所述第二短信网关的发送速率曲线;根据所述发送速率曲线,得到发送表中第二短信网关的所述第二短信数量。
在其中一个实施例中,选择模块506还用于获取第二短信网关的发送速率曲线,根据发送率曲线计算多个第二短信网关的评价得分;根据第二短信数量,选择评价得分最高的第二短信网关作为第一短信网关的分流网关。
在其中一个实施例中,选择模块506还用于获取第二短信网关的发送速率曲线,根据发送率曲线计算多个第二短信网关的评价得分;获取第一短信模板的优先级信息;选择优先级信息对应的评价得分的第二短信网关作为第一短信网关的分流网关。
在其中一个实施例中,发送模块508还用于根据各个分流网关的第二短信数量以及各个所述分流网关的最大处理能力,得到各个分流网关的剩余处理能力,根据剩余处理能力,确定各个分流网关的短信分配量。
在其中一个实施例中,发送模块508还用于根据部分短信在第一短信数量中的占比,确定分流网关发送短信的第一号码区间;根据短信分配量以及第一号码区间,确定各个分流网关发送短信的第二号码区间;将第二号码区间的第一短信模板对应的短信通过对应的分流网关进行发送。
在其中一个实施例中,还包括异常判断模块,用于在检测到第一短信网关和/或第二短信网关与运营商连接异常时,开启短信网关和/或所述第二短信网关的分流模式。
关于短信分流装置的具体限定可以参见上文中对于短信分流方法的限定,在此不再赘述。上述短信分流装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。
在一个实施例中,提供了一种计算机设备,该计算机设备可以是服务器, 其内部结构图可以如图6所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机可读指令和数据库。该内存储器为非易失性存储介质中的操作系统和计算机可读指令的运行提供环境。该计算机设备的数据库用于存储短信数据,在数据库中建立发送表,该计算机设备接收的短信数据均存储于发送表中。该计算机设备的网络接口用于与外部的终端通过网络连接通信,外部的终端可以是短信网关,通过在非易失性存储介质中存储计算机可读指令,可以使短信网关通过接口从发送表对短信数据进行取数发送。该计算机可读指令被处理器执行时以实现一种短信分流方法。
本领域技术人员可以理解,图6中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。
一种计算机设备,包括存储器和一个或多个处理器,存储器中存储有计算机可读指令,计算机可读指令被处理器执行时实现本申请任意一个实施例中提供的短信分流方法的步骤。
一个或多个存储有计算机可读指令的非易失性存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器实现本申请任意一个实施例中提供的短信分流方法的步骤。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一非易失性计算机可读取存储介质中,该计算机可读指令在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。

Claims (20)

  1. 一种短信分流方法,所述方法包括:
    监控发送表中第一短信模板对应的第一短信数量;所述第一短信模板与第一短信网关相对应;
    当第一短信模板对应的第一短信数量超过阈值时,开启对所述第一短信网关的分流模式;
    在所述分流模式下,分别获取发送表中第二短信模板对应的第二短信数量,根据所述第二短信数量,从所述第二短信网关中确定所述第一短信网关的分流网关;所述第二短信模板均对应一个所述第二短信网关;及
    将所述第一短信模板对应的部分短信通过所述分流网关进行短信分流发送。
  2. 根据权利要求1所述的方法,其特征在于,所述分别获取发送表中第二短信模板对应的第二短信数量,根据所述第二短信数量,包括:
    获取所述第二短信网关的历史数据,所述历史数据包括各个时间段短信发送量;
    根据所述历史数据,分别得到所述第二短信网关的发送速率曲线;及
    根据所述发送速率曲线,得到发送表中第二短信网关的所述第二短信数量。
  3. 根据权利要求2所述的短信分流方法,其特征在于,所述根据所述第二短信数量,从所述第二短信网关中确定所述第一短信网关的分流网关,包括:
    获取第二短信网关的发送速率曲线,根据所述发送率曲线计算多个第二短信网关的评价得分;及
    根据所述第二短信数量,选择评价得分最高的第二短信网关作为所述第一短信网关的分流网关。
  4. 根据权利要求2所述的短信分流方法,其特征在于,所述根据所述第二短信数量,从所述第二短信网关中确定所述第一短信网关的分流网关,还包括:
    获取第二短信网关的发送速率曲线,根据所述发送率曲线计算多个第二短信网关的评价得分;及
    获取所述第一短信模板的优先级信息;选择所述优先级信息对应的评价得分的第二短信网关作为所述第一短信网关的分流网关。
  5. 根据权利要求1所述的短信分流方法,其特征在于,在将所述第一短信模板对应的部分短信通过所述分流网关进行短信分流发送之前,还包括:
    根据各个所述分流网关的第二短信数量以及各个所述分流网关的最大处 理能力,得到各个所述分流网关的剩余处理能力;及
    根据所述剩余处理能力,确定各个所述分流网关的短信分配量。
  6. 根据权利要求5所述的短信分流方法,其特征在于,所述将所述第一短信模板对应的部分短信通过所述分流网关进行短信分流发送,包括:
    根据所述部分短信在所述第一短信数量中的占比,确定所述分流网关发送短信的第一号码区间;
    根据所述短信分配量以及所述第一号码区间,确定各个分流网关发送短信的第二号码区间;及
    将所述第二号码区间的所述第一短信模板对应的短信通过对应的分流网关进行发送。
  7. 根据权利要求1至6任一项所述的短信分流方法,其特征在于,还包括:
    在检测到第一短信网关和/或第二短信网关与运营商连接异常时,开启所述短信网关和/或所述第二短信网关的分流模式。
  8. 一种短信分流装置,所述装置包括:
    监控模块,用于监控发送表中第一短信模板对应的第一短信数量;所述第一短信模板与第一短信网关相对应;
    判断模块,用于当第一短信模板对应的第一短信数量超过阈值时,开启对所述第一短信网关的分流模式;
    选择模块,用于在所述分流模式下,分别获取发送表中第二短信模板对应的第二短信数量,根据所述第二短信数量,从所述第二短信网关中确定所述第一短信网关的分流网关;所述第二短信模板均对应一个所述第二短信网关;及
    发送模块,用于将所述第一短信模板对应的部分短信通过所述分流网关进行短信分流发送。
  9. 根据权利要求8所述的装置,其特征在于,所述选择模块5还用于获取所述第二短信网关的历史数据,所述历史数据包括各个时间段短信发送量;
    根据所述历史数据,分别得到所述第二短信网关的发送速率曲线;及
    根据所述发送速率曲线,得到发送表中第二短信网关的所述第二短信数量。
  10. 一种计算机设备,包括存储器及一个或多个处理器,所述存储器中储存有计算机可读指令,所述计算机可读指令被所述一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:
    监控发送表中第一短信模板对应的第一短信数量;所述第一短信模板与第一短信网关相对应;
    当第一短信模板对应的第一短信数量超过阈值时,开启对所述第一短信网关的分流模式;
    在所述分流模式下,分别获取发送表中第二短信模板对应的第二短信数量,根据所述第二短信数量,从所述第二短信网关中确定所述第一短信网关的分流网关;所述第二短信模板均对应一个所述第二短信网关;及
    将所述第一短信模板对应的部分短信通过所述分流网关进行短信分流发送。
  11. 根据权利要求10所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时还执行以下步骤:
    获取所述第二短信网关的历史数据,所述历史数据包括各个时间段短信发送量;
    根据所述历史数据,分别得到所述第二短信网关的发送速率曲线;及
    根据所述发送速率曲线,得到发送表中第二短信网关的所述第二短信数量。
  12. 根据权利要求11所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时,还执行以下步骤:
    获取第二短信网关的发送速率曲线,根据所述发送率曲线计算多个第二短信网关的评价得分;及
    根据所述第二短信数量,选择评价得分最高的第二短信网关作为所述第一短信网关的分流网关。
  13. 根据权利要求11所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时,还执行以下步骤:
    获取第二短信网关的发送速率曲线,根据所述发送率曲线计算多个第二短信网关的评价得分;及
    获取所述第一短信模板的优先级信息;选择所述优先级信息对应的评价得分的第二短信网关作为所述第一短信网关的分流网关。
  14. 根据权利要求10所述计算机设备,其特征在于,所述处理器执行所述计算机可读指令时还执行以下步骤:
    根据各个所述分流网关的第二短信数量以及各个所述分流网关的最大处理能力,得到各个所述分流网关的剩余处理能力;及
    根据所述剩余处理能力,确定各个所述分流网关的短信分配量。
  15. 根据权利要求14所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时还执行以下步骤:
    根据所述部分短信在所述第一短信数量中的占比,确定所述分流网关发送短信的第一号码区间;
    根据所述短信分配量以及所述第一号码区间,确定各个分流网关发送短信的第二号码区间;及
    将所述第二号码区间的所述第一短信模板对应的短信通过对应的分流网关进行发送。
  16. 一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:
    监控发送表中第一短信模板对应的第一短信数量;所述第一短信模板与第一短信网关相对应;
    当第一短信模板对应的第一短信数量超过阈值时,开启对所述第一短信网关的分流模式;
    在所述分流模式下,分别获取发送表中第二短信模板对应的第二短信数量,根据所述第二短信数量,从所述第二短信网关中确定所述第一短信网关的分流网关;所述第二短信模板均对应一个所述第二短信网关;及
    将所述第一短信模板对应的部分短信通过所述分流网关进行短信分流发送。
  17. 根据权利要求16所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时还执行以下步骤:
    获取所述第二短信网关的历史数据,所述历史数据包括各个时间段短信发送量;
    根据所述历史数据,分别得到所述第二短信网关的发送速率曲线;及
    根据所述发送速率曲线,得到发送表中第二短信网关的所述第二短信数量。
  18. 根据权利要求17所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时还执行以下步骤:
    获取第二短信网关的发送速率曲线,根据所述发送率曲线计算多个第二短信网关的评价得分;及
    根据所述第二短信数量,选择评价得分最高的第二短信网关作为所述第一短信网关的分流网关。
  19. 根据权利要求17所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时还执行以下步骤:
    获取第二短信网关的发送速率曲线,根据所述发送率曲线计算多个第二短信网关的评价得分;及
    获取所述第一短信模板的优先级信息;选择所述优先级信息对应的评价得分的第二短信网关作为所述第一短信网关的分流网关。
  20. 根据权利要求16所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时还执行以下步骤:
    根据各个所述分流网关的第二短信数量以及各个所述分流网关的最大处理能力,得到各个所述分流网关的剩余处理能力;及
    根据所述剩余处理能力,确定各个所述分流网关的短信分配量。
PCT/CN2018/105227 2018-06-27 2018-09-12 短信分流方法、装置、计算机设备和存储介质 WO2020000664A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810675800.1A CN108769936B (zh) 2018-06-27 2018-06-27 短信分流方法、装置、计算机设备和存储介质
CN201810675800.1 2018-06-27

Publications (1)

Publication Number Publication Date
WO2020000664A1 true WO2020000664A1 (zh) 2020-01-02

Family

ID=63977535

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/105227 WO2020000664A1 (zh) 2018-06-27 2018-09-12 短信分流方法、装置、计算机设备和存储介质

Country Status (2)

Country Link
CN (1) CN108769936B (zh)
WO (1) WO2020000664A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112672295A (zh) * 2020-12-26 2021-04-16 中国农业银行股份有限公司 消息发送的方法、装置、电子设备以及存储介质
WO2023154805A2 (en) 2022-02-09 2023-08-17 Pivot Bio, Inc. Dry formulated nitrogen-fixing microbe packaged in water-soluble film for rapid and safe dispersal in aqueous mixtures

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112866933B (zh) * 2021-03-18 2022-10-14 厦门科灿信息技术有限公司 控制告警短信发送的方法、装置及终端
CN115412865B (zh) * 2022-08-11 2023-11-24 北京天融信网络安全技术有限公司 短信网关协议调用方法、系统、电子设备及存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105188090A (zh) * 2015-08-07 2015-12-23 北京思特奇信息技术股份有限公司 一种实现短信下行压力均衡的方法及系统
WO2016082568A1 (zh) * 2014-11-25 2016-06-02 中兴通讯股份有限公司 一种短信安全处理方法及装置
CN106488416A (zh) * 2015-08-26 2017-03-08 中国联合网络通信集团有限公司 行业短信发送方法与装置

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002060190A2 (en) * 2000-11-16 2002-08-01 At & T Wireless Services, Inc. A short message point-to-point protocol gateway having a standard interface
US6976060B2 (en) * 2000-12-05 2005-12-13 Agami Sytems, Inc. Symmetric shared file storage system
CN100440995C (zh) * 2005-07-24 2008-12-03 华为技术有限公司 一种分流短消息的方法及其系统
CN101287166B (zh) * 2008-02-22 2011-11-09 北京航空航天大学 一种用于电子会务辅助系统的短信息发布系统与发布方法
KR101000644B1 (ko) * 2008-12-30 2010-12-10 엘지에릭슨 주식회사 착신 메시지 과부하 제어 방법 및 그를 위한 이동통신 시스템
CN102026106B (zh) * 2009-09-10 2014-01-01 中兴通讯股份有限公司 一种实现对多个下游节点的流量均衡下发的平台及方法
CN106412861B (zh) * 2016-09-28 2017-11-28 海南港澳资讯产业股份有限公司 一种短信分发方法及系统
CN107734475B (zh) * 2017-11-15 2021-05-18 中国联合网络通信集团有限公司 基于短信链路的短信发送方法及业务平台

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016082568A1 (zh) * 2014-11-25 2016-06-02 中兴通讯股份有限公司 一种短信安全处理方法及装置
CN105188090A (zh) * 2015-08-07 2015-12-23 北京思特奇信息技术股份有限公司 一种实现短信下行压力均衡的方法及系统
CN106488416A (zh) * 2015-08-26 2017-03-08 中国联合网络通信集团有限公司 行业短信发送方法与装置

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112672295A (zh) * 2020-12-26 2021-04-16 中国农业银行股份有限公司 消息发送的方法、装置、电子设备以及存储介质
CN112672295B (zh) * 2020-12-26 2021-10-26 中国农业银行股份有限公司 消息发送的方法、装置、电子设备以及存储介质
WO2023154805A2 (en) 2022-02-09 2023-08-17 Pivot Bio, Inc. Dry formulated nitrogen-fixing microbe packaged in water-soluble film for rapid and safe dispersal in aqueous mixtures

Also Published As

Publication number Publication date
CN108769936B (zh) 2021-06-08
CN108769936A (zh) 2018-11-06

Similar Documents

Publication Publication Date Title
CN108933993B (zh) 短信缓存队列选择方法、装置、计算机设备和存储介质
WO2020000664A1 (zh) 短信分流方法、装置、计算机设备和存储介质
US20210318917A1 (en) System and method for managing concurrent events
US20210036907A1 (en) Methods and apparatuses for pushing a message
CN111143163B (zh) 数据监控方法、装置、计算机设备和存储介质
US10848366B2 (en) Network function management method, management unit, and system
CN105337837A (zh) 一种消息发送方法和设备
CN114095438B (zh) 数据传输方法、装置、设备、存储介质及计算机程序产品
CN112749221A (zh) 数据任务调度方法、装置、存储介质及调度工具
CN114268957A (zh) 异常业务数据处理方法、装置、服务器及存储介质
CN110072199B (zh) 一种监控短消息发送异常的方法及系统
US10044838B2 (en) Method of automatically setting protocol in programmable logic controller system
US8848625B2 (en) Method, server and system for propagating a wireless communication device state
CN111309571B (zh) 业务数据控制方法、装置、计算机设备和存储介质
US20160050151A1 (en) Method and apparatus for ripple rate sensitive and bottleneck aware resource adaptation for real-time streaming workflows
CN110764977B (zh) 一种实现系统安全的报警方法和装置
WO2022161081A1 (zh) 集成学习模型的训练方法、装置、系统和相关设备
CN108834087B (zh) 短信发送方法、装置、计算机设备和存储介质
US20180123866A1 (en) Method and apparatus for determining event level of monitoring result
CN109508356B (zh) 数据异常预警方法、装置、计算机设备及存储介质
US20150312193A1 (en) Systems and methods for accumulating messages in a messaging conversation
CN113055419B (zh) 一种信息发送方法及装置
WO2019041499A1 (zh) 数据发送对象的选择方法、装置、计算机设备及存储介质
US11546251B2 (en) System and method for securing communication between devices on a network with multiple access points
US11838220B2 (en) Techniques for excess resource utilization

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18924182

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18924182

Country of ref document: EP

Kind code of ref document: A1