Flow control method and device, electronic equipment and computer readable storage medium
By obtaining and analyzing the traffic information to be forwarded, selecting and applying appropriate traffic switching strategies for traffic forwarding, the problem of unavailability of the bank's dynamic password SMS system in the event of failure is solved, and the user experience and system stability are improved.
Patent Information
- Application Number
- CN202411548695.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-31
- Publication Date
- 2025-01-07
AI Technical Summary
The bank dynamic password SMS system is unavailable when the group SMS platform fails, resulting in inconvenient user experience and insufficient system stability, which poses great risks.
By obtaining the traffic information to be forwarded, performing scene attribute analysis processing to obtain traffic attribute information, selecting the target traffic switching strategy based on the preset traffic switching set, performing traffic forwarding processing on the traffic information to be forwarded, and performing detection processing to obtain analysis results, realizing Flexible and convenient flow control.
It improves the flexibility and stability of traffic control, reduces inconvenience in users, enhances the stability of the system, and ensures normal traffic forwarding in the event of a failure.
Smart Images

Figure CN119276795A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to, but are not limited to, the field of data processing technology, and in particular, to a flow control method, device, electronic device, and computer-readable storage medium. Background Art
[0002] At present, in the financial industry, the bank's dynamic password subsystem provides SMS sending and verification services for the entire bank. The bank's dynamic password subsystem is a key core system, so the system stability requirements are very high. In the past, the bank's dynamic password SMS messages were all sent through the group SMS platform. When the group SMS platform fails, it will cause all bank dynamic password SMS messages to be unavailable, which will pose a greater risk and bring inconvenient user experience. Summary of the invention
[0003] The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.
[0004] In order to solve the problems mentioned in the above background technology, the embodiments of the present application provide a flow control method, device, electronic device and computer-readable storage medium, which can realize flexible and convenient flow control processing and bring better user experience.
[0005] In a first aspect, an embodiment of the present application provides a flow control method, the method comprising:
[0006] Obtain information about traffic to be forwarded;
[0007] Performing scene attribute analysis on the traffic information to be forwarded to obtain traffic attribute information;
[0008] Selecting a target traffic switching strategy from a preset traffic switching set according to the traffic attribute information;
[0009] Performing traffic forwarding processing on the traffic information to be forwarded according to the target traffic switching strategy;
[0010] Perform traffic forwarding detection processing on the traffic information to be forwarded to obtain a traffic forwarding analysis result.
[0011] According to some embodiments of the present application, the performing scene attribute analysis on the traffic information to be forwarded to obtain traffic attribute information includes:
[0012] Performing information decomposition processing on the traffic information to be forwarded to obtain a traffic attribute tag and a traffic priority tag;
[0013] The traffic attribute information is determined according to the traffic attribute tag and the traffic priority tag.
[0014] According to some embodiments of the present application, the traffic switching set includes multiple traffic switching strategies, each of which carries traffic type information, and the target traffic switching strategy is selected from the preset traffic switching set according to the traffic attribute information, including:
[0015] Matching the traffic attribute information with the traffic type information of each traffic switching strategy in the traffic switching set to obtain target traffic type information;
[0016] The traffic switching strategy corresponding to the target traffic type information is determined as the target traffic switching strategy.
[0017] According to some embodiments of the present application, the performing traffic forwarding processing on the to-be-forwarded traffic information according to the target traffic switching strategy includes:
[0018] Determine traffic forwarding execution event information and traffic forwarding execution sequence information according to the target traffic switching strategy;
[0019] Determine a traffic forwarding strategy according to the traffic forwarding execution event information and the traffic forwarding execution sequence information;
[0020] Perform traffic forwarding processing on the traffic information to be forwarded according to the traffic forwarding strategy.
[0021] According to some embodiments of the present application, the performing traffic forwarding detection processing on the traffic information to be forwarded to obtain a traffic forwarding analysis result includes:
[0022] Verifying the traffic information to be forwarded to obtain traffic forwarding mark information;
[0023] Analyzing and processing the traffic forwarding mark information to obtain traffic mark bit information;
[0024] The traffic forwarding analysis result is determined according to the traffic marking bit information.
[0025] According to some embodiments of the present application, after performing traffic forwarding detection processing on the traffic information to be forwarded and obtaining a traffic forwarding analysis result, the method further includes at least one of the following:
[0026] When the traffic forwarding analysis result indicates that the traffic forwarding is normal, the traffic forwarding analysis result is sent as final traffic forwarding information to a preset monitoring terminal;
[0027] When the traffic forwarding analysis result indicates that the traffic forwarding is abnormal, the traffic information to be forwarded is controlled to stop forwarding.
[0028] According to some embodiments of the present application, when the traffic forwarding analysis result indicates that the traffic forwarding is abnormal, after controlling the to-be-forwarded traffic information to stop forwarding, the method further includes:
[0029] Selecting a new traffic switching strategy from the traffic switching set according to the traffic forwarding analysis result;
[0030] The to-be-forwarded traffic information is forwarded according to the new traffic switching strategy.
[0031] In a second aspect, the embodiment of the present application further provides a flow control device, comprising:
[0032] A first processing module, used for obtaining traffic information to be forwarded;
[0033] A second processing module is used to perform scene attribute analysis on the traffic information to be forwarded to obtain traffic attribute information;
[0034] A third processing module, configured to select a target traffic switching strategy from a preset traffic switching set according to the traffic attribute information;
[0035] A fourth processing module, configured to perform traffic forwarding processing on the traffic information to be forwarded according to the target traffic switching strategy;
[0036] The fifth processing module is used to perform traffic forwarding detection processing on the traffic information to be forwarded to obtain a traffic forwarding analysis result.
[0037] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the flow control method as described in the first aspect above is implemented.
[0038] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the flow control method described in the first aspect above.
[0039] The flow control method according to the embodiment provided in the present application has at least the following beneficial effects: in the process of flow control, first obtain the flow information to be forwarded; then, perform scene attribute analysis on the flow information to be forwarded to obtain the flow attribute information; then, select the target flow switching strategy from the preset flow switching set according to the flow attribute information; then, perform flow forwarding processing on the flow information to be forwarded according to the target flow switching strategy; finally, perform flow forwarding detection processing on the flow information to be forwarded, and finally obtain the flow forwarding analysis result; through the above method, the target flow switching strategy is selected from the preset flow switching set according to the flow attribute information, so as to realize flexible and convenient flow control processing, and bring better user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The accompanying drawings are used to provide further understanding of the technical solution of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present application and do not constitute a limitation on the technical solution of the present application.
[0041] Figure 1 is a flow chart of a flow control method provided by an embodiment of the present application;
[0042] Figure 2 is a specific flow chart of step S200 provided in one embodiment of the present application;
[0043] Figure 3 is a specific flow chart of step S300 provided in one embodiment of the present application;
[0044] Figure 4 is a specific flow chart of step S400 provided in one embodiment of the present application;
[0045] Figure 5 is a specific flow chart of step S500 provided in one embodiment of the present application;
[0046] Figure 6 is a flow chart of a flow control method provided by another embodiment of the present application;
[0047] Figure 7 This is a flowchart after executing step S620 provided by an embodiment of the present application;
[0048] Figure 8 is a schematic diagram of a flow control device provided by an embodiment of the present application;
[0049] Fig. 9 It is a schematic diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0051] It should be noted that although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification and claims and the above drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0052] It should be noted that, unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0053] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0054] AI is a new technical science that studies and develops theories, methods, technologies and application systems for simulating, extending and expanding human intelligence. Artificial intelligence is a branch of computer science. Artificial intelligence attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Research in this field includes robots, language recognition, image recognition, natural language processing and expert systems. Artificial intelligence can simulate the information process of human consciousness and thinking. Artificial intelligence is also a theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0055] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0056] Artificial intelligence is AI. AI is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0057] The servers involved in artificial intelligence technology can be independent servers or cloud servers that provide basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), as well as big data and artificial intelligence platforms.
[0058] The present application provides a flow control method, device, electronic device and computer-readable storage medium. In the process of flow control, first, the flow information to be forwarded is obtained; then, the flow attribute information to be forwarded is analyzed and processed by performing scene attribute analysis on the flow information to be forwarded to obtain the flow attribute information; then, the target flow switching strategy is selected from the preset flow switching set according to the flow attribute information; then, flow forwarding processing is performed on the flow information to be forwarded according to the target flow switching strategy; finally, flow forwarding detection processing is performed on the flow information to be forwarded, and finally, the flow forwarding analysis result can be obtained; through the above method, the target flow switching strategy is selected from the preset flow switching set according to the flow attribute information, so that flexible and convenient flow control processing can be realized, which brings a better user experience.
[0059] The flow control method provided in the embodiment of the present application relates to the field of data processing technology. The flow control method provided in the embodiment of the present application can be applied to a terminal, can be applied to a server side, or can be software running in a terminal or a server side. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc.; the server side can be configured as an independent physical server, or can be configured as a server cluster or a distributed system composed of multiple physical servers, and can also be configured as a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms; the software can be an application that implements the flow control method, etc., but is not limited to the above forms.
[0060] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0061] It should be noted that in each specific implementation of the present application, when it comes to the need to perform relevant processing based on data related to user identity or characteristics such as user information, user behavior data, user historical data, and user location information, the user's permission or consent will be obtained first, and the collection, use, and processing of these data will comply with relevant laws, regulations, and standards. In addition, when the embodiment of the present application needs to obtain the user's sensitive personal information, the user's separate permission or consent will be obtained through a pop-up window or by jumping to a confirmation page. After clearly obtaining the user's separate permission or consent, the necessary user-related data for the normal operation of the embodiment of the present application will be obtained.
[0062] The embodiments of the present application are further described below in conjunction with the accompanying drawings.
[0063] like Figure 1 As shown, Figure 1 It is a flow chart of a flow control method provided by an embodiment of the present application, and the flow control method includes but is not limited to steps S100 to S500.
[0064] Step S100, obtaining information of traffic to be forwarded;
[0065] Step S200, performing scene attribute analysis on the traffic information to be forwarded to obtain traffic attribute information;
[0066] Step S300, selecting a target traffic switching strategy from a preset traffic switching set according to traffic attribute information;
[0067] Step S400, performing traffic forwarding processing on the traffic information to be forwarded according to the target traffic switching strategy;
[0068] Step S500: Perform traffic forwarding detection processing on the traffic information to be forwarded to obtain a traffic forwarding analysis result.
[0069] It should be noted that in the process of flow control, the flow information to be forwarded is first obtained; then, the flow information to be forwarded is subjected to scene attribute analysis to obtain the flow attribute information; then, the target flow switching strategy is selected from the preset flow switching set according to the flow attribute information; then, flow forwarding processing is performed on the flow information to be forwarded according to the target flow switching strategy; finally, flow forwarding detection processing is performed on the flow information to be forwarded, and finally the flow forwarding analysis result can be obtained; through the above method, the target flow switching strategy is selected from the preset flow switching set according to the flow attribute information, so that flexible and convenient flow control processing can be realized, which brings a better user experience.
[0070] It should be noted that the embodiments of the present application will obtain the user's permission or consent before obtaining the traffic information to be forwarded, and the collection, use and processing of such data will comply with relevant laws, regulations and standards. In addition, when the embodiments of the present application need to obtain the user's sensitive personal information, the user's separate permission or consent will be obtained through a pop-up window or by jumping to a confirmation page. After the user's separate permission or consent is clearly obtained, the necessary user-related data for the normal operation of the embodiments of the present application will be obtained.
[0071] It is worth noting that after obtaining the traffic information to be forwarded, the scene attribute analysis and processing of the traffic information to be forwarded can be performed to obtain the traffic attribute information; then, the target traffic switching strategy can be selected from the pre-set traffic switching set according to the traffic attribute information, and the traffic switching strategy can be selected flexibly and conveniently, making the traffic control process more flexible and convenient. For example, in the case where the traffic information to be forwarded is a notification SMS sent by the bank's dynamic password subsystem, the traffic attribute information of the traffic information to be forwarded can be analyzed and processed first, and then the traffic attribute information can be obtained, so as to make the prerequisite preparation for the subsequent selection of the target traffic switching strategy.
[0072] It is worth noting that after obtaining the traffic information to be forwarded, the scene attribute analysis and processing of the traffic information to be forwarded can be performed to obtain the traffic attribute information. Subsequently, the target traffic switching strategy can be selected from the pre-set traffic switching set based on the traffic attribute information obtained by the analysis and processing, thereby making the prerequisite preparations for the subsequent traffic control processing, making the traffic control process more flexible, and users can select the corresponding traffic switching strategy according to their own needs.
[0073] It should be noted that the process of selecting a target traffic switching strategy from a preset traffic switching set based on traffic attribute information generally includes the following key steps: Traffic attribute analysis, analyzing the attribute information of the traffic, which may include parameters such as the source network address, the destination network address, the protocol type, the port number, and the application type. This information will be used to match the preset traffic switching strategy. Define traffic classification, based on traffic attributes, define different traffic classifications. For example, traffic can be classified according to business type, service quality requirements, or security requirements. Preset traffic switching strategy, preset multiple traffic switching strategies based on business requirements and network policies. These strategies may include different routing rules, load balancing algorithms, failover mechanisms, etc. Match and select strategies, match real-time traffic attributes with preset traffic switching strategies, and select the most appropriate strategy to handle the current traffic. This step may involve traffic classification configuration and switching condition configuration. Implement traffic switching, implement traffic switching according to the selected strategy. This may involve operations such as updating routing tables, adjusting load balancing settings, and triggering failover mechanisms. Monitor and optimize, perform real-time monitoring during the traffic switching process to ensure smooth traffic transition and unaffected services. According to the monitoring results, the traffic switching strategy is optimized and adjusted.
[0074] It is worth noting that the process of forwarding traffic information according to the target traffic switching policy usually involves the following steps: Traffic identification, first of all, it is necessary to identify the attributes of the traffic, which may include the source network address, destination network address, port number, protocol type, etc. These attributes will be used to match the preset traffic switching policy. Policy matching, matching the preset traffic switching policy according to the identified traffic attributes. These policies may be based on different business needs, service quality requirements or security considerations. Traffic classification, classifying the traffic according to the matched policy. For example, some traffic may need to be forwarded to a specific backend service, while other traffic may need to be forwarded to different services or regions. Forwarding decision, making forwarding decisions based on the matched policy. This may involve selecting a specific route, load balancer or service instance. Implementation of forwarding, forwarding the traffic to the target location based on the forwarding decision. This may involve configuring network devices (such as routers, switches), load balancers or using software-defined network technology. Monitoring and adjustment, real-time monitoring is performed during the traffic forwarding process to ensure that the traffic is forwarded according to the expected policy. Based on the monitoring results, the policy may need to be adjusted to optimize traffic distribution and system performance. Health check: Perform health checks on backend services to ensure that traffic is forwarded to healthy service instances. If a service failure is detected, traffic is automatically switched to a backup service. Session persistence: In scenarios where user session consistency needs to be maintained, ensure that requests from the same user are always forwarded to the same backend service instance.
[0075] It is worth noting that after the traffic forwarding detection and processing is performed on the traffic information to be forwarded to obtain the traffic forwarding analysis results, the traffic forwarding control processing is realized according to the traffic forwarding analysis results, so that the traffic control process can be more stable, flexible and fast. The traffic forwarding detection and processing is performed on the traffic information to be forwarded to obtain the traffic forwarding analysis results, which usually involves the following key steps: Analyze the collected traffic data to identify the traffic pattern, traffic size, protocol distribution, etc. The analysis may include analysis of the resolution request volume / delay trend, detailed list of forwarding domain name request volume, and subdomain dimension request volume trend analysis of the forwarding domain name. Detect whether the traffic forwarding is carried out according to the expected strategy, for example, check whether the traffic is correctly routed to the specified server or service. Identify and analyze abnormal traffic, such as potential network attacks, abnormal traffic peaks, etc. Evaluate the performance of the network, including bandwidth usage, latency, packet loss rate, etc. Security monitoring, monitoring security threats in the traffic, such as intrusion attempts, malware propagation, etc. Report generation, generating reports based on the analysis results, the reports may include traffic statistics, traffic trend charts, details of abnormal events, etc. Decision support, providing decision support to help network administrators optimize network configuration and improve network performance and security.
[0076] In some embodiments, Figure 2 As shown, the above step S200 may include but is not limited to steps S210 to S220.
[0077] Step S210, performing information decomposition processing on the traffic information to be forwarded to obtain a traffic attribute tag and a traffic priority tag;
[0078] Step S220, determining the traffic attribute information according to the traffic attribute mark and the traffic priority mark.
[0079] It should be noted that in the process of performing scene attribute analysis on the forwarded traffic information to obtain traffic attribute information, the forwarded traffic information is first decomposed to obtain traffic attribute tags and traffic priority tags; then the traffic attribute information can be determined based on the traffic attribute tags and traffic priority tags, so that the determination of the entire traffic attribute information can be simpler and faster.
[0080] It is worth noting that in the process of performing scene attribute analysis on the traffic information to be forwarded to obtain traffic attribute information, the traffic attribute tag and traffic priority tag can be obtained by first performing information decomposition processing on the traffic information to be forwarded; among them, the traffic attribute tag represents the type to which the traffic to be forwarded belongs, and the traffic priority tag is used to represent the priority of the forwarding controlled by the traffic to be forwarded.
[0081] It is worth noting that by decomposing the information of the traffic to be forwarded, the corresponding traffic attribute tag and traffic priority tag can be obtained, thereby making the prerequisite for determining the subsequent traffic switching strategy.
[0082] In some embodiments, Figure 3 As shown, the traffic switching set includes multiple traffic switching strategies, each traffic switching strategy carries traffic type information, and the above step S300 may include but is not limited to steps S310 to S320.
[0083] Step S310, matching the traffic attribute information with the traffic type information of each traffic switching strategy in the traffic switching set to obtain target traffic type information;
[0084] Step S320: determine the traffic switching strategy corresponding to the target traffic type information as the target traffic switching strategy.
[0085] It should be noted that, in the process of selecting a target traffic switching strategy from a preset traffic switching set according to traffic attribute information, the traffic attribute information is first matched with the traffic type information of each traffic switching strategy in the traffic switching set to obtain the target traffic type information; then the traffic switching strategy corresponding to the target traffic type information is determined as the target traffic switching strategy. Through the above technical solution, the target traffic switching strategy can be determined simply, quickly and accurately.
[0086] It is worth noting that the traffic switching set includes multiple traffic switching strategies, and each traffic switching strategy carries traffic type information. In the process of screening the target traffic switching strategy, the traffic attribute information and the traffic type information of each traffic switching strategy in the traffic switching set can be matched first to obtain the corresponding target traffic type information. Then, the traffic switching strategy corresponding to the target traffic type information can be determined as the target traffic switching strategy. Through the above method, the determination of the target traffic switching strategy can be more accurate, fast and convenient.
[0087] It is worth noting that matching traffic attribute information with the traffic type information of each traffic switching policy in the traffic switching set is a common task in network management and traffic engineering. The purpose of this process is to ensure that network traffic can be correctly classified and routed according to predefined rules. The following are the general steps of this process: Collect traffic attribute information. First, you need to collect the attribute information of the traffic to be processed in the network, which may include source network address, destination network address, port number, protocol type, quality of service flag, packet size, etc. Define traffic type. For each policy in the traffic switching set, define its corresponding traffic type information. This information is usually determined during policy configuration and is used to describe which traffic attributes match the policy. Matching rule setting. Set matching rules for each traffic switching policy. These rules may be based on access control lists, five-tuples (source network address, destination network address, source port, destination port, protocol) or other more complex matching logic. Traffic attribute matching with policy. Compare the collected traffic attributes with the traffic type information of each traffic switching policy. This process may involve simple attribute comparison or complex logical judgment.
[0088] In some embodiments, Figure 4 As shown, the above step S400 may include but is not limited to step S410 to step S430.
[0089] Step S410, determining traffic forwarding execution event information and traffic forwarding execution sequence information according to the target traffic switching strategy;
[0090] Step S420, determining a traffic forwarding strategy according to the traffic forwarding execution event information and the traffic forwarding execution sequence information;
[0091] Step S430: Perform traffic forwarding processing on the traffic information to be forwarded according to the traffic forwarding strategy.
[0092] It should be noted that, in the process of performing traffic forwarding processing on the traffic information to be forwarded according to the target traffic switching strategy, the traffic forwarding execution event information and the traffic forwarding execution sequence information are first determined according to the target traffic switching strategy; then the traffic forwarding strategy is determined according to the traffic forwarding execution event information and the traffic forwarding execution sequence information; finally, traffic forwarding processing is performed on the traffic information to be forwarded according to the traffic forwarding strategy; through the above-mentioned technical scheme, the process of performing traffic forwarding processing on the traffic information to be forwarded according to the traffic forwarding strategy can be made more stable and reliable.
[0093] It is worth noting that in the process of traffic forwarding processing, the traffic forwarding execution event information and the traffic forwarding execution sequence information are first determined according to the target traffic switching strategy; then the traffic forwarding strategy can be determined according to the traffic forwarding execution event information and the traffic forwarding execution sequence information; finally, the traffic forwarding processing can be performed on the traffic information to be forwarded according to the traffic forwarding strategy. The whole process is simple and reliable, and traffic control processing can be conveniently performed.
[0094] In some embodiments, Figure 5 As shown, the above step S500 may include but is not limited to step S510 to step S530.
[0095] Step S510, verifying the traffic information to be forwarded to obtain traffic forwarding mark information;
[0096] Step S520, analyzing and processing the traffic forwarding mark information to obtain traffic mark bit information;
[0097] Step S530, determining the traffic forwarding analysis result according to the traffic marking bit information.
[0098] It should be noted that, in the process of performing traffic forwarding detection processing on the traffic information to be forwarded to obtain the traffic forwarding analysis result, the traffic forwarding mark information can be obtained by first performing verification processing on the traffic information to be forwarded; then, the traffic forwarding mark information can be analyzed and processed to obtain the traffic mark bit information; finally, the traffic forwarding analysis result can be determined based on the traffic mark bit information; through the above technical scheme, the traffic forwarding mark information can be verified and processed to obtain the traffic forwarding mark information; subsequently, the traffic forwarding mark information can be analyzed and processed to obtain the traffic mark bit information; finally, the traffic forwarding analysis result can be determined based on the traffic mark bit information, so as to make prerequisite preparations for the subsequent traffic forwarding processing.
[0099] It is worth noting that in the process of performing traffic forwarding detection on the traffic information to be forwarded to obtain the traffic forwarding analysis result, the traffic forwarding mark information can be obtained by first performing verification processing on the traffic information to be forwarded; then the traffic forwarding mark information can be analyzed and processed to obtain the traffic mark bit information; finally, the traffic forwarding analysis result can be determined based on the traffic mark bit information, so that the entire traffic control process is stable and reliable.
[0100] In some embodiments, Figure 6 As shown, after executing the above step S500, it may include but not be limited to steps S610 to S620.
[0101] Step S610: When the traffic forwarding analysis result indicates that the traffic forwarding is normal, the traffic forwarding analysis result is sent as final traffic forwarding information to a preset monitoring terminal;
[0102] Step S620: When the traffic forwarding analysis result indicates that the traffic forwarding is abnormal, the traffic information to be forwarded is controlled to stop being forwarded.
[0103] It should be noted that after the traffic forwarding detection is performed on the traffic information to be forwarded to obtain the traffic forwarding analysis result, if the traffic forwarding analysis result indicates that the traffic forwarding is normal, the traffic forwarding analysis result will be sent to the pre-set monitoring terminal as the final traffic forwarding information, so that the monitoring personnel can easily and quickly understand the traffic forwarding situation; if the traffic forwarding analysis result indicates that the traffic forwarding is abnormal, the traffic information to be forwarded will be controlled to stop forwarding, so as to prevent the occurrence of abnormal traffic forwarding and ensure that the traffic forwarding process is stable and reliable.
[0104] It is worth noting that the pre-set monitoring terminal can be a computer, tablet or mobile phone. Through the above monitoring terminal, maintenance personnel can quickly and easily understand the flow control status.
[0105] In some embodiments, Figure 7 As shown, after executing the above step S620, it may include but not be limited to steps S630 to S640.
[0106] Step S630, selecting a new traffic switching strategy from the traffic switching set according to the traffic forwarding analysis result;
[0107] Step S640: forwarding the traffic information to be forwarded according to the new traffic switching strategy.
[0108] It should be noted that when the traffic forwarding analysis results indicate that traffic forwarding is abnormal, after controlling the forwarding of the traffic information to be forwarded, a new traffic switching strategy can be selected from the traffic switching set based on the traffic forwarding analysis results; then the traffic information to be forwarded can be forwarded according to the new traffic switching strategy; through the above-mentioned technical solution, it is possible to prevent the occurrence of abnormal traffic switching, and to ensure the accuracy of traffic forwarding. On the basis of ensuring the flexibility of traffic forwarding, it can also ensure the accuracy of traffic forwarding.
[0109] In addition, if Figure 8 As shown, an embodiment of the present application further provides a flow control device 10, comprising:
[0110] The first processing module 100 is used to obtain traffic information to be forwarded;
[0111] The second processing module 200 is used to perform scene attribute analysis on the forwarded traffic information to obtain traffic attribute information;
[0112] The third processing module 300 is used to select a target traffic switching strategy from a preset traffic switching set according to traffic attribute information;
[0113] The fourth processing module 400 is used to perform traffic forwarding processing on the traffic information to be forwarded according to the target traffic switching strategy;
[0114] The fifth processing module 500 is used to perform traffic forwarding detection processing on the traffic information to be forwarded to obtain a traffic forwarding analysis result.
[0115] It should be noted that in the process of flow control, the flow information to be forwarded is first obtained; then, the flow information to be forwarded is subjected to scene attribute analysis to obtain the flow attribute information; then, the target flow switching strategy is selected from the preset flow switching set according to the flow attribute information; then, flow forwarding processing is performed on the flow information to be forwarded according to the target flow switching strategy; finally, flow forwarding detection processing is performed on the flow information to be forwarded, and finally the flow forwarding analysis result can be obtained; through the above method, the target flow switching strategy is selected from the preset flow switching set according to the flow attribute information, so that flexible and convenient flow control processing can be realized, which brings a better user experience.
[0116] It should be noted that the embodiments of the present application will obtain the user's permission or consent before obtaining the traffic information to be forwarded, and the collection, use and processing of such data will comply with relevant laws, regulations and standards. In addition, when the embodiments of the present application need to obtain the user's sensitive personal information, the user's separate permission or consent will be obtained through a pop-up window or by jumping to a confirmation page. After the user's separate permission or consent is clearly obtained, the necessary user-related data for the normal operation of the embodiments of the present application will be obtained.
[0117] It is worth noting that after obtaining the traffic information to be forwarded, the scene attribute analysis and processing of the traffic information to be forwarded can be performed to obtain the traffic attribute information; then, the target traffic switching strategy can be selected from the pre-set traffic switching set according to the traffic attribute information, and the traffic switching strategy can be selected flexibly and conveniently, making the traffic control process more flexible and convenient. For example, in the case where the traffic information to be forwarded is a notification SMS sent by the bank's dynamic password subsystem, the traffic attribute information of the traffic information to be forwarded can be analyzed and processed first, and then the traffic attribute information can be obtained, so as to make the prerequisite preparation for the subsequent selection of the target traffic switching strategy.
[0118] It is worth noting that after obtaining the traffic information to be forwarded, the scene attribute analysis and processing of the traffic information to be forwarded can be performed to obtain the traffic attribute information. Subsequently, the target traffic switching strategy can be selected from the pre-set traffic switching set based on the traffic attribute information obtained by the analysis and processing, thereby making the prerequisite preparations for the subsequent traffic control processing, making the traffic control process more flexible, and users can select the corresponding traffic switching strategy according to their own needs.
[0119] The specific implementation of the flow control device 10 is substantially the same as the specific implementation of the above-mentioned flow control method, and will not be described in detail herein.
[0120] In addition, if Fig. 9 As shown, an embodiment of the present application further provides an electronic device 700 , which includes: a memory 720 , a processor 710 , and a computer program stored in the memory 720 and executable on the processor 710 .
[0121] The processor 710 and the memory 720 may be connected via a bus or in other ways.
[0122] The non-transient software programs and instructions required to implement the flow control methods of the above embodiments are stored in the memory 720 , and when executed by the processor 710 , the flow control methods of the above embodiments are executed.
[0123] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or 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 this embodiment.
[0124] In addition, an embodiment of the present application also provides a computer-readable storage medium, which stores computer-executable instructions, and the computer-executable instructions are executed by a processor 710 or a controller, for example, by a processor 710 in the above-mentioned device embodiment, so that the above-mentioned processor 710 can execute the flow control method in the above-mentioned embodiment.
[0125] The above embodiments may be used in combination, and modules with the same name in different embodiments may be the same or different.
[0126] The above describes specific embodiments of the present application, and other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily have to be performed in the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0127] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, equipment, and computer-readable storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0128] The apparatus, device, computer-readable storage medium and method provided in the embodiments of the present application correspond to each other. Therefore, the apparatus, device and non-volatile computer storage medium also have similar beneficial technical effects as the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the corresponding apparatus, device and computer storage medium will not be repeated here.
[0129] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0130] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.
[0131] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0132] For the convenience of description, the above devices are described in terms of functions and are divided into various units. Of course, when implementing the embodiments of the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0133] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the embodiments of the present application may adopt the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the embodiments of the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0134] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0135] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0136] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0137] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0138] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0139] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0140] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0141] In the embodiments of the present application, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent the existence of A alone, the existence of A and B at the same time, and the existence of B alone. Among them, A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can be represented by: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, c can be single or multiple.
[0142] Embodiments of the present application may be described in the general context of computer executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. Embodiments of the present application may also be practiced in distributed computing environments, where tasks are performed by remote processing devices connected via a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0143] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0144] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A flow control method, characterized in that: The method comprises: Obtain information about traffic to be forwarded; Performing scene attribute analysis on the traffic information to be forwarded to obtain traffic attribute information; Selecting a target traffic switching strategy from a preset traffic switching set according to the traffic attribute information; Performing traffic forwarding processing on the traffic information to be forwarded according to the target traffic switching strategy; Perform traffic forwarding detection processing on the traffic information to be forwarded to obtain a traffic forwarding analysis result.
2. The flow control method according to claim 1, characterized in that: The performing scene attribute analysis on the traffic information to be forwarded to obtain traffic attribute information includes: Performing information decomposition processing on the traffic information to be forwarded to obtain a traffic attribute tag and a traffic priority tag; The traffic attribute information is determined according to the traffic attribute tag and the traffic priority tag.
3. The flow control method according to claim 1, characterized in that: The traffic switching set includes a plurality of traffic switching strategies, each of which carries traffic type information, and the target traffic switching strategy is selected from the preset traffic switching set according to the traffic attribute information, including: Matching the traffic attribute information with the traffic type information of each traffic switching strategy in the traffic switching set to obtain target traffic type information; The traffic switching strategy corresponding to the target traffic type information is determined as the target traffic switching strategy.
4. The flow control method according to claim 1, characterized in that: The performing traffic forwarding processing on the traffic information to be forwarded according to the target traffic switching strategy includes: Determine traffic forwarding execution event information and traffic forwarding execution sequence information according to the target traffic switching strategy; Determine a traffic forwarding strategy according to the traffic forwarding execution event information and the traffic forwarding execution sequence information; Perform traffic forwarding processing on the traffic information to be forwarded according to the traffic forwarding strategy.
5. The flow control method according to claim 1, characterized in that: The performing traffic forwarding detection processing on the traffic information to be forwarded to obtain a traffic forwarding analysis result includes: Verifying the traffic information to be forwarded to obtain traffic forwarding mark information; Analyzing and processing the traffic forwarding mark information to obtain traffic mark bit information; The traffic forwarding analysis result is determined according to the traffic marking bit information.
6. The flow control method according to claim 1, characterized in that: After performing traffic forwarding detection processing on the traffic information to be forwarded and obtaining a traffic forwarding analysis result, the method further includes at least one of the following: When the traffic forwarding analysis result indicates that the traffic forwarding is normal, the traffic forwarding analysis result is sent as final traffic forwarding information to a preset monitoring terminal; When the traffic forwarding analysis result indicates that the traffic forwarding is abnormal, the traffic information to be forwarded is controlled to stop forwarding.
7. The flow control method according to claim 6, characterized in that: When the traffic forwarding analysis result indicates that the traffic forwarding is abnormal, after controlling the to-be-forwarded traffic information to stop forwarding, the method further includes: Selecting a new traffic switching strategy from the traffic switching set according to the traffic forwarding analysis result; The to-be-forwarded traffic information is forwarded according to the new traffic switching strategy.
8. A flow control device, characterized in that: include: A first processing module, used for obtaining traffic information to be forwarded; A second processing module is used to perform scene attribute analysis on the traffic information to be forwarded to obtain traffic attribute information; A third processing module, configured to select a target traffic switching strategy from a preset traffic switching set according to the traffic attribute information; A fourth processing module, configured to perform traffic forwarding processing on the traffic information to be forwarded according to the target traffic switching strategy; The fifth processing module is used to perform traffic forwarding detection processing on the traffic information to be forwarded to obtain a traffic forwarding analysis result.
9. An electronic device, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the flow control method as described in any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium storing computer-executable instructions, characterized in that: The computer executable instructions are used to execute the flow control method described in any one of claims 1 to 7.