A traffic monitoring method, system, storage medium and electronic device

By obtaining and identifying the interface information of the access side and configuring routing information to monitor and allocating the traffic of system resources, the consumption of system resources by abnormal traffic of non-core services in the microservice architecture is solved, and the performance stability of core services is improved.

CN115766602BActive Publication Date: 2025-06-27HAIER YOUJIA INTELLIGENT TECH (BEIJING) CO LTD +2
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211406709.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-10
Publication Date
2025-06-27
Estimated Expiration
2042-11-10

AI Technical Summary

Technical Problem

In the microservice architecture, abnormal traffic for non-core services is difficult to monitor and manage, resulting in high system resource consumption and affecting the performance stability of core services.

Method used

By obtaining the interface information of the access side, performing identification processing to obtain traffic identification, configuring the routing information between the access side and the system resources, monitoring and allocating the traffic of the system resources.

Benefits of technology

It realizes monitoring and control of the traffic of accessing system resources, avoids excessive consumption of system resources by abnormal traffic of non-core services, and improves the performance stability of core services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115766602B_ABST
    Figure CN115766602B_ABST
Patent Text Reader

Abstract

The present application provides a traffic monitoring method, system, storage medium and electronic device, which relates to the technical field of smart home. The method includes: obtaining interface information corresponding to an access end; performing identification processing on the interface information corresponding to the access end to obtain a traffic identifier corresponding to the access end; configuring routing information between the access end and corresponding system resources based on the traffic identifier corresponding to the access end; and monitoring the traffic of distributing the system resources to the corresponding access end according to the routing information. Through the embodiments provided by the present application, it is possible to configure the routing information between the access end and the system resources, monitor the traffic information of distributing the system resources to the access end according to the routing information, and control the access traffic of the access end to access the system resources according to the monitored traffic information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of smart home, and in particular, to a traffic monitoring method, system, storage medium, and electronic device. Background Art

[0002] With the development of the technology of evolving from the traditional monolithic architecture to the microservices architecture, the business in the microservices architecture can generally be divided into core business and non-core business.

[0003] When the core business accesses system resources, the requirements for high concurrency, high availability, and high scalability are getting higher and higher. The non-core business is prone to errors when accessing system resources, is not easy to manage, and the traffic of accessing system resources is uncontrollable. Especially when the non-core business has an anomaly, the abnormal traffic generated will consume a large amount of system resources, directly resulting in a high utilization rate of system resources, and even a situation where there is not enough system resources, thus affecting the normal use of the core business of the core system.

[0004] In the related art, for this kind of situation, it is often necessary for managers to solve this technical defect by expanding resources. However, this not only increases the resource cost, but also cannot guarantee that the normal traffic of the core business can be processed by the system in the case of abnormal traffic, reducing the performance stability of the core business of the core system, and also not knowing the traffic situation generated when the non-core business accesses and the core business accesses system resources.

[0005] Therefore, how to monitor the traffic generated when the business accesses system resources is a technical problem to be solved urgently at present. Summary of the Invention

[0006] In view of this, the present application provides a traffic monitoring method, system, storage medium, and electronic device, which realizes monitoring the traffic information distributed from the system resources to the access end according to the configured routing information between the access end and the system resources, and can control the access traffic of the access end to access the system resources according to the monitored traffic information.

[0007] In a first aspect, the present application provides a traffic monitoring method, including:

[0008] Obtaining interface information corresponding to an access end;

[0009] Performing identification processing on the interface information corresponding to the access end to obtain a traffic identifier corresponding to the access end;

[0010] Based on the traffic identifier, configuring routing information between the access end and its corresponding system resources;

[0011] According to the routing information, monitoring the traffic of distributing the system resources to the corresponding access end.

[0012] Preferably, a traffic monitoring method provided according to the present application

[0013] Performing identification processing on the interface information corresponding to the access end to obtain a traffic identifier corresponding to the access end, including:

[0014] Performing parsing processing on the interface information corresponding to the access end to parse out the access information corresponding to the access end;

[0015] Performing identification processing on the access information corresponding to the access end to obtain the traffic identifier.

[0016] Preferably, a traffic monitoring method provided according to the present application

[0017] Performing identification processing on the access information corresponding to the access end to obtain the traffic identifier, including:

[0018] Determining the priority corresponding to each access end according to the access information corresponding to the access end;

[0019] Performing combination processing on the access information of multiple access ends according to the priority corresponding to the access end to obtain multiple access information sets with the same priority;

[0020] Performing identification processing on the access information in the access information set to obtain the traffic identifier corresponding to the access information.

[0021] Preferably, a traffic monitoring method provided according to the present application

[0022] After the step of monitoring the traffic of allocating the system resources to the corresponding access end according to the routing information, the method includes:

[0023] Performing analysis processing on the monitored traffic corresponding to the access end to obtain a traffic analysis result;

[0024] Executing a preset traffic warning strategy according to the traffic analysis result.

[0025] Preferably, a traffic monitoring method provided according to the present application

[0026] The traffic analysis result at least includes: a first result, a second result;

[0027] Performing analysis processing on the monitored traffic corresponding to the access end to obtain a traffic analysis result, including:

[0028] Comparing the monitored traffic corresponding to the access end with a preset traffic threshold;

[0029] Determine whether the monitored traffic is core traffic;

[0030] In the case where the monitored traffic is non-core traffic, if the monitored traffic corresponding to the access end exceeds the traffic threshold, the first result corresponding to the access end is obtained;

[0031] If the monitored traffic corresponding to the access end does not exceed the traffic threshold, the second result corresponding to the access end is obtained.

[0032] Preferably, according to a traffic monitoring method provided by the present application,

[0033] The traffic warning strategy at least includes: a first strategy and a second strategy;

[0034] Performing a preset traffic warning strategy according to the traffic analysis result includes:

[0035] Performing the first strategy according to the first result corresponding to the access end;

[0036] Performing the second strategy according to the second result corresponding to the access end.

[0037] Preferably, according to a traffic monitoring method provided by the present application,

[0038] The traffic warning strategy at least further includes: a third strategy;

[0039] After the step of determining whether the monitored traffic is core traffic, the method includes:

[0040] In the case where the monitored traffic is the core traffic, if the core traffic corresponding to the access end exceeds the traffic threshold, the third strategy is executed.

[0041] In a second aspect, the present application further provides a traffic monitoring system, including:

[0042] An acquisition module, configured to acquire interface information corresponding to an access end;

[0043] An identification module, configured to perform identification processing on the interface information corresponding to the access end to obtain a traffic identifier corresponding to the access end;

[0044] A configuration module, configured to configure routing information between the access end and corresponding system resources based on the traffic identifier;

[0045] A monitoring module, configured to monitor the traffic of allocating the system resources to the corresponding access end according to the routing information.

[0046] In a third aspect, the present application further provides an electronic device, including a memory and a processor. A computer program is stored in the memory, and the processor is configured to execute the computer program to implement the traffic monitoring method as described in any one of the above.

[0047] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium includes a stored program, wherein the program, when running, executes to implement the traffic monitoring method as described in any one of the above.

[0048] In a fifth aspect, the present application further provides a computer program product, including a computer program. The computer program, when executed by a processor, implements the traffic monitoring method as described in any one of the above.

[0049] A traffic monitoring method, system, storage medium and electronic device provided by the present application obtain interface information corresponding to an access end; perform identification processing on the interface information corresponding to the access end to obtain a traffic identifier corresponding to the access end; configure routing information between the access end and corresponding system resources based on the traffic identifier; and monitor the traffic of allocating the system resources to the corresponding access end according to the routing information. By configuring the routing information between the access end and the system resources, monitoring the traffic information of distributing the system resources to the access end according to the routing information, and controlling the access traffic of the access end accessing the system resources according to the monitored traffic information can be realized. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] The accompanying drawings here are incorporated into the specification and form a part of this specification, showing embodiments consistent with the present application and used together with the specification to explain the principles of the present application.

[0051] To more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the accompanying drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, other accompanying drawings can be obtained based on these drawings without creative efforts.

[0052] Figure 1 is a schematic diagram of the hardware environment of a traffic monitoring method provided by the present application;

[0053] Figure 2 is one of the flow diagrams of a traffic monitoring method provided by the present application;

[0054] Figure 3 is another flow diagram of a traffic monitoring method provided by the present application;

[0055] Figure 4 is a schematic diagram of the routing information configuration provided by the present application;

[0056] Figure 5 It is a structural schematic diagram of a flow monitoring system provided by the present application;

[0057] Figure 6 It is a schematic diagram of the structure of the electronic device provided in this application. DETAILED DESCRIPTION

[0058] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0059] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0060] Combine the following Figures 1-6 A flow monitoring method, system, storage medium and electronic device of the present application are described.

[0061] According to one aspect of an embodiment of the present application, a flow monitoring method is provided. The flow monitoring method is widely used in smart home (Smart Home), smart home, smart home device ecology, smart residential (IntelligenceHouse) ecology and other whole-house intelligent digital control application scenarios. Optionally, in this embodiment, the above-mentioned flow monitoring method can be applied to Figure 1 In the hardware environment composed of the terminal device 102 and the server 104 shown in FIG. Figure 1As shown in the figure, the server 104 is connected to the terminal device 102 through a network. It can be used to provide services (such as application services, etc.) for the terminal or the client installed on the terminal. A database can be set on the server or independently of the server to provide data storage services for the server 104. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data operation services for the server 104.

[0062] The above network can include but is not limited to at least one of the following: wired network, wireless network. The above wired network can include but is not limited to at least one of the following: wide area network, metropolitan area network, local area network. The above wireless network can include but is not limited to at least one of the following: WIFI (Wireless Fidelity), Bluetooth. The terminal device 102 is not limited to a PC, mobile phone, tablet computer, smart air conditioner, smart range hood, smart refrigerator, smart oven, smart stove, smart washing machine, smart water heater, smart washing equipment, smart dishwasher, smart projection device, smart TV, smart drying rack, smart curtain, smart audio and video, smart socket, smart speaker, smart sound box, smart fresh air device, smart kitchen and bathroom equipment, smart bathroom equipment, smart floor sweeping robot, smart window cleaning robot, smart mopping robot, smart air purification device, smart steam box, smart microwave oven, smart kitchen treasure, smart purifier, smart water dispenser, smart door lock, etc.

[0063] As Figure 2 shown, it is one of the schematic diagrams of the implementation process of a traffic monitoring method provided by an embodiment of the present application. A traffic monitoring method can include but is not limited to steps S100 to S400.

[0064] S100, obtain the interface information corresponding to the access end;

[0065] S200, perform identification processing on the interface information corresponding to the access end to obtain a traffic identifier corresponding to the access end;

[0066] S300, configure the routing information between the access end and the corresponding system resources based on the traffic identifier corresponding to the access end;

[0067] S400, monitor the traffic of allocating the system resources to the corresponding access end according to the routing information.

[0068] In step S100 of some embodiments, obtain the interface information corresponding to the access end.

[0069] It can be understood that the access end can be a client accessing system resources or a process end of the same client, and no specific limitation is made here.

[0070] As Figure 3As shown in the figure, from the perspective of business processing logic, it can be divided into the access end 1 for processing core business, and the access ends 2, 3, and 4 for processing non-core business.

[0071] Among them, the core business can be the business that supports the operation of the central processing unit. The non-core business can be the business that supports multiple applications, and no specific limitation is made here.

[0072] The computer-executed program can obtain the interface information of at least one access end. An access end may have only the access end interface information corresponding to one access end, or may have multiple process interface information corresponding to multiple processes. Here, no further limitation is made.

[0073] In step S200 of some embodiments, the interface information corresponding to the access end is subjected to identification processing to obtain a traffic identifier corresponding to the access end.

[0074] It can be understood that after the step of obtaining the interface information corresponding to the access end in step S100 is executed, the specific execution steps can be: first, the interface information corresponding to each access end is subjected to parsing processing to parse out the access information corresponding to each access end, and then according to the access information corresponding to each access end, the priority corresponding to each access end is determined. According to the priority corresponding to each access end, the access information of multiple access ends is combined to obtain multiple access information sets with the same priority, and at least one piece of access information in each access information set is subjected to identification processing to obtain the traffic identifier corresponding to each piece of access information.

[0075] In step S300 of some embodiments, based on the traffic identifier, routing information between the access end and the corresponding system resources is configured.

[0076] It can be understood that after the step of subjecting the interface information corresponding to the access end to identification processing in step S200 to obtain the traffic identifier corresponding to the access end is executed, the specific execution steps can be:

[0077] Taking Figure 3 and Figure 4 as an example, access end 1 corresponds to traffic identifier A, access end 2 corresponds to traffic identifier B, and access ends 3 and 4 correspond to traffic identifier C.

[0078] Among them, access end 1 corresponds to the core business, and access ends 2, 3, and 4 correspond to the non-core business.

[0079] Screen out a preset proportion of core resources from the resources to be distributed and give them to server 1, and distribute the remaining resources in the resources to be distributed to servers 2 and 3.

[0080] It should be noted that there is a one-to-one correspondence between system resources and the server. The server controls the corresponding system resources according to the control instructions of the control end. System resources include core resources and non-core resources. For example Figure 4 As shown, server 1 corresponds to system resource 1, server 2 corresponds to system resource 2, and server 3 corresponds to system resource 3.

[0081] When configuring the routing information between the access end and the system resources according to the traffic identifier, it is actually configuring the routing information between the access end and the server. For example, routing 1 is configured between access end 1 and server 1 according to access identifier A, so that access end 1 can access the core resources corresponding to server 1 according to routing 1, and the traffic accessing the core resources flows through routing 1.

[0082] Then, according to traffic identifier B, routing 2 is configured between access end 2 and server 2, so that access end 2 can access the target resources corresponding to server 2 according to routing 2, and the traffic accessing the target resources corresponding to server 3 flows through routing 2.

[0083] According to traffic identifier C, routing 3 is configured between access end 3, access end 4 and server 3, so that access end 3 and / or access end 4 can access the target resources corresponding to server 3 according to routing 3, and the traffic accessing the target resources corresponding to server 3 flows through routing 3.

[0084] Figure 3 and Figure 4 In [FIGURE] and [FIGURE], the sizes of server 1, server 2, and server 3 are different. The illustration of server 1 is larger, which means that server 1 has more system resources. The illustrations of server 2 and server 3 are relatively smaller than that of server 1, which means that the system resources of server 2 and server 3 are relatively less than those of server 1.

[0085] It should be further noted that a preset proportion of core resources are screened out from the resources to be distributed and given to server 1, and the remaining resources except the core resources in the resources to be distributed are distributed to server 2 and server 3. The resources distributed to server 2 and server 3 are called target resources.

[0086] In step S400 of some embodiments, according to the routing information, monitor the traffic of allocating the system resources to the corresponding access end.

[0087] It can be understood that after performing step S300 of configuring the routing information between the access end and the corresponding system resources based on the traffic identifier corresponding to the access end, the specific execution steps may be: monitoring the traffic that routes the system resources through the route corresponding to the routing information to the corresponding access end according to the routing information configured in step S300 and a preset monitoring program. This traffic is the traffic that sends the system resources of the server to the access end.

[0088] It should be noted that as Figure 3 and Figure 4 shown, it can also be to monitor the traffic of the access end sending requests to the server via the corresponding route.

[0089] For example, access end 1 sends multiple request messages to server 1 via route 1 according to traffic identifier A, thus forming the request traffic.

[0090] In some embodiments of the present application, the identifying the interface information corresponding to each access end to obtain the traffic identifier corresponding to each access end includes:

[0091] Performing parsing processing on the interface information corresponding to each access end to parse out the access information corresponding to each access end;

[0092] Performing identification processing on the access information corresponding to each access end to obtain the traffic identifier.

[0093] It can be understood that after obtaining the interface information corresponding to at least one access end, first perform parsing processing on the interface information corresponding to each access end to parse out the access information corresponding to each access end, then determine the priority corresponding to each access end according to the access information corresponding to each access end, and perform combination processing on the access information of multiple access ends according to the priority corresponding to each access end to obtain multiple access information sets with the same priority, and perform identification processing on each access information set to obtain the traffic identifier corresponding to each access information set.

[0094] In some embodiments of the present application, the performing identification processing on the access information corresponding to each access end to obtain the traffic identifier includes:

[0095] Determining the priority corresponding to the access end according to the access information corresponding to the access end;

[0096] Performing combination processing on the access information of multiple access ends according to the priority corresponding to the access end to obtain multiple access information sets with the same priority;

[0097] Perform identification processing on the access information in the access information set to obtain the traffic identifier corresponding to the access information.

[0098] It can be understood that according to the access information corresponding to each access terminal, the priority corresponding to each access terminal is determined.

[0099] It should be noted that the access information at least includes the name of the access terminal of the request, the access terminal category, and the number of requested accesses. According to the access terminal category, it can be determined whether the access terminal corresponding to each access information is an access terminal of the core service or an access terminal of the non-core service.

[0100] According to the preset priority policy, the priority of the access terminal corresponding to the core service is the high priority, and the priority of the access terminal corresponding to the non-core service is the low priority.

[0101] It should be noted that, for example, access terminals 2, 3, and 4 corresponding to the non-core service all belong to the low priority. Then how are their priorities divided? The priority can be determined according to the request queuing order, or the priority can be determined according to the number of requested accesses. For example, the access terminal with a smaller number of requested accesses is the main priority, the secondary priority, and the last priority.

[0102] According to the priority corresponding to each access terminal, perform combination processing on the access information of the multiple access terminals to obtain multiple access information sets with the same priority.

[0103] Reference Figure 3 As shown, for example, access terminal 1 has a high priority, access terminal 2 has the main priority among the low priorities, and access terminals 3 and 4 both have the secondary priority among the low priorities. Then the access information corresponding to access terminals 3 and 4 is combined into an access information set 3 with the same priority. Similarly, the access information corresponding to access terminal 1 can be combined into access information set 1. Perform identification processing on at least one access information in each access information set to obtain the traffic identifier corresponding to each access information.

[0104] In some embodiments of the present application, after the step of monitoring the traffic of allocating the system resources to the corresponding access terminal according to the routing information, the method includes:

[0105] Perform analysis processing on the monitored traffic corresponding to each access terminal to obtain a traffic analysis result;

[0106] Execute a preset traffic warning policy according to the traffic analysis result.

[0107] It can be understood that, first, the monitored traffic corresponding to each access end is compared with a preset traffic threshold, and it is determined whether the monitored traffic is core traffic. In the case where the monitored traffic is non-core traffic, if the monitored traffic corresponding to each access end exceeds the traffic threshold, a first result corresponding to each access end is obtained. If the monitored traffic corresponding to each access end does not exceed the traffic threshold, a second result corresponding to each access end is obtained.

[0108] Then, according to the first result corresponding to each access end, a first policy is executed, and according to the second result corresponding to each access end, a second policy is executed.

[0109] In some embodiments of the present application, the traffic analysis result at least includes: a first result, a second result;

[0110] The analysis and processing of the monitored traffic corresponding to the access end to obtain a traffic analysis result includes:

[0111] Comparing the monitored traffic corresponding to the access end with a preset traffic threshold;

[0112] Determining whether the monitored traffic is core traffic;

[0113] In the case where the monitored traffic is non-core traffic, if the monitored traffic corresponding to the access end exceeds the traffic threshold, the first result corresponding to the access end is obtained;

[0114] If the monitored traffic corresponding to the access end does not exceed the traffic threshold, the second result corresponding to the access end is obtained.

[0115] It can be understood that the monitored traffic flowing through the router is obtained in real time by using the monitoring program of the monitoring end. The monitored traffic corresponding to each access end is compared with a preset traffic threshold, and it is determined whether the monitored traffic is core traffic. In the case where the monitored traffic is non-core traffic, if the monitored traffic corresponding to each access end exceeds the traffic threshold, the first result corresponding to each access end is obtained. If the monitored traffic corresponding to each access end does not exceed the traffic threshold, the second result corresponding to each access end is obtained.

[0116] In some embodiments of the present application, the traffic warning strategy at least includes: a first strategy, a second strategy;

[0117] The execution of the preset traffic warning strategy according to the traffic analysis result includes:

[0118] Executing the first strategy according to the first result corresponding to the access end;

[0119] Execute the second policy according to the second result corresponding to the access terminal.

[0120] It can be understood that, according to the first result corresponding to each access terminal, the first policy is executed. When the monitored traffic corresponding to each access terminal exceeds the traffic threshold, it indicates that this access terminal may be abnormal. Therefore, this monitored traffic can be marked as abnormal traffic, and then the first policy is executed. The first policy can be to stop the traffic flowing through this route. Specifically, it can be to reject the access terminal corresponding to the abnormal traffic from continuing to access resources.

[0121] Execute the second policy according to the second result corresponding to each access terminal. When the monitored traffic corresponding to each access terminal does not exceed the traffic threshold, it indicates that the monitored traffic corresponding to this second result is normal traffic without abnormality. Therefore, the second policy is executed to dynamically adjust the monitoring period and continue to monitor the access traffic of the access terminal, so as to avoid untimely warning when abnormal traffic appears and affect the downtime of the access terminal of the core service.

[0122] In some embodiments of the present application, the traffic warning policy at least further includes: a third policy;

[0123] After the step of determining whether the monitored traffic is core traffic, the method includes:

[0124] When the monitored traffic is the core traffic, if the core traffic corresponding to the access terminal exceeds the traffic threshold, then execute the third policy.

[0125] It can be understood that, after executing the step of determining whether the monitored traffic is core traffic, according to the traffic identifier corresponding to the monitored traffic, it is determined whether the monitored traffic is core traffic. If it is determined that the monitored traffic is core traffic, and if the core traffic corresponding to each access terminal exceeds the traffic threshold, it indicates that the core traffic corresponding to the core service exceeds the traffic threshold. Then the third policy is executed to detect whether the access terminal corresponding to the core traffic is abnormal. If it is detected that the access terminal corresponding to the core traffic is normal, the server side uniformly coordinates and allocates system resources to the core resources, and stops the access requests of the access terminals corresponding to some non-core services, so as to ensure the normal core traffic corresponding to the core service.

[0126] It should be noted that if it is detected that the access terminal corresponding to the core traffic is abnormal, the abnormal situation can be quickly checked to avoid long waiting for the core service.

[0127] A traffic monitoring method, system, storage medium and electronic device provided by the present application obtain interface information corresponding to at least one access end; perform identification processing on the interface information corresponding to each access end to obtain a traffic identifier corresponding to each access end; configure routing information between each access end and the corresponding system resource based on the traffic identifier corresponding to each access end; and monitor the traffic of distributing the system resource to the corresponding access end according to the routing information. By configuring the routing information between the access end and the system resource, monitoring the traffic information of distributing the system resource to the access end according to the routing information, and controlling the access traffic of the access end accessing the system resource according to the monitored traffic information can be realized.

[0128] A traffic monitoring system provided by the present application will be described below. The traffic monitoring system described below can be correspondingly referred to the traffic monitoring method described above.

[0129] As Figure 5 shown, it is a schematic structural diagram of a traffic monitoring system provided by the present application. A traffic monitoring system includes:

[0130] An obtaining module 510, configured to obtain interface information corresponding to an access end;

[0131] An identifying module 520, configured to perform identification processing on the interface information corresponding to the access end to obtain a traffic identifier corresponding to the access end;

[0132] A configuring module 530, configured to configure routing information between the access end and the corresponding system resource based on the traffic identifier;

[0133] A monitoring module 540, configured to monitor the traffic of distributing the system resource to the corresponding access end according to the routing information.

[0134] According to a traffic monitoring system provided by the present application, the identifying module 520 is configured to perform parsing processing on the interface information corresponding to the access end, and parse out the access information corresponding to the access end;

[0135] Perform identification processing on the access information corresponding to the access end to obtain the traffic identifier.

[0136] According to a traffic monitoring system provided by the present application, the identifying module 520 is configured to determine the priority corresponding to each access end according to the access information corresponding to the access end;

[0137] Perform combined processing on the access information of multiple access ends according to the priority corresponding to the access end to obtain multiple access information sets with the same priority;

[0138] Perform identification processing on the access information in the access information set to obtain the traffic identifier corresponding to the access information.

[0139] According to a traffic monitoring system provided by the present application, after the monitoring module 540, it is further configured to analyze and process the monitoring traffic corresponding to the access end to obtain a traffic analysis result;

[0140] Execute a preset traffic warning strategy according to the traffic analysis result.

[0141] According to a traffic monitoring system provided by the present application, after the monitoring module 540, the traffic analysis result at least includes: a first result and a second result; it is further configured to compare the monitoring traffic corresponding to the access end with a preset traffic threshold; and determine whether the monitoring traffic is core traffic;

[0142] In the case where the monitoring traffic is non-core traffic, if the monitoring traffic corresponding to the access end exceeds the traffic threshold, the first result corresponding to the access end is obtained;

[0143] If the monitoring traffic corresponding to the access end does not exceed the traffic threshold, the second result corresponding to the access end is obtained.

[0144] According to a traffic monitoring system provided by the present application, after the monitoring module 540, the traffic warning strategy at least includes: a first strategy and a second strategy; it is further configured to execute the first strategy according to the first result corresponding to the access end;

[0145] Execute the second strategy according to the second result corresponding to the access end.

[0146] According to a traffic monitoring system provided by the present application, after the monitoring module 540, it is further configured to, in the case where the monitoring traffic is the core traffic, if the core traffic corresponding to the access end exceeds the traffic threshold, execute the third strategy.

[0147] A traffic monitoring method, system, storage medium, and electronic device provided by the present application obtain interface information corresponding to an access end; perform identification processing on the interface information corresponding to the access end to obtain a traffic identifier corresponding to the access end; configure routing information between the access end and corresponding system resources based on the traffic identifier corresponding to the access end; and monitor the traffic of distributing the system resources to the corresponding access end according to the routing information. By configuring the routing information between the access end and the system resources, monitoring the traffic information of distributing the system resources to the access end according to the routing information, and controlling the access traffic of the access end to access the system resources according to the monitored traffic information.

[0148] Figure 6 An entity structure schematic diagram of an electronic device is illustrated, as Figure 6 shown. The electronic device may include: a processor 610, a communications interface 620, a memory 630, and a communication bus 640. Among them, the processor 610, the communications interface 620, and the memory 630 complete communication with each other through the communication bus 640. The processor 610 may call logic instructions in the memory 630 to execute a traffic monitoring method, which includes: obtaining interface information corresponding to an access end; performing identification processing on the interface information corresponding to the access end to obtain a traffic identifier corresponding to the access end; configuring routing information between the access end and corresponding system resources based on the traffic identifier corresponding to the access end; and monitoring the traffic of allocating the system resources to the corresponding access end according to the routing information.

[0149] In addition, when the logic instructions in the above-mentioned memory 630 are implemented in the form of software functional units and sold or used as independent products, they may be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of this technical solution, may be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of this application. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs that can store program codes.

[0150] On the other hand, this application also provides a computer program product. The computer program product includes a computer program. The computer program can be stored on a computer-readable storage medium. When the computer program is executed by a processor, the computer can execute a traffic monitoring method provided by the above-mentioned various methods. The method includes: obtaining interface information corresponding to an access end; performing identification processing on the interface information corresponding to the access end to obtain a traffic identifier corresponding to the access end; configuring routing information between the access end and corresponding system resources based on the traffic identifier corresponding to the access end; and monitoring the traffic of allocating the system resources to the corresponding access end according to the routing information.

[0151] In another aspect, the present application also provides a computer-readable storage medium, which includes a stored program. When the program runs, it executes a traffic monitoring method provided by each of the above methods. The method includes: obtaining interface information corresponding to an access end; performing identification processing on the interface information corresponding to the access end to obtain a traffic identifier corresponding to the access end; configuring routing information between the access end and corresponding system resources based on the traffic identifier corresponding to the access end; and monitoring the traffic of allocating the system resources to the corresponding access end according to the routing information.

[0152] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art can understand and implement it without creative labor.

[0153] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the above technical solution, in essence, or the part that contributes to the prior art can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disc, etc., and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0154] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application and are not intended to limit them. Although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments or perform equivalent replacements on some of the technical features. However, these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of each embodiment of the present application.

Claims

1. A traffic monitoring method, characterized in that, Including: Obtain interface information corresponding to the access end, where the access end includes the access end of the core service and the access end of the non-core service; Perform identification processing on the interface information corresponding to the access end to obtain a traffic identifier corresponding to the access end; Based on the traffic identifier, configure routing information between the access end and its corresponding system resources. The system resources include core resources and non-core resources, and the system resources are in one-to-one correspondence with the server. The server includes a server corresponding to the core resources and a server corresponding to the non-core resources; Screen out a preset proportion of core resources from the resources to be distributed to the server corresponding to the core resources. After distributing to the server corresponding to the core resources, the remaining resources are distributed to the server corresponding to the non-core resources; According to the routing information, monitor the traffic of allocating the system resources from the server to the corresponding access end.

2. The traffic monitoring method according to claim 1, wherein The performing identification processing on the interface information corresponding to the access end to obtain a traffic identifier corresponding to the access end includes: Perform parsing processing on the interface information corresponding to the access end to parse out the access information corresponding to the access end; Perform identification processing on the access information corresponding to the access end to obtain the traffic identifier.

3. The traffic monitoring method according to claim 2, wherein The performing identification processing on the access information corresponding to the access end to obtain the traffic identifier includes: Determine the priority corresponding to the access end according to the access information corresponding to the access end; According to the priority corresponding to the access end, perform combination processing on the access information of multiple access ends to obtain multiple access information sets with the same priority; Perform identification processing on the access information in the access information set to obtain the traffic identifier corresponding to the access information.

4. The traffic monitoring method according to claim 1, wherein After the step of monitoring the traffic of allocating the system resources to the corresponding access end according to the routing information, the method includes: Perform analysis processing on the monitored traffic corresponding to the access end to obtain a traffic analysis result; Execute a preset traffic warning strategy according to the traffic analysis result.

5. The traffic monitoring method according to claim 4, wherein The traffic analysis result at least includes: a first result, a second result; The performing analysis processing on the monitored traffic corresponding to the access end to obtain a traffic analysis result includes: Compare the monitored traffic corresponding to the access end with a preset traffic threshold; Judge whether the monitored traffic is core traffic; In the case where the monitored traffic is non-core traffic, if the monitored traffic corresponding to the access end exceeds the traffic threshold, obtain the first result corresponding to the access end; If the monitored traffic corresponding to the access end does not exceed the traffic threshold, obtain the second result corresponding to the access end.

6. The traffic monitoring method according to claim 5, wherein: The traffic warning strategy at least includes: a first strategy and a second strategy; Executing a preset traffic warning strategy according to the traffic analysis result includes: Executing the first strategy according to the first result corresponding to the access end; Executing the second strategy according to the second result corresponding to the access end.

7. The traffic monitoring method according to claim 6, wherein: The traffic warning strategy at least further includes: a third strategy; After the step of determining whether the monitored traffic is core traffic, the method includes: In the case where the monitored traffic is the core traffic, if the core traffic corresponding to the access end exceeds the traffic threshold, execute the third strategy.

8. A traffic monitoring system, characterized in that, Including: An acquisition module, configured to acquire interface information corresponding to an access end, where the access end includes an access end for core services and an access end for non-core services; An identification module, configured to perform identification processing on the interface information corresponding to the access end to obtain a traffic identifier corresponding to the access end; A configuration module, configured to configure routing information between the access end and its corresponding system resources based on the traffic identifier, where the system resources include core resources and non-core resources, and the system resources are in one-to-one correspondence with the server, and the server includes a server corresponding to the core resources and a server corresponding to the non-core resources; Screen out a preset proportion of core resources from the resources to be distributed to the server corresponding to the core resources, and after distributing to the server corresponding to the core resources, distribute the remaining resources to the server corresponding to the non-core resources; A monitoring module, configured to monitor the traffic of allocating the system resources from the server to the corresponding access end according to the routing information.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program executes the method according to any one of claims 1 to 7 when running.

10. An electronic device, comprising a memory and a processor, characterized in that, A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 7 through the computer program.

Citation Information

Patent Citations

  • Method and system for monitoring traffic of router

    CN107659464A