CN111182479A - Information sending control method and device - Google Patents
Information sending control method and device Download PDFInfo
- Publication number
- CN111182479A CN111182479A CN201910737918.7A CN201910737918A CN111182479A CN 111182479 A CN111182479 A CN 111182479A CN 201910737918 A CN201910737918 A CN 201910737918A CN 111182479 A CN111182479 A CN 111182479A
- Authority
- CN
- China
- Prior art keywords
- port
- information
- pool
- sending
- interval length
- 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.)
- Granted
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
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/04—Arrangements for maintaining operational condition
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
- H04W28/0231—Traffic management, e.g. flow control or congestion control based on communication conditions
- H04W28/0236—Traffic management, e.g. flow control or congestion control based on communication conditions radio quality, e.g. interference, losses or delay
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
- H04W28/0268—Traffic management, e.g. flow control or congestion control using specific QoS parameters for wireless networks, e.g. QoS class identifier [QCI] or guaranteed bit rate [GBR]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
- H04W28/08—Load balancing or load distribution
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the application provides a control method for information transmission, which comprises the following steps: if an information sending request of an information sending party is received, determining a target port pool for the information sending party in the accessed port pool according to the attribute information of the information sending party; generating random numbers within a numerical range for the information sending request according to the numerical range of the target port pool, wherein the numerical range is a continuous range formed by sequentially arranging numerical intervals of all ports in the target port pool, and the interval length of the numerical intervals represents the communication quality of the corresponding ports; determining a port corresponding to a numerical value interval in which the random number is positioned as a sending port according to the numerical value interval of the ports in the target port pool; and sending the information indicated by the information sending request to the information receiver through the sending port. Therefore, the port for sending the information is dynamically allocated according to the communication quality of the port, and the probability of information backlog is reduced.
Description
Technical Field
The present application relates to the field of computer and communication technologies, and in particular, to a method and an apparatus for controlling information transmission.
Background
Some enterprises often send short messages by means of an information sending platform, such as marketing short messages, verification code short messages, care short messages and the like, wherein the enterprises by means of the information sending platform serve as information senders. In the prior art, an information receiver accessing an information sending platform is generally bound with a port, that is, a fixed port is allocated to the information receiver to send a short message to the information receiver.
However, since the number of the short messages sent by the message receiving side in each time period is different, there may be more and less short messages that the port needs to send. The communication quality of the port also changes in real time, and a port failure or a port communication quality degradation may occur, which may cause a port load capacity to decrease.
Therefore, if the number of short messages to be sent by the message sender bound to the port is large, and the load capacity of the port cannot bear the short messages with the corresponding number, the short messages are easily overstocked.
Therefore, how to solve the problem of short message backlog caused by the reduction of port communication quality in the information sending platform becomes an urgent technical problem to be solved.
Disclosure of Invention
The embodiment of the application provides a method and a device for controlling information transmission, so that the information transmission can be realized at least to a certain extent according to the communication quality of a port, and the information backlog probability is reduced.
Other features and advantages of the present application will be apparent from the following detailed description, or may be learned by practice of the application.
According to an aspect of an embodiment of the present application, there is provided an information transmission control method, including:
if an information sending request of an information sending party is received, determining a target port pool for the information sending party in an accessed port pool according to the attribute information of the information sending party;
generating a random number within the numerical range for the information sending request according to the numerical range of the target port pool, wherein the numerical range is a continuous range formed by sequentially arranging numerical intervals of all ports in the target port pool, and the interval length of the numerical intervals represents the communication quality of the corresponding ports;
determining a port corresponding to the value interval of the random number as a sending port according to the value interval of the port in the target port pool;
and sending the information indicated by the information sending request to an information receiver through the sending port.
According to an aspect of an embodiment of the present application, there is provided an information transmission control apparatus, including:
a target port pool determining module, configured to determine a target port pool for an information sender in an accessed port pool according to attribute information of the information sender if an information sending request of the information sender is received;
a random number generating module, configured to generate a random number within a value range for the information sending request according to the value range of the target port pool, where the value range is a continuous range formed by sequentially arranging value intervals of each port in the target port pool, and an interval length of each value interval represents communication quality of a corresponding port;
a sending port determining module, configured to determine, according to a value interval of a port in the target port pool, a port corresponding to the value interval in which the random number is located as a sending port;
and the sending module is used for sending the information indicated by the information sending request to an information receiver through the sending port.
In the technical solutions provided in some embodiments of the present application, after an information sending request of an information sender is received, a target port pool is determined for the information sender according to attribute information of the information sender, so that decoupling between the information sender and a port is achieved. The better the communication quality of the port is, the larger the ratio of the value interval of the port in the value range of the port pool is, the higher the probability that the generated random number is located in the value interval of the port with good communication quality is, so that the information sending task is dynamically and correspondingly allocated to the port according to the communication quality of the port, the probability that the information to be sent is overstocked is reduced, and the information sending efficiency is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort. In the drawings:
FIG. 1 is a schematic illustration of an environment in which the present disclosure is implemented, shown in accordance with an exemplary embodiment;
FIG. 2 is a flow chart illustrating a method of controlling information transmission according to an exemplary embodiment;
FIG. 3 is a flow diagram of step 210 in one embodiment of the corresponding embodiment of FIG. 2;
FIG. 4 is a flow diagram of step 350 in one embodiment of the corresponding embodiment of FIG. 3;
fig. 5 is a flowchart illustrating a control method of information transmission according to another exemplary embodiment;
FIG. 6 is a timing diagram illustrating the transmission of information in accordance with one particular embodiment;
FIG. 7 is a flowchart illustrating steps for adjusting interval lengths according to an exemplary embodiment;
fig. 8 is a flowchart illustrating a control method of information transmission according to another example embodiment;
FIG. 9 is a flow diagram illustrating a method of controlling information transmission in accordance with one particular embodiment;
fig. 10 is a flowchart illustrating a control method of information transmission according to another example embodiment;
FIG. 11 illustrates a flow chart for determining an initial interval length, in accordance with one embodiment;
FIG. 12 is a flow diagram illustrating a traffic estimation and time consumption estimation in accordance with one embodiment;
FIG. 13 is a block diagram illustrating a control apparatus for information transmission according to an exemplary embodiment;
FIG. 14 illustrates a schematic structural diagram of a computer system suitable for use in implementing the electronic device of an embodiment of the present application.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the application. One skilled in the relevant art will recognize, however, that the subject matter of the present application can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, devices, implementations, or operations have not been shown or described in detail to avoid obscuring aspects of the application.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
Fig. 1 is a schematic diagram illustrating an implementation environment of a control method for information transmission according to an embodiment of the present disclosure.
As shown in fig. 1, the enforcement environment includes an information delivery platform 120 that has access to an information sender 110 and an operator 130. Specifically, the operator 130 provides a port to the information delivery platform 120, so that the operator 130 accesses the information delivery platform 120 through the port. The port provided by the operator serves as a channel provided by the operator for transmitting information for users in the communication network constructed by the operator. Thus, after the port is accessed to the information delivery platform 120, information can be delivered to the user in the communication network constructed by the operator 131 through the port. In a particular embodiment, the user in the communication network constructed by the operator is identified by a telephone number, i.e. the telephone number is used to identify the information recipient.
The information delivery platform 120 is constructed by a computer device with processing capability, such as a server or a server cluster, and is not limited in particular here.
The information sender 110 may be a service end of business service, such as a service end of a xxx bank, or a service end of a xx payment service, so that after the information sender 110 accesses the information sending platform, the information can be sent by means of the information sending platform.
Further, the accessed ports are divided into a number of port pools. The division may be performed according to at least one aspect of performance indicators (e.g., information transmission success rate, load capacity, information transmission speed, etc.), according to an affiliated operator, and the like.
Thus, after receiving the information sending request sent by the information sender 110, the information sending platform 120 determines a destination port pool for the information sending request and determines a sending port in the destination port pool according to the method of the present disclosure, so as to send the information indicated by the information sending request to the information receiver through the sending port.
The implementation details of the technical solution of the embodiment of the present application are set forth in detail below:
fig. 2 shows a flowchart of a control method of information transmission according to an embodiment of the present application, which is applied to the information transmission platform shown in fig. 1, and which can be executed by a device having a calculation processing function. Referring to fig. 2, the information transmission control method at least includes:
The information sender sends information by means of the information sending platform, so that when the information sender has information to be sent, an information sending request is sent to the information sending platform.
For example, after a service end of a service a of an enterprise accesses an information sending platform, the service end of the service a may be used as an information sending party, if a user registers to the service end of the service a by adding a short message verification code to a phone number, the service end of the service a sends an information sending request to the information sending platform after the user sends a verification code request to the service end of the service a in a terminal registration process, and the information sending platform sends the verification code to a terminal where the user is located by using a port accessed by the information sending platform in response to the received information sending request.
Therefore, after the information receiving party accesses the information sending platform, information sending, such as sending an authentication code, sending notification information, password service information, activity information, subscription information, consumption detail information and the like, can be realized for the information receiving party.
The information sending request initiated by the information sending party indicates the information to be sent and the information receiving party.
The information can be sent in a text form or a multimedia comprehensive form integrating pictures, sounds, animations, characters and the like, so that the sent information can be short messages or multimedia messages.
The attribute information of the information sender is used for identifying the service class of the information sender. For the information sender, the traffic of the information sender is different, and the requirements for information transmission are also different, for example, the success rate, cost, port load, security, etc. for information transmission.
For example, if the service of the information sender is a financial service, the information sender has higher security and success rate of information sending for information sending; if the service of the information sender is a marketing service, for example, sending a push message to a user, the cost performance requirement of the information sender for information sending is high.
Therefore, the attribute information of the information sender reflects the requirement of the information sender for information sending to a certain extent, so that the target port pool is determined for the information sender according to the attribute information of the information sender, and the performance of the ports in the determined target port pool can be ensured to meet the requirement of the information sending reflected by the corresponding attribute information.
In one embodiment, in order to ensure that the types of the services to which the information receivers belong are determined based on the same classification principle, attribute information configuration is performed on the information receivers, and the attribute information is stored. Therefore, after receiving the information sending request of the information sender, the attribute information of the information sender is correspondingly obtained.
In other embodiments, if the information sender has a customized requirement for information sending, for example, the load capacity of the port is not lower than a certain threshold, the attribute information may be configured for the information sender according to the customized requirement for information sending.
In a specific embodiment, a service code is correspondingly configured for each attribute information, so that the attribute information is identified by the service code, and thus, a target port pool is correspondingly determined for an information sender according to the service code of the information sender.
After receiving an information sending request of an information sender, determining a target port pool corresponding to attribute information for the information sender according to the attribute information of the information sender, so that the information sent by using ports in the determined target port pool can meet the requirement of the information sender for information sending reflected by the attribute information.
The ports accessed to the information sending platform are provided by the operator, and based on the difference of the communication networks of the operator or the difference of the processing logic deployed in the service end of the operator, the performance of the ports accessed to the information sending platform is different, for example, the ports are different in load capacity, information sending safety, success rate and the like.
In other embodiments, the port for accessing the information delivery platform may be provided by a third party agent.
In the technical scheme of the disclosure, the accessed ports are classified by combining the performance of the accessed ports, so that a plurality of port pools are formed. In other words, a port pool is a collection of multiple ports categorized into the same category.
In other words, the ports may be classified only according to the performance of the ports (for example, at least one of performance indicators such as a success rate of information transmission, a load capacity, and the like), or may be classified by combining the performance of the ports and other classification principles (for example, an operator to which the ports belong), which is not specifically limited herein.
Regardless of the classification method, the ports in each port pool in the obtained port pools belong to the same class under the performance classification principle.
The attribute information of the information sender is used as the reference for determining the target port pool for the information sender, so that the decoupling of the information sender and the port pool is realized, and the binding of the information sender, the port pool and the port is not required.
In the technical scheme of the disclosure, the interval length of the value interval where the port is located is used for representing the communication quality of the port. Therefore, in the same port pool, the interval length of the numerical interval in which the port with good communication quality is located is longer than the interval length of the numerical interval in which the port with poor communication quality is located. And the interval length of the value interval of the port is dynamically changed along with the communication quality of the port.
In a specific embodiment, the communication quality of the port is quantized to obtain a quantized value of the communication quality, then the interval length of the port is determined according to the quantized value of the communication quality, and further the numerical value interval of the port is determined according to the determined interval length and the sequence of the ports in the port pool.
For example, the port pool includes a port 1, a port 2, a port 3, a port 4, and a port 5, where the interval length of the port 1 is 100, the interval length of the port 2 is 300, the interval length of the port 3 is 350, the interval length of the port 4 is 200, and the interval length of the port 5 is 50, and then the port 1 and the port 5 are arranged in sequence, so that the value interval of the port 1 is 0 to 99, the value interval of the port 2 is 100 to 399, the value interval of the port 3 is 400 to 749, the value interval of the port 4 is 750 to 949, the value interval of the port 5 is 950 to 999, and the value range of the port pool is 0 to 999.
It should be noted that although the arrangement order of the ports in the port pool affects the value range of the ports, the occupation ratio of the value range corresponding to the ports in the value range of the port pool is not affected.
In one embodiment, the quality of the communication of the ports is quantified by monitoring the values of the parameters. In particular, a quantitative value of the communication quality is obtained in combination with a parameter value of at least one monitoring parameter characterizing the communication quality. For example, a mapping relationship between a parameter value of the monitoring parameter and a quantized value of the communication quality is set, so that a quantized value is obtained from the parameter value of the monitoring parameter obtained by monitoring according to the mapping relationship.
The numerical ranges of the port pools may be the same or different, and are not specifically limited herein.
In a specific embodiment, in order to avoid limiting the range of the generated random numbers according to the value range of the target port pool each time the random numbers are generated, the value ranges of the port pools are set to be the same, for example, the value ranges of the port pools are set to be 0 to 999. In addition, the value range of each port pool is also kept unchanged during the interval length adjustment process of the ports.
In a specific embodiment, in order to ensure that the interval length of the port can accurately and timely reflect the communication quality of the port, another thread is arranged in the information sending platform to monitor the quality of the port, so that the interval length of the port is adjusted in real time according to monitored monitoring data, and the numerical interval of the port is further adjusted.
In the scheme of the present disclosure, the sending port needs to be determined in the destination port pool according to the random number generated at random. Therefore, it is necessary to generate a random number within the value range according to the value range of the destination port pool to avoid that the generated random number exceeds the value range of the destination port pool, which results in that the transmission port cannot be determined according to the generated random number.
As described above, each port in the destination port pool has an interval length corresponding to its own communication quality, and there is a value interval in the value range of the port pool in which the port pool is located. Therefore, the port corresponding to the value interval in which the random number is located is determined as the transmission port, and the information indicated by the information transmission request is transmitted to the information receiving side through the transmission port.
In the technical scheme of the disclosure, after an information sending request of an information sending party is received, a target port pool is determined for the information sending party according to attribute information of the information sending party, on one hand, the performance of a port in the determined target port pool conforms to the requirement for information sending reflected by the attribute information of the information sending party, and therefore the quality of information sending is ensured; on the other hand, the decoupling between the information sender and the port is realized, so that the port can be flexibly replaced when the port fails.
The better the communication quality of the port is, the longer the interval length of the port is, so that the larger the occupation ratio of the numerical value interval of the port in the numerical value range of the port pool is, the higher the probability that the generated random number is located in the numerical value interval of the port with good communication quality is, the more information sending tasks are dynamically and correspondingly allocated to the port according to the communication quality of the port, the flexible scheduling is realized according to the quality of the port, the probability that information to be sent is overstocked is reduced, and the information sending efficiency is improved.
According to the technical scheme disclosed by the invention, because the information sending task is dynamically distributed to the port according to the communication quality of the port, the matching between the load of the port and the communication quality of the port is realized, the probability of overstocked information is greatly reduced, the stability of information sending is ensured, and the success rate of information sending is correspondingly improved. Statistics shows that the success rate of information transmission is improved by 5% by the method disclosed by the invention.
In an embodiment, the attribution information indicates an operator to which the information receiver belongs, as shown in fig. 3, step 210 includes:
in step 310, attribute information of the sender of the message is obtained.
And step 330, matching according to the attribute information of the information sender and the configuration label of the port pool, and obtaining the port pool with the configuration label matched with the attribute information.
As described above, ports are classified according to their performance, so that ports classified into the same class are referred to as a port pool. The configuration tag of the port pool is used to identify the class to which the port pool belongs under the performance class.
For matching according to the attribute information of the information sender and the configuration label of the port pool, a matching principle is preset, for example, for marketing service, the configuration label with high cost performance is matched and indicated, and for financial service, the configuration label with high safety is matched and indicated.
And 350, selecting a port pool from the matched port pools as a target port pool.
In step 330, the matching is performed according to the attribute information of the information sender and the configuration tag of the port pool, so that the performance of the matched port in the port pool for information sending can meet the requirement for information sending reflected by the attribute information of the information sender.
Then in step 350, a port pool may be randomly selected from the matched port pools as the destination port pool.
In other embodiments, the target port pool may also be determined according to other indexes of the port pool, such as the current load of the port pool, the latest information sending success rate, the operator to which the port in the port pool belongs, whether there is an overloaded port in the port pool, and the like.
In one embodiment, step 350 includes:
and according to the attribution information of the information receiver, determining a priority port pool corresponding to the attribution information in the matched port pools as a target port pool, wherein the attribution information indicates an operator to which the information receiver belongs, and ports in the priority port pool are ports for directly sending information to users belonging to the operator.
Since the communication networks between the operators can be intercommunicated with each other, for information transmission, information can be transmitted to an information receiver by using any port in the accessed port pools.
In other words, the information can be transmitted to the information receiver through a port provided by an operator to which the information receiver belongs (first mode), and the information can also be transmitted to the information receiver through a port provided by an operator different from the operator to which the information receiver belongs (second mode).
The first mode is to send information directly to the information receiver, and the mode does not need to send information to the information receiver across operators. The second way is to send information indirectly to the information receiver, which requires sending information to the information receiver across operators.
In the second transmission mode, after the information is transmitted to the service end of the operator to which the transmission port belongs through the transmission port, the service end of the operator to which the transmission port belongs transmits the information to the service end of the operator to which the information receiver belongs based on network connection among different operators, and finally the service end of the operator to which the information receiver belongs transmits the information to the information receiver by using the port of the service end, so that the information is indirectly transmitted to the information receiver.
For example, if the carrier to which the information receiver belongs is the guangdong mobile, the determined sending port is the port provided by the tetragon. Therefore, the information needs to be sent to the service end of the Sichuan connection through the port of the Sichuan connection, the service end of the Sichuan connection sends the information to the service end of the Guangdong mobile, and finally the service end of the Guangdong mobile sends the information to the information receiver according to the port of the Guangdong mobile.
In the process of sending the information to the information receiver, the port provided by the operator is utilized. And the operator of the port charges the information sending platform based on a certain charging principle, wherein the charge is the cost for the information sending platform to send the information to the information receiver.
Compared to the second transmission method, the first transmission method pays only a fee to one operator, and thus the cost of transmitting information is lower than that of the second transmission method.
Therefore, in order to save the cost of information transmission, in the present embodiment, in the process of classifying the accessed ports to form the port pool, the operator to which the ports belong is included for classification. In other words, the classification is performed in conjunction with the performance of the ports and the attribution information of the ports, so that the ports in each port pool are of the same carrier and under the performance classification.
On the basis that all ports in the port pool belong to the same operator, in order to reduce the cost of information sending, a priority port pool is set for an information receiver according to the operator, namely the port pool of the operator belonging to the information receiver is determined as the priority port pool. Thus, if the matched port pool includes the preferred port pool, the preferred port pool is determined as the target port pool. Because the sending port is positioned in the target port pool, the information can be directly sent to the information receiver through the determined sending port without sending the information through a cross-operator port, and the information sending cost is saved.
In another embodiment, as shown in fig. 4, step 350 further comprises:
And step 430, determining the non-priority port pool with the lowest cost as a target port pool according to the calculated cost.
Since each port pool performs information transmission in real time, the status, such as load, of the port pool changes in real time, and the ports in the port pool may also fail during the information transmission process. Thus, the port pool does not satisfy the set communication quality requirement. Then, in the matched port pool, if the communication quality of the priority port pool does not meet the set communication quality requirement, for example, a fault or overload occurs, in order to ensure the timeliness and the success rate of information transmission, information transmission needs to be performed across operator ports.
The information sending platform does not access all Chinese 93 operators, but only accesses a part of operators, so that the matched port pool does not contain a priority port pool corresponding to the attribution information of the information receiver, and under the condition, only the cross-operator port can be selected for information sending.
For information transmission across operator ports, because different operators charge for information transmission, and therefore, for the same information receiver, different operators to which the target port pool belongs, the cost for transmitting information to the information receiver also differs.
When the information is required to be sent by adopting the cross-operator, the cost for sending the information to the information receiver through each non-priority port pool is calculated for the non-optimal port pool matched into the port pool. And determining the non-priority port pool with the lowest cost as the target port pool. The method and the device realize the reduction of the information sending cost while ensuring the information sending quality.
The classification rules for classifying ports may be based on more multiple classification rules. In a specific embodiment, the ports are classified according to their performance, the location of the server cluster, and the operator.
The server side of the information sending platform can be deployed at different positions, and the server clusters deployed at different positions are all accessed to the ports provided by the operator, so that the server clusters at different positions can independently operate to complete information sending.
In a specific embodiment, port classification is performed to obtain a port pool according to the following classification process:
(1) the ports accessed are divided into two types according to the performance of the ports, one type is the ports corresponding to marketing services, and the other type is the ports corresponding to financial services, and the ports are used as the ports and are classified;
(2) and (3) respectively carrying out secondary classification on the two types of ports obtained in the step (1) according to the position of the server cluster to obtain the secondary classification of the ports. For example, the server clusters are respectively located in shanghai and shenzhen, so the ports corresponding to the marketing service obtained in (1) are classified secondarily, the ports corresponding to the marketing service, which are located in shanghai, of the server cluster, and the ports corresponding to the marketing service, which are located in shenzhen, of the server cluster, are obtained. Similarly, the ports corresponding to the financial services obtained in (1) are classified secondarily.
(3) And (3) reclassifying each class in the two-class classification obtained in the step (2) according to the operator to which the port belongs to obtain a three-class classification of the port. For example, according to an operator accessing Guangdong Mobile, Guangdong Unicom, Guangdong Telecommunications, etc.
Thus, one type of port in the three-level classification acts as a pool of ports.
In one embodiment, as shown in fig. 5, the method further comprises:
The quality monitoring is carried out, namely, the state of the port is monitored in the process of sending information, so that the parameter value of the monitoring parameter reflecting the communication quality of the port is obtained through real-time calculation, the parameter value of each monitoring parameter is obtained, and the parameter value of each monitoring parameter is used as the monitoring data of the port.
Monitoring parameters such as response rate, status report success rate, port detection success rate, port connection status, queue accumulation length, average time consumption of information, etc., wherein the status report success rate may be used as the success rate of information transmission.
For port sending information, the sending process of the information is as in steps 610-680 in fig. 6, wherein in the sending process, there are three interactions between the information sending platform and the operator, which are:
(1) and the information gateway service transmits the information to the operator gateway according to the determined sending port to send an information request (mt).
(2) And after receiving the information request, the operator gateway returns an information issuing response (resp) to the information gateway service as a response of the operator gateway receiving the information request.
(3) And after the information receiver receives the information request and sends an information issuing response to the operator, namely the information is successfully sent, the operator gateway sends an information issuing state report (rpt) to the information gateway service.
The response rate is the number of information issuing responses/the number of information requests issued by the information sending platform; the success rate of the status report is the number of status reports issued by the information/the number of information requests issued by the information sending platform.
In order to monitor the fault port, the information sending platform is provided with an independent thread to carry out dial testing on the fault port, and if the dial testing determines that the fault port is recovered, the port is used for scheduling. In the dial testing process, the information sending platform issues a detection information request, and whether the fault port is recovered or not is determined according to a detection information issuing state report returned by an operator for the detection information request.
The port probing success rate is the number of status reports issued by probe information/the number of probe information requests.
In order to ensure the ordered sending of the information, an information sending queue is respectively configured for each port accessed by the information sending platform. After determining a sending port for the information sending request, storing the information indicated by the information sending request into a sending queue of the sending port. Therefore, the gateway layer polls in real time to acquire information to be sent from the sending queue according to the token bucket and requests to an operator to which the sending port belongs. If the operator's server fails or times out, the send queue has information accumulated.
The queue accumulation length is the amount of information accumulated in the sending queue corresponding to the port.
The port connection state is the connection state of the port and the information sending platform. In a specific embodiment, the port and the information sending platform adopt a single TCP connection mode, and the port connection state includes two states of connection success and connection failure.
The average time consumed for sending the information is the average time from the time when the information request is sent within a statistical period to the time when the information sending state report is received.
For quality monitoring, a real-time monitoring service is configured in the information sending platform, as shown in fig. 6, the real-time monitoring service monitors the interaction between the information gateway service and the operator gateway in real time. Therefore, the monitored interaction is cached through the real-time monitoring service, and the response rate and the state report success rate under the corresponding statistical period can be obtained through statistics according to the set statistical period.
In the prior art, the statistical process for monitoring is as follows:
1. mt, resp, rpt are accumulated separately within a set statistical time (e.g., 0-1 minute), and no matching statistics are performed.
2. And refreshing the counted data into the database regularly.
Since matching statistics is not performed when resp and rpt are counted, and it is necessary to receive resp and rpt at intervals after mt is transmitted, the resp and rpt received in the counting period are mostly resp and rpt of mt transmitted in the previous counting period. By the method, the current communication quality of the port cannot be accurately reflected according to mt, resp, rpt and the average time consumption of information transmission obtained through statistics, and hysteresis exists.
In an embodiment, in order to solve the problem and ensure the accuracy and timeliness of the counted response rate and status report success rate, a method for matching statistics in real time is provided.
On the basis of the statistical period A of the information request issued by the statistical information issuing platform, the statistical time of the statistical information issuing state report and the information issuing response is properly prolonged (assuming that the statistical period of the statistical information issuing state report and the information issuing response is a statistical period B) by combining the information sending time, and the matching statistical information issuing state and the matching statistical information issuing response are carried out for the information request issued in the statistical period A in the statistical period B, for example, for the information request A, whether the matching received information issuing state report and the information issuing response correspond to the information request A or not is carried out, so that the accuracy of the statistical data can be ensured.
For example, the real-time monitoring statistical process is performed as follows:
1. the number of issued information requests (mt) in 0-1 minute, e.g., 100, is counted.
2. And in 0-2 minutes, matching whether the received information issuing response (resp) and the received information issuing state report (rpt) is resp and rpt corresponding to mt issued in 0-1 minute.
3. The number of resp and rpt corresponding to the delivered mt in 0-1 minute and the time taken for each mt from delivery to receiving rpt are counted.
4. And according to the current time cross cycle, refreshing the database in batch.
5. And clearing the cache expired data.
For example, the final statistics are obtained in a period of 0-1 minute: mt is 100, resp is 99, rpt is 90, and the average time of 100 information in the period is 3 s.
Considering the time of information sending, the period is prolonged to carry out statistics on the information sending response and the information sending status report, and matching statistics is carried out, so that the information sending response and the information sending status report obtained by statistics can accurately reflect the current accuracy of the port. And the timeliness of the counted data can be ensured by properly prolonging the period statistic information issuing response and the information issuing state report.
And step 530, adjusting the interval length of each port in the port pool according to the monitoring data of the port.
The monitoring data of the port is used as direct reflection of the communication quality of the port. Therefore, the interval length of each port in the port pool where the port is located can be adjusted according to the monitoring data of the port. The adjustment is performed, for example, to shorten the section length of a port with poor communication quality; for a port with good communication quality, the interval length of the port is increased.
In one embodiment, to ensure that the value range of the port pool remains unchanged during the interval length adjustment process, the interval length of a certain port is shortened, and simultaneously, the shortened value of the interval length is compensated to other ports in the port pool, for example, to the interval length of the good port.
In one embodiment, step 530 includes:
if the monitoring data of the port does not meet the preset condition, the interval length of the port is shortened, and the shortened value of the interval length is compensated to the interval length of the high-quality port in the port pool, wherein the high-quality port is the port of which the monitoring data meets the preset condition.
The shortening value of the interval length of the port is supplemented to the interval length of the high-quality port in the port, so that the numerical range of the port pool is kept unchanged.
And 550, sequentially dividing the numerical value range of the port pool according to the interval length of each port in the adjusted port pool to obtain a numerical value interval corresponding to the port communication quality.
On the basis of determining the numerical range of the port pool, the interval length of the port is adjusted, so that the numerical range of the port is sequentially divided according to the interval length after the port is adjusted, and the numerical interval corresponding to the port communication quality is obtained.
The preset conditions may be the same or different for different port pools, and are not specifically limited herein. In a specific embodiment, the predetermined condition may be set in conjunction with the performance of the ports in the port pool.
In an embodiment, the monitoring data includes parameter values of the monitoring parameters, the preset condition includes a parameter range set for the monitoring parameters, and as shown in fig. 7, the step of shortening the interval length of the port and compensating the shortened value of the interval length to the interval length of the high-quality port in the port pool includes:
The adjusting strategy set for the monitoring parameter is used for adjusting the interval length of the port in the port pool where the port is located according to the parameter value of the monitoring parameter.
For different port pools, the adjustment strategies set for the monitoring parameters may be the same or different, and are not specifically limited herein.
Adjustment strategies are set for different monitoring parameters respectively. Wherein, the adjusting strategy is provided with a calculation rule for shortening the interval length.
And step 730, if the parameter value of the port exceeds the parameter range, calculating the port according to the adjustment strategy to obtain a shortened value.
In the adjustment strategy of the port pool corresponding to the monitoring parameters, a calculation rule for shortening the interval length is set. Namely, a rule is set for calculating the shortening value of the interval length according to the parameter value of the monitoring parameter in the port and the parameter range of the monitoring parameter.
In one embodiment, the shortened value of the interval length is calculated based on a difference between a parameter value of the monitored parameter and a parameter threshold value in the parameter range.
For example, in the port pool a, the parameter range of the status report success rate is set to be greater than or equal to 90%, the parameter threshold is set to be 90%, and the calculation rule for setting the interval length to be shortened is as follows: (90% -status report success rate) × 1000, if the monitoring obtains that the status report success rate in the time period is 85%, corresponding to the status report success rate, the interval length of the port is shortened by (90% -85%) and 1000 is equal to 50.
And 850, shortening the interval length of the port according to the shortening value, and compensating the shortening value to the interval length of the high-quality port in the port pool according to an adjusting strategy.
In an embodiment, in order to compensate for the interval length of the premium port in the port pool, the adjustment policy further includes a compensation rule for the interval length, such as to compensate for the shortened value of the interval length to which the premium port is located, and a compensation value for the interval length of the premium port.
In an embodiment, in order to facilitate the server side of the information sending platform to perform data analysis, after the section length of the port is adjusted, a pipeline record is generated for the adjustment of the section length and is stored.
For example, the success rate of the status report of the port a exceeds the corresponding parameter range, the interval length of the port a is shortened by 50 according to the adjustment strategy, and the shortened value 50 of the interval length is compensated to the port B and the port C, respectively, wherein the port B is compensated by 30, and the port C is compensated by 20. Then after interval length adjustment, a flow record is generated for each port A, B, C. The running record is used for reflecting the change process of the interval length of the corresponding port.
In one embodiment, after step 510, as shown in fig. 8, the method further comprises:
step 810, if the corresponding port is determined to be a fault port according to the monitoring data, the interval length of the fault port is fully compensated to other ports in the port pool, and the fault port is subjected to dial testing.
The interval length of the fault port is fully compensated to other ports in the port pool, so that the fault port does not participate in scheduling of information transmission during the period of non-recovery, and disaster tolerance of the port is realized. .
In order to timely know whether the fault port is recovered to be normal or not, the fault port is subjected to dial testing by utilizing an independent thread so as to determine whether the fault port is recovered to be normal or not.
Dial testing is a testing means of network link quality, and the dial testing is performed, for example, to send a dial testing information sending request to an operator gateway to which a failed port belongs, so that whether the failed port is recovered to be normal or not is determined through a response of the operator gateway to which the failed port belongs to the dial testing new sending request.
If the fault port is recovered to be normal, the interval length of the fault port is recovered and the interval lengths of other ports in the port pool are correspondingly adjusted, so that the fault port can participate in the scheduling of information sending again. In the present embodiment, port failover and failover are automated.
Fig. 9 is a flowchart of an information sending control method in an embodiment, and as shown in fig. 9, component services and quality monitoring services are set in an information sending platform, where the component services are used to determine sending ports for an information sending request according to numerical value intervals of ports in each port pool, and the quality monitoring services monitor communication quality of each port in real time and adjust interval lengths of the ports according to monitoring data obtained by monitoring.
As shown in fig. 9, the component service determines a transmission port for the information transmission request through steps 1011 to 1017, so that the information indicated by the information transmission request is transmitted to the information receiving side according to the determined transmission port.
And when the component service is carried out, the quality monitoring service carries out monitoring parameter monitoring according to the set timing thread so as to obtain monitoring data of the port, and then the adjustment of the interval length of each port in the port pool according to the monitoring data is realized through steps 1031 to 1035, and the value interval of each port in the port pool is correspondingly updated.
Further, after the monitoring data of the port is obtained through the quality monitoring service, in step 1051, the status of the port is determined according to the monitoring data of the port, and the status of the port includes normal, fault, and overload. For the fault port, on one hand, the interval length of the fault port is fully compensated to other ports in the port pool, on the other hand, an independent thread is arranged to carry out dial testing on the fault port, and therefore whether the fault port is recovered to be normal or not is determined. For an overloaded port, the interval length is shortened, for example, the interval length of the overloaded port is halved, so that the overloaded port is prevented from being allocated more information sending tasks.
In an embodiment, the interval length of the port is reset periodically, as shown in fig. 10, the method further includes:
step 1010, for the accessed port pool, obtaining historical sending data of the ports in the port pool, wherein the historical sending data comprises the success rate of sending information and the cost of sending information of the ports in the time segment.
And step 1030, in the time segments with the success rate exceeding the success rate threshold, determining the time segment with the lowest cost as the target time segment.
And 1050, taking the interval length of the port corresponding to the target time segment as the initial interval length of the port at the next reset, and taking the initial interval length as the base number for next adjustment.
The period of resetting the interval length of the port may be a custom setting, such as 12 hours, one day, two days, and the like.
Wherein the acquired historical transmission data is data acquired prior to a period in which a reset is to be performed, such as a previous period, or previous two periods. In the process of information transmission, the success rate of information transmission and the cost of information transmission of each port in each time segment are calculated according to the set time segments.
The time segment may be a period corresponding to a statistical information request in the real-time monitoring service, and the success rate of information transmission and the cost of transmission information are calculated according to the statistical period in the above real-time matching statistics.
Taking the numerical interval of the port corresponding to the target time segment as the initial interval length of the port at the next reset, thereby realizing the sending proportion of the information sent by the initially allocated port, wherein the sending proportion is equal to the ratio of the initial interval length of the port to the sum of the initial interval lengths of the ports in the port pool; furthermore, the initial interval length is determined in combination with the historical transmission data of the port, so that the determined initial interval length is adapted to the port, is consistent with the actual load capacity and communication quality of the port, and is also considered in terms of the cost of transmitting information.
In an embodiment, the reset of the interval length of the port can be customized, for example, the interval length of the port is reset manually.
FIG. 11 illustrates a flow chart for determining an initial interval length for a port in a particular embodiment. As shown in fig. 11, storing the transmission data of the port in the corresponding time segment in which the success rate of the port exceeds the success rate threshold and the cost of the port transmission information is lower than the expected average unit price is realized through steps 1110 to 1160.
The data used for calculating the accumulated success rate expectation and calculating the average unit price expectation may be historical transmission data of the port, such as transmission data of the previous day. The expected value of the cumulative success rate and the expected value of the average unit price are calculated through steps 1120 and 1140 according to the historical transmission data of each port.
The information quantity sent by each port is different, and the ratio of the initial interval length of each port in the numerical range of the port pool represents the information sending proportion initially distributed for each port, so that the ratio of the initial interval length of each port to the numerical range of the port pool is used as the weight coefficient of each port, and the expected accumulated success rate value and the expected average unit price value are calculated based on the success rate of each port, the cost of sent information and the corresponding weight coefficient.
In the monitoring process, for monitoring data of each port obtained in real time in the monitoring on the same day, the success rate of information transmission of the port in the corresponding time segment and the cost of information transmission of the port in the corresponding time segment are calculated according to the monitoring data, then monitoring data with the success rate lower than the threshold value are filtered out based on the step 1130, then monitoring data with the cost higher than the expected value of the average unit price in the monitoring data left in the step 1130 are filtered out again based on the step 1150, and caching is carried out through the step 1160.
Furthermore, in order to determine the initial interval length of each port in the next day, after the day is finished, cost comparison is performed according to the cost of the cached port for sending information in each time segment, so that the time segment with the lowest cost is determined, and the time segment is the target time segment. The interval length of the port corresponding to the target time segment is then determined as the initial interval length of the port on the next day.
In one embodiment, the time consumption and the sending amount of information sent by the port can be estimated based on historical sending data. As shown in FIG. 12, implemented by steps 1210-1260, after determining the port pool at step 1210, a maximum span length threshold D and a minimum span length threshold D are determined for the port pool at step 1220. Therefore, in order to estimate the consumed time and the threshold value of the transmission amount, the data is screened according to the historical transmission data in the port pool and the interval length of the port, so that the historical transmission data of the port with the interval length within the range of (D, D) is obtained, and then the transmission amount and the consumed time of the corresponding port are estimated according to the historical transmission data of the reserved port. For example, the historical transmission data of the port obtained in step 1230 is counted, an average value is obtained according to the transmission amount of the port in each time segment, and the obtained average value is used as the estimated transmission amount of the port. Further, time-consuming calculation is performed based on the calculated estimated transmission amount and the average consumed time obtained by calculation.
And taking the estimated sending quantity and time consumption as a reference for evaluating whether the port communication quality is changed.
The following describes embodiments of the apparatus of the present application, which may be used to execute the control method for information transmission in the above embodiments of the present application. For details that are not disclosed in the embodiments of the apparatus of the present application, please refer to the embodiments of the control method for information transmission described above in the present application.
Fig. 13 shows a block diagram of a control device of information transmission according to an embodiment of the present application.
Referring to fig. 13, a control apparatus for information transmission according to an embodiment of the present application includes:
the destination port pool determining module 1310 is configured to determine, if an information sending request of an information sender is received, a destination port pool for the information sender in the accessed port pool according to the attribute information of the information sender.
The random number generating module 1330 is configured to generate a random number within a numerical range for the information sending request according to the numerical range of the target port pool, where the numerical range is a continuous range formed by sequentially arranging numerical intervals of each port in the target port pool, and the interval length of the numerical interval represents the communication quality of the corresponding port.
The sending port determining module 1350 is configured to determine, according to the value interval of the port in the target port pool, the port corresponding to the value interval in which the random number is located as the sending port.
The sending module 1370 is configured to send, through the sending port, information indicated by the information sending request to the information receiving side.
In one embodiment, the target port pool determination module includes:
and the attribute information acquisition unit is used for acquiring the attribute information of the information sender.
And the matching unit is used for matching according to the attribute information of the information sender and the configuration label of the port pool to obtain the port pool with the configuration label matched with the attribute information.
And the determining unit is used for selecting one port pool from the matched port pools as a target port pool.
In an embodiment, the determining unit comprises:
a first determining unit, configured to determine, according to attribution information of an information receiver, a priority port pool corresponding to the attribution information in the matched port pools as a target port pool, where the attribution information indicates an operator to which the information receiver belongs, and a port in the priority port pool is a port through which information is directly sent to a user belonging to the operator.
In an embodiment, the determining unit further comprises:
and the cost calculation unit is used for calculating the cost for indirectly sending the information through the non-priority port pool for the non-priority port pool contained in the matched port pool if the matched port pool does not contain the priority port pool or the priority port pool contained in the matched port pool does not meet the set communication quality requirement.
And the second determining unit is used for determining the non-priority port pool with the lowest cost as the target port pool according to the calculated cost.
In one embodiment, the apparatus further comprises:
and the quality monitoring module is used for monitoring the quality of the ports in the accessed port pool and acquiring monitoring data of the ports.
And the interval length adjusting module is used for adjusting the interval length of each port in the port pool according to the monitoring data of the port.
And the numerical value interval determining module is used for sequentially dividing the numerical value range of the port pool according to the interval length of each port in the adjusted port pool to obtain the numerical value interval corresponding to the port communication quality.
In one embodiment, the interval length adjusting module includes:
and the adjusting unit is used for shortening the interval length of the port if the monitoring data of the port does not meet the preset condition, and compensating the shortened value of the interval length to the interval length of the high-quality port in the port pool, wherein the high-quality port is the port of which the monitoring data meets the preset condition.
In an embodiment, the monitoring data includes parameter values of the monitoring parameters, the preset condition includes a parameter range set for the monitoring parameters, and the adjusting unit includes:
and the adjustment strategy acquisition unit is used for acquiring the adjustment strategy corresponding to the monitoring parameters in the port pool.
And the shortening value calculating unit is used for calculating the port according to the adjusting strategy to obtain a shortening value if the parameter value of the port exceeds the parameter range.
And the shortening and compensating unit is used for shortening the interval length of the port according to the shortening value and compensating the shortening value to the interval length of the high-quality port in the port pool according to an adjusting strategy.
In one embodiment, the apparatus further comprises:
and the compensation and dial testing module is used for completely compensating the interval length of the fault port to other ports in the port pool if the corresponding port is determined to be the fault port according to the monitoring data, and carrying out dial testing on the fault port.
And the recovery module is used for recovering the interval length of the fault port and correspondingly adjusting the interval lengths of other ports in the port pool after the fault port is determined to be recovered to be normal through dial testing.
In one embodiment, the interval length of the port is reset periodically, and the apparatus further includes:
and the historical sending data acquisition module is used for acquiring the historical sending data of the ports in the port pool, wherein the historical sending data comprises the success rate of sending information and the cost of sending the information of the ports in the time segment.
The target time segmentation determining module is used for determining the time segmentation with the lowest cost as the target time segmentation in the time segmentation of which the success rate exceeds the success rate threshold;
and the initial interval length determining module is used for taking the interval length of the port corresponding to the target time segment as the initial interval length of the port at the next reset, and taking the initial interval length as the base number for the next adjustment.
FIG. 14 illustrates a schematic structural diagram of a computer system suitable for use in implementing the electronic device of an embodiment of the present application.
It should be noted that the computer system 1400 of the electronic device shown in fig. 14 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 14, the computer system 1400 includes a Central Processing Unit (CPU)1401, which can perform various appropriate actions and processes, such as executing the methods in the above-described embodiments, according to a program stored in a Read-Only Memory (ROM) 1402 or a program loaded from a storage portion 1408 into a Random Access Memory (RAM) 1403. In the RAM 1403, various programs and data necessary for system operation are also stored. The CPU 1401, ROM 1402, and RAM 1403 are connected to each other via a bus 1404. An Input/Output (I/O) interface 1405 is also connected to the bus 1404.
The following components are connected to the I/O interface 1405: an input portion 1406 including a keyboard, a mouse, and the like; an output portion 1407 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage portion 1408 including a hard disk and the like; and a communication section 1409 including a network interface card such as a LAN (Local area network) card, a modem, or the like. The communication section 1409 performs communication processing via a network such as the internet. The driver 1410 is also connected to the I/O interface 1405 as necessary. A removable medium 1411 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 1410 as necessary, so that a computer program read out therefrom is installed into the storage section 1408 as necessary.
In particular, according to embodiments of the application, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 1409 and/or installed from the removable medium 1411. When the computer program is executed by a Central Processing Unit (CPU)1401, various functions defined in the system of the present application are executed.
It should be noted that the computer readable medium shown in the embodiments of the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM), a flash Memory, an optical fiber, a portable Compact Disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. Each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software, or may be implemented by hardware, and the described units may also be disposed in a processor. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves.
As another aspect, the present application also provides a computer-readable medium, which may be contained in the electronic device described in the above embodiments; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by an electronic device, cause the electronic device to implement the method in the above embodiments.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the application. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiments of the present application.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the embodiments disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.
Claims (10)
1. A method for controlling information transmission, the method comprising:
if an information sending request of an information sending party is received, determining a target port pool for the information sending party in an accessed port pool according to the attribute information of the information sending party;
generating a random number within the numerical range for the information sending request according to the numerical range of the target port pool, wherein the numerical range is a continuous range formed by sequentially arranging numerical intervals of all ports in the target port pool, and the interval length of the numerical intervals represents the communication quality of the corresponding ports;
determining a port corresponding to the value interval of the random number as a sending port according to the value interval of the port in the target port pool;
and sending the information indicated by the information sending request to an information receiver through the sending port.
2. The method according to claim 1, wherein said determining a destination port pool for the information sender in the accessed port pool according to the attribute information of the information sender comprises:
acquiring attribute information of the information sender;
matching according to the attribute information of the information sender and the configuration label of the port pool to obtain the port pool with the configuration label matched with the attribute information;
and selecting a port pool from the matched port pools as the target port pool.
3. The method of claim 2, wherein the selecting a port pool from the matched port pools as the target port pool comprises:
and according to the attribution information of the information receiver, determining a priority port pool corresponding to the attribution information in the matched port pool as the target port pool, wherein the attribution information indicates an operator to which the information receiver belongs, and a port in the priority port pool is a port for directly sending information to a user belonging to the operator.
4. The method of claim 3, wherein selecting a port pool from the matched port pools as the target port pool further comprises:
if the matched port pool does not contain the priority port pool or the priority port pool contained in the matched port pool does not meet the set communication quality requirement, calculating the cost for indirectly sending the information through the non-priority port pool for the non-priority port pool contained in the matched port pool;
and determining the non-priority port pool with the lowest cost as the target port pool according to the calculated cost.
5. The method of claim 1, further comprising:
monitoring the quality of the ports in the accessed port pool to obtain monitoring data of the ports;
adjusting the interval length of each port in the port pool according to the monitoring data of the port;
and sequentially dividing the numerical range of the port pool according to the adjusted interval length of each port in the port pool to obtain a numerical interval corresponding to the port communication quality.
6. The method according to claim 5, wherein the adjusting the interval length of each port in the port pool according to the monitoring data of the port comprises:
if the monitoring data of the port does not meet the preset condition, the interval length of the port is shortened, and the shortened value of the interval length is compensated to the interval length of a high-quality port in the port pool, wherein the high-quality port is the port of which the monitoring data meets the preset condition.
7. The method according to claim 6, wherein the monitoring data includes parameter values of monitoring parameters, the preset condition includes a parameter range set for the monitoring parameters, and the shortening the interval length of the port and compensating the shortened value of the interval length to the interval length of the good-quality port in the port pool includes:
obtaining an adjustment strategy corresponding to the monitoring parameters in the port pool;
if the parameter value of the port exceeds the parameter range, calculating the port according to the adjustment strategy to obtain a shortened value;
and shortening the interval length of the port according to the shortening value, and compensating the shortening value to the interval length of the high-quality port in the port pool according to the adjusting strategy.
8. The method of claim 5, wherein the quality monitoring of the ports in the accessed port pool, after obtaining monitoring data of the ports, further comprises:
if the corresponding port is determined to be a fault port according to the monitoring data, the interval length of the fault port is fully compensated to other ports in the port pool, and the fault port is subjected to dial testing;
and after the failure port is determined to be recovered to be normal through dial testing, recovering the interval length of the failure port and correspondingly adjusting the interval lengths of other ports in the port pool.
9. The method of claim 5, wherein the interval length of the port is reset periodically, the method further comprising:
for the accessed port pool, acquiring historical sending data of the ports in the port pool, wherein the historical sending data comprises the success rate of sending information and the cost of sending the information of the ports in a time segment;
determining the time segment with the lowest cost as a target time segment in the time segments with the success rate exceeding the success rate threshold;
and taking the interval length of the port corresponding to the target time segment as the initial interval length of the port at the next reset, wherein the initial interval length is taken as the base number for the next adjustment.
10. An apparatus for controlling information transmission, the apparatus comprising:
a target port pool determining module, configured to determine a target port pool for an information sender in an accessed port pool according to attribute information of the information sender if an information sending request of the information sender is received;
a random number generating module, configured to generate a random number within a value range for the information sending request according to the value range of the target port pool, where the value range is a continuous range formed by sequentially arranging value intervals of each port in the target port pool, and an interval length of each value interval represents communication quality of a corresponding port;
a sending port determining module, configured to determine, according to a value interval of a port in the target port pool, a port corresponding to the value interval in which the random number is located as a sending port;
and the sending module is used for sending the information indicated by the information sending request to an information receiver through the sending port.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910737918.7A CN111182479B (en) | 2019-08-12 | 2019-08-12 | Information sending control method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910737918.7A CN111182479B (en) | 2019-08-12 | 2019-08-12 | Information sending control method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111182479A true CN111182479A (en) | 2020-05-19 |
CN111182479B CN111182479B (en) | 2021-09-17 |
Family
ID=70622382
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910737918.7A Active CN111182479B (en) | 2019-08-12 | 2019-08-12 | Information sending control method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111182479B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112800327A (en) * | 2021-01-18 | 2021-05-14 | 北京明略软件系统有限公司 | Method and device for determining target media information |
CN113743061A (en) * | 2021-09-08 | 2021-12-03 | 深圳集智数字科技有限公司 | Numerical value range adjusting method and device, electronic equipment and readable storage medium |
WO2022017398A1 (en) * | 2020-07-21 | 2022-01-27 | 杭州海康威视数字技术股份有限公司 | Method and apparatus for establishing communication connection, and device, and computer readable storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
FR2889783A1 (en) * | 2005-08-12 | 2007-02-16 | Sagem Comm | METHOD AND SYSTEM FOR TRANSMITTING LABEL MESSAGES (TAGS) VIA AT LEAST ONE MOBILE COMMUNICATION NETWORK |
US20090215475A1 (en) * | 2008-02-27 | 2009-08-27 | Sony Ericsson Mobile Communications Ab | System and method for identifiable communication channel setup between terminals without previous contact |
CN107347182A (en) * | 2016-05-04 | 2017-11-14 | 北京京东尚科信息技术有限公司 | Short message distribution method and system |
CN107786949A (en) * | 2017-09-28 | 2018-03-09 | 上海帜讯信息技术股份有限公司 | Method, apparatus, server and the storage medium of information channel switching |
CN109168135A (en) * | 2018-11-09 | 2019-01-08 | 上海银赛计算机科技有限公司 | Selection method, device, SMS platform and the storage medium of short message sendaisle |
CN109561403A (en) * | 2018-12-12 | 2019-04-02 | 网宿科技股份有限公司 | A kind of short message dispatching method, equipment and storage medium |
CN109921869A (en) * | 2019-03-01 | 2019-06-21 | 北京奇艺世纪科技有限公司 | Method, apparatus, storage medium and the equipment of the quality of monitoring information transmission channel |
-
2019
- 2019-08-12 CN CN201910737918.7A patent/CN111182479B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
FR2889783A1 (en) * | 2005-08-12 | 2007-02-16 | Sagem Comm | METHOD AND SYSTEM FOR TRANSMITTING LABEL MESSAGES (TAGS) VIA AT LEAST ONE MOBILE COMMUNICATION NETWORK |
US20090215475A1 (en) * | 2008-02-27 | 2009-08-27 | Sony Ericsson Mobile Communications Ab | System and method for identifiable communication channel setup between terminals without previous contact |
CN107347182A (en) * | 2016-05-04 | 2017-11-14 | 北京京东尚科信息技术有限公司 | Short message distribution method and system |
CN107786949A (en) * | 2017-09-28 | 2018-03-09 | 上海帜讯信息技术股份有限公司 | Method, apparatus, server and the storage medium of information channel switching |
CN109168135A (en) * | 2018-11-09 | 2019-01-08 | 上海银赛计算机科技有限公司 | Selection method, device, SMS platform and the storage medium of short message sendaisle |
CN109561403A (en) * | 2018-12-12 | 2019-04-02 | 网宿科技股份有限公司 | A kind of short message dispatching method, equipment and storage medium |
CN109921869A (en) * | 2019-03-01 | 2019-06-21 | 北京奇艺世纪科技有限公司 | Method, apparatus, storage medium and the equipment of the quality of monitoring information transmission channel |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2022017398A1 (en) * | 2020-07-21 | 2022-01-27 | 杭州海康威视数字技术股份有限公司 | Method and apparatus for establishing communication connection, and device, and computer readable storage medium |
CN112800327A (en) * | 2021-01-18 | 2021-05-14 | 北京明略软件系统有限公司 | Method and device for determining target media information |
CN112800327B (en) * | 2021-01-18 | 2024-09-06 | 北京明略软件系统有限公司 | Method and device for determining target media information |
CN113743061A (en) * | 2021-09-08 | 2021-12-03 | 深圳集智数字科技有限公司 | Numerical value range adjusting method and device, electronic equipment and readable storage medium |
CN113743061B (en) * | 2021-09-08 | 2024-04-30 | 深圳集智数字科技有限公司 | Numerical range adjustment method, device, electronic equipment and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN111182479B (en) | 2021-09-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111182479B (en) | Information sending control method and device | |
JP6465916B2 (en) | Providing resource usage information for each application | |
RU2526711C2 (en) | Service performance manager with obligation-bound service level agreements and patterns for mitigation and autoprotection | |
KR101865318B1 (en) | Burst mode control | |
US20180287925A1 (en) | Assessing user activity using dynamic windowed forecasting on historical usage | |
US20030154123A1 (en) | System for managing equipment, services and service provider agreements | |
US10404480B2 (en) | Computer network service providing system including self adjusting volume enforcement functionality | |
CN107944000B (en) | Flight freight rate updating method and device, electronic equipment and storage medium | |
WO1998058501A1 (en) | A telecommunications performance management system | |
US20130204650A1 (en) | System and method for compliance management | |
CN111585824B (en) | Resource distribution method, device and system and electronic equipment | |
CN110933698A (en) | Monitoring management method, device and equipment for Internet of things card | |
US20110288974A1 (en) | Scalable billing with de-duplication in aggregator | |
WO2011146221A2 (en) | De-duplication in billing system | |
WO2020250807A1 (en) | Component replacement method and component replacement system | |
CN110351345B (en) | Method and device for processing service request | |
WO2021040852A1 (en) | Assigning a severity level to a computing service using tenant telemetry data | |
CN100373875C (en) | Utilization method and system within a communication network | |
CN115278563A (en) | Method and system for intelligently selecting short message channel based on influence factor | |
CN115917566A (en) | Communication apparatus and method for estimating potential needs to improve prediction and resource management | |
CN111861612B (en) | Resource allocation method, device, equipment and medium | |
KR100802092B1 (en) | Method and system for billing based on the client-server | |
CN106888187B (en) | Service processing method and device | |
JP7253104B1 (en) | Message delivery device, message delivery method, and message delivery program | |
KR20130007508A (en) | System and method for intermediating chauffeur service |
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 |