CN116367102B - Method and device for automatically switching short message route - Google Patents

Method and device for automatically switching short message route Download PDF

Info

Publication number
CN116367102B
CN116367102B CN202310636272.XA CN202310636272A CN116367102B CN 116367102 B CN116367102 B CN 116367102B CN 202310636272 A CN202310636272 A CN 202310636272A CN 116367102 B CN116367102 B CN 116367102B
Authority
CN
China
Prior art keywords
channel
short message
user
speed
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310636272.XA
Other languages
Chinese (zh)
Other versions
CN116367102A (en
Inventor
李峥
王恒
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Rongda Youxin Technology Co ltd
Original Assignee
Beijing Rongda Youxin Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Rongda Youxin Technology Co ltd filed Critical Beijing Rongda Youxin Technology Co ltd
Priority to CN202310636272.XA priority Critical patent/CN116367102B/en
Publication of CN116367102A publication Critical patent/CN116367102A/en
Application granted granted Critical
Publication of CN116367102B publication Critical patent/CN116367102B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/12Detection or prevention of fraud
    • H04W12/128Anti-malware arrangements, e.g. protection against SMS fraud or mobile malware
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/60Context-dependent security
    • H04W12/69Identity-dependent
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/34Modification of an existing route
    • H04W40/36Modification of an existing route due to handover
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention provides a method and a device for automatically switching short message routes, wherein the method comprises the steps of receiving short message information sent by a terminal; the short message information comprises a user ID and short message content; verifying the user ID and the short message content; after passing the verification, determining the user attribute according to the user ID; determining a corresponding channel set according to the user attribute; each channel in the set of channels has a channel attribute; the channel attributes include: channel success rate, channel speed, channel server system index parameters, channel health value, channel unit price and channel abnormal state; based on big data analysis, determining a target channel in the channel set according to the user attribute, the channel unit price, the channel success rate, the channel speed, the channel server system index parameter, the channel health value and the channel abnormal state, so as to send short message information through the target channel.

Description

Method and device for automatically switching short message route
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method and an apparatus for automatically switching short message routes.
Background
The configuration of the short message route in the current short message system requires manual configuration, i.e. a client needs to be created to manually configure a channel or a channel group. However, manual configuration has the defects of low efficiency, high cost and the like. Therefore, how to automatically configure the channels, and reduce the cost of users, becomes an urgent problem to be solved.
Disclosure of Invention
The invention provides a method and a device for automatically switching short message routes, which are used for solving the problem of channel configuration of short message information in the prior art.
In a first aspect, the present invention provides a method for automatically switching a short message route, where the method includes:
receiving a short message sent by a terminal; the short message information comprises a user ID and short message content;
verifying the user ID and the short message content;
after passing the verification, determining the user attribute according to the user ID;
determining a corresponding channel set according to the user attribute; each channel in the set of channels has a channel attribute; the channel attributes include: channel success rate, channel speed, channel server system index parameters, channel health value, channel unit price and channel abnormal state;
and determining a target channel in the channel set according to the user attribute, the channel unit price, the channel success rate, the channel speed, the channel server system index parameter, the channel health value and the channel abnormal state so as to send short message information through the target channel.
In one possible implementation manner, the user attribute includes a short message sending type, a user tag and a user unit price; the determining the user attribute according to the user ID specifically includes:
Inquiring a preset comparison table according to the user ID, and determining a user tag corresponding to the user ID;
matching the short message content with a preset short message template, and determining a short message sending type according to a matching result, wherein the short message sending type comprises marketing short messages, industry short messages and code short messages;
and determining the unit price of the user according to the short message sending type and the user tag.
In one possible implementation manner, the determining, according to the user attribute, a corresponding channel set specifically includes:
determining a routing pool strategy of the short message according to the user label and the user unit price; the routing pool strategy comprises a speed priority strategy, a success rate priority strategy, a price priority strategy, a polling strategy and a weight ratio setting strategy;
determining the route pool classification under the route pool strategy according to the short message sending type; the route pool classification comprises marketing class, industry class and code class;
determining marketing operators, industry operators and code operators according to the route pool classification and the operator attribute;
and determining a channel set according to the marketing type operators, the industry type operators and the code type operators.
In one possible implementation manner, the method for calculating the channel success rate is as follows:
acquiring the successful number and total number of submission of the short message information of the channel and the maximum submission speed of the channel in the first time length;
calculating the first successful power of the channel according to the ratio of the successful number of the submissions to the total number of the submissions;
calculating the maximum saturation of the channel according to the first duration and the maximum submitting speed of the channel;
determining a corresponding first weight when the first duration is in different time ranges according to the relation between the total number of submissions and multiple multiples of the maximum saturation;
calculating a second power and a second weight of the channel in a second time period; the second time period is longer than the first time period;
acquiring a third power and a third weight of the channel in a third time period; the third time period is longer than the second time period;
and calculating a channel success rate according to the channel first power, the first weight, the channel second power, the second weight, the channel third power and the third weight.
In one possible implementation manner, the method for calculating the channel speed is as follows:
acquiring a time period set when the data volume in a channel is larger than a preset data volume threshold value within a preset time period, and the total data volume corresponding to the time period set;
And calculating the channel speed according to the total data quantity and the time period set.
In one possible implementation manner, the method for calculating the index parameter of the channel server system is as follows:
acquiring a first CPU utilization rate of a channel;
acquiring a second utilization rate of the memory of the channel;
obtaining a third utilization rate of the bandwidth of the channel;
and calculating the index parameters of the channel server system according to the first utilization rate, the second utilization rate and the third utilization rate.
In one possible implementation manner, the method for calculating the channel health value is as follows:
when the short message sending type is code type short message, when the current sending queue value of the channel is smaller than the first multiple of the maximum sending speed of the channel, the channel health value is a first health value;
when the current sending queue value of the channel is larger than or equal to the first multiple of the maximum sending speed of the channel and smaller than the second multiple of the maximum sending speed of the channel, the channel health value is a second health value;
when the current sending queue value of the channel is larger than or equal to the second multiple of the maximum sending speed of the channel, the channel health value is a third health value;
when the short message sending type is marketing short message and industry short message, when the current sending queue value of the channel is smaller than the third multiple of the maximum sending speed of the channel, the channel health value is a first health value;
When the current sending queue value of the channel is larger than or equal to the third multiple of the maximum sending speed of the channel and smaller than the fourth multiple of the maximum sending speed of the channel, the channel health value is the second health value;
and when the current transmission queue value of the channel is greater than or equal to the fourth multiple of the maximum transmission speed of the channel, the channel health value is a third health value.
In one possible implementation, the channel abnormal state includes at least one of a channel network disconnection, a channel response time exceeding a time threshold, a channel balance deficiency, and a channel failure rate exceeding a failure rate threshold.
In one possible implementation, the user tag includes a required success rate, a required speed, a large customer, a common customer; the determining a target channel in the channel set according to the user attribute, the channel unit price, the channel success rate, the channel speed, the channel server system index parameter, the channel health value and the channel abnormal state specifically includes:
removing abnormal channels from the channel set according to the channel abnormal state;
calculating a channel sequencing value according to the channel success rate, the channel speed, the channel server system index parameter, the channel health value and the channel unit price, and the weight value of the channel success rate, the weight value of the channel speed, the weight value of the channel server system index parameter, the weight value of the channel health value and the weight value of the channel unit price;
And determining the target channel according to the channel sequencing value.
In a second aspect, the present invention provides an apparatus for automatically switching a short message route, where the apparatus includes:
the receiving module is used for receiving the short message information sent by the terminal; the short message information comprises a user ID and short message content;
the verification module is used for verifying the user ID and the short message content;
the first determining module is used for determining the user attribute according to the user ID after the verification is passed;
the second determining module is used for determining a corresponding channel set according to the user attribute; each channel in the set of channels has a channel attribute; the channel attributes include: channel success rate, channel speed, channel server system index parameters, channel health value, channel unit price and channel abnormal state;
and the third determining module is used for determining a target channel in the channel set according to the user attribute, the channel unit price, the channel success rate, the channel speed, the channel server system index parameter, the channel health value and the channel abnormal state so as to send short message information through the target channel.
In a third aspect, the present invention provides a system on a chip, comprising a processor coupled to a memory, the memory storing program instructions, which when executed by the processor, implement the method for automatically switching between sms routes of any one of the first aspects.
In a fourth aspect, the present invention provides a computer readable storage medium having a computer program stored thereon, the computer program being executed by a processor to perform the method for automatically switching between sms routes according to any one of the first aspects.
By applying the method for automatically switching the short message route provided by the embodiment of the invention, the target channel can be determined according to the user attribute and the channel attribute aiming at the short message information of the client, and the short message information is sent to the user through the target channel. The setting of the target channel takes the user label, the user unit price and the channel attribute into consideration, so that the labor cost is saved, and the determined target channel meets the specific requirements of the user, so that the user experience is improved.
Drawings
Fig. 1 is a flowchart of a method for automatically switching a short message route according to a first embodiment of the present invention;
FIG. 2 is a flow chart of step 120 of FIG. 1;
FIG. 3 is a flow chart of step 130 of FIG. 1;
FIG. 4 is a flow chart of step 140 of FIG. 1;
FIG. 5 is a schematic diagram of a routing pool of channels;
FIG. 6 is a second flowchart of a method for automatically switching SMS routes according to the first embodiment of the present invention;
fig. 7 is a schematic diagram of an operator attribute corresponding to a sms message sending type;
FIG. 8 is a schematic diagram of a routing pool policy corresponding to a user label and a user unit price;
FIG. 9 is a flow chart of step 150 of FIG. 1;
fig. 10 is a schematic structural diagram of an apparatus for automatically switching short message routes according to a second embodiment of the present invention;
FIG. 11 is a schematic diagram of a chip system according to a third embodiment of the present invention;
fig. 12 is a schematic diagram of a computer storage medium according to a fourth embodiment of the present invention.
Detailed Description
The present application is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings.
It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Example 1
Fig. 1 is a schematic flow chart of a method for automatically switching short message routes according to a first embodiment of the present invention. The implementation main body of the method is a short message system, and the short message system is used for sending a short message of a client to a user, as shown in fig. 1, and the method comprises the following steps:
step 110, receiving a short message sent by a terminal; the short message information comprises a user ID and short message content;
wherein, the user ID includes but is not limited to at least one of user mobile phone number and user account information. The user account information may be the user's IP address, user name, such as a phone account for a brand of phone, etc. After receiving the login information, the terminal successfully logs in the user, and then the terminal can receive the input operation of the user, wherein the input operation can be short message information which needs to be sent to the user at the next stage. The sender of the short message may be an enterprise user or a personal user, which is not limited in this application.
Step 120, verifying the user ID and the short message content;
specifically, referring to fig. 2, step 120 includes:
step 1201, verifying the user ID, and judging whether the user ID is a limited IP or a limited number;
Specifically, when the user ID includes the user mobile phone number and the user account information, whether the user mobile phone number is a restricted number is determined, and whether the user ID is a restricted IP is determined. Restricted numbers or restricted IP may refer to numbers or IP that are blacklisted or disabled or sent more than a threshold number of times, etc.
Step 1202, when the user ID is not limited IP or limited number, performing sensitive word verification and short message template verification on the short message content;
specifically, the verification of the sensitive word is to judge whether the content of the short message involves the sensitive word, and the sensitive word can be some set words or phrases which cannot be used.
The short message template is a preset short message template, for example, the short message content can be directly used for matching the short message template, and if the short message content can be matched with the template, the short message content is verified.
Step 1203, when the short message content passes the sensitive word verification and the short message template verification, the verification passes.
When the verification is passed, step 130 is performed to match the sms message to the appropriate channel.
When the short message content fails sensitive word verification or short message template verification, the verification fails, and a message that the verification fails can be fed back to the user terminal.
Step 130, when the verification is passed, determining the user attribute according to the user ID;
specifically, the user attributes include a short message sending type, a user tag, a user priority and a user unit price.
Referring to fig. 3, step 130 specifically includes:
step 1301, according to the user ID, inquiring a preset comparison table, and determining a user tag corresponding to the user ID;
specifically, the comparison table stores the user ID and the user tag and the user priority corresponding to the user ID, where the user tag includes, but is not limited to, one or more of a required success rate, a required speed, and a client type. The success rate is required, i.e. the user has a requirement on the success rate of sending the short message, for example, the success rate is greater than a certain value; the speed is required, i.e. the user has a requirement on the speed of sending the short message, for example, the speed is greater than a certain speed threshold; the client type can be divided into a large client and a common client, and the large client and the common client can be automatically updated by the system according to the historical transmission amount of the short message information of the user, for example, when the transmission amount of the short message information of the user in a certain time period is greater than a certain threshold value, the user can be considered to be the large client, and correspondingly, the threshold value is not exceeded, and the user can be considered to be the common client.
The user priority may be a rating of the user, e.g., the user priority has three levels, high, medium, and low, and the user priority may be determined based on the user type, e.g., the priority of the large customer is higher than the priority of the normal customer.
Step 1302, matching the short message content with a preset short message template, and determining a short message sending type according to a matching result, wherein the short message sending type comprises marketing short messages, industry short messages and code type short messages;
the short message sending type comprises marketing short messages, industry short messages and code type short messages. Marketing short messages, i.e. short messages containing marketing content, such as e-commerce platform holiday promotions and fitment cutting type activity promotions. The industry short message comprises a notification short message, such as an enterprise notice, a municipal investigation, a platform stop maintenance notice and the like, and the horse short message is a verification code short message, wherein the verification code short message is realized based on triggering, such as registration identity verification, account balance change reminding, credit card consumption notice and the like.
Specifically, each type of short message has a corresponding template, for example, for holiday promotion of an e-commerce platform, the template may include words such as "low price" and promotion platform names, for example, "heaven cat". The system matches the short message content with the short message template, thereby determining the specific type of the short message.
Step 1303, determining the unit price of the user according to the short message sending type and the user tag.
Specifically, due to the characteristics of the different types of short message sending types, for example, the arrival rate of the industry short message is higher than the arrival rate of the marketing short message, the short messages of the different types of short message sending correspond to different user unit prices. Also, user unit prices may be associated with user labels, e.g., with different user unit prices for customer types. The same short message sending type is adopted, and the user unit price of a large client is lower than that of a common client. Therefore, the user unit price can be determined according to the type of short message transmission and the user tag, and the user unit price can be the unit price of transmitting one short message or the price of transmitting thousands of short messages.
Then, the user attribute can be cached in redis of the short message system, so that the pre-stored user attribute can be conveniently and rapidly obtained when the channel of the short message information is determined later, and the query pressure on the database is reduced. Meanwhile, the redis sets the caching time, and when the user attribute is out of date, new user attribute caching can be pulled from the database again to the redis.
Step 140, determining a corresponding channel set according to the user attribute; each channel in the set of channels has a channel attribute; the channel attributes include: channel success rate, channel speed, channel server system index parameters, channel health value, channel unit price and channel abnormal state;
In an alternative implementation, referring to fig. 4, the channel set is determined in the present application through steps 1401-1404, specifically, step 140 includes the following steps:
step 1401, determining a routing pool strategy of the short message according to the user label and the user unit price; the routing pool strategy comprises a speed priority strategy, a success rate priority strategy, a price priority strategy, a polling strategy and a weight ratio setting strategy;
the routing pool is formed by combining a plurality of channels with the same gateway attribute according to a specific algorithm, and can be regarded as a set of channels. The routing pool policies, i.e. dividing the routing pool, are the set of routing pools to which each policy corresponds. Referring to fig. 5, the speed priority policy is a set of channels when taking speed priority into consideration, channels under the speed priority policy all have characteristics of speed priority, the success rate priority policy is a set of channels when taking success rate priority into consideration, and channels under the success rate priority policy all have characteristics of success rate priority; the price priority strategy is to consider the collection of the channels when the price is priority, the channels under the price priority strategy all have the price priority characteristic, the polling strategy is to reserve the channel with the unit price lower than the unit price of the client, filter the channel with the unit price higher than the unit price of the client, and participate the reserved channel in the subsequent polling judgment; and a weight value strategy, namely reserving a channel with the channel unit price lower than the client unit price, screening out a plurality of target channels, and giving the weight of the short message sending information quantity to the target channels so as to realize the cooperative short message sending of the target channels. For example, the three channels with the front order are taken as target channels, and weight values of 0.5, 0.3 and 0.2 are given in sequence, so that the three channels cooperate to send the short message information.
It can be appreciated that when the user tag includes multiple requirements, such as a requirement success rate priority and a requirement speed priority, the obtained channel set includes a channel under a packet speed priority policy and a success rate priority policy. For user labels, when the label of the user is at least one of a required success rate, a required speed, a large customer or a common customer, the corresponding at least one routing pool policy can be matched. If the user label is the request success rate, the user label is matched with the success rate priority strategy, if the user label is the request success rate and the request speed, the user label is matched with the success rate priority strategy and the speed priority strategy, and if the user label is a large client and the request success rate, the user label is matched with the success rate priority strategy. For example, if the user unit price is a specific value, the channels with the channel unit price larger than the user unit price are filtered, the channels with the channel unit price not larger than the channel unit price are reserved, and the channels participate in subsequent polling, namely a polling strategy. Thus, by this step, the corresponding policy can be matched.
Step 1402, determining a routing pool classification under a routing pool strategy according to the short message sending type; the route pool classification comprises marketing class, industry class and code class;
Specifically, after step 1401, different routing pool policies may be obtained, and then the routing pool policies may be divided, that is, channels under the routing pool policies are further divided according to different types of short message sending, so as to obtain routing pool classifications, for example, including marketing class, industry class and code class, where the routing pool classifications include multiple channels respectively under the marketing class, the industry class and the code class.
Step 1403, determining marketing operators, industry operators and code operators according to the routing pool classification and the operator attribute;
specifically, the operator attributes include communication, mobile and telecom, and by combining with the short message sending type, a marketing type operator, an industry type operator and a code type operator can be obtained, namely, under the marketing type operator, marketing+communication, marketing+mobile and marketing+telecom can be included; industry-class operators may include industry + co-ordination, industry + mobile, and industry + telecommunications; the code class operators may include code class + communication, code class + mobile and code class + telecommunications.
Step 1404, determining a channel set according to the marketing class operator, the industry class operator, and the code class operator.
Specifically, under each marketing type operator, a plurality of channels are included to form a channel set, and in the application, an optimal channel is required to be selected from the channel set, which is called a target channel, so that short messages can be sent by using the target channel.
In another alternative implementation, referring to fig. 6, the present application may perform the right half of fig. 6 after verification is passed, and the steps of fig. 6 are described below.
Step 601, customer submission;
step 602, short message content, mobile phone number and account information;
step 603, ip restriction, blacklist verification, number transmission times verification, sensitive word verification, etc.;
wherein, when the verification is passed, step 604 is performed, and when the verification is not passed, step 605 is performed.
Step 604, adding a Rabbit MQ queue;
the method comprises the steps of adding short message information into a Rabbit MQ message queue;
step 605, terminate the commit;
step 606, monitor queues;
the Rabbit MQ message queue is monitored to determine which of marketing messages, industry messages and code messages the message information in the message queue belongs to. When the short message sending type is the marketing short message, executing step 607, adding the short message information into the marketing queue, and when the short message sending type is the industry short message, executing step 608, adding the short message information into the industry queue; when the short message sending type is a code type short message, executing step 609, and adding the short message information into a code type queue;
step 607, marketing queues;
Step 608, industry queues;
step 609, code class queues;
referring to fig. 7, the types of sending the short messages of the client 1, the client 2 and the client 3 are marketing short messages, industry short messages and code short messages in sequence, the short message of the client 1 can be placed in a marketing queue, the short message of the client 2 can be placed in an industry queue, and the short message of the client 3 can be placed in a code queue.
Step 610, matching the routing pool;
specifically, the matching of the routing pool is to use the user label and the user unit price to match the routing pool policy of the short message after determining the sending type and the attribute of the operator of the short message so as to obtain a channel set. With continued reference to fig. 7, regarding the sms messages in the marketing queue, the industry queue and the code queue, further division may be performed according to the operator attribute, for example, the marketing queue of the client 1 may include a marketing+mobile queue, a marketing+communication queue, a marketing+telecommunication queue, so as to further place the sms message in a more specific queue, and then the routing pool is allocated, including matching to a corresponding routing pool policy according to the user tag and the user unit price. Referring to fig. 8, a corresponding routing pool policy may be determined, for example, the target routing pool is a success rate priority routing pool, then it corresponds to a success rate priority policy, a speed priority routing pool, then it corresponds to a speed priority policy, a cost priority routing pool, then it corresponds to a price priority policy, a weight set right side, then it corresponds to a weight ratio setting policy, and a polling policy routes the pool, then it corresponds to a polling policy. Step 611 is then performed to select a particular target channel from the channel combinations.
In step 611, the optimal route is screened out.
Step 611 corresponds to step 150 of the present application, where the optimal route is screened, that is, the target channel is determined.
Further, the channels indicated in the present application are channels having channel attributes, and the channel attributes may be set in advance, and each channel is assigned to select a target channel from a channel set according to the channel attributes, and a specific description will be given below about how to set the channel attributes:
(1) The method for calculating the channel success rate comprises the following steps:
acquiring the successful number and total number of submission of the short message information of the channel and the maximum submission speed of the channel in the first time length;
calculating the first successful power of the channel according to the ratio of the number of successful submissions to the total number of submissions;
calculating the maximum saturation of the channel according to the first duration and the maximum submitting speed of the channel;
determining a first weight corresponding to the first time in different time ranges according to the relation between the total number of submissions and multiple multiples of the maximum saturation;
calculating a second power and a second weight of the channel in a second time period; the second time period is longer than the first time period;
acquiring a third power and a third weight of the channel in a third time period; the third time period is longer than the second time period;
And calculating the channel success rate according to the channel first forming power, the first weight, the channel second forming power, the second weight, the channel third forming power and the third weight.
The channel success rate is a main indicator of the priority of the success rate in the calculation routing pool policy, and in a specific example, the first duration, the second duration and the third duration may be sequentially denoted as T1, T2 and T3, and may be sequentially denoted as 15 minutes, 30 minutes and 60 minutes. The channel first power, channel second power, and channel third power may be denoted as S1, S2, and S3, in that order. The first weight, the second weight, and the third weight may be represented as α, β, and γ in order.
S1=t1 number of successes/T1 total number of submissions;
s2=t2 number of successes/T2 total number of submissions;
s3=t3 number of successes/T3 total number of submissions;
CS =S1 * α + S2 * β + S3 * γ;
wherein the total number of submissions refers to the number of submitted short message messages, the successful number refers to the number of submitted short message messages successfully transmitted, CS is the channel success rate, and the setting of alpha is dynamically changed based on the total number of T1 submissions (T1S) and the time period interval (T1F). The setting of alpha is described below with respect to the total number of submissions being at different multiples of the maximum saturation.
The maximum saturation (δ) of the short message information that can be submitted by the channel in the T1 time=maximum submitting speed (MS) of the channel. T1 is within a certain range (T1F) =t1 to T2 within 24 hours a day.
(1)T1S=δ*1% < T1S <δ*10%,T1F = 01:00:00~02:00:00,α= 1%;
(2) T1S = δ*10% < T1S <δ*20%,T1F = 02:00:00~03:00:00,α= 3%;
(3) T1S = δ*40% < T1S <δ*50%,T1F = 09:00:00~10:00:00,α=10%;
By analogy, for setting a, the finer the time interval division is, the more accurate the obtained data is, and correspondingly, the setting can be performed in the same way for beta and gamma.
(2) The method for calculating the channel speed comprises the following steps:
acquiring a time period set when the data volume in the channel is larger than a preset data volume threshold value within a preset time period, and acquiring the total data volume corresponding to the time period set;
the channel speed is calculated from the total data volume and the set of time periods.
In a specific implementation manner, when the channel speed is calculated, the data volume of the channel can be analyzed, the lowest value L of the data volume during data analysis is marked as a data volume threshold, and the data volume meeting the requirements and the time period corresponding to the data volume meeting the requirements are screened out based on the data volume threshold.
In particular, the data may be stored in an elastic search, as the storage may index, search, sort, filter documents (rather than rows and columns of data). Thus, complex full-text searches may be performed, and the present application may query a set of time periods greater than L based on the kibana syntax: t1 to t2, t3 to t4, t5 to t6, t7 to t8, t9 to t10. And inquiring the data volume corresponding to the time period set, for example, the data volume corresponding to the time period is sequentially: d1 D2, D3, D4, D5.. The total data amount may be derived based on the above data amounts, i.e., the channel speed CV is then calculated from the total data amount, as shown in the following equation:
(3) The calculation method of the index parameters of the channel server system comprises the following steps:
acquiring a first CPU utilization rate of a channel;
acquiring a second utilization rate of the memory of the channel;
obtaining a third utilization rate of the bandwidth of the channel;
and calculating the index parameters of the channel server system according to the first utilization rate, the second utilization rate and the third utilization rate.
The first utilization rate, the second utilization rate of the memory and the third utilization rate of the bandwidth of the CPU can be obtained directly through the process of reading the channel, weights of the first utilization rate, the second utilization rate and the third utilization rate can be dynamically given based on the server monitoring program, and therefore accuracy of index parameters of the obtained channel server system is higher.
(4) The method for calculating the channel health value comprises the following steps:
in the method, the code type short message has higher timeliness requirements, and the marketing short message and the industry short message have lower timeliness requirements, so that the code type short message is distinguished from the marketing short message and the industry short message by a method for calculating channel health values.
When the short message sending type is code type short message, when the current sending queue value of the channel is smaller than the first multiple of the maximum sending speed of the channel, the channel health value is a first health value;
when the current sending queue value of the channel is larger than or equal to the first multiple of the maximum sending speed of the channel and smaller than the second multiple of the maximum sending speed of the channel, the channel health value is a second health value;
When the current sending queue value of the channel is larger than or equal to the second multiple of the maximum sending speed of the channel, the channel health value is a third health value;
when the short message sending type is marketing short message and industry short message, when the current sending queue value of the channel is smaller than the third multiple of the maximum sending speed of the channel, the channel health value is a first health value;
when the current sending queue value of the channel is larger than or equal to the third multiple of the maximum sending speed of the channel and smaller than the fourth multiple of the maximum sending speed of the channel, the channel health value is the second health value;
and when the current transmission queue value of the channel is greater than or equal to the fourth multiple of the maximum transmission speed of the channel, the channel health value is a third health value.
Specifically, each lane has its maximum transmission speed MS (in seconds S), the current transmission queue value CQ, i.e. the lane has a transmission queue length, in which the current transmission queue value, i.e. the current transmission queue' S ordering. In an alternative implementation, the first multiple may be empirically set to 5, the second multiple to 15, the third multiple to 60, the fourth multiple to 300, the first health value to 100%, the second health value to 70%, and the third health value to 50%. Aiming at the code type short message, the method for setting the channel health value CH comprises the following steps:
Ch=100% when 0+.cq < ms×5;
ch=70% when ms×5+.cq < ms×15;
when CQ is greater than or equal to MS 15, ch=50%;
aiming at marketing messages and industry messages, the method for setting the health value of the channel comprises the following steps:
ch=100% when 0+.cq < ms×60;
ch=70% when MS 60. Ltoreq. CQ < MS 300;
ch=50% when CQ is greater than or equal to ms×300.
Therefore, in actual use, after determining the short message sending type, the channel health value can be determined directly according to the maximum sending speed of the channel and the current sending queue value.
And step 150, determining a target channel in the channel set according to the user attribute, the channel unit price, the channel success rate, the channel speed, the channel server system index parameter, the channel health value and the channel abnormal state, so as to send the short message information through the target channel.
The user labels comprise a required success rate, a required speed, a large client and a common client. Specifically, referring to fig. 9, step 150 includes the steps of:
step 1501, eliminating abnormal channels from the channel set according to the channel abnormal state;
the channel abnormal state comprises at least one of channel network disconnection, channel response time exceeding a time threshold, channel balance shortage and channel failure rate exceeding a failure rate threshold. The time length threshold and the failure rate threshold are experience values set according to experience.
Step 1502, calculating a channel sorting value according to a channel success rate, a channel speed, a channel server system index parameter, a channel health value, a channel unit price, and a weight value of the channel success rate, a weight value of the channel speed, a weight value of the channel server system index parameter, a weight value of the channel health value, and a weight value of the channel unit price;
specifically, a channel set is screened according to a routing pool policy, in the screened channel set, each channel has a channel attribute, after abnormal channels in the channel set are removed, the channel success rate, the channel speed, the channel server system index parameter and the channel health value of each channel in the channel set are obtained according to a channel success rate calculation method, a channel speed calculation method, a channel server system index parameter and a channel health value calculation method, so that the sorting value of each channel is calculated according to the channel price, the channel success rate, the channel speed, the channel server system index parameter and the channel health value of each channel, and the specific calculation formula of the sorting value is as follows:
CO=CS*A1 + CSS* A2 + CH* A3+ CV* A4+ CP* A5;
wherein, the channel sorting value is CP, CS is the channel success rate, A1 is the weight value of CS, CSS is the index parameter of the channel server system, A2 is the weight value of CSS, CH is the channel health value, A3 is the weight value of CH, CV is the channel speed, A4 is the weight value of CV, CP is the channel price, A5 is the weight value of CP. The channel price may be a price preset for each channel, and as for a specific value of the channel price, it may be empirically set.
In step 1503, the target channel is determined according to the channel ranking value.
Specifically, the channel with the highest score can be taken as the target channel according to the channel sorting value in the channel set. When a policy is set for the weight ratio, a certain number of channels with the sorting value positioned in front can be taken as a target channel set, and a certain weight value can be given to each channel aiming at the channels in the target channel set so as to send the short message information by using the target channel set. For example, the three channels with the front order are taken as target channels, and weight values of 0.5, 0.3 and 0.2 are given in sequence, so that the three channels cooperate to send the short message information.
By applying the method for automatically switching the short message route provided by the embodiment of the invention, the target channel can be determined according to the user attribute and the channel attribute aiming at the short message information of the client, and the short message information is sent to the user through the target channel. The setting of the target channel is based on the user label, the user unit price and the channel attribute of big data analysis, so that the labor cost is saved, and the determined target channel meets the specific requirements of the user, so that the user experience is improved.
Example two
An apparatus for automatically switching a short message route according to a second embodiment of the present invention is provided, and fig. 10 is a schematic structural diagram of an apparatus for automatically switching a short message route according to the second embodiment of the present invention, as shown in fig. 10, where the apparatus includes: a receiving module 1010, a verifying module 1020, a first determining module 1030, a second determining module 1040 and a third determining module 1040.
The receiving module 1010 is configured to receive a short message sent by a terminal; the short message information comprises a user ID and short message content;
the verification module 1020 is configured to verify the user ID and the sms content;
the first determining module 1030 is configured to determine a user attribute according to the user ID after the verification is passed;
a second determining module 1040 determines a corresponding channel set according to the user attribute; each channel in the set of channels has a channel attribute; the channel attributes include: channel success rate, channel speed, channel server system index parameters, channel health value, channel unit price and channel abnormal state;
the third determining module 1050 determines a target channel in the channel set according to the user attribute and the channel unit price, the channel success rate, the channel speed, the channel server system index parameter, the channel health value and the channel abnormal state, so as to send a short message through the target channel.
The user attributes comprise a short message sending type, a user tag and a user unit price; the first determining module 1030 determines, according to the user ID, that the user attribute specifically includes:
inquiring a preset comparison table according to the user ID, and determining a user tag corresponding to the user ID;
matching the short message content with a preset short message template, and determining a short message sending type according to a matching result, wherein the short message sending type comprises marketing short messages, industry short messages and code short messages;
and determining the unit price of the user according to the short message sending type and the user tag.
Further, the second determining module 1040 determines, according to the user attribute, that the corresponding channel set specifically includes:
determining a routing pool strategy of the short message according to the user label and the user unit price; the routing pool strategy comprises a speed priority strategy, a success rate priority strategy, a price priority strategy, a polling strategy and a weight ratio setting strategy;
determining the route pool classification under the route pool strategy according to the short message sending type; the route pool classification comprises marketing class, industry class and code class;
determining marketing operators, industry operators and code operators according to the route pool classification and the operator attribute;
And determining a channel set according to the marketing type operators, the industry type operators and the code type operators.
Further, the method for calculating the channel success rate comprises the following steps:
acquiring the successful number and total number of submission of the short message information of the channel and the maximum submission speed of the channel in the first time length;
calculating the first successful power of the channel according to the ratio of the successful number of the submissions to the total number of the submissions;
calculating the maximum saturation of the channel according to the first duration and the maximum submitting speed of the channel;
determining a corresponding first weight when the first duration is in different time ranges according to the relation between the total number of submissions and multiple multiples of the maximum saturation;
calculating a second power and a second weight of the channel in a second time period; the second time period is longer than the first time period;
acquiring a third power and a third weight of the channel in a third time period; the third time period is longer than the second time period;
and calculating a channel success rate according to the channel first power, the first weight, the channel second power, the second weight, the channel third power and the third weight.
Further, the method for calculating the channel speed comprises the following steps:
Acquiring a time period set when the data volume in a channel is larger than a preset data volume threshold value within a preset time period, and the total data volume corresponding to the time period set;
and calculating the channel speed according to the total data quantity and the time period set.
Further, the method for calculating the index parameter of the channel server system comprises the following steps:
acquiring a first CPU utilization rate of a channel;
acquiring a second utilization rate of the memory of the channel;
obtaining a third utilization rate of the bandwidth of the channel;
and calculating the index parameters of the channel server system according to the first utilization rate, the second utilization rate and the third utilization rate.
Further, the method for calculating the channel health value comprises the following steps:
when the short message sending type is code type short message, when the current sending queue value of the channel is smaller than the first multiple of the maximum sending speed of the channel, the channel health value is a first health value;
when the current sending queue value of the channel is larger than or equal to the first multiple of the maximum sending speed of the channel and smaller than the second multiple of the maximum sending speed of the channel, the channel health value is a second health value;
when the current sending queue value of the channel is larger than or equal to the second multiple of the maximum sending speed of the channel, the channel health value is a third health value;
When the short message sending type is marketing short message and industry short message, when the current sending queue value of the channel is smaller than the third multiple of the maximum sending speed of the channel, the channel health value is a first health value;
when the current sending queue value of the channel is larger than or equal to the third multiple of the maximum sending speed of the channel and smaller than the fourth multiple of the maximum sending speed of the channel, the channel health value is the second health value;
and when the current transmission queue value of the channel is greater than or equal to the fourth multiple of the maximum transmission speed of the channel, the channel health value is a third health value.
The channel abnormal state comprises at least one of channel network disconnection, channel response time exceeding a time threshold, channel balance shortage and channel failure rate exceeding a failure rate threshold.
Further, the user labels comprise a required success rate, a required speed, a large client and a common client; the third determining module 1050 determines a target channel from the channel set according to the user attribute and the channel unit price, the channel success rate, the channel speed, the channel server system index parameter, the channel health value, and the channel abnormal state, including:
Removing abnormal channels from the channel set according to the channel abnormal state;
calculating a channel sequencing value according to the channel success rate, the channel speed, the channel server system index parameter, the channel health value and the channel unit price, and the weight value of the channel success rate, the weight value of the channel speed, the weight value of the channel server system index parameter, the weight value of the channel health value and the weight value of the channel unit price;
and determining the target channel according to the channel sequencing value.
The device for automatically switching the short message route according to the second embodiment of the present invention may execute the method steps in the first embodiment of the method, and its implementation principle and technical effects are similar and will not be described herein.
It should be noted that, it should be understood that the division of the modules of the above apparatus is merely a division of a logic function, and may be fully or partially integrated into a physical entity or may be physically separated. And these modules may all be implemented in software in the form of calls by the processing element; or can be realized in hardware; the method can also be realized in a form of calling software by a processing element, and the method can be realized in a form of hardware by a part of modules. For example, the determining module may be a processing element that is set up separately, may be implemented in a chip of the above apparatus, or may be stored in a memory of the above apparatus in the form of program code, and may be called by a processing element of the above apparatus and execute the functions of the determining module. The implementation of the other modules is similar. In addition, all or part of the modules can be integrated together or can be independently implemented. The processing element described herein may be an integrated circuit having signal processing capabilities. In implementation, each step of the above method or each module above may be implemented by an integrated logic circuit of hardware in a processor element or an instruction in a software form.
For example, the modules above may be one or more integrated circuits configured to implement the methods above, such as: one or more specific integrated circuits (Application Specific Integrated Circuit, ASIC), or one or more microprocessors (Digital Signal Processor, DSP), or one or more field programmable gate arrays (Field Programmable Gate Array, FPGA), or the like. For another example, when a module above is implemented in the form of a processing element scheduler code, the processing element may be a general purpose processor, such as a central processing unit (Central Processing Unit, CPU) or other processor that may invoke the program code. For another example, the modules may be integrated together and implemented in the form of a System-on-a-chip (SOC).
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces, in whole or in part, the procedures or functions described in accordance with embodiments of the present application. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wired (e.g., coaxial cable, fiber optic, digital subscriber line ((Digital Subscriber Line, DSL)), or wireless (e.g., infrared, wireless, bluetooth, microwave, etc.) means, the computer-readable storage medium may be any available medium that can be accessed by the computer or a data storage device such as a server, data center, etc., that contains an integration of one or more available media, the available media may be magnetic media (e.g., floppy disk, hard disk, tape), optical media (e.g., DVD), or semiconductor media (e.g., solid state disk, SSD), etc.
Example III
The third embodiment of the present invention provides a chip system, as shown in fig. 11, including a processor, where the processor is coupled to a memory, and the memory stores program instructions, and when the program instructions stored in the memory are executed by the processor, any one of the methods for automatically switching the short message route provided in the first embodiment is implemented.
Example IV
A fourth embodiment of the present invention provides a computer readable storage medium, as shown in fig. 12, including a program or an instruction, where the program or the instruction implements any one of the methods for automatically switching a short message route provided in the first embodiment when running on a computer.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of function in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The foregoing detailed description of the invention has been presented for purposes of illustration and description, and it should be understood that the invention is not limited to the particular embodiments disclosed, but is intended to cover all modifications, equivalents, alternatives, and improvements within the spirit and principles of the invention.

Claims (6)

1. A method for automatically switching short message routes, the method comprising:
receiving a short message sent by a terminal; the short message information comprises a user ID and short message content;
verifying the user ID and the short message content;
after passing the verification, determining the user attribute according to the user ID;
Determining a corresponding channel set according to the user attribute; each channel in the set of channels has a channel attribute; the channel attributes include: channel success rate, channel speed, channel server system index parameters, channel health value, channel unit price and channel abnormal state;
determining a target channel in the channel set according to the user attribute, the channel unit price, the channel success rate, the channel speed, the channel server system index parameter, the channel health value and the channel abnormal state so as to send short message information through the target channel;
the method for calculating the channel success rate comprises the following steps:
acquiring the successful number and total number of submission of the short message information of the channel and the maximum submission speed of the channel in the first time length;
calculating the first successful power of the channel according to the ratio of the successful number of the submissions to the total number of the submissions;
calculating the maximum saturation of the channel according to the first duration and the maximum submitting speed of the channel;
determining a corresponding first weight when the first duration is in different time ranges according to the relation between the total number of submissions and multiple multiples of the maximum saturation;
Calculating a second power and a second weight of the channel in a second time period; the second time period is longer than the first time period;
acquiring a third power and a third weight of the channel in a third time period; the third time period is longer than the second time period;
calculating a channel success rate according to the channel first power, the first weight, the channel second power, the second weight, the channel third power and the third weight;
the method for calculating the channel speed comprises the following steps:
acquiring a time period set when the data volume in a channel is larger than a preset data volume threshold value within a preset time period, and the total data volume corresponding to the time period set;
calculating a channel speed from the total data amount and the set of time periods;
the calculation method of the channel server system index parameter comprises the following steps:
acquiring a first CPU utilization rate of a channel;
acquiring a second utilization rate of the memory of the channel;
obtaining a third utilization rate of the bandwidth of the channel;
calculating channel server system index parameters according to the first utilization rate, the second utilization rate and the third utilization rate;
the method for calculating the channel health value comprises the following steps:
when the short message sending type is code type short message, when the current sending queue value of the channel is smaller than the first multiple of the maximum sending speed of the channel, the channel health value is a first health value;
When the current sending queue value of the channel is larger than or equal to the first multiple of the maximum sending speed of the channel and smaller than the second multiple of the maximum sending speed of the channel, the channel health value is a second health value;
when the current sending queue value of the channel is larger than or equal to the second multiple of the maximum sending speed of the channel, the channel health value is a third health value;
when the short message sending type is marketing short message and industry short message, when the current sending queue value of the channel is smaller than the third multiple of the maximum sending speed of the channel, the channel health value is a first health value;
when the current sending queue value of the channel is larger than or equal to the third multiple of the maximum sending speed of the channel and smaller than the fourth multiple of the maximum sending speed of the channel, the channel health value is the second health value;
and when the current transmission queue value of the channel is greater than or equal to the fourth multiple of the maximum transmission speed of the channel, the channel health value is a third health value.
2. The method of claim 1, wherein the user attributes include a sms message transmission type, a user tag, and a user unit price; the determining the user attribute according to the user ID specifically includes:
inquiring a preset comparison table according to the user ID, and determining a user tag corresponding to the user ID;
Matching the short message content with a preset short message template, and determining a short message sending type according to a matching result, wherein the short message sending type comprises marketing short messages, industry short messages and code short messages;
and determining the unit price of the user according to the short message sending type and the user tag.
3. The method according to claim 2, wherein determining the corresponding channel set according to the user attribute specifically comprises:
determining a routing pool strategy of the short message according to the user label and the user unit price; the routing pool strategy comprises a speed priority strategy, a success rate priority strategy, a price priority strategy, a polling strategy and a weight ratio setting strategy;
determining the route pool classification under the route pool strategy according to the short message sending type; the route pool classification comprises marketing class, industry class and code class;
determining marketing operators, industry operators and code operators according to the route pool classification and the operator attribute;
and determining a channel set according to the marketing type operators, the industry type operators and the code type operators.
4. The method of claim 1, wherein the channel anomaly state comprises at least one of a channel network disconnection, a channel response duration exceeding a duration threshold, a channel balance deficiency, a channel failure rate exceeding a failure rate threshold.
5. A method according to claim 3, wherein the user labels include a required success rate, a required speed, a large customer, a regular customer; the determining a target channel in the channel set according to the user attribute, the channel unit price, the channel success rate, the channel speed, the channel server system index parameter, the channel health value and the channel abnormal state specifically includes:
removing abnormal channels from the channel set according to the channel abnormal state;
calculating a channel sequencing value according to the channel success rate, the channel speed, the channel server system index parameter, the channel health value and the channel unit price, and the weight value of the channel success rate, the weight value of the channel speed, the weight value of the channel server system index parameter, the weight value of the channel health value and the weight value of the channel unit price;
and determining the target channel according to the channel sequencing value.
6. An apparatus for automatically switching a short message route, the apparatus comprising:
the receiving module is used for receiving the short message information sent by the terminal; the short message information comprises a user ID and short message content;
The verification module is used for verifying the user ID and the short message content;
the first determining module is used for determining the user attribute according to the user ID after the verification is passed;
the second determining module is used for determining a corresponding channel set according to the user attribute; each channel in the set of channels has a channel attribute; the channel attributes include: channel success rate, channel speed, channel server system index parameters, channel health value, channel unit price and channel abnormal state;
the third determining module is used for determining a target channel in the channel set according to the user attribute, the channel unit price, the channel success rate, the channel speed, the channel server system index parameter, the channel health value and the channel abnormal state so as to send short message information through the target channel;
the method for calculating the channel success rate comprises the following steps:
acquiring the successful number and total number of submission of the short message information of the channel and the maximum submission speed of the channel in the first time length;
Calculating the first successful power of the channel according to the ratio of the successful number of the submissions to the total number of the submissions;
calculating the maximum saturation of the channel according to the first duration and the maximum submitting speed of the channel;
determining a corresponding first weight when the first duration is in different time ranges according to the relation between the total number of submissions and multiple multiples of the maximum saturation;
calculating a second power and a second weight of the channel in a second time period; the second time period is longer than the first time period;
acquiring a third power and a third weight of the channel in a third time period; the third time period is longer than the second time period;
calculating a channel success rate according to the channel first power, the first weight, the channel second power, the second weight, the channel third power and the third weight;
the method for calculating the channel speed comprises the following steps:
acquiring a time period set when the data volume in a channel is larger than a preset data volume threshold value within a preset time period, and the total data volume corresponding to the time period set;
calculating a channel speed from the total data amount and the set of time periods;
the calculation method of the channel server system index parameter comprises the following steps:
Acquiring a first CPU utilization rate of a channel;
acquiring a second utilization rate of the memory of the channel;
obtaining a third utilization rate of the bandwidth of the channel;
calculating channel server system index parameters according to the first utilization rate, the second utilization rate and the third utilization rate;
the method for calculating the channel health value comprises the following steps:
when the short message sending type is code type short message, when the current sending queue value of the channel is smaller than the first multiple of the maximum sending speed of the channel, the channel health value is a first health value;
when the current sending queue value of the channel is larger than or equal to the first multiple of the maximum sending speed of the channel and smaller than the second multiple of the maximum sending speed of the channel, the channel health value is a second health value;
when the current sending queue value of the channel is larger than or equal to the second multiple of the maximum sending speed of the channel, the channel health value is a third health value;
when the short message sending type is marketing short message and industry short message, when the current sending queue value of the channel is smaller than the third multiple of the maximum sending speed of the channel, the channel health value is a first health value;
when the current sending queue value of the channel is larger than or equal to the third multiple of the maximum sending speed of the channel and smaller than the fourth multiple of the maximum sending speed of the channel, the channel health value is the second health value;
And when the current transmission queue value of the channel is greater than or equal to the fourth multiple of the maximum transmission speed of the channel, the channel health value is a third health value.
CN202310636272.XA 2023-06-01 2023-06-01 Method and device for automatically switching short message route Active CN116367102B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310636272.XA CN116367102B (en) 2023-06-01 2023-06-01 Method and device for automatically switching short message route

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310636272.XA CN116367102B (en) 2023-06-01 2023-06-01 Method and device for automatically switching short message route

Publications (2)

Publication Number Publication Date
CN116367102A CN116367102A (en) 2023-06-30
CN116367102B true CN116367102B (en) 2023-08-01

Family

ID=86939973

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310636272.XA Active CN116367102B (en) 2023-06-01 2023-06-01 Method and device for automatically switching short message route

Country Status (1)

Country Link
CN (1) CN116367102B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112004202A (en) * 2020-10-29 2020-11-27 北京淇瑀信息科技有限公司 Short message channel routing method and device and electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040176067A1 (en) * 2003-01-30 2004-09-09 Shailesh Lakhani Method and system for Short Message Service (SMS) rating and billing
CN107645411B (en) * 2017-09-08 2020-09-29 北京百悟科技有限公司 Channel flow allocation method and device based on linear programming
CN110267214A (en) * 2019-05-16 2019-09-20 厦门网宿有限公司 A kind of note transmission method, server and storage medium
CN114640955A (en) * 2020-12-15 2022-06-17 北京金山云网络技术有限公司 Cloud short message issuing method, device and system and electronic equipment
CN113891259B (en) * 2021-09-03 2023-04-28 咪咕音乐有限公司 Short message distribution method, device, equipment and computer readable storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112004202A (en) * 2020-10-29 2020-11-27 北京淇瑀信息科技有限公司 Short message channel routing method and device and electronic equipment

Also Published As

Publication number Publication date
CN116367102A (en) 2023-06-30

Similar Documents

Publication Publication Date Title
CN107786757B (en) Bank card business parameter regulation means and device
CN110909013B (en) Service list generation method, device, equipment and computer readable storage medium
US9231982B2 (en) Data transfer for network interaction fraudulence detection
CN101071437A (en) User classifying method, directional advertising launching method, device and system
CN106899987B (en) Method and device for calibrating data traffic of mobile terminal
WO2008131656A1 (en) Service processing method, apparatus of charging system and charging system
CN112217738B (en) Flow control method, system, storage medium and terminal for travel data service
CN110362473A (en) Test optimization method and device, storage medium, the terminal of environment
CN105337837A (en) Message transmitting method and device
CN111225350A (en) Intelligent routing method and device for short messages
CN110602056A (en) Service parameter transmission method and device
CN108011805A (en) Method, apparatus, intermediate server and the car networking system of message screening
CN110401636A (en) A kind of big data air control method and apparatus for supervising abnormal access
CN110430590A (en) Network is sliced matching process and device
CN112214577A (en) Target user determination method, device, equipment and computer storage medium
CN114205226A (en) Method and system for guaranteeing business application experience
CN115470867A (en) Agent matching method, device, equipment and storage medium based on knowledge graph
CN111400178A (en) Automatic interface number making method and device, computer equipment and storage medium
CN116367102B (en) Method and device for automatically switching short message route
CN107948149B (en) Random forest based strategy self-learning and optimizing method and device
CN110070392B (en) User loss early warning method and device
CN110071952A (en) The control method and device of service call amount
CN106899775B (en) Method and device for calibrating data traffic of mobile terminal
CN115086299B (en) File downloading method, device, equipment, medium and program product
CN110516258A (en) Data verification method and device, storage medium, electronic device

Legal Events

Date Code Title Description
PB01 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