Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

An active IP host number statistics method based on a binary hash table

A statistical method and binary technology, applied in transmission systems, electrical components, etc., can solve the problems of inaccurate statistics, detection of packet failure, network load, etc., to achieve accurate statistics, time and space complexity has obvious advantages and reduced The effect of hash collisions

Active Publication Date: 2019-06-11
STATE GRID GASU ELECTRIC POWER RES INST +2
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] For the problems of above-mentioned research, the object of the present invention is to provide a kind of active IP host quantity statistics method based on binary hash table, solve in the prior art: (1) active detection method needs to send detection message to each IP address, It is easy to cause additional network load, and it is also easy to be intercepted by security protection devices such as firewalls, resulting in the failure of sending detection messages, so that accurate statistics cannot be obtained

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
  • An active IP host number statistics method based on a binary hash table
  • An active IP host number statistics method based on a binary hash table

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0067] First, establish the data structure required for counting the number of active IP hosts, set the length of the binary hash table to 0XFFFFFF, and the initial value is 0; set the IP host counter COUNT = 0; start timestamp BEGINTIME = start time, such as: 2018-08- 20 00:00:01; time period WINDOW=60;

[0068] Network traffic analysis, that is, the source IP address of each IP packet, such as the extracted IP address is 10.100.5.1;

[0069] Take out the high 16 bits of the source IP address, the value is 0x0A64; take out the low 16 bits, the value is 0×0501; according to the calculation formula of V_HASH, the hash value V_HASH=0×6E0501 can be obtained, and the decimal value of V_HASH is 7210241;

[0070] Look up member No. 7210241 in the binary hash table and find that its value is 0, then set its value to 1, add 1 to the COUNT value, then the current value of COUNT is 1;

[0071] Check the difference between the current timestamp (such as: 2018-08-20 00:00:08) and the sta...

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 an active IP host number statistical method based on a binary hash table, which belongs to the field of network security monitoring, and solves the defects of an active detection method and a passive detection method in the prior art. The method comprises the steps of establishing a data structure required by the quantity statistics of the active IP hosts, setting an initial value, wherein the data structure comprises a binary hash table, an IP host counter, a start timestamp and a time period; analyzing the network flow, namely, operating the source IP address of eachIP packet by using a hash function to obtain a hash value; updating the hash value in the binary hash table, and modifying an IP host counter at the same time; and judging whether the difference between the current timestamp and the starting timestamp is greater than or equal to the time period, outputting the value of the counter of the IP host if the difference is greater than or equal to the time period, and carrying out a new round of statistics, otherwise, circularly analyzing the network flow and counting the active IP host. The method is used for counting the number of the active IP hosts.

Description

technical field [0001] The invention discloses a method for counting the number of active IP hosts based on a binary hash table, which is used for counting the number of active IP hosts in network traffic, and belongs to the field of network security monitoring. Background technique [0002] With the continuous development of the Internet, the scale of the network is expanding day by day, and the number of network services carried by it is gradually increasing. Network security has become an issue of increasing concern to people. Network attacks represented by DDoS attacks have caused many security incidents. A large number of existing studies start with network communication traffic analysis to carry out network security detection. One of the important basic capabilities is to quickly count the number of active IP hosts in the current network. . [0003] According to the search, the current statistical methods for network active hosts are as follows: [0004] 1. The paten...

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 Applications(China)
IPC IPC(8): H04L29/06
Inventor 张华峰段军红张小敏闫晓斌张驯袁晖赵博张小东宋曦李方军杨波张磊赵金雄李志茹魏峰杨凡高丽娜党倩卫祥王刚
Owner STATE GRID GASU ELECTRIC POWER RES INST
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Eureka Blog
Learn More
PatSnap group products