Network flow statistics method and device, electronic equipment and storage medium
A technology of electronic equipment and network traffic, applied in the network field, can solve the problems of lack of cooperation, low cooperation efficiency, solidified processing capacity, etc., and achieve the effect of improving statistical accuracy
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0064] Due to the fact that in the prior art, when the flow and velocity statistics are performed, due to the solidified processing capabilities between the various steps, the cooperation efficiency between the various processing steps is low, and there is a lack of coordination. The flow is too late to analyze packet loss, or it is waiting to receive while analyzing, resulting in waste of resources.
[0065] Therefore, in order to solve the above technical problem, an embodiment of the present invention provides a method for counting network traffic. It should be noted that the method for counting network traffic provided by the embodiment of the present invention is applied to an electronic device. image 3 It is a flow chart of the statistical method of network traffic provided in the embodiment of the present invention, such as image 3 As shown, the method includes the following steps:
[0066] Step S301: According to the data volume of the Flow flow, a first set number ...
Embodiment 2
[0083] As can be seen from the foregoing embodiments, when increasing or decreasing the number of downlink threads, it is necessary to judge whether the cache queue is full or empty, and if the cache queue length of the cache queue is too small, the processing capacity of the uplink thread and the downlink thread will be affected. However, if the length of the cache queue is too large, it will not play a good role in regulating the processing capacity of the downlink thread. Therefore, the length of the cache queue in the cache queue can determine the processing capacity of the downlink thread to a certain extent. size.
[0084] In order to optimize the effect of dynamically regulating the processing capacity of the thread group and further ensure that the processing capacity of the downlink thread and the uplink thread match, in the embodiment of the present invention, after adding the first number of downlink threads, the method further including: increasing the cache queue ...
Embodiment 3
[0091] Since the starting time of each downlink thread is different, the deletion of the second number of downlink threads includes:
[0092] According to the start time of each downlink thread, determine a second number of target downlink threads whose start time is later, and delete the target downlink threads.
[0093] Wherein, by sorting each downlink thread according to the startup time of each downlink thread, it is convenient to manage downlink threads. Late downstream threads start to delete so as not to clutter up the entire thread group. Similarly, when the first number of downlink threads is added, the latest started downlink thread is used as the downlink thread with a later startup time. Of course, it can be understood that, in the embodiment of the present invention, it is not limited to the above-mentioned management manner.
[0094] That is, in the embodiment of the present invention, according to the startup time of each downlink thread, the sequence of each...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com