CN112565108A - Method, device, equipment and storage medium for controlling service flow - Google Patents
Method, device, equipment and storage medium for controlling service flow Download PDFInfo
- Publication number
- CN112565108A CN112565108A CN202011420085.0A CN202011420085A CN112565108A CN 112565108 A CN112565108 A CN 112565108A CN 202011420085 A CN202011420085 A CN 202011420085A CN 112565108 A CN112565108 A CN 112565108A
- Authority
- CN
- China
- Prior art keywords
- service
- traffic
- flow
- priority
- service system
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 48
- 238000012545 processing Methods 0.000 claims description 55
- 230000004044 response Effects 0.000 claims description 14
- 230000002159 abnormal effect Effects 0.000 claims description 10
- 238000012216 screening Methods 0.000 claims description 6
- 230000008569 process Effects 0.000 description 9
- 238000004891 communication Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 230000026676 system process Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/24—Traffic characterised by specific attributes, e.g. priority or QoS
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a method, a device, equipment and a storage medium for controlling service flow, and belongs to the technical field of block chains. The invention obtains the service type corresponding to the service system in the service network; determining the flow service corresponding to the service system according to the service type; acquiring the traffic priority and the traffic ratio corresponding to the service system; and carrying out flow distribution on the service system according to the flow priority and the flow ratio through the flow service, carrying out flow distribution according to the flow priority and the flow ratio corresponding to the service system through the flow service corresponding to the service system, and distributing service flows according to different flow priorities and flow ratios according to the service requirements of the actual service system, thereby realizing dynamic adjustment of the service flows. The traffic priority and the traffic proportion corresponding to the service system may be stored in the block chain.
Description
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a method, an apparatus, a device, and a storage medium for controlling traffic flow.
Background
At present, gateways and routing systems in the industry can only support functions of one-to-one forwarding, fuzzy path matching, forwarding according to a fixed proportion, polling forwarding, fault transfer, current limiting and the like, most of the functions are forwarding for a cluster instance of the same service, and service flow cannot be dynamically adjusted according to actual requirements.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a method, a device, equipment and a storage medium for controlling service flow, and aims to solve the technical problem that the service flow cannot be dynamically adjusted according to actual requirements in the prior art.
In order to achieve the above object, the present invention provides a traffic control method, which includes the following steps:
acquiring a service type corresponding to a service system in a service network;
determining the flow service corresponding to the service system according to the service type;
acquiring the traffic priority and the traffic ratio corresponding to the service system;
and carrying out flow distribution on the service system through the flow service according to the flow priority and the flow ratio.
Optionally, the determining, according to the service type, a traffic service corresponding to the service system includes:
determining the service processing grade of the service to be processed in the service system according to the service type;
obtaining a service quality parameter of each flow service;
matching the service processing grade with the service quality parameter;
and determining the flow service corresponding to the service system according to the matching result.
Optionally, the matching the service processing level and the service quality parameter includes:
determining the importance and the urgency of the service to be processed in the service system according to the service processing grade;
determining the flow expense, the flow amount and the flow stability corresponding to each flow service according to the service quality parameters;
and matching the importance and the urgency with the flow cost, the flow limit and the flow stability based on a preset corresponding relation.
Optionally, the obtaining of the traffic priority and the traffic ratio corresponding to the service system includes:
acquiring the current service quantity of the service to be processed in the service system;
determining the ratio of the current services according to the current service quantity and the preset service quantity;
and determining the traffic priority and the traffic ratio corresponding to the service system according to the current service proportion.
Optionally, after the traffic distribution is performed on the service system according to the traffic priority and the traffic ratio by the traffic service, the method further includes:
acquiring the total current traffic flow in the traffic network and a traffic threshold corresponding to the traffic service;
when the total current traffic flow is greater than the flow threshold, adjusting the flow service and the flow ratio;
and carrying out flow distribution on the service system according to the flow priority and the adjusted flow ratio through the adjusted flow service.
Optionally, the adjusting the traffic service and the traffic proportion includes:
determining the matching degree of the service system and each flow service according to the service type;
adjusting the flow service according to the matching degree;
and adjusting the flow ratio corresponding to the service system according to the flow priority.
Optionally, after the traffic distribution is performed on the service system according to the traffic priority and the traffic ratio by the traffic service, the method further includes:
acquiring the service state of the flow service and the service response duration in the service network;
when the service state is an abnormal state or the service response time length is longer than a preset time length, adjusting the flow service and the flow ratio;
and carrying out flow distribution on the service system according to the flow priority and the adjusted flow ratio through the adjusted flow service.
In addition, to achieve the above object, the present invention further provides a traffic flow control apparatus, including:
the acquisition module is used for acquiring the service type corresponding to the service system in the service network;
the screening module is used for determining the flow service corresponding to the service system according to the service type;
the acquisition module is also used for acquiring the traffic priority and the traffic ratio corresponding to the service system;
and the distribution module is used for carrying out flow distribution on the service system through the flow service according to the flow priority and the flow ratio.
In addition, to achieve the above object, the present invention further provides a traffic flow control device, where the traffic flow control device includes: a memory, a processor and a traffic flow control program stored on the memory and executable on the processor, the traffic flow control program being configured to implement the steps of the traffic flow control method as described above.
In addition, to achieve the above object, the present invention further provides a storage medium, which stores a traffic flow control program, and the traffic flow control program implements the steps of the traffic flow control method as described above when executed by a processor.
The invention obtains the service type corresponding to the service system in the service network; determining the flow service corresponding to the service system according to the service type; acquiring the traffic priority and the traffic ratio corresponding to the service system; and carrying out flow distribution on the service system according to the flow priority and the flow ratio through the flow service, carrying out flow distribution according to the flow priority and the flow ratio corresponding to the service system through the flow service corresponding to the service system, and distributing service flows according to different flow priorities and flow ratios according to the service requirements of the actual service system, thereby realizing dynamic adjustment of the service flows.
Drawings
Fig. 1 is a schematic structural diagram of a traffic flow control device in a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a first embodiment of a traffic control method according to the present invention;
fig. 3 is a flowchart illustrating a traffic control method according to a second embodiment of the present invention;
fig. 4 is a flowchart illustrating a traffic control method according to a third embodiment of the present invention;
fig. 5 is a block diagram showing the structure of a traffic control apparatus according to a first embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a traffic flow control device in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the traffic control apparatus may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WIreless-FIdelity (WI-FI) interface). The Memory 1005 may be a Random Access Memory (RAM) Memory, or may be a Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the architecture shown in fig. 1 does not constitute a limitation of traffic control devices and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include therein an operating system, a network communication module, a user interface module, and a traffic flow control program.
In the traffic control apparatus shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the traffic control device of the present invention may be disposed in the traffic control device, and the traffic control device invokes, through the processor 1001, the traffic control program stored in the memory 1005, and executes the traffic control method provided in the embodiment of the present invention.
An embodiment of the present invention provides a method for controlling a traffic flow, referring to fig. 2, and fig. 2 is a schematic flow diagram of a first embodiment of a method for controlling a traffic flow according to the present invention.
In this embodiment, the method for controlling traffic flow includes the following steps:
step S10: and acquiring a service type corresponding to a service system in the service network.
It should be noted that, the execution subject in this embodiment may be a router, and may also be a gateway device having the same or similar functions, which is not limited in this embodiment, and the router is taken as an example for description. The router is used for information transmission in the network, and can monitor the flow used by the information transmission.
In this embodiment, the service network is a network used by a company for processing service work, the service network includes a plurality of service systems, each service system processes different services, for example, an employee attendance system is used for processing services such as employee attendance identity information verification and attendance data filling, an insurance handling service system is used for processing services such as information registration of security objects and insurance item selection, and service types corresponding to the service systems, such as a client consultation service, an employee attendance service, and an insurance handling service, can be obtained according to the services processed in each service system.
In a specific implementation, the service type corresponding to each service system is obtained from the information transmitted by each service system in the service network, in this embodiment, the specific service type may be determined by processing the service type identifier of the service, a binary code corresponding to communication data may also be extracted from the transmitted information, a corresponding service type is determined according to different components of the binary code, and the service type of the service system may also be obtained in other manners, which is not limited in this embodiment.
It is emphasized that the traffic types may also be stored in nodes of a block chain in order to further ensure the security and privacy of the traffic types.
Step S20: and determining the flow service corresponding to the service system according to the service type.
It should be noted that, when the service system processes the relevant service, the provider is required to provide the corresponding service, when the service system uses the service provided by the provider, a certain flow is generated, and these flows are also provided by the provider, i.e., the provider provides the traffic service, the different providers provide the traffic service with different stability, service fee and traffic limit, for example, the traffic service provided by provider a is less stable, there may be situations where the delay is higher or there is no response, while having a certain traffic quota, when the traffic quota is reached, the traffic service is no longer provided, but the traffic service provided by the provider a is not charged, and as the traffic service provided by the provider B has higher stability, the service processing speed is fast and the disconnection is not easy to occur, there is no limit to the traffic credit, but the traffic service offered by provider B is charged. In addition, it should be noted that, in this embodiment, the number of the providers is at least two, and one provider may provide one traffic service or multiple traffic services, which is not limited in this embodiment.
It can be understood that the traffic services required by different service systems are different, and in order to reduce the traffic cost of the service system when processing the service and ensure that the service in the service system can be processed normally, corresponding screening needs to be performed from the traffic services provided by different providers according to the service system, in this embodiment, a suitable traffic service is selected from different providers according to the service type of the service processed in the service system, for example, the existing provider X provides a free traffic service, but the traffic service is used for processing the service with a long time consumption, the provider Y provides a charging traffic service with a high price, but the traffic service can be processed stably and quickly, the service type of the service processed by the employee attendance system is an employee attendance service, and the traffic service provided by the provider X corresponding to the employee attendance system can be determined according to the employee attendance service, the service type of the service processed by the insurance management system is an insurance transaction service, and the flow service provided by the supplier Y corresponding to the insurance management system can be determined according to the insurance transaction service.
Further, in order to match the service type and the traffic service more accurately, reduce the traffic cost to the maximum extent, and ensure that the service can be processed normally and stably, step S20 in this embodiment specifically includes: determining the processing grade of the service to be processed in the service system according to the service type; obtaining a service quality parameter of each flow service; matching the processing grade with the service quality parameter to obtain a matching result; and determining the flow service corresponding to the service type according to the matching result.
It should be noted that, the service processing grades of the services processed by different service systems are also different, and the higher the service processing grade is, the higher the priority processing is required, and the higher the quality of the required traffic service is. The service type can determine the service processing grade of the service to be processed, for example, the service processing grade corresponding to the insurance handling service is first grade, the service processing grade corresponding to the client consultation service is second grade, the service processing grade corresponding to the employee entering service is third grade, the first grade of the service processing grade represents that the service processing needs to be processed in the highest priority, the service processing grades of different service types and the division of the service processing grades can be according to the actual situationThe present embodiment is not limited to this. Then matching the service processing class with a quality of service parameter, e.g. service type T1Corresponding pending traffic W1The service processing grade of (1) is one grade, and the service type T is2Corresponding pending traffic W2The service processing grade of (1) is two grade, and the flow service L is1The quality of service parameters of (1) are high stability, unlimited flow rate limit and high flow rate charge, flow service L2The quality of service parameters of (1) are low stability, 5G traffic limit and no traffic cost, assuming a pending service W1Compared with the pending service W2More important and more urgent, the pending traffic W with the first class of traffic handling class1The matched service quality parameters are high stability, unlimited flow rate limit and high flow rate charge, and the service W to be processed of the secondary service processing level2The matched service quality parameters are low stability, 5G flow rate limit and no flow rate charge, and the service type T can be finally determined according to the matching result1The corresponding traffic service is L1Service type T2The corresponding traffic service is L2。
Further, in order to make the matching between the service processing level and the service quality parameter more accurate, in this embodiment, the matching between the service processing level and the service quality parameter specifically includes: determining the importance and the urgency of the service to be processed in the service system according to the service processing grade; determining the flow expense, the flow amount and the flow stability corresponding to each flow service according to the service quality parameters; and matching the importance and the urgency with the flow cost, the flow limit and the flow stability based on a preset corresponding relation.
It should be noted that the service processing level represents the importance and the urgency of the service to be processed, and the importance and the urgency of the service to be processed can be determined according to the service processing level, for example, the service processing level is one level to indicate that the service to be processed is important and urgent, the service processing level is two levels to indicate that the service to be processed is not important but urgent, and the service processing level is three levels to indicate that the service to be processed is not importantAnd the corresponding relation between the specific service processing grade and the importance degree and the emergency degree can be correspondingly set according to the actual situation. The service quality parameters include flow cost, flow amount and flow stability corresponding to the flow service, the importance and urgency corresponding to the service processing level are matched with the service quality parameters (flow cost, flow amount and flow stability) of the flow service based on a preset corresponding relation, and the preset corresponding relation can be set according to the actual service flow requirement, such as the service W to be processed1High importance and high urgency, and W1The matched service quality parameters are high stability, unlimited flow rate limit and high flow rate expense.
Step S30: and acquiring the traffic priority and the traffic ratio corresponding to the service system.
It can be understood that different services processed by different service systems are different, and in the actual service processing process, each service has different importance degree, and the service systems corresponding to the services can be classified according to the importance degree of each service. In this embodiment, each level of service system has a corresponding traffic priority and a traffic ratio, where the traffic priority indicates a priority order of traffic provided by the traffic service to the service system, and the traffic system with the higher priority provides the traffic service to the service system first, so that the service system can perform service processing preferentially, and the traffic ratio indicates a traffic ratio provided by the traffic service to each service system, and the traffic system with the higher traffic ratio provides more traffic to the service system, so that the service system can perform service processing using more traffic, and speed up the service processing.
Step S40: and carrying out flow distribution on the service system through the flow service according to the flow priority and the flow ratio.
It can be understood that, after determining the traffic service corresponding to each service system, there may be a case where multiple service systems adopt the same traffic service, and in order to ensure that each service system can process the service normally when the traffic service is providing the service, in this embodiment, traffic is allocated according to the traffic priority and the traffic ratio of the service systems, for example, the traffic priority of the service system a is first level, the traffic ratio is 50%, the traffic priority of the service system B is second level, the traffic ratio is 30%, the traffic priority of the service system C is third level, the traffic ratio is 20%, it is assumed that the first level is the highest priority and the third level is the lowest priority, and according to the traffic priority and the traffic ratio, the traffic service preferentially provides 50% of the traffic flow for the service system a, then provides 30% of the traffic flow for the service system B, and finally provides 20% of the traffic flow for the service system C, the traffic priority and the traffic proportion are preset, and may be changed according to the actual service processing condition, which is not limited in this embodiment.
The embodiment acquires a service type corresponding to a service system in a service network; determining the flow service corresponding to the service system according to the service type; acquiring the traffic priority and the traffic ratio corresponding to the service system; and carrying out flow distribution on the service system according to the flow priority and the flow ratio through the flow service, carrying out flow distribution according to the flow priority and the flow ratio corresponding to the service system through the flow service corresponding to the service system, and distributing service flows according to different flow priorities and flow ratios according to the service requirements of the actual service system, thereby realizing dynamic adjustment of the service flows.
Referring to fig. 3, fig. 3 is a flowchart illustrating a traffic control method according to a second embodiment of the present invention.
Based on the first embodiment, the step S30 in this embodiment includes:
step S301: and acquiring the current service quantity of the service to be processed in the service system.
It can be understood that the more the current service quantity of the service to be processed is, the more the number of people handling the service is, in an actual situation, there may be many employees who enter the office on a certain day, but there are few customers handling the insurance service, if the flow distribution is still performed according to the conventionally distributed flow service, flow priority and flow ratio, it is obviously unreasonable, at this time, it is necessary to improve the flow priority of the employee entry system and increase the flow ratio of the employee entry system, the flow service corresponding to the employee entry system may be switched to the flow service with higher stability and faster response speed, the corresponding adjustment may be performed according to the ratio of the quantity of the service to be processed corresponding to different service types, in order to make the flow distribution more intelligent, and implement dynamic adjustment, the current service quantity of the service to be processed is obtained in this embodiment.
Step S302: and determining the ratio of the current services according to the current service quantity and the preset service quantity.
It should be noted that the preset service number is a normal number of the service to be processed, the number of people handling a certain service under a normal condition can be determined based on a big data principle to determine the preset service number of the service to be processed, a current service proportion can be determined according to the current service number and the preset service number, the current service proportion represents a multiple of the current service number and the preset service number, for example, the normal service number (preset service number) of the service system a is S, the current service number of the service system a is X due to some activities or sudden situations, the current service number can be calculated to be X/S, and if X/S is 2, the current service number of the service system a is 2 times at ordinary times.
Step S303: and determining the traffic priority and the traffic ratio corresponding to the service system according to the current service proportion.
It can be understood that the pending situation of a certain type of service on the same day can be known according to the service duty ratio, and the traffic priority and the traffic ratio are adjusted according to the actual situation, for example, the current service duty ratio of the service system B is 3, which indicates that the current service quantity of the service system B is 3 times that of the service system B at ordinary times, if it is still unreasonable to perform traffic distribution on the service system B according to the traffic priority and the traffic ratio set at ordinary times, the service processing speed of the service system B will be affected, the traffic priority of the service system B needs to be increased, and the traffic ratio of the service system B is increased at the same time.
The embodiment obtains the current service quantity of the service to be processed in the service system; determining the ratio of the current services according to the current service quantity and the preset service quantity; and determining the flow priority and flow ratio corresponding to the service system according to the current service proportion, so that the flow distribution is more intelligent and the dynamic adjustment of the service flow is realized.
Referring to fig. 4, fig. 4 is a flowchart illustrating a traffic control method according to a third embodiment of the present invention.
Based on the first and second embodiments, a third embodiment of the traffic control method of the present invention is provided.
Taking the first embodiment as an example for explanation, this embodiment further includes, after step S40:
step S401: and acquiring the total current traffic flow in the traffic network and a traffic threshold corresponding to the traffic service.
It can be understood that each service system in the service network may consume a certain service traffic when processing the service, the current total traffic is the total traffic consumed by the service system to process the service, and the traffic service also has a corresponding traffic threshold, and after the traffic threshold is reached, the traffic service may suspend the traffic supply to the service system.
Step S402: and when the total current traffic flow is greater than the flow threshold value, adjusting the flow service and the flow ratio.
It should be noted that when the total traffic of the current traffic is greater than the traffic threshold, the traffic service may suspend the traffic supply to the traffic system, so that the traffic service needs to be adjusted, and the current traffic service is switched to another traffic service, and different traffic services have different quality of service parameters, which results in different quality of service, so that the traffic ratio corresponding to the traffic system also needs to be adjusted.
Further, in order to make the adjusted traffic service and the adjusted traffic proportion more reasonable, step S402 in this embodiment specifically includes: determining the matching degree of the service system and each flow service according to the service type; adjusting the flow service according to the matching degree; and adjusting the flow ratio corresponding to the service system according to the flow priority.
It should be noted that there is a matching degree between the traffic type and the traffic service, for example, the traffic type of the important and emergency traffic has a higher matching degree with the traffic service with good quality of service, the traffic type of the unimportant and non-emergency traffic has a higher matching degree with the traffic service with poor quality of service, when the total traffic flow is not greater than the traffic threshold, the traffic service determined according to the traffic type is the traffic service most suitable for the traffic system, i.e., the traffic service with the highest matching degree with the traffic type, and when the total traffic flow is greater than the traffic threshold, the traffic service less suitable than the most suitable traffic service, i.e., the traffic service with the second highest matching degree, needs to be selected from other traffic services, and the traffic ratio needs to be adjusted accordingly due to the change in quality of service. For ease of understanding, the traffic service C best suited for the business system S is determined, for example, based on the business type of the business system S1At the present time, the total traffic is greater than the traffic service C1When the flow threshold is higher than C, the matching degree is required to be selected according to the matching degree1Traffic service C2Contrast traffic service C1And traffic service C2Quality of service of (1), assumed traffic service C2Quality of service lower than traffic service C1Is a critical and urgent service, and therefore is served at traffic C2When providing service, the traffic proportion corresponding to the service system S needs to be reduced, so that the traffic service C can be realized2More traffic is provided for other traffic systems handling non-critical non-emergency traffic.
Step S403: and carrying out flow distribution on the service system according to the flow priority and the adjusted flow ratio through the adjusted flow service.
It should be noted that the adjusted traffic service is the traffic service most suitable for the service system at present, the adjusted traffic allocation is a more reasonable traffic allocation, and the traffic allocation is performed on the service system according to the traffic priority and the adjusted traffic allocation through the adjusted traffic service, so that each service system can normally process the service when the adjusted traffic service provides the service.
Further, in this embodiment, after the step S40, the method further includes: acquiring the service state of the flow service and the service response duration in the service network; when the service state is an abnormal state or the service response time length is longer than a preset time length, adjusting the flow service and the flow ratio; and carrying out flow distribution on the service system according to the flow priority and the adjusted flow ratio through the adjusted flow service.
It should be noted that, when the traffic service provides a service for the service system, the service processing of the service system may be affected because the traffic service is abnormal, the service state and the service response duration of the traffic service need to be detected, if the traffic service is abnormal, the service state of the traffic service is abnormal, and the abnormal traffic service also slows down the service processing speed, and increases the service response duration, so that when the abnormal state occurs or the service response duration is longer than the preset duration, it is determined that the traffic service is abnormal, the traffic service needs to be adjusted, the preset duration is the service response duration when the traffic service normally provides a service, the adjustment mode may be to replace the traffic service, and this embodiment is not limited. Similarly, after the traffic service is changed, the traffic proportion also needs to be adjusted correspondingly, and traffic distribution is performed on the service systems through the adjusted traffic service according to the traffic priority and the adjusted traffic proportion, so that each service system can process the service normally when the adjusted traffic service provides the service.
The embodiment obtains the current total traffic flow in the traffic network and the traffic threshold corresponding to the traffic service; when the total current traffic flow is greater than the flow threshold, adjusting the flow service and the flow ratio; and carrying out flow distribution on the service system according to the flow priority and the adjusted flow ratio through the adjusted flow service, and adjusting the flow service and the flow ratio when the current service flow is greater than a flow threshold value, so that the flow distribution is more intelligent, and the dynamic adjustment of the service flow is realized.
In addition, an embodiment of the present invention further provides a storage medium, where a traffic flow control program is stored on the storage medium, and the traffic flow control program, when executed by a processor, implements the steps of the traffic flow control method described above.
Since the storage medium adopts all technical solutions of all the embodiments, at least all the beneficial effects brought by the technical solutions of the embodiments are achieved, and no further description is given here.
Referring to fig. 5, fig. 5 is a block diagram illustrating a first embodiment of a traffic control apparatus according to the present invention.
As shown in fig. 5, a traffic control apparatus according to an embodiment of the present invention includes:
an obtaining module 10, configured to obtain a service type corresponding to a service system in a service network;
the screening module 20 is configured to determine a traffic service corresponding to the service system according to the service type;
the obtaining module 10 is further configured to obtain a traffic priority and a traffic ratio corresponding to the service system;
and the allocating module 30 is configured to allocate traffic to the service system according to the traffic priority and the traffic ratio through the traffic service.
In an embodiment, the screening module 20 is further configured to determine a service processing level of a service to be processed in a service system according to a service type; obtaining a service quality parameter of each flow service; matching the service processing grade with the service quality parameter; and determining the flow service corresponding to the service system according to the matching result.
In an embodiment, the screening module 20 is further configured to determine an importance and an urgency of a service to be processed in the service system according to the service processing level; determining the flow expense, the flow amount and the flow stability corresponding to each flow service according to the service quality parameters; and matching the importance and the urgency with the flow cost, the flow limit and the flow stability based on a preset corresponding relation.
In an embodiment, the obtaining module 10 is further configured to obtain a current service number of a service to be processed in the service system; determining the ratio of the current services according to the current service quantity and the preset service quantity; and determining the traffic priority and the traffic ratio corresponding to the service system according to the current service proportion.
In an embodiment, the traffic control apparatus further includes: an adjustment module;
the adjusting module is used for acquiring the total traffic of the current service in the service network and a traffic threshold corresponding to the traffic service; when the total current traffic flow is greater than the flow threshold, adjusting the flow service and the flow ratio; and carrying out flow distribution on the service system according to the flow priority and the adjusted flow ratio through the adjusted flow service.
In an embodiment, the adjusting module is further configured to determine, according to the service type, a matching degree between the service system and each traffic service; adjusting the flow service according to the matching degree; and adjusting the flow ratio corresponding to the service system according to the flow priority.
In an embodiment, the adjusting module is further configured to obtain a service state of the traffic service and a service response duration in the service network; when the service state is an abnormal state or the service response time length is longer than a preset time length, adjusting the flow service and the flow ratio; and carrying out flow distribution on the service system according to the flow priority and the adjusted flow ratio through the adjusted flow service.
The embodiment acquires a service type corresponding to a service system in a service network; determining the flow service corresponding to the service system according to the service type; acquiring the traffic priority and the traffic ratio corresponding to the service system; and carrying out flow distribution on the service system according to the flow priority and the flow ratio through the flow service, carrying out flow distribution according to the flow priority and the flow ratio corresponding to the service system through the flow service corresponding to the service system, and distributing service flows according to different flow priorities and flow ratios according to the service requirements of the actual service system, thereby realizing dynamic adjustment of the service flows.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
It should be understood that the above is only an example, and the technical solution of the present invention is not limited in any way, and in a specific application, a person skilled in the art may set the technical solution as needed, and the present invention is not limited thereto.
It should be noted that the above-described work flows are only exemplary, and do not limit the scope of the present invention, and in practical applications, a person skilled in the art may select some or all of them to achieve the purpose of the solution of the embodiment according to actual needs, and the present invention is not limited herein.
In addition, the technical details that are not described in detail in this embodiment may refer to the traffic control method provided in any embodiment of the present invention, and are not described herein again.
Further, it is to be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (e.g. Read Only Memory (ROM)/RAM, magnetic disk, optical disk), and includes several instructions for enabling a terminal device (e.g. a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (10)
1. A traffic control method is characterized in that the traffic control method comprises the following steps:
acquiring a service type corresponding to a service system in a service network;
determining the flow service corresponding to the service system according to the service type;
acquiring the traffic priority and the traffic ratio corresponding to the service system;
and carrying out flow distribution on the service system through the flow service according to the flow priority and the flow ratio.
2. The traffic flow control method according to claim 1, wherein the determining the traffic service corresponding to the traffic system according to the traffic type includes:
determining the service processing grade of the service to be processed in the service system according to the service type;
obtaining a service quality parameter of each flow service;
matching the service processing grade with the service quality parameter;
and determining the flow service corresponding to the service system according to the matching result, wherein the service processing grade and the service quality parameter are stored in a block chain.
3. The traffic flow control method according to claim 2, wherein said matching said traffic handling class and said quality of service parameter comprises:
determining the importance and the urgency of the service to be processed in the service system according to the service processing grade;
determining the flow expense, the flow amount and the flow stability corresponding to each flow service according to the service quality parameters;
and matching the importance and the urgency with the flow cost, the flow limit and the flow stability based on a preset corresponding relation.
4. The method for controlling service traffic according to claim 1, wherein the obtaining of the traffic priority and the traffic ratio corresponding to the service system includes:
acquiring the current service quantity of the service to be processed in the service system;
determining the ratio of the current services according to the current service quantity and the preset service quantity;
and determining the traffic priority and the traffic ratio corresponding to the service system according to the current service proportion.
5. The traffic flow control method according to any one of claims 1 to 4, wherein after the traffic distribution to the traffic system by the traffic service according to the traffic priority and the traffic proportion, further comprising:
acquiring the total current traffic flow in the traffic network and a traffic threshold corresponding to the traffic service;
when the total current traffic flow is greater than the flow threshold, adjusting the flow service and the flow ratio;
and carrying out flow distribution on the service system according to the flow priority and the adjusted flow ratio through the adjusted flow service.
6. The traffic flow control method according to claim 5, wherein said adjusting said traffic service and said traffic proportion comprises:
determining the matching degree of the service system and each flow service according to the service type;
adjusting the flow service according to the matching degree;
and adjusting the flow ratio corresponding to the service system according to the flow priority.
7. The traffic flow control method according to any one of claims 1 to 4, wherein after the traffic distribution to the traffic system by the traffic service according to the traffic priority and the traffic proportion, further comprising:
acquiring the service state of the flow service and the service response duration in the service network;
when the service state is an abnormal state or the service response time length is longer than a preset time length, adjusting the flow service and the flow ratio;
and carrying out flow distribution on the service system according to the flow priority and the adjusted flow ratio through the adjusted flow service.
8. A traffic flow control apparatus, characterized in that the traffic flow control apparatus comprises:
the acquisition module is used for acquiring the service type corresponding to the service system in the service network;
the screening module is used for determining the flow service corresponding to the service system according to the service type;
the acquisition module is also used for acquiring the traffic priority and the traffic ratio corresponding to the service system;
and the distribution module is used for carrying out flow distribution on the service system through the flow service according to the flow priority and the flow ratio.
9. A traffic flow control device, characterized in that the traffic flow control device comprises: memory, a processor and a traffic flow control program stored on the memory and executable on the processor, the traffic flow control program being configured to implement the steps of the traffic flow control method according to any of claims 1 to 7.
10. A storage medium having a traffic control program stored thereon, which when executed by a processor implements the steps of the traffic control method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011420085.0A CN112565108B (en) | 2020-12-07 | 2020-12-07 | Service flow control method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011420085.0A CN112565108B (en) | 2020-12-07 | 2020-12-07 | Service flow control method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112565108A true CN112565108A (en) | 2021-03-26 |
CN112565108B CN112565108B (en) | 2024-04-05 |
Family
ID=75059535
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011420085.0A Active CN112565108B (en) | 2020-12-07 | 2020-12-07 | Service flow control method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112565108B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113743777A (en) * | 2021-09-02 | 2021-12-03 | 苏州达家迎信息技术有限公司 | Business resource allocation method, device, storage medium and electronic equipment |
CN113743776A (en) * | 2021-09-02 | 2021-12-03 | 苏州达家迎信息技术有限公司 | Relevance determining method and device, storage medium and electronic equipment |
CN113949666A (en) * | 2021-11-15 | 2022-01-18 | 中国银行股份有限公司 | Flow control method, device, equipment and system |
TWI764685B (en) * | 2021-04-23 | 2022-05-11 | 台灣大哥大股份有限公司 | Internet traffic control system and method thereof |
CN117294657A (en) * | 2023-11-24 | 2023-12-26 | 杭银消费金融股份有限公司 | Flow control method and device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110044262A1 (en) * | 2009-08-24 | 2011-02-24 | Clear Wireless, Llc | Apparatus and method for scheduler implementation for best effort (be) prioritization and anti-starvation |
US7983299B1 (en) * | 2006-05-15 | 2011-07-19 | Juniper Networks, Inc. | Weight-based bandwidth allocation for network traffic |
CN103634223A (en) * | 2013-12-03 | 2014-03-12 | 北京东土科技股份有限公司 | Network service flow based dynamic control transmission method and device |
CN105721350A (en) * | 2016-03-04 | 2016-06-29 | 深圳市共进电子股份有限公司 | Intelligent bandwidth allocation method and apparatus |
CN108683611A (en) * | 2018-05-17 | 2018-10-19 | 国网山东省电力公司经济技术研究院 | Energy communication service traffic classification control method based on PTN network and system |
CN110138610A (en) * | 2019-05-10 | 2019-08-16 | 新华三信息安全技术有限公司 | A kind of sending method and device of service message |
CN110830391A (en) * | 2018-08-10 | 2020-02-21 | 阿里巴巴集团控股有限公司 | Resource allocation method and device and cluster system |
-
2020
- 2020-12-07 CN CN202011420085.0A patent/CN112565108B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7983299B1 (en) * | 2006-05-15 | 2011-07-19 | Juniper Networks, Inc. | Weight-based bandwidth allocation for network traffic |
US20110044262A1 (en) * | 2009-08-24 | 2011-02-24 | Clear Wireless, Llc | Apparatus and method for scheduler implementation for best effort (be) prioritization and anti-starvation |
CN103634223A (en) * | 2013-12-03 | 2014-03-12 | 北京东土科技股份有限公司 | Network service flow based dynamic control transmission method and device |
CN105721350A (en) * | 2016-03-04 | 2016-06-29 | 深圳市共进电子股份有限公司 | Intelligent bandwidth allocation method and apparatus |
CN108683611A (en) * | 2018-05-17 | 2018-10-19 | 国网山东省电力公司经济技术研究院 | Energy communication service traffic classification control method based on PTN network and system |
CN110830391A (en) * | 2018-08-10 | 2020-02-21 | 阿里巴巴集团控股有限公司 | Resource allocation method and device and cluster system |
CN110138610A (en) * | 2019-05-10 | 2019-08-16 | 新华三信息安全技术有限公司 | A kind of sending method and device of service message |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI764685B (en) * | 2021-04-23 | 2022-05-11 | 台灣大哥大股份有限公司 | Internet traffic control system and method thereof |
CN113743777A (en) * | 2021-09-02 | 2021-12-03 | 苏州达家迎信息技术有限公司 | Business resource allocation method, device, storage medium and electronic equipment |
CN113743776A (en) * | 2021-09-02 | 2021-12-03 | 苏州达家迎信息技术有限公司 | Relevance determining method and device, storage medium and electronic equipment |
CN113743776B (en) * | 2021-09-02 | 2024-05-10 | 苏州达家迎信息技术有限公司 | Relevance determining method and device, storage medium and electronic equipment |
CN113743777B (en) * | 2021-09-02 | 2024-05-10 | 苏州达家迎信息技术有限公司 | Service resource allocation method and device, storage medium and electronic equipment |
CN113949666A (en) * | 2021-11-15 | 2022-01-18 | 中国银行股份有限公司 | Flow control method, device, equipment and system |
CN113949666B (en) * | 2021-11-15 | 2024-03-19 | 中国银行股份有限公司 | Flow control method, device, equipment and system |
CN117294657A (en) * | 2023-11-24 | 2023-12-26 | 杭银消费金融股份有限公司 | Flow control method and device |
CN117294657B (en) * | 2023-11-24 | 2024-02-13 | 杭银消费金融股份有限公司 | Flow control method and device |
Also Published As
Publication number | Publication date |
---|---|
CN112565108B (en) | 2024-04-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112565108A (en) | Method, device, equipment and storage medium for controlling service flow | |
CN102567115B (en) | Distribute for information technology resources in cloud system and utilize the apparatus and method of following the tracks of | |
US8701117B2 (en) | Resource consumption template processing model | |
KR20200007025A (en) | Assigning dynamically deployed service providers and service requesters | |
JP2017126975A (en) | Network traffic scheduling method and device of data center | |
KR20120037009A (en) | Dynamic resource collaboration between network service providers | |
WO2009144822A1 (en) | Device configuration information management program, device configuration information management device, and device configuration information management method | |
CN105376111B (en) | Resource allocation methods and device | |
CN111464659A (en) | Node scheduling method, node pre-selection processing method, device, equipment and medium | |
US8782659B2 (en) | Allocation of processing tasks between processing resources | |
CN114844791B (en) | Cloud service automatic management and distribution method and system based on big data and storage medium | |
CN110298481A (en) | Vehicular rescue method, apparatus, computer equipment and storage medium | |
Badidi et al. | A cloud-based approach for context information provisioning | |
JP5203919B2 (en) | Server system | |
US20030033359A1 (en) | Server for managing load, program and medium | |
CN112685157A (en) | Task processing method and device, computer equipment and storage medium | |
Elmachtoub et al. | The Power of Static Pricing for Reusable Resources | |
CN107682385A (en) | Method and apparatus, storage medium based on on-line off-line Integrated service | |
Anithakumari et al. | Negotiation and monitoring of service level agreements in cloud computing services | |
La Red Martínez et al. | Assignment of resources in distributed systems | |
CN115941604A (en) | Flow distribution method, device, equipment, storage medium and program product | |
Gupta et al. | Optimal revenue management in two class pre-emptive delay dependent Markovian queues | |
CN112633855B (en) | Task reminding method and computer equipment | |
CN116155829A (en) | Network traffic processing method and device, medium and electronic equipment | |
CN111797169A (en) | Data storage method, 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 |