Terminal equipment information counting method and terminal equipment information counting device based on Hash node

A technology of terminal equipment and information statistics, applied in the field of communication, can solve the problems of long aging time of ARP entries and failure to find equipment information, etc., and achieve the effect of avoiding insufficient information, avoiding poor effectiveness, and real-time statistics

Inactive Publication Date: 2016-09-28
PHICOMM (SHANGHAI) CO LTD
View PDF5 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, this method has the following disadvantages: 1. The device information acquisition method based on the DHCP server depends on the DHCP protocol. If the lease period is long (such as 24 hours), even if a certain device has already been offline, it will still be available. The device information can be read from the DHCP client list; 2. For a terminal with a static IP address set, the DHCP client list cannot find the device information
In order to make up for this deficiency of the DHCP server, some manufacturers have adopted the method of reading the router ARP (Address Resolution Protocol, Address Resolution Protocol) table. The disadvantages of this method are also obvious: 1. The aging time of the ARP entry may be very long , this shortcoming is similar to the lease time of DHCP; 2. The same network card device of a terminal can set multiple IP addresses of different network segments at the same time, and the ARP module of the kernel will make statistics indiscriminately, so when reading the ARP table, There will be multiple records with the same MAC address, but the IP is in a different network segment.

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
  • Terminal equipment information counting method and terminal equipment information counting device based on Hash node
  • Terminal equipment information counting method and terminal equipment information counting device based on Hash node
  • Terminal equipment information counting method and terminal equipment information counting device based on Hash node

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0053] A method for statistics of terminal equipment information based on hash nodes, which is applied to routers connected with multiple terminal equipment, such as figure 1 described, including the steps to:

[0054] S11. Obtain the source IP address when the data packet passing through the kernel protocol stack is an uplink data packet;

[0055] S12. Check whether there is a hash node corresponding to the source IP address in the hash table;

[0056]S13. If it does not exist, establish a new hash node according to the source IP address, analyze the physical address of the uplink data packet, and add the physical address to the statistical information of the hash node corresponding to the source IP address of the uplink data packet , insert the hash node into the hash table, and execute S14; if it exists, directly execute S14;

[0057] S14. Count the flow information of the source IP address according to the uplink data packets, and store the flow information in a hash nod...

Embodiment 2

[0080] According to the method for statistics of terminal equipment information based on hash nodes proposed in the above embodiments, this embodiment proposes an apparatus for statistics of terminal equipment information based on hash nodes.

[0081] A device for statistics of terminal equipment information based on hash nodes, which is applied to routers connected to multiple terminal equipment, such as Figure 5 shown, including:

[0082] A source IP address acquisition unit 11 is used to obtain the source IP address of the uplink data packet when the data packet passing through the kernel protocol stack of the router is an uplink data packet;

[0083] The first search unit 12 is connected to the source IP address obtaining unit 11 to find whether there is a hash node corresponding to the source IP address in the hash table;

[0084] The insertion unit 13 is connected to the first search unit 12, and is used to create a new hash node according to the source IP address and ...

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 provides a terminal equipment information counting method and a terminal equipment information counting device based on a Hash node. The terminal equipment information counting method is applied to a router connected with multiple pieces of terminal equipment, and a Hash table is provided. The method comprises the steps as follows: when a data packet passing through a kernel protocol stack of the router is an uplink data packet, getting the source IP address of the uplink data packet; querying whether there is a Hash node corresponding to the source IP address in the Hash table; if there is no Hash node corresponding to the source IP address in the Hash table, building a new Hash node according to the source IP address and inserting the new Hash node into the Hash table; if there is a Hash node corresponding to the source IP address in the Hash table, not processing the Hash node; and counting the traffic information of the source IP address according to the uplink data packet, and storing the traffic information in the Hash node corresponding to the source IP address. Through the method provided by the invention, the problems of information shortage and poor effectiveness for information acquisition through an application layer only are avoided, and the trouble brought to users by redundant information collection is avoided.

Description

technical field [0001] The present invention relates to the field of communication technology, in particular to a method and device for statistics of terminal equipment information based on hash nodes. Background technique [0002] At present, most of the smart routers have the function of preventing network increase, and the realization of these anti-scrambling functions is based on the correct acquisition of some information of the terminal equipment connected to the router. The information here refers to the IP address of the mobile phone or computer. , physical address, traffic information, etc. [0003] In the prior art, the general manufacturer's router adopts the method of reading the client list of the DHCP (Dynamic Host Configuration Protocol, Dynamic Host Configuration Protocol) server to obtain the corresponding IP address and physical address information, which is based on the application layer DHCP Device information obtained by the protocol. However, this met...

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
IPC IPC(8): H04L12/26
CPCH04L43/08H04L43/50
Inventor 赵冲
Owner PHICOMM (SHANGHAI) CO LTD
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
Try Eureka
PatSnap group products