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

Method and device for counting terminals, router and storage medium

A technology of routers and terminals, applied in transmission systems, electrical components, wireless communications, etc., can solve problems such as repeated statistics, two MACs in the association list, etc.

Pending Publication Date: 2022-03-08
SHENZHEN GONGJIN ELECTRONICS CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, if the wireless device is a random MAC, when the device is disconnected and reconnects to the router with a new MAC address in a short period of time, some wifi drivers will have some buffer time for processing, which will result in There is a phenomenon that both MACs are in the association list
Because the ARP technology that depends on the MAC address also has a buffer time, the ARP table will show that the two MAC addresses of the same device correspond to two different IPs, resulting in the same device being counted as two different devices, resulting in repeated statistics. question

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
  • Method and device for counting terminals, router and storage medium
  • Method and device for counting terminals, router and storage medium
  • Method and device for counting terminals, router and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0050] Embodiment 1 of the present invention discloses a method for counting terminals, such as figure 1 shown, including the following steps:

[0051] Step S101, when the terminal wirelessly connects to the router, acquire one or more first MAC addresses whose communication status is normal on the router;

[0052] Specifically, when the terminal is connected to the router, the communication status of the device connected to the router can be checked on the router.

[0053] Specifically, for example, based on the ip neigh show command, the MAC address and corresponding communication status of each device currently connected to the router can be viewed on the router.

[0054] Further, the acquiring one or more first MAC addresses whose communication status is normal on the router in step S101 includes:

[0055] Check the MAC address and communication status of each connected device on the router based on the ip neigh show command;

[0056] If the communication states of the ...

Embodiment 2

[0073] In order to further illustrate the present invention, Embodiment 2 of the present invention also discloses a device for statistical terminals, such as Figure 4 shown, including:

[0074] The first acquiring module 201 is configured to acquire one or more first MAC addresses whose communication status is normal on the router when the terminal is wirelessly connected to the router;

[0075] The second obtaining module 202 is configured to determine that there are one or more first MAC addresses whose communication status is abnormal on the router within a preset time after the terminal is disconnected, then determine that there are The terminal is a random MAC device;

[0076] The statistical module 203 is configured to collect statistics on terminals based on MAC addresses whose communication status is normal.

[0077] In a specific embodiment, the first acquiring module 201 is configured to:

[0078] Check the MAC address and communication status of each connected d...

Embodiment 3

[0088] Embodiment 3 of the present invention also discloses a router, including: a memory and a processor, where an application program is stored in the memory, and when the processor executes the application program, the statistical terminal described in Embodiment 1 is implemented. method.

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 embodiment of the invention discloses a terminal statistics method and device, a router and a storage medium, and the method comprises the steps: obtaining one or more first MAC addresses in a normal communication state from the router when a terminal is wirelessly connected with the router; if it is determined that one or more first MAC addresses with abnormal communication states are obtained on the router within a preset time after the terminal is disconnected, it is determined that the terminal is random MAC equipment; and counting the terminals based on the MAC addresses of which the communication states are normal. According to the scheme, the random MAC device can be determined based on the communication state corresponding to the MAC address, and when the random MAC device is determined to appear, statistics is performed on the terminal based on the MAC address of which the communication state is normal, so that repeated statistics can be effectively avoided.

Description

technical field [0001] The invention relates to the technical field of computer network communication, in particular to a method, device, router and storage medium for counting terminals. Background technique [0002] MAC address, its English name is Media Access Control Address, literally translated as media storage control address, also known as physical address or hardware address, it is an address used to confirm the location of the network. In the OSI (OpenSystem Interconnection Reference Model, Open System Interconnection Reference Model) seven-layer model, the third layer of the network layer is responsible for the IP (Internet Protocol, Internet Protocol) address, and the second layer of the data link layer is responsible for the MAC address. . The MAC address is used to uniquely identify a network card in the network. If a device has multiple network cards, each network card needs a unique MAC address. [0003] Among them, random MAC refers to that when the mobile...

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): H04W8/22H04L101/622
CPCH04W8/22Y02D30/70
Inventor 胡建吴明星
Owner SHENZHEN GONGJIN ELECTRONICS CO LTD