Unlock instant, AI-driven research and patent intelligence for your innovation.

A Quick Statistical Analysis Method of Router Traffic

A statistical analysis, router technology, applied in transmission systems, digital transmission systems, data exchange networks, etc., can solve problems such as difficult to expand matching modes

Active Publication Date: 2020-03-03
杭州商湾网络科技有限公司
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] There are existing technologies that use the kernel module developed based on netfilter to classify traffic matching, but many technologies have great room for improvement in matching efficiency and matching flexibility, and it is difficult to expand the matching mode

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A Quick Statistical Analysis Method of Router Traffic
  • A Quick Statistical Analysis Method of Router Traffic
  • A Quick Statistical Analysis Method of Router Traffic

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention more clear, some embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings in the present invention.

[0035] Such as figure 1 As shown, a method for fast statistical analysis of router traffic includes the following steps:

[0036]1) Create two memory storage areas in the kernel module of the openwrt router. The two memory storage areas correspond to the cache data of the previous cycle and the cache data of the current cycle respectively. The two memory storage areas are used to match the cache of the previous cycle. The data and the cached data of the current period are calculated based on the time to calculate the offset index, and the index to obtain the cached data of the previous period=[current system time (seconds) / period value (seconds)+1]%2, the current system time ( seconds) / period value (sec...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for quickly counting and analyzing router traffic, which comprises the following steps: creating two corresponding memory storage areas in a kernel module of a router,and respectively corresponding to cache data of a previous period and cache data of a current period by the two memory storage areas; acquiring data packet information received and sent by the routerbased on a hook function of a built-in netfilter of the router; obtaining a source address, a destination address, a source port and a destination port of the data packet, performing Hash function calculation to obtain a key, matching a memory storage area corresponding to the index of the cache data in the current period, obtaining a red-black tree cache corresponding to the memory storage area,and if the memory storage area can be matched with the red-black tree cache, obtaining a corresponding feature type from the red-black tree cache; and after the feature data is matched, identifying and counting the data packet to obtain the traffic of the feature type corresponding to the router. According to the method, the classified traffic is counted while the flow is quickly classified.

Description

technical field [0001] The invention relates to the technical field of fast router traffic, in particular to a method for fast statistics and analysis of router traffic. Background technique [0002] The router processes network traffic of different applications with different priorities to ensure that under limited bandwidth conditions, high-priority applications have a higher data forwarding priority when the network is congested. At the same time, the router needs a traffic analysis function to provide users with data analysis reports. The above two traffic-based analyzes are both implemented on the basis of data traffic application classification. [0003] There are existing technologies that use the kernel module developed based on netfilter to classify the matching traffic, but many technologies have great room for improvement in matching efficiency and matching flexibility, and it is difficult to expand the matching mode. The invention aims at realizing a fast match...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04L12/26G06F16/22
CPCG06F16/2255H04L43/045H04L43/0876
Inventor 严燕冬黄慧攀
Owner 杭州商湾网络科技有限公司