CN110830372A - Flow control method and related device - Google Patents

Flow control method and related device Download PDF

Info

Publication number
CN110830372A
CN110830372A CN201911114454.0A CN201911114454A CN110830372A CN 110830372 A CN110830372 A CN 110830372A CN 201911114454 A CN201911114454 A CN 201911114454A CN 110830372 A CN110830372 A CN 110830372A
Authority
CN
China
Prior art keywords
channel
value
service
processing
health degree
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
Application number
CN201911114454.0A
Other languages
Chinese (zh)
Other versions
CN110830372B (en
Inventor
吴永飞
陈刚
张志田
卢科兵
周韬
王强
王超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
HUAXIA BANK CO Ltd
Original Assignee
HUAXIA BANK CO Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by HUAXIA BANK CO Ltd filed Critical HUAXIA BANK CO Ltd
Priority to CN201911114454.0A priority Critical patent/CN110830372B/en
Publication of CN110830372A publication Critical patent/CN110830372A/en
Application granted granted Critical
Publication of CN110830372B publication Critical patent/CN110830372B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/70Routing based on monitoring results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery

Abstract

The application discloses a flow control method and a related device. After receiving the service request, determining an original channel which is allocated to service flow corresponding to the service request in advance, and obtaining the corresponding health degree of each channel including the original channel; when the health degree of the original channel is greater than or equal to the preset tolerance, the original channel can still be used for processing the service flow, and if the health degree of the original channel is less than the tolerance, a processing channel can be determined from the original channel and the suggested channel with higher health degree according to the flow control value, and then the processing channel is used for processing the service flow. Therefore, the shunt control is realized under the condition that the original channel is poor in health degree. Compared with the prior art, by the aid of the technical scheme, the original channel processing capacity with poor health degree can be prevented from being continuously reduced, and therefore success probability of business flow processing can be improved, and business development efficiency is improved.

Description

Flow control method and related device
Technical Field
The present application relates to the field of data transmission technologies, and in particular, to a flow management and control method and a related apparatus.
Background
In the existing technology, when processing service traffic, usually only one channel can be selected from each channel according to the service rule, and then the selected channel is utilized to perform service operation. However, in practical applications, if a channel has a certain failure but is unknown or the channel is not suitable for continuously processing service traffic, the channel is still selected to perform service operation, which obviously increases the failure probability of service and affects the efficiency of service development.
Disclosure of Invention
Based on the above problems, the present application provides a traffic control method and a related device, so as to process service traffic in a split-flow manner under the condition that the original channel health degree is low, avoid continuous deterioration of the processing capability of the channel on the service traffic, improve the success probability of service traffic processing, and improve the service development efficiency.
The embodiment of the application discloses the following technical scheme:
in a first aspect, the present application provides a flow management method, including:
receiving a service request, and determining an original channel which is allocated to service traffic corresponding to the service request in advance;
obtaining the health degree corresponding to each channel; each of the channels comprises the original channel;
judging whether the health degree corresponding to the original channel is greater than or equal to tolerance, if so, processing the service flow by using the original channel;
if not, determining a suggested channel from the channels, obtaining a flow control value corresponding to the original channel by using the tolerance, the fusing value and the health degree corresponding to the original channel, determining a processing channel from the suggested channel and the original channel according to the flow control value, and processing the service flow by using the processing channel; the health degree of the recommended channel is greater than that of the original channel; the tolerance is greater than the fuse value.
Optionally, the flow control value is a numerical value between [0, 1), and determining a processing channel from the proposed channel and the original channel according to the flow control value specifically includes:
and taking the flow control value as a first probability, taking a difference value between 1 and the flow control value as a second probability, allocating the original channel as the processing channel according to the first probability, and allocating the suggested channel as the processing channel according to the second probability.
Optionally, the obtaining the health degree corresponding to each channel specifically includes:
obtaining historical service result information corresponding to each channel;
and for each channel, acquiring the corresponding health degree of the channel according to the service result return value and/or the response code in the historical service result information.
Optionally, the obtaining the health degree corresponding to the channel according to the service result return value and/or the response code in the historical service result information specifically includes:
obtaining a first proportion value and a second proportion value by using the service result return value and/or the response code; the first proportion value is the ratio of the number of non-abnormal service processing times in a first preset time period to the total number of service processing times in the first preset time period, and the second proportion value is the proportion of non-abnormal service processing times in the service processing of the preset number of times;
multiplying the first proportional value by a first weight to obtain a first product; multiplying the second proportional value by a second weight to obtain a second product; and taking the sum of the first product and the second product as the health degree.
Optionally, the method further comprises:
when the first preset period is a daytime period, setting the first weight to t1 and the second weight to t 2;
when the first preset time period is a night time period, setting the first weight to t3 and the second weight to t 4;
the t1 and t3 are different values, and the t2 and t4 are different values.
Optionally, the obtaining a flow control value corresponding to the original channel by using the tolerance, the fusing value, and the health degree corresponding to the original channel specifically includes:
when the corresponding health degree of the original channel is greater than 0 and less than or equal to the fusing value, determining that the corresponding flow control value of the original channel is 0;
when the health degree corresponding to the original channel is greater than the fusing value and less than the tolerance, determining that the flow control value corresponding to the original channel is a quotient of the first numerical value and the second numerical value; the first numerical value is the difference between the health degree corresponding to the original channel and the fusing value, and the second numerical value is the difference between the tolerance and the fusing value.
Optionally, the method further comprises:
for any one of the channels, if the flow control value corresponding to the channel is 0, adopting a fusing mechanism for the channel so as to ensure that the health degree corresponding to the channel does not continuously decrease and distributing a service flow for each minute of the channel; and if the flow control value corresponding to the channel is larger than 0 and smaller than 1, adopting a flow control mechanism for the channel, and reducing the service flow distributed to the channel.
In a second aspect, the present application provides a traffic control apparatus, including:
a service request receiving module, configured to receive a service request;
an original channel determining module, configured to determine an original channel that is pre-allocated to a service traffic corresponding to the service request;
the channel health degree acquisition module is used for acquiring the health degree corresponding to each channel; each of the channels comprises the original channel;
the judging module is used for judging whether the health degree corresponding to the original channel is greater than or equal to the tolerance;
the first processing module is used for processing the service flow by using the original channel when the judgment result of the judging module is yes;
a suggested channel determining module, configured to determine a suggested channel from the channels when the determination result of the determining module is negative; the health degree of the recommended channel is greater than that of the original channel;
the channel flow control value acquisition module is used for acquiring a flow control value corresponding to the original channel by utilizing the tolerance, the fusing value and the health degree corresponding to the original channel; the tolerance is greater than the fusing value;
a processing channel determining module, configured to determine a processing channel from the proposed channel and the original channel according to the flow control value;
and the second processing module is used for processing the service flow by utilizing the processing channel.
Optionally, the flow control value is a value between [0, 1), and the processing channel determining module is specifically configured to use the flow control value as a first probability, use a difference between 1 and the flow control value as a second probability, allocate the original channel as the processing channel according to the first probability, and allocate the proposed channel as the processing channel according to the second probability.
Optionally, the channel health degree obtaining module specifically includes:
a historical service result information obtaining unit, configured to obtain historical service result information corresponding to each channel;
and the health degree acquisition unit is used for acquiring the health degree corresponding to each channel according to the service result return value and/or the response code in the historical service result information.
Compared with the prior art, the method has the following beneficial effects:
in the method, after a service request is received, an original channel which is allocated for service traffic corresponding to the service request in advance is determined, and health degrees corresponding to all channels including the original channel are obtained; when the health degree of the original channel is greater than or equal to the preset tolerance, the original channel can still be used for processing the service traffic, and if the health degree of the original channel is less than the tolerance, a processing channel can be determined from the original channel and the suggested channel with higher health degree according to the flow control value, and then the processing channel is used for processing the service traffic. Therefore, the shunt control is realized under the condition that the original channel is poor in health degree. Compared with the prior art, the traffic management and control technical scheme can avoid continuous reduction of original channel processing capacity with poor health degree, so that the success probability of traffic processing can be improved, and the service development efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a flowchart of a flow control method according to an embodiment of the present application;
fig. 2 is a schematic diagram illustrating a relationship between a flow control value and a health degree according to an embodiment of the present disclosure;
fig. 3 is a schematic view of an interaction flow of an intelligent routing module and an intelligent flow control module according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a flow rate control device according to an embodiment of the present application.
Detailed Description
As described above, when the service traffic needs to be processed, it is easy to cause a problem that the processing efficiency of the service traffic is low or the processing fails because the selected channel fails or is not suitable for continuing to accept the service. That is, the specific situation of each channel cannot be sensed in the prior art.
The following is explained by taking one scenario as an example. When the bank-crossing remittance service is carried out, one payment channel (also called a payment channel) needs to be selected, but the specific situation of each payment channel cannot be sensed, and the overall health condition of a receiving bank cannot be known. Therefore, when a problem occurs in the payment channel (e.g., transaction request processing is over time) or a problem occurs in the receiving bank (e.g., failure of the agricultural bank micropayment system and failure of normal transaction processing), the subsequent transaction flow cannot be actively adjusted to other alternative payment channels, thereby resulting in a high failure rate of the cross-bank remittance.
In view of the above problems, the inventors have studied to provide a flow control method and related apparatus. And the processing channel is determined according to the health degree and the flow control value, so that the service failure probability is finally reduced, and the user experience is improved.
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The method comprises the following steps:
referring to fig. 1, a flow chart of a flow management method according to an embodiment of the present application is shown. As shown in fig. 1, the method includes:
step 101: receiving a service request, and determining an original channel which is allocated to service flow corresponding to the service request in advance.
In practical applications, the service request may have multiple implementation types for different scenarios. Taking a banking scenario as an example, the service request may be: a cross bank transfer request, a cross bank remittance request, a deposit request or a withdrawal request, etc. The specific type of service request is not limited herein.
As a possible implementation manner, the service request may be generated by the terminal device a corresponding to the user. When a user uses the terminal device a to execute relevant operations, the terminal device a responds to the trigger of the operations to generate a service request. After generating a service request, the terminal device a directly sends the service request to a terminal device B corresponding to the bank B; or the terminal device a uploads the service request to the server after generating the service request, and the server issues the service request to the terminal device B corresponding to the bank B.
As another possible implementation, the service request may also be generated by the terminal device c of the bank B according to the actual service requirement of the user. For example, after the counter service staff of the bank learns the service requirement of the user, the terminal device c is used to execute the relevant operation, and the terminal device c responds to the trigger of the operation to generate the service request. After generating a service request, the terminal equipment c directly sends the service request to another terminal equipment B corresponding to the bank B; or the terminal equipment c uploads the service request to the server after generating the service request, and the server issues the service request to the terminal equipment B corresponding to the bank B.
Finally, the terminal device B of bank B receives the service request.
For ease of understanding, a cross-bank request for money transfer is described below as an example of a service request. The cross-bank request for money transfer is specifically a request to transfer money from bank B to bank D.
In the embodiment of the present application, a channel may be allocated to the service traffic corresponding to the service request according to an existing service logic (or referred to as a service rule), where the channel is referred to as an original channel. The original channel may be a channel with a more preferable cost obtained by the operation according to the service logic. As an example, assuming that there are a plurality of payment channels s1, s2, s3 and s4 between bank B and bank D, where s1 is used to process the service traffic corresponding to the service request with the lowest cost, s1 may be allocated as the original channel for processing the service traffic.
Step 102: and obtaining the corresponding health degree of each channel including the original channel.
One possible implementation of step 102 is described below.
Firstly, obtaining historical service result information corresponding to each channel; and then, for each channel, obtaining the corresponding health degree of the channel according to the service result return value and/or the response code in the historical service result information.
Assume that there are multiple payment channels s1 (original channel), s2, s3, and s4 between bank B and bank D. This step is to obtain the historical service result information corresponding to the payment channels s1, s2, s3 and s4 respectively. As an example, the historical service result information may include a service result return value and/or a response code before the aforementioned service request is received, and may further include, but is not limited to, the following before the aforementioned service request is received:
a service type, a transaction code, a serial number, a transaction amount, a transaction time, and the like.
One possible implementation of obtaining channel health is:
obtaining a first proportion value and a second proportion value by using the service result return value and/or the response code; multiplying the first proportional value by a first weight to obtain a first product; and multiplying the second proportional value by a second weight to obtain a second product. See the calculation formula (1) for channel health:
h ═ M '× T1+ N' × T2 formula (1)
In formula (1), M 'represents a first proportional value, N' represents a second proportional value, T1 represents a first weight, T2 represents a second weight, and H represents channel health. Equations (2) and (3) show the calculation methods of the first and second proportional values M 'and N', respectively.
M’=Mcorrectformula/M (2)
N’=Ncorrectformula/N (3)
In the formula (2), M represents the total number of service processing times in a first preset time period before the service request is received; mcorrectAnd representing the number of non-abnormal times of service processing in the first preset time period. Therefore, the first proportional value M' represents a ratio of the number of times of non-abnormal service processing in the first preset time period to the total number of times of service processing in the first preset time period. As an example, the first preset time period may be 60 minutes before the service request is received.
In the formula (3), NcorrectIndicating receipt of a serviceThe number of non-abnormal business processing times in the business processing of the preset number of times (namely N times) before the request. Therefore, the second ratio value N' represents a ratio of non-abnormal traffic processing among the preset number of times of traffic processing. As an example, N is 100.
It can be understood that, in practical application, according to the service result return value and/or the response code in the result information of a certain historical service, normal processing or abnormal processing of the historical service can be known, because the return value of normal processing is different from the return value of abnormal processing; the response code for normal processing is different from the response code for exception processing. Based on the return value and/or the response code, M can be obtainedcorrectAnd NcorrectAnd thus the health degree H is obtained again by the formulas (1) to (3).
According to the equations (1) - (3), it can be understood that, in the case where the first weight T1 and the second weight T2 are unchanged, the larger the first proportional value and/or the second proportional value is, the higher the health of the channel is; conversely, the higher the rate of traffic handling anomalies, the lower the health of the channel.
Step 103: judging whether the health degree corresponding to the original channel is greater than or equal to the tolerance, if so, executing step 104; if not, step 105 is performed.
In this embodiment, a tolerance R1 is preset, the tolerance R1 is smaller than 1 and larger than 0, the tolerance R1 is a tolerance limit value, that is, a limit value for not performing a shunting process, and when the health degree corresponding to the original channel is smaller than the tolerance R1, a flow control (i.e., shunting) is performed; and if the health degree corresponding to the original channel is greater than or equal to the tolerance R1, it indicates that the health degree of the original channel is high enough and the processing capability for the service traffic is strong enough, and the service traffic corresponding to the service request may be processed by using the pre-allocated original channel s 1.
Step 104: and processing the service flow by using the original channel.
Step 105: and determining a suggested channel from the channels, and entering step 106.
In the concrete implementation, because the original channel has poor processing capability on the service traffic, that is, the health degree is lower than the tolerance, in order to guarantee the success rate of processing the service traffic, the channel with higher health degree is selected as the proposed channel. As an example, only the health degree of s3 and s4 of the other channels s2, s3, and s4 is higher than the health degree of the original channel s1, the priority may be determined from s3 and s4 according to the business logic or the health degree, and the channel with the higher priority is used as the suggested channel. For example, a higher priority is set for the more costly (lower) channel of s3 and s4 in terms of business logic; alternatively, in terms of health, a higher priority is set for the channel of s3 and s4 whose health is higher.
Step 106: and obtaining a flow control value corresponding to the original channel by using the tolerance, the fusing value and the health degree corresponding to the original channel, and entering step 107.
It should be noted that the fusing value R2 is a preset value in the method of the present embodiment. The tolerance R1 is greater than the fuse value R2, and the tolerances R1 and the fuse value R2 are both greater than 0 and less than 1. In this embodiment, the fuse value R2 is used as a threshold for starting the fuse mechanism, and the fuse mechanism is adopted when the health of the original channel is less than or equal to the fuse value R2.
Reference may be made to fig. 2, which is a schematic diagram of a relationship between a flow control value and a health degree provided in an embodiment of the present application.
Comparing the original channel health degree H obtained in the step 102 with the tolerance R1 and the fusing value R2, and when the health degree H corresponding to the original channel is larger than 0 and smaller than or equal to the fusing value R2, determining that the flow control value corresponding to the original channel is 0; when the health degree H corresponding to the original channel is greater than the fusing value R2 and less than the tolerance R1, determining that the flow control value corresponding to the original channel is a quotient of a first value and a second value, wherein the first value is the difference between the health degree H and the fusing value R2, and the second value is the difference between the tolerance R1 and the fusing value R2; and when the health degree H corresponding to the original channel is greater than or equal to the tolerance R1 and is less than or equal to 1, determining that the flow control value corresponding to the channel is 1.
When the health degree H corresponding to the channel is greater than the fusing value R2 and less than the tolerance R1, the channel flow control value is calculated as follows:
c ═ H-R2)/(R1-R2) formula (4)
In the formula (4), (H-R2) represents a first value, (R1-R2) represents a second value, and C represents a flow control value. According to the formula (4), it can be understood that the health degree H corresponding to the channel is positively correlated with the flow control value C, that is, the higher the health degree H is, the higher the flow control value C is.
Since the health of the original channel s1 is less than the tolerance R1, the fluidic value C is a value within the interval of [0, 1).
Step 107: and determining a processing channel from the suggested channel and the original channel according to the flow control value, and processing the service flow by using the processing channel.
One specific implementation of determining the processing path is described below.
And taking the flow control value as a first probability, taking a difference value between 1 and the flow control value as a second probability, allocating the original channel as the processing channel according to the first probability, and allocating the suggested channel as the processing channel according to the second probability.
As an example, the original channel is s1, the proposed channel is s4, the fluidic value C is 0.6, the first probability P1 is 0.6, and the second probability P2 is 0.4. That is, the probability of assigning the original channel s1 as the processing channel is 0.6, and the probability of assigning the proposed channel s4 as the processing channel is 0.4. Therefore, the flow control value is utilized to realize the service flow distribution.
The traffic control method provided by the embodiment of the present application determines, after receiving the service request, an original channel that is pre-allocated to a service traffic corresponding to the service request, and obtains a health degree corresponding to each channel including the original channel; when the health degree of the original channel is greater than or equal to the preset tolerance, the original channel can still be used for processing the service traffic, and if the health degree of the original channel is less than the tolerance, a processing channel can be determined from the original channel and the suggested channel with higher health degree according to the flow control value, and then the processing channel is used for processing the service traffic. Therefore, the shunt control is realized under the condition that the original channel is poor in health degree. Compared with the prior art, the traffic management and control technical scheme can avoid continuous reduction of original channel processing capacity with poor health degree, so that the success probability of traffic processing can be improved, and the service development efficiency is improved.
In the method provided in the foregoing embodiment, the method may further include:
for any one of the channels, if the flow control value corresponding to the channel is 0, a fusing mechanism is adopted for the channel, so that the health degree corresponding to the channel does not continuously decrease, and a service flow is allocated to the channel every minute to wait for the channel to automatically recover. In the existing technical scheme, the fusing mechanism is adopted to indicate that any service flow cannot be allocated, so that the fusing state can be cancelled only by adopting a manual intervention mode. By adopting the technical scheme provided by the application, one business flow is distributed to each minute of the channel when a fusing mechanism is adopted. This measure helps the channel to slowly build up health until the health reaches above the fuse value, i.e. the fuse state is cancelled. When the fusing state of the channel is cancelled, more service flows are shunted to the channel and processed by the channel, and a flow control mechanism is adopted at the moment. When the health of the channel continues to increase to or above tolerance, the flow control mechanism is no longer applied to the channel.
For any one of the channels, if the flow control value corresponding to the channel is greater than 0 and less than 1, a flow control mechanism is adopted for the channel, and the service flow allocated to the channel is reduced. For example, before entering the flow control mode, 8 traffic flows are allocated to the channel every minute; and a flow control mechanism is adopted for the channel, the service flow is distributed to other suggested channels at a probability, and less than 8 service flows are distributed to the channel every minute.
For any one of the channels, if the flow control value corresponding to the channel is 1, no flow control mechanism is adopted for the channel.
By comparing the technical scheme of the present application with the existing technology, in the embodiment of the present application, the health degree of the channel can be actively detected, and corresponding measures, such as a fusing mechanism (equivalent to "isolating" the channel) and a flow control mechanism (equivalent to shunting), can be automatically taken according to the health degree. When the fusing mechanism is adopted, one business flow can be distributed every minute, so that the channel has the opportunity to automatically recover the normal processing capability. Therefore, the traffic control can be performed without manual intervention in the technical scheme, the service traffic processing efficiency of each channel is improved, and the labor cost is saved.
It will be appreciated that the number of traffic flows that need to be processed at different times of the day may be different. For example, the number of transfer service traffic to be processed during the daytime may be much higher than the number of transfer service traffic to be processed during the night. In the foregoing method embodiment, the first weight T1 and the second weight T2 may also be set according to a time period, which mainly takes into account a difference between the number of traffic flows in the daytime and at night, so as to obtain a health degree more suitable for an actual situation through historical traffic result information, so as to further improve a flow distribution effect of the traffic control method provided in this embodiment.
When the first preset period is a daytime period, the first weight T1 is set to T1, and the second weight T2 is set to T2. In the embodiment of the present application, the daytime period is from 6:00 to 22: any period within the 00 interval. For example, the daytime period is 7:00-7: 20.
When the first preset time period is a night time period, setting the first weight T1 to T3, and setting the second weight T2 to T4; the night period is 22:00 to the next day 06: any period within the 00 interval. For example, the nighttime period is 23:00-23: 20.
t1 and t3 are different values, and t2 and t4 are different values.
The following describes an interactive implementation manner of traffic control and service development between the intelligent routing module and the intelligent flow control module through the accompanying drawings and embodiments.
Referring to fig. 3, this figure is a schematic view of an interaction flow of the intelligent routing module and the intelligent flow control module provided in this embodiment.
As shown in fig. 3, the intelligent routing module 401 first receives a service request for a cross-bank remittance and then determines whether the number of alternative cross-bank remittance channels is greater than or equal to 2.
If the number of the optional cross-bank remittance channels is less than 2, selecting an available channel according to the business rule, judging whether the available channel exists, if so, finishing remittance, returning a transaction result, and asynchronously communicating the transaction result to the intelligent flow control module 402; if not, the transaction is reported to be wrong, and a transaction result is returned.
If the number of optional cross-bank remittance channels is greater than or equal to 2, the intelligent flow control module 402 is queried for the channel health. The intelligent flow control module 402 calculates the health degree and the flow control value of each channel in real time according to the calculation method of the health degree and the flow control value provided in the foregoing embodiment. When the intelligent flow control module 402 receives the query request from the intelligent routing module 401, the suggested channel is fed back to the intelligent routing module 401 according to the flow control value calculated before. The intelligent routing module 401 determines a processing channel to complete remittance by using the advice channel and the flow control value fed back by the intelligent flow control module 402, returns a transaction result, and asynchronously communicates the transaction result to the intelligent flow control module 402.
For the intelligent flow control module 402, the transaction result information obtained in real time from the intelligent routing module 401 is included as historical service result information into the calculation model. That is, the intelligent flow control module 402 may calculate the health degree of the channel according to the historical service result information obtained in real time, further calculate the flow control value of the channel by calculating the health degree, and feed back the suggested channel and the processing channel when required by the intelligent routing module 401.
Based on the flow control method provided by the foregoing embodiment, correspondingly, the present application further provides a flow control device. The following description is made with reference to the embodiments and the accompanying drawings.
The embodiment of the device is as follows:
referring to fig. 4, the figure is a schematic structural diagram of a flow rate control device according to an embodiment of the present application.
As shown in fig. 4, the apparatus includes:
a service request receiving module 4001, configured to receive a service request;
an original channel determining module 4002, configured to determine an original channel that is allocated to a service traffic corresponding to the service request in advance;
a channel health degree obtaining module 4003, configured to obtain health degrees corresponding to the channels; each of the channels comprises the original channel;
a judging module 4004, configured to judge whether the health degree corresponding to the original channel is greater than or equal to a tolerance;
a first processing module 4005, configured to process the service traffic by using the original channel when the determination result of the determining module is yes;
a suggested channel determining module 4006, configured to determine a suggested channel from the channels when the determination result of the determining module is negative; the health degree of the recommended channel is greater than that of the original channel;
a channel flow control value obtaining module 4007, configured to obtain a flow control value corresponding to the original channel by using the tolerance, the fusing value, and the health degree corresponding to the original channel; the tolerance is greater than the fusing value;
a processing channel determining module 4008, configured to determine a processing channel from the proposed channel and the original channel according to the flow control value;
a second processing module 4009, configured to process the service traffic using the processing channel.
The above is the flow control device provided by the present application. After receiving the service request, determining an original channel which is allocated to service flow corresponding to the service request in advance, and obtaining the corresponding health degree of each channel including the original channel; when the health degree of the original channel is greater than or equal to the preset tolerance, the original channel can still be used for processing the service traffic, and if the health degree of the original channel is less than the tolerance, a processing channel can be determined from the original channel and the suggested channel with higher health degree according to the flow control value, and then the processing channel is used for processing the service traffic. Therefore, the shunt control is realized under the condition that the original channel is poor in health degree. Compared with the prior art, the traffic management and control technical scheme can avoid continuous reduction of original channel processing capacity with poor health degree, so that the success probability of traffic processing can be improved, and the service development efficiency is improved.
Optionally, the flow control value is a numerical value between [0, 1), and the processing channel determining module 4008 is specifically configured to use the flow control value as a first probability, use a difference between 1 and the flow control value as a second probability, allocate the original channel as the processing channel according to the first probability, and allocate the proposed channel as the processing channel according to the second probability.
Optionally, the channel health degree acquiring module 4002 specifically includes:
a historical service result information obtaining unit, configured to obtain historical service result information corresponding to each channel;
and the health degree acquisition unit is used for acquiring the health degree corresponding to each channel according to the service result return value and/or the response code in the historical service result information.
Optionally, the health degree obtaining unit specifically includes:
a proportional value obtaining subunit, configured to obtain a first proportional value and a second proportional value by using the service result return value and/or the response code; the first proportion value is the ratio of the number of non-abnormal service processing times in a first preset time period to the total number of service processing times in the first preset time period, and the second proportion value is the proportion of non-abnormal service processing times in the service processing of the preset number of times;
the health degree obtaining subunit is configured to multiply the first proportional value by a first weight to obtain a first product; multiplying the second proportional value by a second weight to obtain a second product; and taking the sum of the first product and the second product as the health degree.
The number of traffic flows that need to be processed at different times of the day may be different. For example, the number of transfer service traffic to be processed during the daytime may be much higher than the number of transfer service traffic to be processed during the night. In the foregoing embodiment of the device, the first weight T1 and the second weight T2 may also be set according to a time interval, mainly in consideration of a difference between the number of the traffic flows in the daytime and at night, so as to obtain a health degree more suitable for an actual situation through historical traffic result information, so as to further improve a shunting effect of the traffic control device provided in this embodiment.
Optionally, the apparatus further comprises:
a weight setting module, configured to set the first weight to t1 and the second weight to t2 when the first preset time period is a daytime time period; when the first preset time period is a night time period, setting the first weight to t3 and the second weight to t 4; wherein t1 and t3 are different values, and t2 and t4 are different values.
Optionally, the channel flow control value obtaining module 4007 is specifically configured to determine that the flow control value corresponding to the original channel is 0 when the health degree corresponding to the channel is greater than 0 and is less than or equal to the fusing value; when the health degree corresponding to the original channel is greater than the fusing value and less than the tolerance, determining that the flow control value corresponding to the original channel is a quotient of the first numerical value and the second numerical value; the first value is the difference between the health degree and the fusing value, and the second value is the difference between the tolerance degree and the fusing value; and when the health degree corresponding to the original channel is greater than or equal to the tolerance and less than 1, determining that the flow control value corresponding to the original channel is 1.
Optionally, the apparatus further comprises:
the flow control module is used for adopting a fusing mechanism for any one of the channels if the flow control value corresponding to the channel is 0, so that the health degree corresponding to the channel does not continuously decrease, and a service flow is distributed to the channel every minute; and if the flow control value corresponding to the channel is greater than 0 and less than 1, the flow control module is used for adopting a flow control mechanism for the channel and reducing the service flow distributed to the channel.
By utilizing the flow control module of the device, the initiative of flow control is improved, and the quick recovery of a fault channel is facilitated; and does not affect the actual processing efficiency of each service.
It should be noted that, in the present specification, all the embodiments are described in a progressive manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus and system embodiments, since they are substantially similar to the method embodiments, they are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described embodiments of the apparatus and system are merely illustrative, and the units described as separate parts may or may not be physically separate, and the parts suggested as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only one specific embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present application should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method of flow management, comprising:
receiving a service request, and determining an original channel which is allocated to service traffic corresponding to the service request in advance;
obtaining the health degree corresponding to each channel; each of the channels comprises the original channel;
judging whether the health degree corresponding to the original channel is greater than or equal to tolerance, if so, processing the service flow by using the original channel;
if not, determining a suggested channel from the channels, obtaining a flow control value corresponding to the original channel by using the tolerance, the fusing value and the health degree corresponding to the original channel, determining a processing channel from the suggested channel and the original channel according to the flow control value, and processing the service flow by using the processing channel; the health degree of the recommended channel is greater than that of the original channel; the tolerance is greater than the fuse value.
2. The method according to claim 1, wherein the flow control value is a value between [0, 1), and the determining a processing channel from the proposed channel and the original channel according to the flow control value specifically includes:
and taking the flow control value as a first probability, taking a difference value between 1 and the flow control value as a second probability, allocating the original channel as the processing channel according to the first probability, and allocating the suggested channel as the processing channel according to the second probability.
3. The method according to claim 1, wherein the obtaining the health degree corresponding to each channel specifically comprises:
obtaining historical service result information corresponding to each channel;
and for each channel, acquiring the corresponding health degree of the channel according to the service result return value and/or the response code in the historical service result information.
4. The method according to claim 3, wherein the obtaining the health degree corresponding to the channel according to the service result return value and/or the response code in the historical service result information specifically includes:
obtaining a first proportion value and a second proportion value by using the service result return value and/or the response code; the first proportion value is the ratio of the number of non-abnormal service processing times in a first preset time period to the total number of service processing times in the first preset time period, and the second proportion value is the proportion of non-abnormal service processing times in the service processing of the preset number of times;
multiplying the first proportional value by a first weight to obtain a first product; multiplying the second proportional value by a second weight to obtain a second product; and taking the sum of the first product and the second product as the health degree.
5. The method of claim 4, further comprising:
when the first preset period is a daytime period, setting the first weight to t1 and the second weight to t 2;
when the first preset time period is a night time period, setting the first weight to t3 and the second weight to t 4;
the t1 and t3 are different values, and the t2 and t4 are different values.
6. The method according to claim 1, wherein the obtaining the flow control value corresponding to the original channel by using the tolerance, the fusing value, and the health degree corresponding to the original channel specifically includes:
when the corresponding health degree of the original channel is greater than 0 and less than or equal to the fusing value, determining that the corresponding flow control value of the original channel is 0;
when the health degree corresponding to the original channel is greater than the fusing value and less than the tolerance, determining that the flow control value corresponding to the original channel is a quotient of the first numerical value and the second numerical value; the first numerical value is the difference between the health degree corresponding to the original channel and the fusing value, and the second numerical value is the difference between the tolerance and the fusing value.
7. The method of claim 6, further comprising:
for any one of the channels, if the flow control value corresponding to the channel is 0, adopting a fusing mechanism for the channel so as to ensure that the health degree corresponding to the channel does not continuously decrease and distributing a service flow for each minute of the channel; and if the flow control value corresponding to the channel is larger than 0 and smaller than 1, adopting a flow control mechanism for the channel, and reducing the service flow distributed to the channel.
8. A flow management and control device, comprising:
a service request receiving module, configured to receive a service request;
an original channel determining module, configured to determine an original channel that is pre-allocated to a service traffic corresponding to the service request;
the channel health degree acquisition module is used for acquiring the health degree corresponding to each channel; each of the channels comprises the original channel;
the judging module is used for judging whether the health degree corresponding to the original channel is greater than or equal to the tolerance;
the first processing module is used for processing the service flow by using the original channel when the judgment result of the judging module is yes;
a suggested channel determining module, configured to determine a suggested channel from the channels when the determination result of the determining module is negative; the health degree of the recommended channel is greater than that of the original channel;
the channel flow control value acquisition module is used for acquiring a flow control value corresponding to the original channel by utilizing the tolerance, the fusing value and the health degree corresponding to the original channel; the tolerance is greater than the fusing value;
a processing channel determining module, configured to determine a processing channel from the proposed channel and the original channel according to the flow control value;
and the second processing module is used for processing the service flow by utilizing the processing channel.
9. The apparatus according to claim 8, wherein the flow control value is a value between [0, 1), and the processing channel determining module is specifically configured to use the flow control value as a first probability, use a difference between 1 and the flow control value as a second probability, allocate the original channel as the processing channel according to the first probability, and allocate the proposed channel as the processing channel according to the second probability.
10. The apparatus according to claim 8, wherein the channel health degree obtaining module specifically includes:
a historical service result information obtaining unit, configured to obtain historical service result information corresponding to each channel;
and the health degree acquisition unit is used for acquiring the health degree corresponding to each channel according to the service result return value and/or the response code in the historical service result information.
CN201911114454.0A 2019-11-14 2019-11-14 Flow control method and related device Active CN110830372B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911114454.0A CN110830372B (en) 2019-11-14 2019-11-14 Flow control method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911114454.0A CN110830372B (en) 2019-11-14 2019-11-14 Flow control method and related device

Publications (2)

Publication Number Publication Date
CN110830372A true CN110830372A (en) 2020-02-21
CN110830372B CN110830372B (en) 2022-09-23

Family

ID=69555659

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911114454.0A Active CN110830372B (en) 2019-11-14 2019-11-14 Flow control method and related device

Country Status (1)

Country Link
CN (1) CN110830372B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112487318A (en) * 2020-11-25 2021-03-12 北京宝兰德软件股份有限公司 Business health degree calculation method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002314593A (en) * 2001-04-18 2002-10-25 Nec Corp Flow controller and flow control method used for the same
CN102724193A (en) * 2012-06-14 2012-10-10 西安交通大学 Control method aiming at streaming service survivability in IP (Internet protocol) network environment
US20190097923A1 (en) * 2014-05-08 2019-03-28 Huawei Technologies Co., Ltd. Path computation method, message responding method, and related device
CN109658079A (en) * 2018-09-27 2019-04-19 深圳壹账通智能科技有限公司 Multichannel transfer account method, device, equipment and readable storage medium storing program for executing
CN109829717A (en) * 2018-12-15 2019-05-31 深圳壹账通智能科技有限公司 O&M method, apparatus, computer installation and the storage medium of payment channel

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002314593A (en) * 2001-04-18 2002-10-25 Nec Corp Flow controller and flow control method used for the same
CN102724193A (en) * 2012-06-14 2012-10-10 西安交通大学 Control method aiming at streaming service survivability in IP (Internet protocol) network environment
US20190097923A1 (en) * 2014-05-08 2019-03-28 Huawei Technologies Co., Ltd. Path computation method, message responding method, and related device
CN109658079A (en) * 2018-09-27 2019-04-19 深圳壹账通智能科技有限公司 Multichannel transfer account method, device, equipment and readable storage medium storing program for executing
CN109829717A (en) * 2018-12-15 2019-05-31 深圳壹账通智能科技有限公司 O&M method, apparatus, computer installation and the storage medium of payment channel

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
童晓薇: "一种基于网络的业务系统健康度评估方法", 《重庆理工大学学报(自然科学)》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112487318A (en) * 2020-11-25 2021-03-12 北京宝兰德软件股份有限公司 Business health degree calculation method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN110830372B (en) 2022-09-23

Similar Documents

Publication Publication Date Title
CN105719182B (en) Automatic account checking method and automatic account checking system
CN107480978B (en) Payment method based on block chain technology
CN105741088A (en) Routing matching payment method and device
CN108022087A (en) payment data processing method, device, storage medium and computer equipment
CN105809323A (en) Task allocation method and system
CN107358524B (en) Method for leveling funds among multiple account management lines in same currency
CN104992228A (en) Remote queuing method and remote queuing system for banking business handling
CN105447995A (en) Money loading automatic planning device and method
WO2016035091A1 (en) Dynamic forecasting for forward reservation of cab
CN109711884A (en) A kind of alliance integral settlement method and device
CN110830372B (en) Flow control method and related device
CN101981878A (en) Distributed resource management system, distributed resource management method, and distributed resource management program
CN106096926B (en) Event processing method, device, electronic device and storage medium
CN109391543A (en) Method and system, business recovery auxiliary system for multi-service fault recovery
CN109146444B (en) Virtual account creating method and device and account information updating method and device
CN110428122A (en) Data processing method, device, electronic equipment and storage medium
CN105282025A (en) Method of determining end-to-end routing and apparatus thereof
CN104270466B (en) Data reporting method and relevant device
CN112258184B (en) Method, apparatus, electronic device and readable storage medium for freezing blockchain network
CN113935507A (en) Foreign currency cash exchange reservation method and device based on block chain
CN107945004A (en) Expense accumulates collection methods and device
CN108765138B (en) Object and fund transfer method and device
Shamir Reliability of water supply systems
CN112633866A (en) Payment operation method and device, electronic equipment and storage medium
CN107479977A (en) A kind of method and apparatus for determining equipment performance

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