CN110830372B - Flow control method and related device - Google Patents

Flow control method and related device Download PDF

Info

Publication number
CN110830372B
CN110830372B CN201911114454.0A CN201911114454A CN110830372B CN 110830372 B CN110830372 B CN 110830372B CN 201911114454 A CN201911114454 A CN 201911114454A CN 110830372 B CN110830372 B CN 110830372B
Authority
CN
China
Prior art keywords
channel
value
processing
health degree
service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911114454.0A
Other languages
Chinese (zh)
Other versions
CN110830372A (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.)
Hua Xia Bank Co Ltd
Original Assignee
Hua Xia 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 Hua Xia Bank Co Ltd filed Critical Hua Xia 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses a flow control method and a related device. After receiving a service request, determining an original channel which is allocated to service flow corresponding to the service request in advance, and obtaining the 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 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 a 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 corresponding health degree of 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 each channel, 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 health degree corresponding to 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 times of non-abnormal service processing in a first preset time period to the total number of times of service processing in the first preset time period, and the second proportion value is the proportion of non-abnormal service processing in the preset number of times of service processing;
multiplying the first proportion 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 time period is a daytime time period, setting the first weight to be t1 and setting the second weight to be t 2;
when the first preset time interval is a night time interval, setting the first weight to be t3 and setting the second weight to be t 4;
the t1 is a different value than the t3, and the t2 is a different value than the t 4.
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; if the flow control value corresponding to the channel is larger than 0 and smaller than 1, a flow control mechanism is adopted for the channel, and the service flow allocated to the channel is reduced.
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 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, 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 using the processing channel.
Optionally, the flow control value is a numerical 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 used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the description below are only some embodiments of the present application, and for those skilled in the art, other drawings may be obtained according to these drawings without creative efforts.
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 application;
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 inter-bank remittance service is carried out, one payment channel (also called as 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 payee 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 those skilled in the art better understand the technical solutions of the present invention, 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 equipment a generates the service request and uploads the service request to the server, and the server issues the service request to the terminal equipment 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 a counter service person in a bank learns the service requirement of the user, the counter service person uses the terminal device c to execute a relevant operation, and the terminal device c generates a service request in response to the trigger of the operation. 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 a service flow 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 proportion 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’=M correct /M formula (2)
N’=N correct /N formula (3)
In the formula (2), M represents the total number of times of service processing in a first preset time period before the service request is received; m is a group of correct And representing the number of non-abnormal times of service processing in the first preset time period. Therefore, the first ratio value M' represents a ratio of the number of non-abnormal times of 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 period may be 60 minutes before the service request is received.
In the formula (3), N correct Indicating the number of non-abnormal business processes in the preset number of business processes (namely, N times) before the business request is received. Therefore, the second ratio value N' represents a ratio of non-abnormal traffic processing among the predetermined number 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 obtained correct And N correct And thus the health degree H is obtained again by the formulas (1) to (3).
According to the formulas (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 proportion value and/or the second proportion value is, the higher the health degree 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 corresponding health degree of the original channel is greater than or equal to the tolerance degree, 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 specific 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 ensure the success rate of processing the service traffic, the channel with higher health degree is selected as the proposed channel. As an example, in the other channels s2, s3, and s4, only the health degree of s3 and s4 is higher than that of the original channel s1, the priority may be determined from s3 and s4 according to the service logic or the health degree, and the channel with the higher priority is used as the suggested channel. For example, in terms of service logic, a higher priority is set for the more costly (lower) channel of s3 and s 4; alternatively, higher priorities are set for the channels of s3 and s4 that are more healthy in terms of health.
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 degree of the original channel s1 is less than the tolerance R1, the flow control value C is a value in 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, distributing the original channel as the processing channel according to the first probability, and distributing 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, and the flow control value C is 0.6, then 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 channel in each channel, 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 distributed 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 are 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 divided into other suggested channels at a probability, and less than 8 service flows are distributed to the channel every minute.
And for any one channel in 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 an opportunity to automatically recover the normal processing capability. Therefore, the flow management and control can be carried out without manual intervention in the technical scheme, the service flow 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 handled 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 better fitting an actual situation through historical traffic result information, so as to further improve a flow splitting 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 reports an error and returns a transaction result.
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 flow management and control technical scheme can be used for avoiding the continuous reduction of the processing capacity of the original channel with poor health degree, so that the success probability of service flow processing can be improved, and the service development efficiency can be 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 acquiring 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 times of non-abnormal service processing in a first preset time period to the total number of times of service processing in the first preset time period, and the second proportion value is the proportion of non-abnormal service processing in the preset number of times of service processing;
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 handled 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 device embodiment, the first weight T1 and the second weight T2 may also be set according to a time period, mainly in consideration of a difference between the number of traffic flow pens 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 splitting effect of the traffic control device provided by this embodiment.
Optionally, the apparatus further comprises:
the weight setting module is used for setting the first weight to be t1 and setting the second weight to be t2 when the first preset time interval is a daytime time interval; when the first preset time period is a night time period, setting the first weight to be t3 and setting the second weight to be t 4; wherein t1 is a different value than t3, and t2 is a different value than t 4.
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; if the flow control value corresponding to the channel is greater than 0 and less than 1, the flow control module is configured to apply a flow control mechanism to the channel, so as to reduce the traffic flow allocated 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, each embodiment is described in a progressive manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment is described with emphasis on differences from other embodiments. In particular, the apparatus and system embodiments, because they are substantially similar to the method embodiments, 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 illustrated as separate components may or may not be physically separate, and the components indicated as units may or may not be physical units, i.e. may be located in one place, or may be distributed on multiple 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 within 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 (7)

1. A method of flow management, comprising:
receiving a service request, and determining an original channel which is allocated for service traffic corresponding to the service request in advance, wherein the original channel is a channel with the lowest cost requirement for processing the service request;
obtaining the health degree corresponding to each channel; each of the channels comprises the original channel;
judging whether the corresponding health degree of 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 fusing value;
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: 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;
the obtaining of 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 a first numerical value and a second numerical value; the first value is the difference between the health degree corresponding to the original channel and the fusing value, and the second value is the difference between the tolerance and the fusing value.
2. 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.
3. The method according to claim 2, 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 times of non-abnormal service processing in a first preset time period to the total number of times of service processing in the first preset time period, and the second proportion value is the proportion of non-abnormal service processing in the preset number of times of service processing;
multiplying the first proportion 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.
4. The method of claim 3, further comprising:
when the first preset time period is a daytime time period, setting the first weight to be t1 and setting the second weight to be t 2;
when the first preset time period is a night time period, setting the first weight to be t3 and setting the second weight to be t 4;
the t1 and t3 are different values, and the t2 and t4 are different values.
5. The method of claim 1, 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; if the flow control value corresponding to the channel is larger than 0 and smaller than 1, a flow control mechanism is adopted for the channel, and the service flow allocated to the channel is reduced.
6. 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, where the original channel is a channel with a lowest cost requirement for processing 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 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, configured to determine a processing channel from the proposed channel and the original channel according to the flow control value;
the second processing module is used for processing the service flow by utilizing the processing channel;
the flow control value is a numerical 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 value 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;
the channel flow control value acquisition module is specifically configured to determine that the flow control value corresponding to the original channel is 0 when the health degree corresponding to the original 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 larger than the fusing value and smaller than the tolerance, determining that the flow control value corresponding to the original channel is a quotient of a first numerical value and a second numerical value; the first value is the difference between the health degree corresponding to the original channel and the fusing value, and the second value is the difference between the tolerance and the fusing value.
7. The apparatus according to claim 6, 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 CN110830372A (en) 2020-02-21
CN110830372B true 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)

Families Citing this family (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 (4)

* 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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105099908B (en) * 2014-05-08 2019-02-05 华为技术有限公司 The method of path computing, the method for message response and relevant device

Patent Citations (4)

* 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
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
一种基于网络的业务系统健康度评估方法;童晓薇;《重庆理工大学学报(自然科学)》;20120815(第08期);第101-105、126页 *

Also Published As

Publication number Publication date
CN110830372A (en) 2020-02-21

Similar Documents

Publication Publication Date Title
CN105719182B (en) Automatic account checking method and automatic account checking system
CN105741088A (en) Routing matching payment method and device
CN106548402B (en) Resource transfer monitoring method and device
CN106656839A (en) Resource transfer method and apparatus
CN107358524B (en) Method for leveling funds among multiple account management lines in same currency
CN105447995A (en) Money loading automatic planning device and method
WO2016035091A1 (en) Dynamic forecasting for forward reservation of cab
CN110428240B (en) Automatic suspicious transaction identification and processing method, terminal and server
CN110830372B (en) Flow control method and related device
CN109711884A (en) A kind of alliance integral settlement method and device
CN113935507A (en) Foreign currency cash exchange reservation method and device based on block chain
CN106845881A (en) A kind of detection method of stock abnormal data, device and electronic equipment
CN104301241B (en) A kind of SOA dynamic load distributing methods and system
CN109146444B (en) Virtual account creating method and device and account information updating method and device
CN109146128B (en) Service data processing method and device and server
CN110428122A (en) Data processing method, device, electronic equipment and storage medium
CN106034148A (en) Fast information interaction method, local server, remote server and system
CN101099133A (en) Method for the scheduling of software modules
CN108765138B (en) Object and fund transfer method and device
CN107945004A (en) Expense accumulates collection methods and device
CN109584057B (en) Transaction detail data acquisition method, device and server
CN111415263A (en) Data matching method and device
CN113269633A (en) Resource allocation method, device, computer equipment and storage medium
CN107909460B (en) Position synchronization method, device, data center and storage medium
CN112633866A (en) Payment operation method and device, electronic equipment and storage medium

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