CN106488416B - Industry short message sending method and device - Google Patents
Industry short message sending method and device Download PDFInfo
- Publication number
- CN106488416B CN106488416B CN201510531836.9A CN201510531836A CN106488416B CN 106488416 B CN106488416 B CN 106488416B CN 201510531836 A CN201510531836 A CN 201510531836A CN 106488416 B CN106488416 B CN 106488416B
- Authority
- CN
- China
- Prior art keywords
- short message
- industry
- gateway
- level
- real
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 53
- 230000001960 triggered effect Effects 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 8
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 239000000047 product Substances 0.000 description 2
- 230000001174 ascending effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000013589 supplement Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/12—Messaging; Mailboxes; Announcements
- H04W4/14—Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
- H04W28/08—Load balancing or load distribution
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
技术领域technical field
本发明涉及短信传输技术,尤其涉及一种行业短信发送方法与装置。The invention relates to short message transmission technology, in particular to a method and device for sending short messages in an industry.
背景技术Background technique
行业短信是为企业提供的短信服务产品,专供企业的VIP客户、大客户(包括政府机关、企事业单位、商业机构等)群发/接收短消息,企业利用行业短信向内部员工进行信息通知、发布、提醒等服务,同时企业用来服务于自身客户。行业短信是产品宣传和服务维系的一种有效手段,能够提高企业运作效率,降低沟通成本。Industry SMS is a short message service product provided for enterprises. It is specially designed for VIP customers and major customers (including government agencies, enterprises and institutions, commercial institutions, etc.) to send/receive short messages in groups. Publishing, reminders and other services, and enterprises use it to serve their own customers. Industry SMS is an effective means of product promotion and service maintenance, which can improve the efficiency of enterprise operation and reduce communication costs.
现有技术中,行业短信网络架构一般包括:一级行业网关、二级行业网关、与二级行业网关连接的短信中心、与一级行业网关连接的一级网管、与二级行业网关和短信中心连接的二级网管,一级行业网关管理各省的二级行业网关,例如将其中一个二级行业网关发送的行业短信转发给另外一个二级行业网关,二级网管采集短信中心和二级行业网关的信息,例如吞吐量或是否发生故障,并将采集结果发送至一级网管中。一级网关采集的是一级行业网关和各二级网管的信息。其中,每个省份只有一个二级行业网关和一个短信中心,全国只有一个一级行业网关。In the prior art, the industry short message network architecture generally includes: a first-level industry gateway, a second-level industry gateway, a short message center connected to the second-level industry gateway, a first-level network management connected to the first-level industry gateway, and a second-level industry gateway and SMS. The secondary network management connected to the center, the primary industry gateway manages the secondary industry gateways in each province, for example, the industry short message sent by one secondary industry gateway is forwarded to another secondary industry gateway, and the secondary network management collects the short message center and secondary industry. Gateway information, such as throughput or failure, and send the collected results to the first-level network management. The first-level gateway collects the information of the first-level industry gateway and each second-level network management. Among them, each province has only one secondary industry gateway and one short message center, and there is only one primary industry gateway in the whole country.
举例来说,某省的企业服务器发送行业短信到客户端的过程为:该省二级行业网关接收企业服务器发送的行业短信,并根据行业短信中的信息判断接收客户端是否为本省客户端,若判断结果为是,则通过本省的短信中心下发至本省相应的接收客户端,若判断结果为否,则向一级行业网关转发该行业短信,一级行业网关根据该行业短信中的信息判断接收客户端是哪一省的客户端,并将该短信发送给相应省的二级行业网关,由相应省的二级行业网关通过相应省的短信中心将该行业短信发送给相应的客户端。运营商的工作人员可以通过与各短信中心连接的二级网管监控短信中心的和二级行业网关的相关信息,例如短信中心是否出现故障、短信中心的吞吐量、二级行业网关的吞吐量等信息。由于各省短信中心的负荷很有可能各不相同,例如有些省的短信中心或二级行业网关的负荷较大,行业短信不能及时被处理,造成积压,而有些省的短信中心或二级行业网关比较空闲,这就使得各省用于发送短信的短信发送装置的负载不能均衡,不能较好地被利用。For example, the process for an enterprise server in a province to send an industry short message to a client is as follows: the secondary industry gateway of the province receives the industry short message sent by the enterprise server, and judges whether the receiving client is a provincial client according to the information in the industry short message. If the judgment result is yes, it will be sent to the corresponding receiving client in this province through the short message center of the province. If the judgment result is no, it will forward the short message of the industry to the first-level industry gateway, and the first-level industry gateway will judge according to the information in the industry short message. Which province the receiving client is from, and send the short message to the secondary industry gateway of the corresponding province, and the secondary industry gateway of the corresponding province will send the industry short message to the corresponding client through the short message center of the corresponding province. The operator's staff can monitor the relevant information of the SMS center and the secondary industry gateway through the secondary network management connected to each SMS center, such as whether the SMS center is faulty, the throughput of the SMS center, the throughput of the secondary industry gateway, etc. information. Because the load of short message centers in different provinces is likely to be different, for example, the short message centers or secondary industry gateways in some provinces have a large load, and industry short messages cannot be processed in time, resulting in a backlog, while some provincial short message centers or secondary industry gateways It is relatively idle, which makes the load of the short message sending devices used for sending short messages in various provinces not balanced and cannot be used well.
发明内容SUMMARY OF THE INVENTION
本发明提供一种行业短信发送方法与装置,以尽量避免现有技术中短信中心的负载不能均衡的缺陷。The invention provides an industry short message sending method and device, so as to avoid the defect that the load of the short message center in the prior art cannot be balanced as much as possible.
本发明第一个方面提供一种行业短信发送方法,包括:A first aspect of the present invention provides an industry short message sending method, comprising:
接收第一二级行业网关或企业服务器发送的行业短信,所述行业短信中包括接收客户端的信息;Receive the industry short message sent by the first-level industry gateway or the enterprise server, and the industry short message includes the information of the receiving client;
根据所述接收客户端的信息获取所述接收客户端所在省份的第一短信发送装置的实时负载量;Obtain the real-time load of the first short message sending device in the province where the receiving client is located according to the information of the receiving client;
判断所述第一短信发送装置的实时负载量是否大于或等于第一预设阈值,若判断结果为是,则获取实时负载量小于所述第一预设阈值的第二短信发送装置;Judging whether the real-time load of the first short message sending device is greater than or equal to a first preset threshold, and if the judgment result is yes, acquiring a second short message sending device whose real-time load is less than the first preset threshold;
向所述第二短信发送装置发送所述行业短信,以使所述第二短信发送装置向所述接收客户端发送所述行业短信。Send the industry short message to the second short message sending device, so that the second short message sending device sends the industry short message to the receiving client.
本发明另一个方面提供一种行业短信发送方法,包括:Another aspect of the present invention provides an industry short message sending method, comprising:
接收企业服务器发送的行业短信,所述行业短信中包括接收客户端的信息;Receive the industry short message sent by the enterprise server, where the industry short message includes the information of the receiving client;
若根据所述客户端的信息确定出需向所连接的第一短信中心发送所述行业短信,则获取所述第一短信中心的实时负载量和/或于所述第一短信中心连接的二级行业网关的实时负载量;If it is determined according to the information of the client that the industry short message needs to be sent to the connected first short message center, obtain the real-time load of the first short message center and/or the secondary level connected to the first short message center Real-time load of industry gateways;
若所述第一短信中心的实时负载量大于或等于第一预设阈值和/或所述二级行业网关的实时负载量大于或等于第二预设阈值,则向一级行业网关发送所述行业短信,以使所述一级行业网关获取实时负载量小于所述第一预设阈值的第二短信中心,并向所述第二短信中心所在省份的二级行业网关发送所述行业短信。If the real-time load of the first SMS center is greater than or equal to the first preset threshold and/or the real-time load of the secondary industry gateway is greater than or equal to the second preset threshold, send the Industry short message, so that the first-level industry gateway obtains the second short message center whose real-time load is less than the first preset threshold, and sends the industry short message to the second-level industry gateway in the province where the second short message center is located.
本发明再一个方面提供一种行业短信发送装置,包括:Another aspect of the present invention provides an industrial short message sending device, comprising:
第一接收模块,用于接收第一二级行业网关或企业服务器发送的行业短信,所述行业短信中包括接收客户端的信息;The first receiving module is used to receive the industry short message sent by the first-level industry gateway or the enterprise server, and the industry short message includes the information of the receiving client;
第一获取模块,用于根据所述接收客户端的信息获取所述接收客户端所在省份的第一短信发送装置的实时负载量;a first obtaining module, configured to obtain, according to the information of the receiving client, the real-time load of the first short message sending device in the province where the receiving client is located;
第一判断模块,用于判断所述第一短信发送装置的实时负载量是否大于或等于第一预设阈值,若判断结果为是,则触发第二获取模块;a first judgment module, configured to judge whether the real-time load of the first short message sending device is greater than or equal to a first preset threshold, and if the judgment result is yes, trigger the second acquisition module;
第二获取模块,用于获取实时负载量小于所述第一预设阈值的第二短信发送装置;a second acquisition module, configured to acquire a second short message sending device whose real-time load is less than the first preset threshold;
第一发送模块,用于向所述第二短信发送装置发送所述行业短信,以使所述第二短信发送装置向所述接收客户端发送所述行业短信。The first sending module is configured to send the industry short message to the second short message sending device, so that the second short message sending device sends the industry short message to the receiving client.
本发明又一个方面提供一种行业短信发送装置,包括:Another aspect of the present invention provides an industrial short message sending device, comprising:
第二接收模块,用于接收企业服务器发送的行业短信,所述行业短信中包括接收客户端的信息;The second receiving module is used to receive the industry short message sent by the enterprise server, and the industry short message includes the information of the receiving client;
第五获取模块,用于若根据所述客户端的信息确定出需向所连接的第一短信中心发送所述行业短信,则获取所述第一短信中心的实时负载量和/或所述二级行业网关的实时负载量;The fifth acquisition module is configured to acquire the real-time load of the first short message center and/or the second level if it is determined according to the information of the client that the industry short message needs to be sent to the connected first short message center Real-time load of industry gateways;
第二发送模块,用于若所述第一短信中心的实时负载量大于或等于第一预设阈值和/或于所述第一短信中心连接的二级行业网关的实时负载量,则向一级行业网关发送所述行业短信,以使所述一级行业网关获取实时负载量小于所述第一预设阈值的第二短信中心,并向所述第二短信中心所在省份的二级行业网关发送所述行业短信。The second sending module is configured to send a message to a user if the real-time load of the first SMS center is greater than or equal to the first preset threshold and/or the real-time load of the secondary industry gateway connected to the first SMS center. The first-level industry gateway sends the industry short message, so that the first-level industry gateway obtains the second SMS center whose real-time load is less than the first preset threshold, and sends the second SMS center to the second-level industry gateway in the province where the second SMS center is located. Send the industry text message.
由上述技术方案可知,本发明提供的行业短信发送方法与装置,在行业短信对应的接收客户端所在的省份的第一短信发送装置的实时负载量较大时,可以向其他较空闲的省的短信发送装置发送该行业短信,由该较空闲的短信发送装置跨省发送行业短信,这样就能够利用较空闲的短信发送装置替较忙碌的短信发送装置发送行业短信,实现短信发送装置的负载均衡。It can be seen from the above technical solutions that the method and device for sending an industry short message provided by the present invention can send messages to other idler provinces when the real-time load of the first short message sending device in the province where the receiving client corresponding to the industry short message is located is relatively large. The short message sending device sends the industry short message, and the idle short message sending device sends the industry short message across the province, so that the idle short message sending device can be used to send the industry short message instead of the busy short message sending device, so as to realize the load balancing of the short message sending device. .
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are some embodiments of the present invention, and for those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.
图1A为根据本发明一实施例的行业短信发送方法的流程示意图;1A is a schematic flowchart of a method for sending an industry short message according to an embodiment of the present invention;
图1B为根据本发明另一实施例的行业短信发送方法的流程示意图;1B is a schematic flowchart of a method for sending an industry short message according to another embodiment of the present invention;
图2A为根据本发明另一实施例的行业短信发送方法的流程示意图;2A is a schematic flowchart of a method for sending an industry short message according to another embodiment of the present invention;
图2B为根据本发明另一实施例的行业短信发送方法的流程示意图;2B is a schematic flowchart of a method for sending an industry short message according to another embodiment of the present invention;
图3为根据本发明再一实施例的行业短信发送方法的流程示意图;3 is a schematic flowchart of a method for sending an industry short message according to yet another embodiment of the present invention;
图4为根据本发明又一实施例的行业短信发送方法的流程示意图;4 is a schematic flowchart of an industry short message sending method according to another embodiment of the present invention;
图5为根据本发明一实施例的行业短信发送装置的结构示意图;5 is a schematic structural diagram of an industry short message sending device according to an embodiment of the present invention;
图6为根据本发明另一实施例的行业短信发送装置的结构示意图;6 is a schematic structural diagram of an industrial short message sending device according to another embodiment of the present invention;
图7A为根据本发明再一实施例的行业短信发送装置的结构示意图;7A is a schematic structural diagram of an apparatus for sending short messages in industry according to yet another embodiment of the present invention;
图7B为根据本发明另一实施例的行业短信发送装置的结构示意图;7B is a schematic structural diagram of an industrial short message sending apparatus according to another embodiment of the present invention;
图8为根据本发明又一实施例的行业短信发送装置的结构示意图;8 is a schematic structural diagram of an apparatus for sending short messages in an industry according to another embodiment of the present invention;
图9为根据本发明另一实施例的行业短信发送装置的结构示意图。FIG. 9 is a schematic structural diagram of an apparatus for sending an industry short message according to another embodiment of the present invention.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments These are some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
实施例一Example 1
本实施例提供一种行业短信发送方法,用于发送行业短信。本实施例的执行主体是行业短信发送装置,该行业短信发送装置可以设置在一级行业网关中。如图1A所示,该行业短信发送方法包括:This embodiment provides a method for sending an industry short message, which is used for sending an industry short message. The executive body of this embodiment is an industry short message sending device, and the industry short message sending device may be set in a first-level industry gateway. As shown in Figure 1A, the industry short message sending method includes:
步骤111,接收第一二级行业网关或企业服务器发送的行业短信,行业短信中包括接收客户端的信息。Step 111: Receive an industry short message sent by the first-level industry gateway or the enterprise server, where the industry short message includes the information of the receiving client.
步骤112,根据接收客户端的信息获取接收客户端所在省份的第一短信发送装置的实时负载量。Step 112: Acquire the real-time load of the first short message sending device in the province where the receiving client is located according to the information of the receiving client.
步骤113,判断第一短信发送装置的实时负载量是否大于或等于第一预设阈值,若判断结果为是,则获取实时负载量小于第一预设阈值的第二短信发送装置。Step 113: Determine whether the real-time load of the first short message sending device is greater than or equal to the first preset threshold, and if the determination result is yes, acquire a second short message sending device whose real-time load is less than the first preset threshold.
步骤114,向第二短信发送装置发送行业短信,以使第二短信发送装置向接收客户端发送行业短信。Step 114: Send an industry short message to the second short message sending device, so that the second short message sending device sends an industry short message to the receiving client.
其中,第一短信发送装置和第二短信发送装置可以是二级行业网关,或者第一短信发送装置和第二短信发送装置可以是短信中心,当然还可以同时包括二级行业网关和短信中心,具体可以根据实际需要设定,在此不再赘述。Wherein, the first short message sending device and the second short message sending device may be secondary industry gateways, or the first short message sending device and the second short message sending device may be short message centers, and of course they may also include secondary industry gateways and short message centers, Specifically, it can be set according to actual needs, and details are not repeated here.
根据本实施例的行业短信发送方法,在行业短信对应的接收客户端所在的省份的第一短信发送装置的实时负载量较大时,可以向其他较空闲的省的短信发送装置发送该行业短信,由该较空闲的短信发送装置跨省发送行业短信,这样就能够利用较空闲的短信发送装置替较忙碌的短信发送装置发送行业短信,实现短信发送装置的负载均衡。According to the industry short message sending method of this embodiment, when the real-time load of the first short message sending device in the province where the receiving client corresponding to the industry short message is located is relatively large, the industry short message can be sent to the short message sending devices in other provinces that are relatively idle In this way, the idle short message sending device can send industry short messages across provinces, so that the busy short message sending device can be used to send industry short messages, and the load balance of the short message sending device can be realized.
实施例二Embodiment 2
本实施例基于实施例一提供一种行业短信发送方法,用于发送行业短信。本实施例的执行主体是行业短信发送装置,该行业短信发送装置可以设置在一级行业网关中。本实施例中,第一短信发送装置为第一短信中心,第二短信发送装置为第二短信中心。如图1B所示,该行业短信发送方法包括:This embodiment provides an industry short message sending method based on the first embodiment, which is used for sending industry short messages. The executive body of this embodiment is an industry short message sending device, and the industry short message sending device may be set in a first-level industry gateway. In this embodiment, the first short message sending device is a first short message center, and the second short message sending device is a second short message center. As shown in Figure 1B, the industry short message sending method includes:
步骤101,接收第一二级行业网关或企业服务器发送的行业短信,行业短信中包括接收客户端的信息。Step 101: Receive an industry short message sent by a first-level industry gateway or an enterprise server, where the industry short message includes the information of the receiving client.
第一二级行业网关向行业短信发送装置发送行业短信可以有两种情况,一种是该行业短信中所包含的接收客户端位于其他省份,另外一种情况是第一二级行业网关所连接的短信中心的实时负载量大于或等于预设阈值,需由其他二级行业网关所连接的短信中心来发送该行业短信。There are two situations for the first-level industry gateway to send industry short messages to the industry short-message sending device. One is that the receiving client included in the industry short message is located in another province, and the other is that the first-level industry gateway is connected to The real-time load of the SMS center is greater than or equal to the preset threshold, and the SMS center connected to other secondary industry gateways needs to send the industry SMS.
步骤102,根据接收客户端获取接收客户端所在省份的第一短信中心的实时负载量。In
行业短信发送装置能够通过接收客户端的信息,例如电话号码段,获取到接收客户端所在的省份,具体如何通过接收客户端获取其所在省份属于现有技术,在此不再赘述。The industrial short message sending device can obtain the province where the receiving client is located by receiving the information of the client, such as a phone number segment, and how to obtain the province where the receiving client is located belongs to the prior art, and will not be repeated here.
行业短信发送装置可以从一级网管中获取客户端所在省份的第一短信中心的相关信息,例如实时负载量。The industrial short message sending device can obtain the relevant information of the first short message center in the province where the client is located, such as the real-time load, from the first-level network management.
步骤103,判断第一短信中心的实时负载量是否大于或等于第一预设阈值,若判断结果为是,则获取实时负载量小于第一预设阈值的第二短信中心。Step 103: Determine whether the real-time load of the first SMS center is greater than or equal to a first preset threshold, and if the determination result is yes, acquire a second SMS center whose real-time load is less than the first preset threshold.
第一预设阈值可以根据实际需要获取,例如第一短信中心的标准负载量的120%,该标准负载量表示,短信中心在该标准负载量下工作,其性能稳定,能够保证正常运行。The first preset threshold can be obtained according to actual needs, for example, 120% of the standard load of the first short message center. The standard load indicates that the short message center works under the standard load with stable performance and can ensure normal operation.
具体地,行业短信发送装置可以从一级网管中查询到实时负载量小于第一预设阈值的第二短信中心。若实时负载量小于第一预设阈值的第二短信中心有多个,则可以选择实时负载量最小的一个第二短信中心,或者选择短信中心和与该短信中心连接的第二二级行业网关的实时负载量之和最小的一个省份,将该省份的短信中心作为第二短信中心,具体可以根据实际需要选择,在此不再赘述。Specifically, the industry short message sending apparatus can query the second short message center whose real-time load is less than the first preset threshold from the first-level network management. If there are multiple second SMS centers whose real-time load is less than the first preset threshold, the one with the smallest real-time load can be selected, or the SMS center and the second-level industry gateway connected to the SMS center can be selected. In a province with the smallest sum of real-time loads, the short message center of the province is used as the second short message center, which can be selected according to actual needs, and will not be repeated here.
步骤104,向第二短信中心所在省份的第二二级行业网关发送行业短信,以使第二二级行业网关通过第二短信中心向接收客户端发送行业短信。Step 104: Send an industry short message to the second level industry gateway in the province where the second short message center is located, so that the second level industry gateway sends the industry short message to the receiving client through the second short message center.
第二二级行业网关如何通过第二短信中心跨省发送行业短信属于现有技术,在此不再赘述,只是第二二级行业网关不再如同现有技术一样,仅向所连接的短信中心发送接收方为本省客户端的行业短信,即使接收客户端为外省客户端,也向所连接的短信中心发送该行业短信,实现跨省发送。当然,在向第二二级行业网关发送行业短信之前,也可以先判断第二二级行业网关的负载情况,例如若第二二级行业网关的实时负载量小于第二预设阈值,则发送行业短信,若不是,则再寻找下一个实时负载量小于第一预设阈值的第二短信中心,再判断其所连接的第二二级行业网关的实时负载量是否小于第二预设阈值,直至找到第二短信中心小于第一预设阈值以及所连接的第二二级行业网关的实时负载量小于第二预设阈值为止。当然,也可以完全不考虑第二二级行业网关的实时负载量情况,仅考虑短信中心的实时负载量。How the second-level industry gateway sends industry short messages across provinces through the second short message center belongs to the prior art, which will not be repeated here, but the second-level industry gateway is no longer the same as the prior art. Send and receive industry short messages from the provincial client, even if the receiving client is a foreign client, it will also send the industry short message to the connected SMS center to achieve inter-provincial sending. Of course, before sending the industry short message to the second-level industry gateway, the load of the second-level industry gateway can also be judged. For example, if the real-time load of the second-level industry gateway is less than the second preset threshold, send Industry SMS, if not, then find the next second SMS center whose real-time load is less than the first preset threshold, and then judge whether the real-time load of the second-level industry gateway connected to it is less than the second preset threshold. Until it is found that the second short message center is less than the first preset threshold and the real-time load of the connected second-level industry gateway is less than the second preset threshold. Of course, it is also possible to completely ignore the real-time load of the second-level industry gateway, and only consider the real-time load of the short message center.
可选地,若判断出第一短信中心的实时负载量小于第一预设阈值,可以判断与第一短信中心连接的第三二级行业网关的实时负载量是否大于或等于第二预设阈值,若判断结果为是,则执行步骤104。即,即使第一短信中心的实时负载量小于第一预设阈值,也要判断一下与第一短信中心连接的第三二级行业网关的实时负载量是否大于或等于第二预设阈值,在第三二级行业网关也比较忙碌情况下,也可以将行业短信发送至其他省份的短信中心来发送至接收客户端。Optionally, if it is determined that the real-time load of the first SMS center is less than the first preset threshold, it can be determined whether the real-time load of the third-level industry gateway connected to the first SMS center is greater than or equal to the second preset threshold. , if the judgment result is yes, step 104 is executed. That is, even if the real-time load of the first SMS center is less than the first preset threshold, it is necessary to judge whether the real-time load of the third-level industry gateway connected to the first SMS center is greater than or equal to the second preset threshold. When the third-level industry gateway is also busy, the industry short message can also be sent to the short message center in other provinces to be sent to the receiving client.
实际操作中,本实施例的第二二级行业网关和第二短信中心若出现故障,也有可能出现实时负载量比较小或者根本没有负载的情况,这样,在判断出与第一短信中心连接的第三二级行业网关的实时负载量小于第二预设阈值之后,且在步骤104之前,也可以判断第二二级行业网关和/或第二短信中心是否出现故障,若判断结果为否,再执行步骤104。当然,也可以在获取到第二短信中心的实时负载量小于第一预设阈值之后,先判断一下第二二级行业网关和/或第二短信中心是否出现故障,若判断结果为否,再执行判断第二二级行业网关的实时负载量是否小于第二预设阈值的步骤。In actual operation, if the second-level industry gateway and the second short message center in this embodiment are faulty, the real-time load may be relatively small or no load at all. After the real-time load of the third-level industry gateway is smaller than the second preset threshold, and before
根据本实施例的行业短信发送方法,在行业短信对应的接收客户端所在的省份的短信中心的实时负载量较大时,可以向其他较空闲的短信中心发送该行业短信,由该较空闲的短信中心跨省发送行业短信,这样就能够利用较空闲的短信中心替较忙碌的短信中心发送行业短信,实现短信中心的负载均衡。According to the method for sending an industry short message in this embodiment, when the real-time load of the short message center in the province where the receiving client corresponding to the industry short message is located is large, the industry short message can be sent to other relatively idle short message centers, and the relatively idle short message center The short message center sends industry short messages across provinces, so that the idle short message center can be used to send industry short messages for the busy short message center, and the load balance of the short message center can be realized.
实施例三Embodiment 3
本实施例对上述实施例做进一步补充说明。This embodiment further supplements the above-mentioned embodiments.
如图2A所示,为根据本实施例的行业短信发送等方法的流程示意图。As shown in FIG. 2A , it is a schematic flowchart of a method for sending an industry short message according to this embodiment.
步骤201,接收第一二级行业网关或企业服务器发送的行业短信,行业短信中包括接收客户端的信息,转为步骤202。Step 201: Receive an industry short message sent by the first-level industry gateway or the enterprise server, where the industry short message includes the information of the receiving client, and go to step 202.
该步骤与步骤101一致,在此不再赘述。This step is the same as
步骤202,根据接收客户端的信息获取接收客户端所在省份的第一短信中心的实时负载量,转为步骤203。Step 202: Acquire the real-time load of the first short message center in the province where the receiving client is located according to the information of the receiving client, and turn to step 203.
该步骤与步骤102一致,在此不再赘述。This step is the same as
步骤203,判断第一短信中心的实时负载量是否大于或等于第一预设阈值,若判断结果为否,则转为步骤204,否则转为步骤205。
第一预设阈值可以根据实际需要进行设定,例如第一短信中心的标准负载量的120%。The first preset threshold can be set according to actual needs, for example, 120% of the standard load of the first short message center.
步骤204,判断与第一短信中心连接的第三二级行业网关的实时负载量是否大于或等于第二预设阈值,若判断结果为是,则转为步骤205,否则转为步骤210。
步骤205,获取实时负载量小于第一预设阈值的第二短信中心,转为步骤206。Step 205: Acquire a second short message center whose real-time load is less than the first preset threshold, and go to step 206.
步骤206,判断第二短息中心和与第二短信中心连接的第二二级行业网关是否出现故障,若判断结果为否,则转为步骤207,否则转为步骤209。
对于如何判断第二短信中心或第二二级行业网关是否出现故障,可以从与第二短信中心或第二二级行业网关连接的二级行业网管中获取第二短信中心或第二二级行业网关是否出现报警,如果出现,则确定第二短信中心或第二二级行业网关出现故障。For how to determine whether the second SMS center or the second-level industry gateway is faulty, the second SMS center or the second-level industry gateway can be obtained from the second-level industry network administrator connected to the second SMS center or the second-level industry gateway. Whether an alarm occurs in the gateway, and if so, it is determined that the second SMS center or the second-level industry gateway is faulty.
步骤207,判断与第二短信中心连接的第二二级行业网关的实时负载量是否小于第二预设阈值,若判断结果为是,则执行步骤208,否则执行步骤209。
步骤208,向第二短信中心所在省份的第二二级行业网关发送行业短信,以使第二二级行业网关通过第三短信中心向接收客户端发送行业短信。Step 208: Send an industry short message to the second level industry gateway in the province where the second short message center is located, so that the second level industry gateway sends the industry short message to the receiving client through the third short message center.
步骤209,获取另一个实时负载量小于第一预设阈值的短信中心,并更新为第二短信中心,转为步骤206。
例如,若实时负载量小于第一预设阈值的短信中心有多个,按照实时负载量从小到大排列,步骤205可以选择第一个短信中心作为第二短信中心,即选择实时负载量最小的短信中心作为第二短信中心,步骤209可以选择第二个短信中心作为第二负载中心依次类推,直至找到相应的第二二级行业网关小于第二预设阈值的短信中心。For example, if there are multiple SMS centers whose real-time load is less than the first preset threshold, the real-time loads are arranged in ascending order. In
步骤210,向第三二级行业网关发送行业短信,并第一短信中心向接收客户端发送行业短信。Step 210: Send the industry short message to the third-level industry gateway, and the first short message center sends the industry short message to the receiving client.
可选地,行业网关发送装置可以实时排列未出现故障的各省的负载情况。例如,从一级网管中获取各省的二级行业网关的实时负载量A1、A2、A3。。。An和与各二级行业网关连接的短信中心的实时负载量B1、B2、B3。。。Bn,各省的二级行业网关的标准负载量为C1、C2、C3。。。Cn,各省的短信中心的标准负载量为D1、D2、D3。。。Dn,其中n为正整数,各省的流量集合差为C1-A1+D1-B1,C2-A2+D2-B2,C3-A3+D3-B3。。。Cn-An+Dn-Bn,这样,按照流量集合差的数值从大到小的顺序选择出前几位备选省份。需指出的是,实时负载量均小于标准负载量。Optionally, the industry gateway sending device can arrange the load situation of each province without failure in real time. For example, the real-time loads A1, A2, and A3 of the secondary industry gateways in each province are obtained from the primary network management. . . An and the real-time loads B1, B2, B3 of the SMS center connected to each secondary industry gateway. . . Bn, the standard loads of secondary industry gateways in each province are C1, C2, and C3. . . Cn, the standard loads of SMS centers in each province are D1, D2, and D3. . . Dn, where n is a positive integer, and the set differences of traffic in each province are C1-A1+D1-B1, C2-A2+D2-B2, and C3-A3+D3-B3. . . Cn-An+Dn-Bn, in this way, the first few candidate provinces are selected according to the numerical value of the traffic set difference in descending order. It should be pointed out that the real-time load is smaller than the standard load.
若行业网关发送装置判断出某省的第二行业网关或与其连接的短信中心发生故障,则可以将该省的标志位标为“1”,若行业网关发送装置判断出某一第二行业网关的实时负载量大于或等于第二预设阈值或与其连接的短信中心的大于或等于第一预设阈值,则可以将该省的标志位标为“0”,这样,若行业网关发送装置判断出该省的标志位为“1”时,则向备选省份中的一个二级行业网关发送该行业短信,若行业网关发送装置判断出该省的标志位为“0”时,说明该省的负荷较大,但仍可以处理行业短信,例如80%的行业短信由该省处理,另外20%由备选省份处理,例如,将尾号为1-9的接收客户端发送的行业短信发送到该标志位为“0”的省,将尾号为0的接收客户端发送的行业短信发送到备选省份。If the industry gateway sending device determines that the second industry gateway of a certain province or the short message center connected to it is faulty, the flag of the province can be marked as "1", if the industry gateway sending device determines that a second industry gateway The real-time load is greater than or equal to the second preset threshold or the SMS center connected to it is greater than or equal to the first preset threshold, then the flag of the province can be marked as "0", so that if the industry gateway sending device judges When the flag bit of the province is "1", it will send a short message of the industry to a secondary industry gateway in the alternative province. If the industry gateway sending device determines that the flag bit of the province is "0", it means that the province The load is relatively large, but it can still process industry short messages. For example, 80% of the industry short messages are processed by the province, and the other 20% are processed by the alternative provinces. To the province where the flag bit is "0", send the industry short message sent by the receiving client with a trailing number of 0 to the candidate province.
根据本实施例的行业短信发送方法,在行业短信对应的接收客户端所在的省份的短信中心的实时负载量较大时,可以向其他短信中心和二级行业网关均较空闲的省份发送该行业短信,由该较空闲的二级行业网关向所连接的较空闲的短信中心发送行业网关,并由该较空闲的短信中心跨省发送行业短信,这样就能够利用较空闲的短信中心替较忙碌的短信中心发送行业短信,不仅能够实现短信中心的负载均衡,而且能够实现二级行业网关的负载均衡。According to the method for sending an industry short message in this embodiment, when the real-time load of the short message center in the province where the receiving client corresponding to the industry short message is located is relatively large, the industry can be sent to a province where other short message centers and secondary industry gateways are relatively idle. SMS, the idle secondary industry gateway sends the industry gateway to the connected idle SMS center, and the idle SMS center sends industry SMS across provinces, so that the idle SMS center can be used to replace the busy SMS Sending industry short messages from the SMS center can not only realize the load balancing of the SMS center, but also realize the load balancing of the secondary industry gateway.
实施例四Embodiment 4
本实施例基于实施例一提供一种行业短信发送方法,用于发送行业短信。本实施例的执行主体是行业短信发送装置,该行业短信发送装置可以设置在一级行业网关中。本实施例中,第一短信发送装置为第四二级行业网关,第二短信发送装置为第五二级行业网关。如图2B所示,该行业短信发送方法包括:This embodiment provides an industry short message sending method based on the first embodiment, which is used for sending industry short messages. The executive body of this embodiment is an industry short message sending device, and the industry short message sending device may be set in a first-level industry gateway. In this embodiment, the first short message sending device is a fourth-level industry gateway, and the second short-message sending device is a fifth-level industry gateway. As shown in Figure 2B, the industry short message sending method includes:
步骤211,接收第一二级行业网关或企业服务器发送的行业短信,行业短信中包括接收客户端的信息。Step 211: Receive an industry short message sent by the first-level industry gateway or the enterprise server, where the industry short message includes the information of the receiving client.
步骤212,根据接收客户端的信息获取接收客户端所在省份的第四二级行业网关的实时负载量。Step 212: Acquire the real-time load of the fourth-level industry gateway in the province where the receiving client is located according to the information of the receiving client.
步骤213,判断第四二级行业网关的实时负载量是否大于或等于第一预设阈值,若判断结果为是,则获取实时负载量小于第一预设阈值的第五二级行业网关。Step 213: Determine whether the real-time load of the fourth-level industry gateway is greater than or equal to the first preset threshold, and if the determination result is yes, acquire the fifth-level industry gateway whose real-time load is less than the first preset threshold.
步骤214,向第五二级行业网关发送短信,以使第五二级行业网关通过第三短信中心向接收客户端发送行业短信,第五二级行业网关与第三短信中心连接。Step 214: Send a short message to the fifth-level industry gateway, so that the fifth-level industry gateway sends the industry short message to the receiving client through the third short-message center, and the fifth-level industry gateway is connected to the third short-message center.
可选地,在步骤213和步骤214之间,还包括:Optionally, between
判断与第五二级行业网关连接的第三短信中心的实时负载量是否大于或等于第二预设阈值;Judging whether the real-time load of the third SMS center connected to the fifth-level industry gateway is greater than or equal to the second preset threshold;
若判断结果为是,则获取实时负载量小于第一预设阈值的另一第五二级行业网关,并返回执行判断与第五二级行业网关连接的第三短信中心的实时负载量是否大于或等于第二预设阈值的步骤。If the judgment result is yes, obtain another fifth-level industry gateway whose real-time load is less than the first preset threshold, and return to execute to determine whether the real-time load of the third SMS center connected to the fifth-level industry gateway is greater than or equal to the second preset threshold.
此外,若第四二级行业网关的实时负载量小于第一预设阈值,则获取与该第四二级行业网关连接的第四短信中心的实时负载量,若该第四短信中心的实时负载量大于或等于第二预设阈值,可以执行获取实时负载量小于第一预设阈值的另一第五二级行业网关的步骤,即可以选择同时判断二级行业网关和与该二级行业网关连接的短信中心的实时负载量,若其中一个实时负载量不满足要求,则可以重新选择,直至获取到实时负载量小于第一预设阈值的五级行业网关以及实时负载量小于第三预设阈值的短信中心。In addition, if the real-time load of the fourth-level industry gateway is less than the first preset threshold, obtain the real-time load of the fourth short message center connected to the fourth-level industry gateway, if the real-time load of the fourth short message center If the load is greater than or equal to the second preset threshold, the step of obtaining another fifth-level industry gateway whose real-time load is less than the first preset threshold can be performed, that is, the second-level industry gateway can be selected to be judged simultaneously with the second-level industry gateway. The real-time load of the connected SMS center, if one of the real-time loads does not meet the requirements, it can be re-selected until the fifth-level industry gateway whose real-time load is less than the first preset threshold and the real-time load is less than the third preset is obtained. Threshold SMS Center.
根据本实施例的行业短信发送方法,在行业短信对应的接收客户端所在的省份的二级行业网关的实时负载量较大时,可以向其他较空闲的二级行业网关发送该行业短信,由该较空闲的二级行业网关通过所连接的短信中心跨省发送行业短信,这样就能够利用较空闲的二级行业网关替较忙碌的二级行业网关发送行业短信,实现二级行业网关的负载均衡。According to the method for sending an industry short message in this embodiment, when the real-time load of the secondary industry gateway in the province where the receiving client corresponding to the industry short message is located is relatively large, the industry short message can be sent to other relatively idle secondary industry gateways, and The idle secondary industry gateway sends industry short messages across provinces through the connected short message center, so that the idle secondary industry gateway can be used to send industry short messages for the busy secondary industry gateway, and the load of the secondary industry gateway can be realized. balanced.
实施例五Embodiment 5
本实施例提供一种行业短信发送方法,用于发送行业短信。本实施例的执行主体是行业短信发送装置,该行业短信发送装置可以设置在二级行业网关中。如图3所示,该行业短信发送方法包括:This embodiment provides a method for sending an industry short message, which is used for sending an industry short message. The executive body of this embodiment is an industry short message sending device, and the industry short message sending device may be set in a secondary industry gateway. As shown in Figure 3, the SMS sending methods in this industry include:
步骤301,接收企业服务器发送的行业短信,行业短信中包括接收客户端的信息。Step 301: Receive an industry short message sent by the enterprise server, where the industry short message includes information of the receiving client.
该接收客户端的信息例如是接收客户端的号码。The information of the receiving client is, for example, the number of the receiving client.
步骤302,若根据客户端的信息确定出需向所连接的第一短信中心发送行业短信,则获取第一短信中心的实时负载量和/或与第一短信中心连接的二级行业网关的实时负载量。
具体地,若行业短信发送装置根据接收端客户端的号码判断出该接收客户端就是本省的客户端,则接下来,行业短信发送装置可以从与第一短信中心连接的二级网管中获取该第一短息中心的相关信息,例如实时负载量,或者获取与第一短信中心连接的二级行业网关的实时负载量,当然,也可以同时获取第一短信中心的实时负载量和与该第一短信中心连接的二级行业网关的实时负载量。Specifically, if the industry short message sending device determines that the receiving client is a client in the province according to the number of the receiving end client, then the industry short message sending device can obtain the second message from the secondary network management connected to the first short message center Relevant information of a short message center, such as real-time load, or obtain the real-time load of the secondary industry gateway connected to the first SMS center, of course, you can also obtain the real-time load of the first SMS center and the first The real-time load of secondary industry gateways connected to the SMS center.
步骤303,若短信中心的实时负载量大于或等于第一预设阈值和/或于第一短信中心连接的二级行业网关的实时负载量,则向一级行业网关发送行业短信,以使一级行业网关获取实时负载量小于第一预设阈值的第二短信中心,并向第二短信中心所在省份的二级行业网关发送行业短信。
第一预设阈值可以根据实际需要设定,例如短信中心的标准负载量的120%。第二预设阈值可以根据实际需要设定,例如二级行业网关的标准负载量的12%。The first preset threshold can be set according to actual needs, for example, 120% of the standard load of the short message center. The second preset threshold can be set according to actual needs, for example, 12% of the standard load of the secondary industry gateway.
根据本实施例的行业短信发送方法,若判断出所连接的第一短信中心的实时负载量大于或等于第一预设阈值时,可以向一级行业网关发送该行业短信,由一级行业网关寻找相对空闲的第二短息中心来发送该行业短信,这样就实现了短信中心的负载均衡。According to the method for sending an industry short message in this embodiment, if it is determined that the real-time load of the connected first short message center is greater than or equal to the first preset threshold, the industry short message can be sent to the first-level industry gateway, and the first-level industry gateway can search for the industry short message. A relatively idle second short message center is used to send short messages in the industry, thus realizing the load balancing of the short message center.
实施例六Embodiment 6
本实施例对实施例五的行业短信发送方法做进一步补充说明。This embodiment provides further supplementary descriptions of the industry short message sending method of the fifth embodiment.
如图4所示,为根据本实施例的行业短信发送方法的流程示意图。该行业短信发送方法包括:As shown in FIG. 4 , it is a schematic flowchart of a method for sending an industry short message according to this embodiment. The industry SMS sending methods include:
步骤401,接收企业服务器发送的行业短信,行业短信中包括接收客户端的信息,转为步骤402。Step 401: Receive an industry short message sent by the enterprise server, where the industry short message includes the information of the receiving client, and go to step 402.
该接收客户端的信息例如是接收客户端的电话号码。The information of the receiving client is, for example, the telephone number of the receiving client.
步骤402,根据客户端的信息确定是否需向所连接的第一短信中心发送行业短信,若确定结果为是,则转为步骤404,否则转为步骤403。Step 402 , according to the information of the client, determine whether to send an industry short message to the connected first short message center, if the determination result is yes, go to step 404 , otherwise go to step 403 .
步骤403,判断一级行业网关是否出现故障和/或与一级行业网关的连接是否出现故障,若判断结果为否,则转为步骤406,否则转为步骤407。Step 403 , determine whether the primary industry gateway is faulty and/or whether the connection with the primary industry gateway is faulty, if the judgment result is no, go to step 406 , otherwise go to step 407 .
一级行业网关出现故障,则说明一级行业网关无法接收或转发行业短信,与一级行业网关的连接出现故障,则说明无法向一级行业网关发送行业短信。If the first-level industry gateway fails, it means that the first-level industry gateway cannot receive or forward industry short messages. If the connection with the first-level industry gateway fails, it means that the industry short message cannot be sent to the first-level industry gateway.
步骤404,获取第一短信中心的实时负载量,转为步骤405。Step 404 , obtain the real-time load of the first short message center, and go to step 405 .
具体可以通过与第一短信中心连接的二级网管来获取第一短信的实时负载量。Specifically, the real-time load amount of the first short message can be acquired through the secondary network management connected to the first short message center.
步骤405,判断第一短信中心的实时负载量是否大于或等于第一预设阈值,若判断结果为是,则转为步骤406,否则转为步骤407。Step 405 , determine whether the real-time load of the first short message center is greater than or equal to the first preset threshold, if the determination result is yes, go to step 406 , otherwise go to step 407 .
步骤406,向一级行业网关发送行业短信,以使一级行业网关获取实时负载量小于第一预设阈值的第二短信中心,并向第二短信中心所在省份的二级行业网关发送行业短信。Step 406: Send an industry short message to the first-level industry gateway, so that the first-level industry gateway obtains a second short message center whose real-time load is less than the first preset threshold, and sends an industry short message to the second-level industry gateway in the province where the second short message center is located .
步骤407,向第一短信中心发送该行业短信,以使第一短信中心向中心客户端发送行业短信。Step 407: Send the industry short message to the first short message center, so that the first short message center sends the industry short message to the central client.
根据本实施例的行业短信发送方法,若判断出一级行业网关出现故障,则自身跨省向接收客户端发送行业短信,否则,可以向一级行业网关发送该行业短信,由一级行业网关寻找相对空闲的第二短息中心来发送该行业短信,这样就实现了短信中心的负载均衡。According to the method for sending an industry short message in this embodiment, if it is determined that the first-level industry gateway is faulty, it will send the industry short message to the receiving client across provinces; otherwise, it can send the industry short message to the first-level industry gateway, and the first-level industry gateway Find a relatively idle second short message center to send short messages in the industry, thus realizing the load balancing of the short message center.
实施例七Embodiment 7
本实施例提供一种行业短信发送装置,用于执行实施例一的行业短信发送方法。This embodiment provides an apparatus for sending an industry short message, which is used to execute the method for sending an industry short message in the first embodiment.
如图5所示,为根据本实施例的行业短信发送装置的结构示意图。本实施例的行业短信发送装置包括:第一接收模块501、第一获取模块502、第一判断模块503、第二获取模块504和第一发送模块505。As shown in FIG. 5 , it is a schematic structural diagram of an apparatus for sending an industry short message according to this embodiment. The apparatus for sending industry short messages in this embodiment includes: a
其中,第一接收模块501用于接收第一二级行业网关或企业服务器发送的行业短信,行业短信中包括接收客户端的信息;第一获取模块502用于根据接收客户端的信息获取接收客户端所在省份的第一短信发送装置的实时负载量;第一判断模块503用于判断第一短信发送装置的实时负载量是否大于或等于第一预设阈值,若判断结果为是,则触发第二获取模块504;第二获取模块504用于获取实时负载量小于第一预设阈值的第二短信发送装置;第一发送模块505用于向第二短信发送装置发送行业短信,以使第二短信发送装置向接收客户端发送行业短信。Wherein, the
其中,其中,第一短信发送装置和第二短信发送装置可以是二级行业网关,或者是第一短信发送装置和第二短信发送装置可以是短信中心,当然还可以同时包括二级行业网关和短信中心,具体可以根据实际需要设定,在此不再赘述。Wherein, the first short message sending device and the second short message sending device may be secondary industry gateways, or the first short message sending device and the second short message sending device may be short message centers, and of course they may also include secondary industry gateways and The short message center can be set according to actual needs, and will not be repeated here.
可选地,若第一短信发送装置为第一短信中心,第二短信发送装置为第二短信中心,则第一发送模块505具体用于:向第二短信中心所在省份的第二二级行业网关发送行业短信,以使第二二级行业网关通过第二短信中心向接收客户端发送行业短信。Optionally, if the first short message sending device is the first short message center, and the second short message sending device is the second short message center, the
若第一短信发送装置为第四二级行业网关,第二短信发送装置为第五二级行业网关,则第一发送模块505具体用于:向第五二级行业网关发送短信,以使第五二级行业网关通过第三短信中心向接收客户端发送行业短信,第五二级行业网关与第三短信中心连接。If the first short message sending device is a fourth-level industry gateway, and the second short-message sending device is a fifth-level industry gateway, the
本实施例的行业短信发送装置的操作方法与实施例一一致,在此不再赘述。The operation method of the industrial short message sending apparatus in this embodiment is the same as that in the first embodiment, and will not be repeated here.
根据本实施例的行业短信发送装置,在行业短信对应的接收客户端所在的省份的第一短信发送装置的实时负载量较大时,可以向其他较空闲的省的短信发送装置发送该行业短信,由该较空闲的短信发送装置跨省发送行业短信,这样就能够利用较空闲的短信发送装置替较忙碌的短信发送装置发送行业短信,实现短信发送装置的负载均衡。According to the industry short message sending device of this embodiment, when the real-time load of the first short message sending device in the province where the receiving client corresponding to the industry short message is located is relatively large, the industry short message can be sent to the short message sending devices in other provinces that are relatively idle In this way, the idle short message sending device can send industry short messages across provinces, so that the busy short message sending device can be used to send industry short messages, and the load balance of the short message sending device can be realized.
实施例八Embodiment 8
本实施例对上述实施例的行业短信发送装置做进一步补充说明。本实施例以第一短信发送装置为第一短信中心,第二短信发送装置为第二短信中心为例进行说明。This embodiment provides further supplementary descriptions of the industry short message sending apparatus in the above-mentioned embodiment. This embodiment is described by taking the first short message sending device as the first short message center and the second short message sending device as the second short message center as an example.
可选地,如图6所示,本实施例的行业短信发送装置还包括第二判断模块601,该第二判断模块601用于若第一判断模块503判断出第一短信中心的实时负载量小于第一预设阈值,则判断与第一短信中心连接的第三二级行业网关的实时负载量是否大于或等于第二预设阈值,若判断结果为是,则触发第二获取模块504。Optionally, as shown in FIG. 6 , the apparatus for sending industry short messages in this embodiment further includes a
根据本实施例的行业短信发送装置,在行业短信对应的接收客户端所在的省份的短信中心的实时负载量较大时,可以向其他较空闲的短信中心发送该行业短信,由该较空闲的短信中心跨省发送行业短信,这样就能够利用较空闲的短信中心替较忙碌的短信中心发送行业短信,实现短信中心的负载均衡。According to the apparatus for sending an industry short message in this embodiment, when the real-time load of the short message center in the province where the receiving client corresponding to the industry short message is located is relatively large, the industry short message can be sent to other relatively idle short message centers, and the idler The short message center sends industry short messages across provinces, so that the idle short message center can be used to send industry short messages for the busy short message center, and the load balance of the short message center can be realized.
实施例九Embodiment 9
本实施例对上述实施例的行业短信发送装置做进一步补充说明。This embodiment provides further supplementary descriptions of the industry short message sending apparatus in the above-mentioned embodiment.
如图7A所示,本实施例的行业短信发送装置还包括第三获取模块701和第三判断模块702。As shown in FIG. 7A , the apparatus for sending industry short messages in this embodiment further includes a third acquiring
其中,第三获取模块701用于获取第二二级行业网关的实时负载量;第三判断模块702用于判断第二二级行业网关的实时负载量是否小于第二预设阈值,若判断结果为是,则触发第一发送模块505。Wherein, the
可选地,本实施例的行业短信发送装置还包括第四判断模块703,该第四判断模块703用于判断第二二级行业网关和/或第二短信中心是否出现故障,若判断结果为否,则触发第一发送模块505。Optionally, the apparatus for sending industry short messages in this embodiment further includes a
本实施例的行业短信发送装置的具体操作方法与实施例二相同,在此不再赘述。The specific operation method of the industrial short message sending apparatus of this embodiment is the same as that of the second embodiment, and will not be repeated here.
根据本实施例的行业短信发送装置,在行业短信对应的接收客户端所在的省份的短信中心的实时负载量较大时,可以向其他短信中心和二级行业网关均较空闲的省份发送该行业短信,由该较空闲的二级行业网关向所连接的较空闲的短信中心发送行业网关,并由该较空闲的短信中心跨省发送行业短信,这样就能够利用较空闲的短信中心替较忙碌的短信中心发送行业短信,不仅能够实现短信中心的负载均衡,而且能够实现二级行业网关的负载均衡。According to the device for sending industry short messages in this embodiment, when the real-time load of the short message center in the province where the receiving client corresponding to the industry short message is located is relatively large, the industry message center can be sent to a province where both other short message centers and secondary industry gateways are relatively idle. SMS, the idle secondary industry gateway sends the industry gateway to the connected idle SMS center, and the idle SMS center sends industry SMS across provinces, so that the idle SMS center can be used to replace the busy SMS Sending industry short messages from the SMS center can not only realize the load balancing of the SMS center, but also realize the load balancing of the secondary industry gateway.
实施例十Embodiment ten
本实施例对实施例七的行业短信发送装置做进一步补充说明。This embodiment provides further supplementary descriptions of the industry short message sending apparatus of the seventh embodiment.
本实施例以第一短信发送装置为第四二级行业网关,第二短信发送装置为第五二级行业网关为例进行说明。This embodiment is described by taking an example that the first short message sending device is a fourth-level industry gateway, and the second short-message sending device is a fifth-level industry gateway.
如图7B所示,本实施例的行业短信发送装置还包括第五判断模块711和第四获取模块712。As shown in FIG. 7B , the apparatus for sending industry short messages in this embodiment further includes a fifth judgment module 711 and a fourth acquisition module 712 .
其中,第五判断模块711用于判断与第五二级行业网关连接的第三短信中心的实时负载量是否大于或等于第二预设阈值,若判断结果为是,则触发第四获取模块712,否则触发第一发送模块505;第四获取模块712用于获取实时负载量小于第一预设阈值的另一第五二级行业网关,并触发第五判断模块711,即第五判断模块711判断第四获取模块712重新获取到的另一第五二级行业网关实时负载量是否大于或等于第二预设阈值。Wherein, the fifth judgment module 711 is used to judge whether the real-time load of the third short message center connected to the fifth-level industry gateway is greater than or equal to the second preset threshold, and if the judgment result is yes, trigger the fourth acquisition module 712 , otherwise trigger the
根据本实施例的行业短信发送装置,在第五二级行业网关对应的接收客户端所在的省份的短信中心的实时负载量较大时,可以向其他较空闲的短信中心发送该行业短信,由该较空闲的短信中心跨省发送该行业短信,这样就能够利用较空闲的短信中心替较忙碌的短信中心发送该行业短信,实现短信中心的负载均衡。According to the apparatus for sending industry short messages in this embodiment, when the real-time load of the short message center in the province where the receiving client corresponding to the fifth-level industry gateway is located is relatively large, the industry short message can be sent to other relatively idle short message centers, and the The relatively idle short message center sends the short message of the industry across provinces, so that the relatively idle short message center can be used to send the short message of the industry for the busy short message center, so as to realize the load balance of the short message center.
实施例十一Embodiment 11
本实施例提供一种行业短信发送装置,用于执行实施例五的行业短信发送方法。This embodiment provides an apparatus for sending an industry short message, which is used to execute the method for sending an industry short message in the fifth embodiment.
如图8所示,为根据本实施例的行业短信发送装置的结构示意图。该行业短信发送装置包括第二接收模块801、第五获取模块802和第二发送模块803。As shown in FIG. 8 , it is a schematic structural diagram of an apparatus for sending an industry short message according to this embodiment. The industry short message sending device includes a
其中,第二接收模块801用于接收企业服务器发送的行业短信,行业短信中包括接收客户端的信息;第五获取模块802用于若根据客户端的信息确定出需向所连接的第一短信中心发送行业短信,则获取第一短信中心的实时负载量和/或二级行业网关的实时负载量;第二发送模块803用于若第一短信中心的实时负载量大于或等于第一预设阈值和/或二级行业网关的实时负载量大于或等于第二预设阈值,则向一级行业网关发送行业短信,以使一级行业网关获取实时负载量小于第一预设阈值的第二短信中心,并向第二短信中心所在省份的二级行业网关发送行业短信。Wherein, the
本实施例的行业短信发送装置的具体操作方法与实施例五一致,在此不再赘述。The specific operation method of the industry short message sending apparatus in this embodiment is the same as that in Embodiment 5, and details are not repeated here.
根据本实施例的行业短信发送装置,若判断出所连接的第一短信中心的实时负载量大于或等于第一预设阈值时,可以向一级行业网关发送该行业短信,由一级行业网关寻找相对空闲的第二短息中心来发送该行业短信,这样就实现了短信中心的负载均衡。According to the apparatus for sending industry short messages in this embodiment, if it is determined that the real-time load of the connected first short message center is greater than or equal to the first preset threshold, the industry short message can be sent to the first-level industry gateway, and the first-level industry gateway will search for the industry short message. A relatively idle second short message center is used to send short messages in the industry, thus realizing the load balancing of the short message center.
实施例十二Embodiment 12
本实施例对实施例十一的行业短信发送装置做进一步补充说明。This embodiment provides further supplementary descriptions of the industry short message sending apparatus of the eleventh embodiment.
如图9所示,本实施例的行业短信发送装置包括第六判断模块901和第三发送模块902。As shown in FIG. 9 , the apparatus for sending industry short messages in this embodiment includes a
其中,第六判断模块901用于若根据客户端的信息确定出需向一级行业网关发送行业短信,则判断一级行业网关是否出现故障,若判断结果为是,则触发第三发送模块902;第三发送模块902用于向接收客户端发送行业短信。Wherein, the
本实施例的行业短信发送装置的具体操作方法与实施例六一致,在此不再赘述。The specific operation method of the industry short message sending device in this embodiment is the same as that in the sixth embodiment, and details are not repeated here.
根据本实施例的行业短信发送装置,若判断出一级行业网关出现故障和/或于一级行业网关连接的线路是否出现故障,则自身跨省向接收客户端发送行业短信,否则,可以向一级行业网关发送该行业短信,由一级行业网关寻找相对空闲的第二短息中心来发送该行业短信,这样就实现了短信中心的负载均衡。According to the industry short message sending device of this embodiment, if it is judged that the first-level industry gateway is faulty and/or whether the line connected to the first-level industry gateway is faulty, it will send the industry short message to the receiving client across provinces, otherwise, it can send the industry short message to the receiving client. The first-level industry gateway sends the industry short message, and the first-level industry gateway finds a relatively idle second short message center to send the industry short message, thus realizing the load balancing of the short message center.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by program instructions related to hardware, the aforementioned program can be stored in a computer-readable storage medium, and when the program is executed, execute It includes the steps of the above method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.
Claims (18)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510531836.9A CN106488416B (en) | 2015-08-26 | 2015-08-26 | Industry short message sending method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510531836.9A CN106488416B (en) | 2015-08-26 | 2015-08-26 | Industry short message sending method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106488416A CN106488416A (en) | 2017-03-08 |
CN106488416B true CN106488416B (en) | 2020-02-07 |
Family
ID=58234371
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510531836.9A Active CN106488416B (en) | 2015-08-26 | 2015-08-26 | Industry short message sending method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106488416B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107086951B (en) * | 2017-04-05 | 2019-12-03 | 中国联合网络通信集团有限公司 | Industry SMS transmission method, SMS gateway and industry SMS access gateway |
CN108737260A (en) * | 2017-04-13 | 2018-11-02 | 中国移动通信集团上海有限公司 | A kind of industry short message sending method, controller, interchanger and system |
CN107844373B (en) * | 2017-11-02 | 2021-11-19 | 郑州云海信息技术有限公司 | Request sending method, system, medium and equipment |
CN108769936B (en) * | 2018-06-27 | 2021-06-08 | 平安科技(深圳)有限公司 | Short message distribution method and device, computer equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1642109A (en) * | 2004-09-30 | 2005-07-20 | 迈普(四川)通信技术有限公司 | Method for realizing communication load equilibrium and gateway, central gateway thereof |
CN1832588A (en) * | 2005-03-07 | 2006-09-13 | 中兴通讯股份有限公司 | Implementation method of short message sending flow control in short message center |
US7460874B1 (en) * | 2005-08-12 | 2008-12-02 | Sprint Spectrum L.P. | Method for monitoring performance of a message-delivery system |
CN101888610A (en) * | 2010-07-06 | 2010-11-17 | 中兴通讯股份有限公司 | Method, system and device for realizing short message service |
CN103607339A (en) * | 2013-09-11 | 2014-02-26 | 北京京东尚科信息技术有限公司 | Method and system based on content automatic adjustment mail sending strategy |
-
2015
- 2015-08-26 CN CN201510531836.9A patent/CN106488416B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1642109A (en) * | 2004-09-30 | 2005-07-20 | 迈普(四川)通信技术有限公司 | Method for realizing communication load equilibrium and gateway, central gateway thereof |
CN1832588A (en) * | 2005-03-07 | 2006-09-13 | 中兴通讯股份有限公司 | Implementation method of short message sending flow control in short message center |
US7460874B1 (en) * | 2005-08-12 | 2008-12-02 | Sprint Spectrum L.P. | Method for monitoring performance of a message-delivery system |
CN101888610A (en) * | 2010-07-06 | 2010-11-17 | 中兴通讯股份有限公司 | Method, system and device for realizing short message service |
CN103607339A (en) * | 2013-09-11 | 2014-02-26 | 北京京东尚科信息技术有限公司 | Method and system based on content automatic adjustment mail sending strategy |
Also Published As
Publication number | Publication date |
---|---|
CN106488416A (en) | 2017-03-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102546216B (en) | Method for processing alarm messages in network management system and network management system | |
CN106815254B (en) | Data processing method and device | |
CN106488416B (en) | Industry short message sending method and device | |
CN108965049A (en) | Method, equipment, system and the storage medium of cluster exception solution are provided | |
CN103023815B (en) | Aggregation link load sharing method and device | |
CN106411548A (en) | Alarm information notification method and apparatus, and alarm information filtering device | |
CN111049673A (en) | Method and system for counting and monitoring API call in service gateway | |
CN110875841A (en) | Alarm information pushing method and device and readable storage medium | |
WO2015182629A1 (en) | Monitoring system, monitoring device, and monitoring program | |
CN112116511A (en) | State monitoring method and device for urban rail transit system | |
CN111262624B (en) | Method and device for monitoring optical cable fault | |
CN102387036B (en) | Method for detecting extra-large ring hidden dangers based on basic configuration data acquired by network management system of manufacturer | |
CN108268549A (en) | Data auditing system and method | |
CN108243046A (en) | A method and device for evaluating service quality based on data audit | |
CN102547789B (en) | End-to-end service quality early warning method, device and system | |
CN101977396A (en) | System and method for realizing network element service switching in multimedia messaging service | |
CN108271189A (en) | A kind of quality of service monitoring method and device | |
CN103053144B (en) | The method and apparatus of communication system traffic distribution | |
CN101212344A (en) | Method for Acquiring Performance Parameters of Multimedia Information Service Center | |
CN103530297A (en) | Method and device capable of automatically carrying out website analysis | |
CN104244293B (en) | Network node alarm method and system | |
CN110659247A (en) | Method, device, equipment and medium for detecting continuity of call ticket file | |
CN113766363B (en) | Fault monitoring method and device and computing equipment | |
CN114422324B (en) | Alarm information processing method and device, electronic equipment and storage medium | |
CN104573034A (en) | CDR call ticket based user group division method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |