WO2017121284A1 - Service processing method and device - Google Patents
Service processing method and device Download PDFInfo
- Publication number
- WO2017121284A1 WO2017121284A1 PCT/CN2017/070355 CN2017070355W WO2017121284A1 WO 2017121284 A1 WO2017121284 A1 WO 2017121284A1 CN 2017070355 W CN2017070355 W CN 2017070355W WO 2017121284 A1 WO2017121284 A1 WO 2017121284A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- short message
- weight
- service
- sps
- message sending
- 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.)
- Ceased
Links
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
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/12—Avoiding congestion; Recovering from congestion
- H04L47/125—Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1004—Server selection for load balancing
- H04L67/1008—Server selection for load balancing based on parameters of servers, e.g. available memory or workload
Definitions
- the present disclosure relates to network technologies, and in particular, to a service processing method and apparatus.
- the short message service provider is a service provider that provides profitability for short message mobile phone value-added services under the platform of the telecom operator. It is responsible for developing and providing SMS services suitable for users according to the needs of users.
- the service configuration and the short message SP are strongly associated, that is, the short message sending configuration of a certain service is fixedly processed by an SP.
- the drawback of this method is that the fixed allocation of services to an SP is not conducive to the change of the SMS SP, and the manual recovery is also required when the abnormal recovery occurs, and the service allocation is not flexible.
- the present disclosure provides a service processing method and apparatus to implement flexible change of a short message SP.
- a service processing method including:
- the weight interval corresponding to each short message SP is generated according to the weight of the plurality of short message SPs for providing the short message sending service corresponding to the short message sending request, and the weights correspond to the proportion of the total weight sum The proportion of the traffic volume of the short message sending service undertaken by the SP;
- a service processing apparatus including:
- the interval generating module is configured to generate a weight interval corresponding to each short message SP according to a weight of multiple short message SPs for providing a short message sending service corresponding to the short message sending request, when the short message sending request is received, where the weight is occupied
- the ratio of the total weight sum corresponds to the proportion of the traffic volume of the short message sending service undertaken by the SP;
- a random determination module configured to generate a random number in a union range of weight ranges corresponding to the respective short message SPs, and if the random number is located in a weight interval of a short message SP, determine that the short message SP is a target SP;
- the service allocation module is configured to allocate the short message sending service corresponding to the short message sending request to the target SP.
- the technical solution provided by the embodiment of the present disclosure may include the following beneficial effects: by setting the weight of the SP, and assigning a service to each SP according to the weight, so that the change of the service allocation between the SPs can be realized by the change of the weight, thereby making the short message SP changes are more flexible.
- FIG. 1 is an application system for business processing according to an exemplary embodiment
- FIG. 2 is a flowchart of a service processing method according to an exemplary embodiment
- FIG. 3 is a flowchart of another service processing method according to an exemplary embodiment
- FIG. 4 is a structural diagram of a service processing apparatus according to an exemplary embodiment
- FIG. 5 is a structural diagram of another service processing apparatus according to an exemplary embodiment
- FIG. 6 is a structural diagram of still another service processing apparatus according to an exemplary embodiment.
- FIG. 1 illustrates an application system of the service processing method of the present application.
- the server 11 can receive a short message sending request. For example, a certain business organization needs to send a group short message to send the business organization to a specific group of people. Fixed SMS message.
- the server 11 may, according to the short message sending request, instruct any SMS SP in the SMS SP cluster 12 to process the service.
- the short message sending service corresponding to the short message sending request may be allocated to the short message SP13, and the short message SP13 sets the service organization. SMS messages are sent to specific people.
- the server 11 receives a large number of short message sending requests, the services corresponding to the requests may be allocated to the SPs in the short message SP cluster 12, and the multiple SPs jointly bear the short message sending service. For example, if the server 11 receives 100 pieces of short message sending service and needs to be processed, then 20 of them can be assigned to the short message. The SP13 processes, and 10 of them are allocated to the short message SP14 for processing, and the remaining services are allocated to the short message SP15 for processing. That is, the server 11 is equivalent to a distributed device, and can distribute the request service flow sent by the short message to the plurality of short message SPs.
- the server 11 may perform the offloading of the short message sending service according to the policy configured on the background system 16, and the policy may be the weight of each SP in the short message SP cluster 12, and the weight accounts for the total weight and the proportion corresponding to the SP.
- the weight ratio can be known, when the server 11 allocates the short message sending service, 1/7 of the traffic is allocated to the SP15, the 2/7 traffic is allocated to the SP13, and the 1/7 traffic is allocated to the SP14, and 3
- the traffic of /7 is allocated to SP17, that is, the proportion of services between each short message SP is limited by the weight ratio.
- the configured SP weight can be a positive integer.
- the server 11 can send the short message sending service to a certain short message SP according to the flow of the service processing method shown in FIG. 2 . as shown in picture 2:
- step 201 when receiving the short message transmission request, the weight interval corresponding to each short message SP is generated according to the weights of the plurality of short message SPs for providing the short message transmission service corresponding to the short message transmission request.
- the server 11 may generate a weight interval corresponding to each short message SP according to the weight of each short message SP.
- the minimum value is 1, and the maximum value can be set to the sum of the individual weights (ie, the total weight sum) plus 1, and the range of each interval is [the maximum value of the previous interval, the maximum value of the previous interval + current weight value).
- Interval including:
- step 202 a random number is generated in the union of the weight intervals corresponding to the respective short message SPs. If the random number is located in the weight interval of the short message SP, the short message SP is determined to be the target SP.
- a random number is generated in the range, and the random number is compared with each weight interval to determine which weight the random number is located. Interval. For example, assuming that a random number 52 is generated, the weight interval [41, 71] corresponding to the 52 is obtained.
- the server can allocate the traffic according to the configured weight ratio when the server divides the flow.
- step 203 the short message sending service corresponding to the short message sending request is allocated to the target SP.
- the target SP may send a corresponding short message sending service according to the request of the short message sending request, for example, the short message content set by the business organization may be sent to a specific group.
- the background system 16 may store the weights corresponding to the SPs in the database, and may send the weights of the SPs to the server 11 and be cached locally by the server 11. Therefore, the server 11 can generate a weighting interval as soon as possible after receiving the short message sending request, and select the target SP by using a random matching method.
- the server 11 may also store the weight after the first generation of the weight interval, and then select the target SP according to the weight interval when the next time the short message transmission request is received, further improving the determination of the target SP. speed.
- weights for multiple SMS SPs you can flexibly change the service of an SP. For example, if you want to reduce the amount of traffic allocated to an SP, reduce its weight, or if you want to stop assigning to an SP. If the SMS is sent to the service, set its weight to zero.
- the server can implement the automatic splitting of the short message sending service according to the weight, as long as the weights of the SPs for the short message sending service are set according to the actual service requirements or the service capabilities of the SP.
- the background system can also update the weight of each SP.
- the updated SP weight can be called new configuration data, and the new configuration data can be sent to the server by the background system, and the server caches the new configuration data locally.
- FIG. 3 illustrates the business process
- a flow chart of the method may include:
- step 301 a monitoring clear command is obtained, where the command carries the SP identifier to be culled.
- the server may obtain a monitoring clear command, which is mainly used to notify which SMS SPs will be rejected, and no longer receive SMS sending services.
- the monitoring clear command may be determined by the monitoring platform by monitoring the sending success rate and duration of each short message SP.
- the monitoring platform may set an RP culling condition including: the sending success rate is lower than the preset success rate.
- the threshold is 85% and the duration is greater than or equal to the time threshold of 3 minutes (the values of the success rate threshold and the time threshold can be adjusted).
- the monitoring platform monitors that the spoofing condition is met when the SP sends the short message, it is determined that the SP can be culled, the monitoring clear command is sent to the server, and the SP identifier of the short message SP to be culled can be carried in the command.
- the monitoring platform may be a monitoring platform set outside the server, or may be a monitoring platform set on the server.
- step 302 according to the monitoring and clearing command, the weight of the short message SP corresponding to the SP identifier is removed, and the configuration data status of the short message SP in the background system is modified to be unavailable, so that the short message SP is no longer assumed. SMS delivery service.
- the server may remove the SP configuration information cached by the server, including the weight of the SMS SP corresponding to the SP identifier, and also change the configuration data status of the SP in the background system to be unavailable.
- the server receives the short message sending request and calculates the target SP to be allocated, the SP that has already removed the weight will not have the corresponding weight interval, and will not be assigned the short message sending service.
- the server obtains the monitoring and clearing command, and the monitoring platform may also notify the person in charge of the rejected SMS SP according to the command, so that the person in charge knows that the SP has been culled and no longer processes the short message sending service.
- the service processing method of the example can monitor the SMS sending log of the SP, and automatically notify the server when the short message sending success rate of the short message SP is low, and the server removes the weight of the corresponding SP, thereby quickly removing the abnormal SP and reducing the service. risk.
- the configuration data status of the SP can also be changed by the administrator in the background system. For example, if a short message SP in the current stage fails and is not suitable for processing the short message sending service, the configuration data status of the SP in the database of the background system may be set to be unavailable; or, when no longer cooperate with a short message SP, It is also possible to remove the configuration data of the SP from the background system. .
- the background system may send a data status notification to the server.
- the server may be notified to configure the SMS SP whose data status is unavailable. The server will notify the data status that if the status of an SP is unavailable, the configuration data of the SP cached by the local server, including the weight corresponding to the SP, may be removed, so that the short message SP will no longer bear the short message sending service.
- the application also provides a service processing device, which can execute the above-mentioned service processing method, as shown in FIG. 4
- the apparatus can include an interval generation module 41, a random determination module 42, and a service distribution module 43.
- the interval generating module 41 is configured to generate, according to the weights of the plurality of short message SPs for providing the short message sending service corresponding to the short message sending request, a weight interval corresponding to each short message SP, where the weight is generated.
- the ratio of the sum of the total weights corresponds to the proportion of the traffic volume of the short message sending service undertaken by the SP;
- the random determination module 42 is configured to generate a random number in a union range of weight ranges corresponding to the respective short message SPs, and if the random number is located in a weight interval of a short message SP, determine that the short message SP is a target SP. ;
- the service allocation module 43 is configured to allocate the short message sending service corresponding to the short message sending request to the target SP.
- the apparatus may further include: a monitoring receiving module 44 and a data culling module 45.
- the monitoring receiving module 44 is configured to acquire a monitoring clear command, where the monitoring clear command carries an SP identifier to be culled;
- the data culling module 45 is configured to: according to the monitoring and clearing command, cull the weight of the short message SP corresponding to the SP identifier, and modify the configuration data status of the short message SP in the background system to be unavailable, so that the short message SP is not Responsible for SMS delivery business.
- the monitoring receiving module 44 is configured to separately monitor the sending success rate and duration of the plurality of short message SPs; if the sending success rate of the short message SP is lower than a preset success rate threshold, and the duration reaches The time threshold determines that the short message SP is culled.
- the apparatus may further include: a status receiving module 46 and a data processing module 47, wherein
- the status receiving module 46 is configured to receive a data status notification sent by the background system, where the data status notification is used to indicate that the configuration data status is unavailable.
- the data processing module 47 is configured to: according to the data status notification, remove the weight of the short message SP, so that the short message SP does not process the short message sending service.
- the device may further include: a data storage module 48, configured to receive new configuration data sent by the background system, where the new configuration data includes respective weights of the plurality of short message SPs; and cache the new configuration data On the local server.
- a data storage module 48 configured to receive new configuration data sent by the background system, where the new configuration data includes respective weights of the plurality of short message SPs; and cache the new configuration data On the local server.
- the service processing device of the example may be disposed in a server, and the server may allocate the short message sending service corresponding to the received short message sending request to an SP, and implement a flexible change of the short message sending service by changing the weight of the SP.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Telephonic Communication Services (AREA)
- Information Transfer Between Computers (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
本申请要求2016年01月14日递交的申请号为201610024395.8、发明名称为“业务处理方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims the priority of the Chinese Patent Application Serial No. No. No. No. No. No. No. No.
本公开涉及网络技术,尤其涉及一种业务处理方法和装置。The present disclosure relates to network technologies, and in particular, to a service processing method and apparatus.
短信服务提供者即短信SP(Service Provider)是在电信运营商的平台下,通过提供短信息手机增值服务盈利的机构,负责根据用户的需求开发并提供适合用户使用的短信服务。相关技术中,业务配置和短信SP是强关联的,即某个业务的短信发送配置为固定由某个SP处理。这种方式的缺陷是,固定将业务分配在某个SP上,不利于短信SP的变更,异常恢复时也需要人工处理,业务分配不灵活。The short message service provider (SMS) is a service provider that provides profitability for short message mobile phone value-added services under the platform of the telecom operator. It is responsible for developing and providing SMS services suitable for users according to the needs of users. In the related art, the service configuration and the short message SP are strongly associated, that is, the short message sending configuration of a certain service is fixedly processed by an SP. The drawback of this method is that the fixed allocation of services to an SP is not conducive to the change of the SMS SP, and the manual recovery is also required when the abnormal recovery occurs, and the service allocation is not flexible.
发明内容Summary of the invention
为克服相关技术中存在的问题,本公开提供一种业务处理方法和装置,以实现短信SP的灵活变更。To overcome the problems in the related art, the present disclosure provides a service processing method and apparatus to implement flexible change of a short message SP.
根据本公开实施例的第一方面,提供一种业务处理方法,包括:According to a first aspect of the embodiments of the present disclosure, a service processing method is provided, including:
在接收到短信发送请求时,根据用于提供所述短信发送请求对应的短信发送业务的多个短信SP的权重,分别生成各个短信SP对应的权重区间,所述权重占总权重和的比例对应所述SP承担的短信发送业务的业务量比例;When receiving the short message sending request, the weight interval corresponding to each short message SP is generated according to the weight of the plurality of short message SPs for providing the short message sending service corresponding to the short message sending request, and the weights correspond to the proportion of the total weight sum The proportion of the traffic volume of the short message sending service undertaken by the SP;
在所述各个短信SP对应的权重区间的并集范围内,生成一个随机数,若所述随机数位于一个短信SP的权重区间,则确定所述短信SP为目标SP;Generating a random number in a union range of weight ranges corresponding to the respective short message SPs, and if the random number is located in a weight interval of a short message SP, determining that the short message SP is a target SP;
将所述短信发送请求对应的短信发送业务,分配至所述目标SP。And distributing the short message sending service corresponding to the short message sending request to the target SP.
根据本公开实施例的第二方面,提供一种业务处理装置,包括:According to a second aspect of the embodiments of the present disclosure, a service processing apparatus is provided, including:
区间生成模块,用于在接收到短信发送请求时,根据用于提供所述短信发送请求对应的短信发送业务的多个短信SP的权重,分别生成各个短信SP对应的权重区间,所述权重占总权重和的比例对应所述SP承担的短信发送业务的业务量比例;The interval generating module is configured to generate a weight interval corresponding to each short message SP according to a weight of multiple short message SPs for providing a short message sending service corresponding to the short message sending request, when the short message sending request is received, where the weight is occupied The ratio of the total weight sum corresponds to the proportion of the traffic volume of the short message sending service undertaken by the SP;
随机确定模块,用于在所述各个短信SP对应的权重区间的并集范围内,生成一个随机数,若所述随机数位于一个短信SP的权重区间,则确定所述短信SP为目标SP; a random determination module, configured to generate a random number in a union range of weight ranges corresponding to the respective short message SPs, and if the random number is located in a weight interval of a short message SP, determine that the short message SP is a target SP;
业务分配模块,用于将所述短信发送请求对应的短信发送业务,分配至所述目标SP。The service allocation module is configured to allocate the short message sending service corresponding to the short message sending request to the target SP.
本公开的实施例提供的技术方案可以包括以下有益效果:通过设置SP的权重,并根据该权重向各个SP分配业务,使得可以通过权重的变更实现各个SP之间业务分配的变更,从而使得短信SP的变更更加灵活。The technical solution provided by the embodiment of the present disclosure may include the following beneficial effects: by setting the weight of the SP, and assigning a service to each SP according to the weight, so that the change of the service allocation between the SPs can be realized by the change of the weight, thereby making the short message SP changes are more flexible.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。The above general description and the following detailed description are intended to be illustrative and not restrictive.
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。The accompanying drawings, which are incorporated in the specification of FIG
图1是根据一示例性实施例示出的一种业务处理的应用系统;FIG. 1 is an application system for business processing according to an exemplary embodiment;
图2是根据一示例性实施例示出的一种业务处理方法的流程图;FIG. 2 is a flowchart of a service processing method according to an exemplary embodiment;
图3是根据一示例性实施例示出的另一种业务处理方法的流程图;FIG. 3 is a flowchart of another service processing method according to an exemplary embodiment;
图4是根据一示例性实施例示出的一种业务处理装置的结构图;FIG. 4 is a structural diagram of a service processing apparatus according to an exemplary embodiment;
图5是根据一示例性实施例示出的另一种业务处理装置的结构图;FIG. 5 is a structural diagram of another service processing apparatus according to an exemplary embodiment;
图6是根据一示例性实施例示出的又一种业务处理装置的结构图。FIG. 6 is a structural diagram of still another service processing apparatus according to an exemplary embodiment.
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. The following description refers to the same or similar elements in the different figures unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with aspects of the invention as detailed in the appended claims.
图1示例了本申请的业务处理方法的应用系统,如图1所示,服务器11可以接收短信发送请求,例如,某个业务机构需要进行群发短信,向一组特定的人群发送该业务机构设定的短信信息。服务器11可以根据该短信发送请求,指示短信SP集群12中的任一短信SP处理该业务,例如,可以将上述短信发送请求对应的短信发送业务分配至短信SP13,由短信SP13将业务机构设定的短信信息发送至特定的人群。FIG. 1 illustrates an application system of the service processing method of the present application. As shown in FIG. 1 , the
本例子中,如果服务器11接收到大量的短信发送请求,可以将这些请求对应的业务分配至短信SP集群12中的各个SP,由这些多个SP共同承担短信发送业务。例如,假设服务器11接收到100份短信发送业务需要处理,那么可以将其中的20份分配给短信
SP13处理,将其中的10份分配给短信SP14处理,其余的业务分配给短信SP15进行处理。即,服务器11相当于一个分流的设备,可以将短信发送的请求业务流分配至多个短信SP。In this example, if the
在一个例子中,服务器11可以根据在后台系统16上配置的策略来执行短信发送业务的分流,该策略可以是短信SP集群12中的各个SP的权重,该权重占总权重和的比例对应SP承担的短信发送业务的业务量比例。例如,假设短信SP集群12中共有四台短信SP设备,可以通过后台系统16配置这四台设备的权重分别为[SP15:SP13:SP14:SP17]=[10:20:10:30],通过该权重比例可以得知,服务器11在分配短信发送业务时,其中的1/7的业务量分配给SP15,2/7的业务量分配给SP13,1/7的业务量分配给SP14,且3/7的业务量分配给SP17,即通过权重配比限定了各个短信SP之间的业务比例。此外,配置的SP权重可以是正整数。In an example, the
而对于其中一个短信发送业务,服务器11可以根据图2所示的业务处理方法的流程,将该短信发送业务发送至某个短信SP。如图2所示:For one of the short message sending services, the
在步骤201中,在接收到短信发送请求时,根据用于提供短信发送请求对应的短信发送业务的多个短信SP的权重,分别生成各个短信SP对应的权重区间。In step 201, when receiving the short message transmission request, the weight interval corresponding to each short message SP is generated according to the weights of the plurality of short message SPs for providing the short message transmission service corresponding to the short message transmission request.
例如,服务器11在接收到短信发送请求时,可以根据各个短信SP的权重,分别生成各个短信SP对应的权重区间。在生成权重区间时,最小值是1,最大值可以设定为各个权重的总和(即总权重和)加1,而各个区间的范围为[上一个区间的最大值,上一个区间的最大值+当前权重值)。For example, when receiving the short message transmission request, the
仍以上述的权重配置[SP15:SP13:SP14:SP17]=[10:20:10:30]为例,可以生成如下权重区间:Still taking the above weight configuration [SP15:SP13:SP14:SP17]=[10:20:10:30] as an example, the following weight interval can be generated:
SP15对应的权重区间:[1,11);Weight range corresponding to SP15: [1, 11);
SP13对应的权重区间:[11,31);Weight range corresponding to SP13: [11, 31);
SP14对应的权重区间:[31,41);Weight range corresponding to SP14: [31, 41);
SP17对应的权重区间:[41,71);Weight range corresponding to SP17: [41, 71);
在另一个例子中,也可以将各个短信SP的权重进行排序,如,[SP15:SP14:SP13:SP17]=[10:10:20:30],然后再按照上述的方法生成各自对应的权重区间,包括:In another example, the weights of the individual short message SPs may also be sorted, for example, [SP15:SP14:SP13:SP17]=[10:10:20:30], and then the respective weights are generated according to the above method. Interval, including:
SP15对应的权重区间:[1,11);Weight range corresponding to SP15: [1, 11);
SP14对应的权重区间:[11,21);SP14 corresponding weight interval: [11, 21);
SP13对应的权重区间:[21,41); Weight range corresponding to SP13: [21, 41);
SP17对应的权重区间:[41,71);Weight range corresponding to SP17: [41, 71);
在步骤202中,在各个短信SP对应的权重区间的并集范围内,生成一个随机数,若该随机数位于一个短信SP的权重区间,则确定该短信SP为目标SP。In
例如,各个短信SP对应的权重区间的并集范围内,即[1,71),在该范围内生成一个随机数,并且将该随机数分别与各个权重区间进行比较,判断随机数位于哪个权重区间。比如,假设生成了一个随机数52,可以得到该52位于SP17对应的权重区间[41,71)。For example, within a union range of weight intervals corresponding to each short message SP, that is, [1, 71), a random number is generated in the range, and the random number is compared with each weight interval to determine which weight the random number is located. Interval. For example, assuming that a random number 52 is generated, the weight interval [41, 71] corresponding to the 52 is obtained.
本例子中,如果随机数落入了某个权重区间,就可以表示该权重区间对应的短信SP被选中,该SP可以称为目标SP。此外,随机数落入某个权重区间的概率,与该权重区间在权重区间并集[1,71)中的所占比例也是基本一致的,比如,SP17对应的权重区间[41,71)最长,那么随机数落入该区间的概率也相对较大,因此,这种通过配置权重、以及随机匹配的方式,可以使得服务器在分流时按照配置的权重比例分配业务量。In this example, if the random number falls within a certain weight interval, it can be indicated that the short message SP corresponding to the weight interval is selected, and the SP can be referred to as a target SP. In addition, the probability that the random number falls within a certain weight interval is basically the same as the proportion of the weight interval in the weight interval union [1, 71). For example, the weight interval [41, 71) corresponding to SP17 is the most. Long, then the probability that the random number falls into the interval is relatively large. Therefore, by configuring the weight and the random matching manner, the server can allocate the traffic according to the configured weight ratio when the server divides the flow.
在步骤203中,将短信发送请求对应的短信发送业务,分配至目标SP。In
例如,目标SP可以根据短信发送请求的要求,发送对应的短信发送业务,比如,可以向特定人群发送业务机构设定的短信内容。For example, the target SP may send a corresponding short message sending service according to the request of the short message sending request, for example, the short message content set by the business organization may be sent to a specific group.
在本例子的业务处理方法中,后台系统16在配置各个SP的权重后,可以将SP对应的权重存储在数据库中,并且,可以将各SP的权重发送到服务器11,由服务器11缓存在本地,这样服务器11可以在接收到短信发送请求时,尽快的查询权重生成权重区间,并使用随机匹配方式选择目标SP。此外,如果各个SP的权重没有变化,服务器11也可以在首次生成权重区间后进行存储,下一次再接收到短信发送请求时就可以直接根据该权重区间选择目标SP,进一步提高了目标SP的确定速度。In the service processing method of the present example, after configuring the weights of the SPs, the
通过为多个短信SP配置权重,可以灵活的变更某个SP的业务,比如,如果想要降低向某个SP分配的业务量,降低其权重即可,或者,如果要停止向某个SP分配短信发送业务,则将其权重设置为零即可。只要根据实际业务需求或者SP的服务能力设置好用于承担短信发送业务的各SP的权重,服务器就可以根据该权重实现短信发送业务的自动分流。后台系统还可以更新各个SP的权重,更新后的SP权重可以称为新配置数据,该新配置数据可以由后台系统发送至服务器,由服务器将新配置数据缓存在本地。By configuring weights for multiple SMS SPs, you can flexibly change the service of an SP. For example, if you want to reduce the amount of traffic allocated to an SP, reduce its weight, or if you want to stop assigning to an SP. If the SMS is sent to the service, set its weight to zero. The server can implement the automatic splitting of the short message sending service according to the weight, as long as the weights of the SPs for the short message sending service are set according to the actual service requirements or the service capabilities of the SP. The background system can also update the weight of each SP. The updated SP weight can be called new configuration data, and the new configuration data can be sent to the server by the background system, and the server caches the new configuration data locally.
应用本例子的业务处理方法,还可以在短信SP发生异常时,快速剔除故障的SP,例如,如果不再与某个短信SP合作开展短信发送业务,或者某个短信SP的短信发送成功率比较低,都可以通过本例子的业务处理方法剔除对应的SP。图3示例了该业务处理 方法的流程图,可以包括:Applying the service processing method of this example, you can quickly remove the faulty SP when the SMS SP is abnormal. For example, if the SMS sending service is no longer cooperated with a short message SP, or the SMS sending success rate of a short message SP is compared. Low, you can use the business processing method of this example to eliminate the corresponding SP. Figure 3 illustrates the business process A flow chart of the method may include:
在步骤301中,获取监控清除命令,该命令携带待剔除的SP标识。In
例如,服务器可以获取到监控清除命令,该命令主要是用于通知哪些短信SP将剔除,不再接收短信发送业务。例如,该监控清除命令可以是监控平台通过监控各个短信SP的发送成功率和持续时间确定,示例性的,监控平台可以设定一个SP的剔除条件包括:发送成功率低于预设的成功率阈值85%,且持续时间大于或等于时间阈值3分钟(成功率阈值和时间阈值的数值可以调整)。如果监控平台监控到某个SP发送短信时满足了上述剔除条件,则确定可以剔除该SP,生成监控清除命令发送至服务器,并可以在命令中携带待剔除的短信SP的SP标识。该监控平台可以是服务器之外设置的一个监控平台,或者也可以是设置在服务器上的监控平台。For example, the server may obtain a monitoring clear command, which is mainly used to notify which SMS SPs will be rejected, and no longer receive SMS sending services. For example, the monitoring clear command may be determined by the monitoring platform by monitoring the sending success rate and duration of each short message SP. For example, the monitoring platform may set an RP culling condition including: the sending success rate is lower than the preset success rate. The threshold is 85% and the duration is greater than or equal to the time threshold of 3 minutes (the values of the success rate threshold and the time threshold can be adjusted). If the monitoring platform monitors that the spoofing condition is met when the SP sends the short message, it is determined that the SP can be culled, the monitoring clear command is sent to the server, and the SP identifier of the short message SP to be culled can be carried in the command. The monitoring platform may be a monitoring platform set outside the server, or may be a monitoring platform set on the server.
在步骤302中,根据所述监控清除命令,剔除所述SP标识对应的短信SP的权重,并修改后台系统中所述短信SP的配置数据状态为不可用,以使得所述短信SP不再承担短信发送业务。In
例如,服务器在获取到监控清除命令后,可以剔除服务器本地缓存的SP配置信息,包括该SP标识对应的短信SP的权重,并且,也将更改后台系统中该SP的配置数据状态为不可用。这样,后续当服务器再接收到短信发送请求,计算待分配的目标SP时,已经剔除权重的SP,将不会再有对应的权重区间,也不会再被分配短信发送业务。For example, after obtaining the monitoring and clearing command, the server may remove the SP configuration information cached by the server, including the weight of the SMS SP corresponding to the SP identifier, and also change the configuration data status of the SP in the background system to be unavailable. In this way, when the server receives the short message sending request and calculates the target SP to be allocated, the SP that has already removed the weight will not have the corresponding weight interval, and will not be assigned the short message sending service.
此外,服务器获取监控清除命令之外,监控平台还可以根据该命令通知该被剔除的短信SP的负责人,以使得负责人知晓其SP已经被剔除,不再处理短信发送业务。In addition, the server obtains the monitoring and clearing command, and the monitoring platform may also notify the person in charge of the rejected SMS SP according to the command, so that the person in charge knows that the SP has been culled and no longer processes the short message sending service.
本例子的业务处理方法,可以通过监控SP的短信发送日志,在短信SP的短信发送成功率较低时自动通知服务器,并由服务器剔除对应SP的权重,实现了快速剔除掉异常SP,减少业务风险。The service processing method of the example can monitor the SMS sending log of the SP, and automatically notify the server when the short message sending success rate of the short message SP is low, and the server removes the weight of the corresponding SP, thereby quickly removing the abnormal SP and reducing the service. risk.
在另一个例子中,还可以由管理人员在后台系统更改SP的配置数据状态。比如,如果当前阶段某个短信SP出现故障,不适宜处理短信发送业务,可以将后台系统的数据库中该SP的配置数据状态设置为不可用;或者,当不再与某个短信SP合作时,还可以将后台系统中剔除掉该SP的配置数据。。后台系统在SP的配置数据状态变更后,可以向服务器发送数据状态通知,例如,可以通知服务器配置数据状态为不可用的短信SP。服务器将根据数据状态通知,如果某个SP的状态为不可用,则可以剔除本地服务器缓存的该SP的配置数据,包括该SP对应的权重,从而该短信SP将不再承担短信发送业务。In another example, the configuration data status of the SP can also be changed by the administrator in the background system. For example, if a short message SP in the current stage fails and is not suitable for processing the short message sending service, the configuration data status of the SP in the database of the background system may be set to be unavailable; or, when no longer cooperate with a short message SP, It is also possible to remove the configuration data of the SP from the background system. . After the configuration data status of the SP is changed, the background system may send a data status notification to the server. For example, the server may be notified to configure the SMS SP whose data status is unavailable. The server will notify the data status that if the status of an SP is unavailable, the configuration data of the SP cached by the local server, including the weight corresponding to the SP, may be removed, so that the short message SP will no longer bear the short message sending service.
本申请还提供了一种业务处理装置,该装置可以执行上述的业务处理方法,如图4
所示,该装置可以包括:区间生成模块41、随机确定模块42和业务分配模块43。The application also provides a service processing device, which can execute the above-mentioned service processing method, as shown in FIG. 4
As shown, the apparatus can include an
区间生成模块41,用于在接收到短信发送请求时,根据用于提供所述短信发送请求对应的短信发送业务的多个短信SP的权重,分别生成各个短信SP对应的权重区间,所述权重占总权重和的比例对应所述SP承担的短信发送业务的业务量比例;The
随机确定模块42,用于在所述各个短信SP对应的权重区间的并集范围内,生成一个随机数,若所述随机数位于一个短信SP的权重区间,则确定所述短信SP为目标SP;The
业务分配模块43,用于将所述短信发送请求对应的短信发送业务,分配至所述目标SP。The
参见图5,该装置还可以包括:监控接收模块44和数据剔除模块45。Referring to FIG. 5, the apparatus may further include: a monitoring receiving
监控接收模块44,用于获取监控清除命令,所述监控清除命令携带待剔除的SP标识;The
数据剔除模块45,用于根据所述监控清除命令,剔除所述SP标识对应的短信SP的权重,并修改后台系统中所述短信SP的配置数据状态为不可用,以使得所述短信SP不再承担短信发送业务。The
在一个例子中,监控接收模块44,用于:分别监控所述多个短信SP的发送成功率和持续时间;若一个短信SP的发送成功率低于预设的成功率阈值,且持续时间达到时间阈值,则确定剔除所述短信SP。In an example, the
在一个例子中,参见图6,该装置还可以包括:状态接收模块46和数据处理模块47,其中,In an example, referring to FIG. 6, the apparatus may further include: a
状态接收模块46,用于接收后台系统发送的数据状态通知,所述数据状态通知用于指示配置数据状态为不可用的短信SP;The
数据处理模块47,用于根据所述数据状态通知,将所述短信SP的权重剔除,以使得所述短信SP不再处理短信发送业务。The
在一个例子中,该装置还可以包括:数据存储模块48,用于接收后台系统发送的新配置数据,所述新配置数据包括所述多个短信SP各自的权重;将所述新配置数据缓存在本地服务器。In an example, the device may further include: a
本例子的业务处理装置,可以设置在服务器,通过该装置,服务器可以将接收到的短信发送请求对应的短信发送业务分配至某个SP,并且可以通过改变SP的权重实现灵活的变更短信发送业务在各个SP之间的分流比例。The service processing device of the example may be disposed in a server, and the server may allocate the short message sending service corresponding to the received short message sending request to an SP, and implement a flexible change of the short message sending service by changing the weight of the SP. The split ratio between the various SPs.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本发明的其它 实施方案。本申请旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本发明的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本发明的真正范围和精神由下面的权利要求指出。Those skilled in the art will readily appreciate other aspects of the present invention after considering the specification and practicing the invention disclosed herein. implementation plan. The present application is intended to cover any variations, uses, or adaptations of the present invention, which are in accordance with the general principles of the present invention and include common general knowledge or conventional technical means in the art that are not disclosed in the present disclosure. . The specification and examples are to be considered as illustrative only,
应当理解的是,本发明并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本发明的范围仅由所附的权利要求来限制。 It is to be understood that the invention is not limited to the details of the details of The scope of the invention is limited only by the appended claims.
Claims (10)
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610024395.8A CN106973368A (en) | 2016-01-14 | 2016-01-14 | Method and device for business processing |
| CN201610024395.8 | 2016-01-14 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2017121284A1 true WO2017121284A1 (en) | 2017-07-20 |
Family
ID=59310851
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2017/070355 Ceased WO2017121284A1 (en) | 2016-01-14 | 2017-01-06 | Service processing method and device |
Country Status (3)
| Country | Link |
|---|---|
| CN (1) | CN106973368A (en) |
| TW (1) | TWI656504B (en) |
| WO (1) | WO2017121284A1 (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2020006865A1 (en) * | 2018-07-03 | 2020-01-09 | 平安科技(深圳)有限公司 | Short message sending method and apparatus, computer device and storage medium |
| CN115103321A (en) * | 2022-06-25 | 2022-09-23 | 平安银行股份有限公司 | Short message sending method and device, computer equipment and storage medium |
| CN120881522A (en) * | 2025-09-25 | 2025-10-31 | 阿里健康科技(中国)有限公司 | Data processing method and device |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111432357B (en) * | 2020-02-24 | 2022-07-08 | 车智互联(北京)科技有限公司 | Information processing method and system and computing equipment |
| CN112235428B (en) * | 2020-12-16 | 2021-03-30 | 太平金融科技服务(上海)有限公司 | Call request processing method and device, computer equipment and storage medium |
| CN114020497A (en) * | 2021-11-26 | 2022-02-08 | 广州趣丸网络科技有限公司 | A service distribution method, apparatus, device and readable storage medium |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101917484A (en) * | 2010-08-23 | 2010-12-15 | 中兴通讯股份有限公司 | Load balancing system and method for service data request |
| CN102394931A (en) * | 2011-11-04 | 2012-03-28 | 北京邮电大学 | Cloud-based user visit request scheduling method |
| CN102724105A (en) * | 2011-03-30 | 2012-10-10 | 腾讯科技(深圳)有限公司 | Load balance method and apparatus |
| US20130205011A1 (en) * | 2011-10-17 | 2013-08-08 | Hitachi, Ltd. | Service providing system |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8638679B2 (en) * | 2009-05-28 | 2014-01-28 | Qualcomm Incorporated | Method and apparatus that facilitates automatic assistance for positioning of access point base stations |
| EP2603021B1 (en) * | 2011-12-06 | 2019-07-03 | Samsung Electronics Co., Ltd | Apparatus and method for delivering short message service efficiently in wireless communication system |
| US20130305378A1 (en) * | 2012-05-09 | 2013-11-14 | Visa Europe Limited | Method and system for establishing trust between a service provider and a client of the service provider |
| TW201405328A (en) * | 2012-07-31 | 2014-02-01 | Ibm | Method and system of selecting benchmark via social network service for activity coaching |
| TWI536303B (en) * | 2014-01-10 | 2016-06-01 | Chunghwa Telecom Co Ltd | Find the contact method and system for the person you want to contact with |
-
2016
- 2016-01-14 CN CN201610024395.8A patent/CN106973368A/en active Pending
- 2016-12-21 TW TW105142525A patent/TWI656504B/en active
-
2017
- 2017-01-06 WO PCT/CN2017/070355 patent/WO2017121284A1/en not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101917484A (en) * | 2010-08-23 | 2010-12-15 | 中兴通讯股份有限公司 | Load balancing system and method for service data request |
| CN102724105A (en) * | 2011-03-30 | 2012-10-10 | 腾讯科技(深圳)有限公司 | Load balance method and apparatus |
| US20130205011A1 (en) * | 2011-10-17 | 2013-08-08 | Hitachi, Ltd. | Service providing system |
| CN102394931A (en) * | 2011-11-04 | 2012-03-28 | 北京邮电大学 | Cloud-based user visit request scheduling method |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2020006865A1 (en) * | 2018-07-03 | 2020-01-09 | 平安科技(深圳)有限公司 | Short message sending method and apparatus, computer device and storage medium |
| CN115103321A (en) * | 2022-06-25 | 2022-09-23 | 平安银行股份有限公司 | Short message sending method and device, computer equipment and storage medium |
| CN115103321B (en) * | 2022-06-25 | 2023-05-16 | 平安银行股份有限公司 | Short message sending method and device, computer equipment and storage medium |
| CN120881522A (en) * | 2025-09-25 | 2025-10-31 | 阿里健康科技(中国)有限公司 | Data processing method and device |
Also Published As
| Publication number | Publication date |
|---|---|
| TW201732729A (en) | 2017-09-16 |
| CN106973368A (en) | 2017-07-21 |
| TWI656504B (en) | 2019-04-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| TWI656504B (en) | Business processing method and device | |
| CN108513271B (en) | Method and device for short message distribution based on multiple short message channels | |
| US10838771B2 (en) | User equipment selection for mobile edge computing | |
| AU2017404110B2 (en) | Agent allocation method and device, server, and storage medium | |
| CN115208812B (en) | Service processing method and device, equipment and computer readable storage medium | |
| US9560492B2 (en) | Method for allocating identification, method for paging group, and communication device | |
| US20170142177A1 (en) | Method and system for network dispatching | |
| CN110769038A (en) | Server scheduling method and device, storage medium and electronic equipment | |
| EP3206372B1 (en) | Hardware resource management method, hardware resource location query method and related apparatus | |
| CN106161511A (en) | Service request processing method, relevant apparatus and system | |
| CN110225137B (en) | Service request processing method, system, server and storage medium | |
| CN106664713A (en) | Resource allocation method, ue and enodeb | |
| CN112261153B (en) | Network resource management method and related device | |
| CN110995890B (en) | Domain name request scheduling method and device | |
| WO2019034091A1 (en) | Distribution method for distributed data computing, device, server and storage medium | |
| CN112671813A (en) | Server determination method, device, equipment and storage medium | |
| CN112543150B (en) | Dynamic load balancing method based on server control | |
| CN109819480A (en) | A communication method and device | |
| CN111611317A (en) | Block chain distributed storage grouping method, device and storage medium | |
| CN113448717A (en) | Resource scheduling method and device | |
| CN109688171B (en) | Cache space scheduling method, device and system | |
| WO2020248363A1 (en) | Load balancing method for server and related apparatus | |
| CN105871972A (en) | Video resource distributed cathe method, device and system | |
| CN109429184B (en) | Method and device for establishing MBMS multicast session | |
| CN112134734B (en) | Configuration method and device of network equipment |
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: 17738098 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: 17738098 Country of ref document: EP Kind code of ref document: A1 |