Movatterモバイル変換


[0]ホーム

URL:


CN103259878A - MAC address capture method for specific target user of wireless local area network - Google Patents

MAC address capture method for specific target user of wireless local area network
Download PDF

Info

Publication number
CN103259878A
CN103259878ACN2013101354422ACN201310135442ACN103259878ACN 103259878 ACN103259878 ACN 103259878ACN 2013101354422 ACN2013101354422 ACN 2013101354422ACN 201310135442 ACN201310135442 ACN 201310135442ACN 103259878 ACN103259878 ACN 103259878A
Authority
CN
China
Prior art keywords
state set
sta
list
mac address
executing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2013101354422A
Other languages
Chinese (zh)
Other versions
CN103259878B (en
Inventor
杨明
舒明雷
郭强
周书旺
付勇
魏诺
刘瑞霞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
National Supercomputing Center in Jinan
Original Assignee
National Supercomputing Center in Jinan
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by National Supercomputing Center in JinanfiledCriticalNational Supercomputing Center in Jinan
Priority to CN201310135442.2ApriorityCriticalpatent/CN103259878B/en
Publication of CN103259878ApublicationCriticalpatent/CN103259878A/en
Application grantedgrantedCritical
Publication of CN103259878BpublicationCriticalpatent/CN103259878B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Landscapes

Abstract

Translated fromChinese

本发明的针对无线局域网特定目标用户的MAC地址捕获方法,包括:a).数据获取;b).基于哈希表构建状态集和更新RSSI序列,状态集记作:;c).更新WLAN的拓扑结构;d).以周期

Figure DEST_PATH_IMAGE006
,更新并查找RSSI统计均值最大的第一类STA状态集;e).以周期
Figure DEST_PATH_IMAGE008
,更新并查找RSSI统计均值最大的第二类STA状态集;f).判定特定目标用户的MAC地址。本发明的MAC地址捕获方法,支持当前的各种WLAN标准(IEEE802.11a/b/g/n),可用无痕迹、非介入的方式,快速捕获特定目标用户所使用的各种WLAN终端设备的MAC地址,具有多用户适用性、网络连通适用性、无线数据量适用性、取证快速性与无痕性的优点。

Figure 201310135442

The MAC address acquisition method for the specific target user of the wireless local area network of the present invention comprises: a). Data acquisition; b). Building a state set and updating RSSI sequence based on a hash table, state set Referred to as: ; c). Update the topology of the WLAN; d). Periodically

Figure DEST_PATH_IMAGE006
, update and find the first type of STA state set with the largest RSSI statistical mean value; e). Periodically
Figure DEST_PATH_IMAGE008
, update and find the second type of STA state set with the largest RSSI statistical mean value; f). Determine the MAC address of the specific target user. The MAC address acquisition method of the present invention supports various current WLAN standards (IEEE802.11a/b/g/n), and can quickly capture the information of various WLAN terminal devices used by specific target users in a non-trace and non-intervention manner. The MAC address has the advantages of multi-user applicability, network connectivity applicability, wireless data volume applicability, fast evidence collection and no trace.

Figure 201310135442

Description

Translated fromChinese
一种针对无线局域网特定目标用户的MAC地址捕获方法A MAC address acquisition method for specific target users in wireless local area network

技术领域technical field

 本发明涉及一种无线局域网取证方法,特别涉及一种在无线局域网中,以无痕迹、非介入的方式,快速捕获特定目标用户所使用的各种WLAN终端设备(智能手机、平板电脑、笔记本电脑等)的MAC地址的方法。The present invention relates to a wireless local area network forensics method, in particular to a method for quickly capturing various WLAN terminal devices (smart phones, tablet computers, notebook computers) used by specific target users in a wireless local area network in a traceless and non-intervention manner etc.) MAC address method.

背景技术Background technique

伴随中国“无线城市”建设的加快,基于Wi-Fi(Wireless Fidelity,无线保真)技术的WLAN(Wireless Local Area Network,无线局域网)已成为最普及的无线网络形式之一,其传输速率高、覆盖范围广、建设费用低,可较好地弥补3G网络无法满足数据流量激增的问题。然而,WLAN在为社会生活带来极大方便的同时,利用WLAN从事的各种非法行为也逐渐增多。因此,专用于WLAN的取证方法,已成为无线网络研究和计算机取证研究中共同亟待解决的问题。With the acceleration of China's "Wireless City" construction, WLAN (Wireless Local Area Network, Wireless Local Area Network) based on Wi-Fi (Wireless Fidelity) technology has become one of the most popular forms of wireless networks. Wide coverage and low construction costs can better compensate for the problem that the 3G network cannot meet the surge in data traffic. However, while WLAN brings great convenience to social life, various illegal acts using WLAN are gradually increasing. Therefore, a forensic method dedicated to WLAN has become an urgent problem to be solved in both wireless network research and computer forensics research.

WLAN取证的一个典型应用需求是,针对特定的目标用户,以非介入、无痕迹的方式,快速捕获其所使用的WLAN终端设备的MAC(Medium Access Control,媒介访问控制)地址。该MAC地址是对WLAN终端设备内的无线网卡的惟一标识,由6字节的十六进制数字组成,如“00-A1-B0-BF-05-14”。A typical application requirement of WLAN forensics is to quickly capture the MAC (Medium Access Control, Media Access Control) address of the WLAN terminal device used by a specific target user in a non-intrusive and traceless manner. The MAC address is a unique identifier for the wireless network card in the WLAN terminal device, and is composed of 6-byte hexadecimal numbers, such as "00-A1-B0-BF-05-14".

根据IEEE 802.11标准,WLAN中的AP(Access Point,访问接入点)和用户所使用的各种WLAN终端设备,可统称为STA(Station,站点);为示区别,后续表述中的STA专指用户终端设备。捕获特定目标STA的MAC地址,是进一步对其非法网络行为进行监控和取证的前提与基础。According to the IEEE 802.11 standard, APs (Access Points) in WLANs and various WLAN terminal devices used by users can be collectively referred to as STAs (Stations); user terminal equipment. Capturing the MAC address of a specific target STA is the premise and basis for further monitoring and evidence collection of illegal network behaviors.

当前,专用于WLAN取证的方法和技术尚不多,典型的如申请号为“200920222352.6”(无线网络检查取证系统)的专利所提供的系统,具备对大中型无线网络的AP/STA进行扫描,快速获取网络结构全局信息的功能,并可进行漏洞查找、权限控制和文件下载;但其无法适用于针对特定目标进行MAC地址捕获的应用需求。At present, there are not many methods and technologies dedicated to WLAN forensics. A typical system provided by the patent application number "200920222352.6" (Wireless Network Inspection and Forensics System) is capable of scanning APs/STAs in large and medium-sized wireless networks. The function of quickly obtaining the global information of the network structure, and can perform vulnerability finding, authority control and file download; but it cannot be applied to the application requirements of MAC address capture for specific targets.

相关的WLAN检测和监控方法主要分为以下几类。Related WLAN detection and monitoring methods are mainly divided into the following categories.

1、状态监测类。例如申请号为“03812753.9”(确定在无线局域网中的状态)和申请号为“03812564.1”(监视局域网)的专利,提供了基于一个或多个STA与AP间所传输的无线帧来监视WLAN的方法,可建立AP/STA的完整数据库并确定STA的状态,从而对STA的连通性进行诊断。然而该类方法无法从多个STA中,对特定目标的MAC地址和正常用户的MAC地址进行区分。1. Status monitoring class. For example, the patents with the application number "03812753.9" (determining the status in the wireless local area network) and "03812564.1" (monitoring the local area network) provide a method of monitoring WLAN based on wireless frames transmitted between one or more STAs and APs. In the method, a complete database of APs/STAs can be established and the states of the STAs can be determined, so as to diagnose the connectivity of the STAs. However, this type of method cannot distinguish the MAC address of a specific target from the MAC address of a normal user among multiple STAs.

2、安全检测类。例如申请号为“200810304369.6”(移动站、基地台及其侦测攻击的方法)的专利,提供了一种对取消关联或取消鉴权攻击进行检测的方法;申请号为“200610169954.0”(无线局域网中监控非法接入点的方法、设备及系统)的专利,提供了一种可在多个信道内防止合法用户与非法AP建立连接的方法。该类方法虽与WLAN安全和取证应用相关,但其并不适用于针对特定目标进行MAC地址捕获的场景。2. Safety inspection class. For example, the patent application number "200810304369.6" (mobile station, base station and its method for detecting attacks) provides a method for detecting disassociation or deauthentication attacks; the application number is "200610169954.0" (wireless local area network The patent of the method, device and system for monitoring illegal access points) provides a method that can prevent legitimate users from establishing connections with illegal APs in multiple channels. Although this type of method is related to WLAN security and forensics applications, it is not suitable for the scenario of capturing MAC addresses for specific targets.

3、目标定位类。例如申请号为“201010102025.4”(无线局域网中设备定位和跟踪方法及装置)和申请号为“200910147726.7”(一种无线局域网中的定位方法和装置)的专利,基于无线信号强度统计技术,分别提供了在无基础设施的场景和在已建立信号强度与位置的对应关系数据库的场景中,对目标STA/AP进行定位的方法。然而该类方法的本质是在已知特定目标MAC地址的情况下,对其所在位置进行检测,恰与本发明所提的WLAN取证场景相反。3. Target positioning class. For example, patents with application number "201010102025.4" (method and device for locating and tracking equipment in a wireless local area network) and patents with application number "200910147726.7" (a method and device for positioning in a wireless local area network), based on wireless signal strength statistics technology, respectively provide The method of locating the target STA/AP is presented in the scenario without infrastructure and in the scenario where the corresponding relationship database between signal strength and location has been established. However, the essence of this type of method is to detect the location of a specific target when its MAC address is known, which is just the opposite of the WLAN forensics scenario proposed in the present invention.

综上所述,当前的各类WLAN取证与监测方法和技术,并不适用于针对特定目标进行MAC地址无痕捕获的应用需求。To sum up, the current various WLAN forensics and monitoring methods and technologies are not suitable for the application requirements of traceless capture of MAC addresses for specific targets.

发明内容Contents of the invention

本发明为了克服上述技术问题的缺点,提供了一种可快速捕获特定目标用户所使用的各种WLAN终端设备的MAC地址的方法。In order to overcome the disadvantages of the above-mentioned technical problems, the present invention provides a method for quickly capturing the MAC addresses of various WLAN terminal devices used by specific target users.

本发明的针对无线局域网特定目标用户的MAC地址捕获方法,AP为WLAN中的访问接入点,STA为用户终端设备,RSSI为接收信号强度指标,其特别之处在于,依次包括以下步骤:a).数据获取,选取与特定目标STA相距较近、与其他用户相距较远的位置,基于信道扫描策略、时间阈值策略和数据量阈值策略,获取WLAN内通过空中链路传输的各类无线帧;b).基于哈希表构建状态集和更新RSSI序列,设集合                                               

Figure 2013101354422100002DEST_PATH_IMAGE002
为一个STA或AP的状态信息的集合,称为“状态集”,
Figure 726223DEST_PATH_IMAGE002
记作:According to the MAC address acquisition method for specific target users in wireless local area network of the present invention, AP is an access point in WLAN, STA is a user terminal device, and RSSI is a received signal strength indicator, and its special feature is that it includes the following steps in sequence: a ). Data acquisition, select a location that is close to a specific target STA and far from other users, and based on the channel scanning strategy, time threshold strategy and data volume threshold strategy, obtain various wireless frames transmitted through the air link in the WLAN ; b). Construct a state set and update the RSSI sequence based on the hash table, set the set
Figure 2013101354422100002DEST_PATH_IMAGE002
A collection of state information of a STA or AP, called "state set",
Figure 726223DEST_PATH_IMAGE002
Referred to as:

Figure 2013101354422100002DEST_PATH_IMAGE004
Figure 2013101354422100002DEST_PATH_IMAGE004

其中,

Figure 2013101354422100002DEST_PATH_IMAGE006
为长度为6字节的序列,存储STA/AP的MAC地址;由于MAC地址的惟一性,可将作为对该状态集
Figure 989812DEST_PATH_IMAGE002
的惟一标识;
Figure 2013101354422100002DEST_PATH_IMAGE008
为最大长度为
Figure 2013101354422100002DEST_PATH_IMAGE010
的序列,存储已捕获的源MAC地址为
Figure 132824DEST_PATH_IMAGE006
的各无线帧的RSSI值,各元素为-90至20之间的整数值,度量单位为dBm;
Figure 2013101354422100002DEST_PATH_IMAGE012
表示实体的类型,
Figure 2013101354422100002DEST_PATH_IMAGE014
表示其为AP,
Figure 2013101354422100002DEST_PATH_IMAGE016
表示其为STA,
Figure 2013101354422100002DEST_PATH_IMAGE018
表示其类型尚未确定;
Figure 2013101354422100002DEST_PATH_IMAGE020
:仅当时有效,存储该AP的SSID;
Figure 2013101354422100002DEST_PATH_IMAGE022
:仅当
Figure 659674DEST_PATH_IMAGE014
时有效,存储该AP当前使用的无线信道号;
Figure 2013101354422100002DEST_PATH_IMAGE024
:仅当
Figure 51341DEST_PATH_IMAGE014
时有效,用于索引该AP的各STA子节点,是最大长度为
Figure 2013101354422100002DEST_PATH_IMAGE026
的序列,各元素分别为各子节点所对应的STA状态集的存储地址;
Figure 2013101354422100002DEST_PATH_IMAGE028
为布尔型数值,指示
Figure 505368DEST_PATH_IMAGE002
内的各状态信息是否完备,当
Figure 361197DEST_PATH_IMAGE014
时,用于指示是否已获取该AP的
Figure 603829DEST_PATH_IMAGE020
Figure 420475DEST_PATH_IMAGE022
数据项;当
Figure 344437DEST_PATH_IMAGE016
时,用于指示是否已将该STA状态集的存储地址插入其父节点的
Figure 173548DEST_PATH_IMAGE024
序列;针对步骤a)所获取的每个无线帧,基于哈希表内“MAC地址→状态集
Figure 790343DEST_PATH_IMAGE002
存储地址”的直接映射,快速查找或构建该帧的源MAC地址
Figure 2013101354422100002DEST_PATH_IMAGE030
所对应的状态集
Figure 969651DEST_PATH_IMAGE002
,并将该帧的RSSI值
Figure 2013101354422100002DEST_PATH_IMAGE032
更新至序列
Figure 494042DEST_PATH_IMAGE008
;c).更新WLAN的拓扑结构:根据标志
Figure 137513DEST_PATH_IMAGE028
,确定是否处理状态集内与拓扑相关的数据项
Figure 472680DEST_PATH_IMAGE012
Figure 214611DEST_PATH_IMAGE024
,根据帧类型和子帧类型,判定状态集类型以及STA/AP之间的关联关系,构建并更新基于“AP链表+
Figure 923941DEST_PATH_IMAGE024
序列”的WLAN拓扑结构;AP链表是一个线性链表,可对哈希表内的AP状态集进行索引,AP链表内各节点的结构为:in,
Figure 2013101354422100002DEST_PATH_IMAGE006
is a sequence of 6 bytes in length, storing the MAC address of the STA/AP; due to the uniqueness of the MAC address, the as the state set
Figure 989812DEST_PATH_IMAGE002
unique identifier of
Figure 2013101354422100002DEST_PATH_IMAGE008
is a maximum length of
Figure 2013101354422100002DEST_PATH_IMAGE010
sequence, storing the captured source MAC address as
Figure 132824DEST_PATH_IMAGE006
The RSSI value of each wireless frame of , each element is an integer value between -90 and 20, and the measurement unit is dBm;
Figure 2013101354422100002DEST_PATH_IMAGE012
Indicates the type of entity,
Figure 2013101354422100002DEST_PATH_IMAGE014
Indicates that it is an AP,
Figure 2013101354422100002DEST_PATH_IMAGE016
Indicates that it is STA,
Figure 2013101354422100002DEST_PATH_IMAGE018
Indicates that its type has not been determined;
Figure 2013101354422100002DEST_PATH_IMAGE020
: only if Valid when the AP is active, store the SSID of the AP;
Figure 2013101354422100002DEST_PATH_IMAGE022
: only if
Figure 659674DEST_PATH_IMAGE014
Valid when the AP is currently used, store the wireless channel number currently used;
Figure 2013101354422100002DEST_PATH_IMAGE024
: only if
Figure 51341DEST_PATH_IMAGE014
It is valid when it is used to index each STA child node of the AP, and the maximum length is
Figure 2013101354422100002DEST_PATH_IMAGE026
The sequence of , each element is the storage address of the STA state set corresponding to each child node;
Figure 2013101354422100002DEST_PATH_IMAGE028
is a Boolean value indicating
Figure 505368DEST_PATH_IMAGE002
Whether the status information in the is complete, when
Figure 361197DEST_PATH_IMAGE014
, used to indicate whether the AP has been obtained
Figure 603829DEST_PATH_IMAGE020
and
Figure 420475DEST_PATH_IMAGE022
data item; when
Figure 344437DEST_PATH_IMAGE016
, used to indicate whether the storage address of the STA state set has been inserted into its parent node
Figure 173548DEST_PATH_IMAGE024
sequence; for each wireless frame obtained in step a), based on the "MAC address → state set" in the hash table
Figure 790343DEST_PATH_IMAGE002
Stored address" direct mapping, quickly find or construct the source MAC address of the frame
Figure 2013101354422100002DEST_PATH_IMAGE030
The corresponding state set
Figure 969651DEST_PATH_IMAGE002
, and the RSSI value of the frame
Figure 2013101354422100002DEST_PATH_IMAGE032
update to sequence
Figure 494042DEST_PATH_IMAGE008
; c). Update the topology of the WLAN: according to the sign
Figure 137513DEST_PATH_IMAGE028
, to determine whether to process topology-related data items in the state set
Figure 472680DEST_PATH_IMAGE012
, , and
Figure 214611DEST_PATH_IMAGE024
, according to the frame type and subframe type, determine the state set type and the association relationship between STA/AP, build and update based on the "AP linked list +
Figure 923941DEST_PATH_IMAGE024
sequence" WLAN topology; the AP linked list is a linear linked list that can index the AP state set in the hash table. The structure of each node in the AP linked list is:

Figure 2013101354422100002DEST_PATH_IMAGE034
Figure 2013101354422100002DEST_PATH_IMAGE034

d).以时间

Figure 2013101354422100002DEST_PATH_IMAGE036
为周期,对WLAN拓扑结构进行遍历,利用WLAN拓扑结构内的AP状态集和第一类STA状态集,更新现有拓扑树列表内的节点数据,并查找、标记RSSI统计均值
Figure 2013101354422100002DEST_PATH_IMAGE038
最大的STA;第一类STA状态集是
Figure 67390DEST_PATH_IMAGE016
的状态集;拓扑树列表是采用树状分层列表的形式,对WLAN拓扑结构内的各AP状态集和第一类STA状态集的输出显示结果;
Figure 901678DEST_PATH_IMAGE038
是对序列
Figure 191845DEST_PATH_IMAGE008
内所有元素的统计均值;e).以时间
Figure 2013101354422100002DEST_PATH_IMAGE042
为周期,对哈希表内的第二类STA状态集进行遍历,利用第二类STA状态集,更新现有未关联列表内的节点数据,并查找、标记RSSI统计均值最大的STA;第二类STA状态集是
Figure 2013101354422100002DEST_PATH_IMAGE046
的状态集;未关联列表是采用单层列表的形式,对各第二类STA状态集的输出显示结果;f).判定特定目标用户的MAC地址,当步骤d)所述拓扑树列表内和步骤e)所述未关联列表内所标记的
Figure 699891DEST_PATH_IMAGE038
最大的STA节点都保持稳定时,比较两个步骤中STA的RSSI统计均值,两者之中具有较大
Figure 120508DEST_PATH_IMAGE038
的STA节点所对应的MAC地址,即为特定目标用户的MAC地址。d). by time
Figure 2013101354422100002DEST_PATH_IMAGE036
As a cycle, traverse the WLAN topology structure, use the AP state set and the first type STA state set in the WLAN topology structure, update the node data in the existing topology tree list, and find and mark the statistical mean value of RSSI
Figure 2013101354422100002DEST_PATH_IMAGE038
The largest STA; the first type of STA state set is
Figure 67390DEST_PATH_IMAGE016
and The state set; the topology tree list is in the form of a tree-like hierarchical list, and displays the results of the output of each AP state set and the first type of STA state set in the WLAN topology;
Figure 901678DEST_PATH_IMAGE038
is the sequence
Figure 191845DEST_PATH_IMAGE008
The statistical mean of all elements in; e). In time
Figure 2013101354422100002DEST_PATH_IMAGE042
As a cycle, traverse the second type of STA state set in the hash table, use the second type of STA state set to update the node data in the existing unassociated list, and find and mark the statistical mean value of RSSI The largest STA; the second type of STA state set is and
Figure 2013101354422100002DEST_PATH_IMAGE046
The state set; The unassociated list is in the form of a single-layer list, and displays the results of the output of each second class STA state set; f). Determine the MAC address of the specific target user, when step d) and in the topological tree list Step e) marked in the unassociated list
Figure 699891DEST_PATH_IMAGE038
When the largest STA nodes remain stable, compare the RSSI statistical mean values of the STAs in the two steps, and the one with the larger
Figure 120508DEST_PATH_IMAGE038
The MAC address corresponding to the STA node is the MAC address of the specific target user.

AP为Access Point;STA为Station,这里专指用户终端设备;RSSI为Received Signal Strength Indicator,是对所接收WLAN无线信号的一种能量测度指标,所测得的关于某STA的RSSI,将随测量点与该STA之间距离的增大而减小;在步骤a)中,选取与特定目标STA相距较近、与其他用户相距较远的位置来捕获无线帧,故具有最大RSSI统计均值的STA所对应的MAC地址,即为特定目标用户的MAC地址。步骤b)中,将每个STA/AP状态集

Figure 780028DEST_PATH_IMAGE002
作为一条记录,以
Figure 80428DEST_PATH_IMAGE006
作为该记录的关键字,构建关于接收范围内各STA/AP状态集的哈希表,因此可实现由无线帧源MAC地址到所对应状态集在哈希表内的存储位置的直接映射。步骤c)中,AP链表可对AP状态集进行索引,AP状态集内的
Figure 5659DEST_PATH_IMAGE024
序列可对其各STA子节点进行索引,因此可在稀疏度较大的哈希表内,为所出现的STA/AP状态集构建快速有效的索引。步骤d)和步骤e)对两类STA状态集采用不同的方法,分别周期性地统计与更新具有最大RSSI统计均值的STA状态集。步骤f)可将具有全局最大RSSI统计均值的STA判定为特定目标用户,从而获取其MAC地址。AP is Access Point; STA is Station, which specifically refers to user terminal equipment; RSSI is Received Signal Strength Indicator, which is an energy measurement index for received WLAN wireless signals. The measured RSSI of a certain STA will be measured with The distance between the point and the STA increases and decreases; in step a), select a position that is closer to the specific target STA and farther away from other users to capture wireless frames, so the STA with the largest RSSI statistical mean The corresponding MAC address is the MAC address of the specific target user. In step b), each STA/AP state set
Figure 780028DEST_PATH_IMAGE002
as a record with
Figure 80428DEST_PATH_IMAGE006
As the key of this record, a hash table about each STA/AP state set in the receiving range is constructed, so the direct mapping from the wireless frame source MAC address to the storage location of the corresponding state set in the hash table can be realized. In step c), the AP linked list can index the AP state set, and the AP state set
Figure 5659DEST_PATH_IMAGE024
The sequence can index each of its STA child nodes, so it can construct a fast and effective index for the STA/AP state set that appears in the hash table with a large sparsity. Step d) and step e) adopt different methods for the two types of STA state sets, and respectively periodically count and update the STA state set with the largest RSSI statistical mean value. Step f) can determine the STA with the global maximum RSSI statistical mean value as a specific target user, so as to obtain its MAC address.

本发明的针对无线局域网特定目标用户的MAC地址捕获方法,设置标志

Figure 2013101354422100002DEST_PATH_IMAGE048
,若
Figure 2013101354422100002DEST_PATH_IMAGE050
,表示从首个可用信道开始依次对所有信道进行扫描,若
Figure 2013101354422100002DEST_PATH_IMAGE052
,表示对特定信道进行扫描;其特征在于,步骤a)所述数据获取包括以下步骤:a-1).判断信道扫描策略,判断
Figure 660326DEST_PATH_IMAGE048
的值,若
Figure 95724DEST_PATH_IMAGE050
,将待扫描信道设置为全部可用信道中的首个信道;若
Figure 380075DEST_PATH_IMAGE052
,则将待扫描信道设置为输入值
Figure 2013101354422100002DEST_PATH_IMAGE054
所对应的信道;a-2).将工作模式设置为射频监听模式;该模式下可对当前扫描信道内各STA/AP传输的所有无线帧进行捕获;a-3).捕获无线帧并进行校验,捕获一个无线帧并进行CRC校验,如果经CRC校验不正确,则将该帧丢弃并重新捕获一个无线帧;如果CRC校验正确,则将该帧暂存至缓冲区,执行步骤a-4);a-4).捕获时间阈值的判断,判断捕获无线帧的时间是否达到捕获时间阈值
Figure 2013101354422100002DEST_PATH_IMAGE056
,如果达到
Figure 41869DEST_PATH_IMAGE056
,则执行步骤a-6);若未达到,则执行步骤a-5);a-5).捕获数据量阈值的判断,判断捕获无线帧的数据量是否达到捕获数据量阈值,如果达到,则执行步骤a-6);若未达到
Figure 319420DEST_PATH_IMAGE058
,则执行步骤a-3);a-6).提交数据,对暂存在缓冲区内的无线帧数据进行批量提交,执行步骤a-7);a-7).判断
Figure 156926DEST_PATH_IMAGE048
,判断
Figure 723036DEST_PATH_IMAGE048
的值,如果,则监听下一个可用信道;若,则重新对当前信道进行监听;执行步骤a-3)。The present invention is aimed at the MAC address acquisition method of the specific target user of the wireless local area network, and the flag is set
Figure 2013101354422100002DEST_PATH_IMAGE048
,like
Figure 2013101354422100002DEST_PATH_IMAGE050
, which means to scan all channels sequentially starting from the first available channel, if
Figure 2013101354422100002DEST_PATH_IMAGE052
, indicating that a specific channel is scanned; it is characterized in that the data acquisition in step a) includes the following steps: a-1). Judging the channel scanning strategy, judging
Figure 660326DEST_PATH_IMAGE048
value, if
Figure 95724DEST_PATH_IMAGE050
, set the channel to be scanned as the first channel among all available channels; if
Figure 380075DEST_PATH_IMAGE052
, then set the channel to be scanned to the input value
Figure 2013101354422100002DEST_PATH_IMAGE054
The corresponding channel; a-2). Set the working mode to RF monitoring mode; in this mode, all wireless frames transmitted by each STA/AP in the current scanning channel can be captured; a-3). Capture wireless frames and perform Check, capture a wireless frame and perform CRC check, if the CRC check is incorrect, discard the frame and recapture a wireless frame; if the CRC check is correct, temporarily store the frame to the buffer, execute Step a-4); a-4). Judging the capture time threshold, judging whether the time to capture the wireless frame reaches the capture time threshold
Figure 2013101354422100002DEST_PATH_IMAGE056
, if reaching
Figure 41869DEST_PATH_IMAGE056
, then execute step a-6); if not reached , then execute step a-5); a-5). Judgment of the captured data volume threshold, judging whether the data volume of the captured wireless frame reaches the captured data volume threshold , if reaching , then execute step a-6); if not reached
Figure 319420DEST_PATH_IMAGE058
, execute steps a-3); a-6). Submit data, submit batches of wireless frame data temporarily stored in the buffer, and execute steps a-7); a-7). Judgment
Figure 156926DEST_PATH_IMAGE048
,judge
Figure 723036DEST_PATH_IMAGE048
value, if , then monitor the next available channel; if , then monitor the current channel again; execute step a-3).

本发明的针对无线局域网特定目标用户的MAC地址捕获方法,步骤b)所述基于哈希表构建状态集和更新RSSI序列包括以下步骤:b-1).读取无线帧并判断其类型;从步骤a)所提交的批量数据中读取一个无线帧,并判断其是否为控制帧中的CTS或ACK子帧,如果为CTS或ACK子帧,则重新执行步骤b-1);如果既不是CTS子帧也不是ACK子帧,则获取该帧的源MAC地址

Figure 959348DEST_PATH_IMAGE030
和强度信号
Figure 266833DEST_PATH_IMAGE032
;这里CTS为Clear To Send的缩写,为清除待发子帧,ACK为Acknowledge的缩写,为确认子帧,这两种子帧内均不含源端的MAC地址;b-2).以
Figure 157429DEST_PATH_IMAGE030
的后两字节计算源MAC对应的哈希地址
Figure 2013101354422100002DEST_PATH_IMAGE060
,并判断该哈希地址处的记录是否为空,如果为空则执行步骤b-3);如果不为空,则执行步骤b-4);b-3).在哈希地址
Figure 79117DEST_PATH_IMAGE060
处新建状态集
Figure 2013101354422100002DEST_PATH_IMAGE062
,并对状态集
Figure 874904DEST_PATH_IMAGE062
进行初始化,将
Figure 48396DEST_PATH_IMAGE062
作为
Figure 996761DEST_PATH_IMAGE030
对应的状态集,执行步骤b-7);The present invention is aimed at the MAC address acquisition method of the specific target user of wireless local area network, and step b) described based on hash table builds state collection and updates RSSI sequence and comprises the following steps: b-1). Read wireless frame and judge its type; From Step a) Read a wireless frame from the batch data submitted, and judge whether it is a CTS or ACK subframe in the control frame, if it is a CTS or ACK subframe, then re-execute step b-1); if neither If the CTS subframe is not an ACK subframe, then obtain the source MAC address of the frame
Figure 959348DEST_PATH_IMAGE030
and strength signal
Figure 266833DEST_PATH_IMAGE032
; Here CTS is the abbreviation of Clear To Send, for clearing the subframe to be sent, and ACK is the abbreviation of Acknowledge, for confirming the subframe, the MAC address of the source end is not included in these two subframes; b-2).
Figure 157429DEST_PATH_IMAGE030
The hash address corresponding to the source MAC is calculated by the last two bytes
Figure 2013101354422100002DEST_PATH_IMAGE060
, and judge whether the record at the hash address is empty, if it is empty, execute step b-3); if not empty, execute step b-4); b-3). At the hash address
Figure 79117DEST_PATH_IMAGE060
new state set
Figure 2013101354422100002DEST_PATH_IMAGE062
, and for the state set
Figure 874904DEST_PATH_IMAGE062
to initialize, the
Figure 48396DEST_PATH_IMAGE062
as
Figure 996761DEST_PATH_IMAGE030
For the corresponding state set, perform step b-7);

Figure 964717DEST_PATH_IMAGE030
映射到哈希地址的哈希函数可表示为:Depend on
Figure 964717DEST_PATH_IMAGE030
A hash function mapped to a hash address can be expressed as:

Figure 2013101354422100002DEST_PATH_IMAGE064
Figure 2013101354422100002DEST_PATH_IMAGE064

对于MAC地址后两字节相同而造成哈希表冲突的所有状态集,都存储在同一线性链表中;b-4).判断是否存在哈希表冲突,将哈希地址处的状态集记作

Figure 914665DEST_PATH_IMAGE002
,判断
Figure 2013101354422100002DEST_PATH_IMAGE066
是否成立,如果成立,则将
Figure 779852DEST_PATH_IMAGE002
记作
Figure 105660DEST_PATH_IMAGE062
,作为
Figure 689088DEST_PATH_IMAGE030
对应的状态集,执行步骤b-7);如果不成立,则执行步骤b-5);b-5).遍历冲突链表,以
Figure 876487DEST_PATH_IMAGE060
处的状态集为链表头结点,遍历读取链表节点内的状态集,查找是否存在
Figure 358470DEST_PATH_IMAGE066
的状态集,如有满足条件的状态集存在,则将
Figure 429194DEST_PATH_IMAGE002
记作
Figure 420284DEST_PATH_IMAGE062
,作为对应的状态集,执行步骤b-7);如果遍历完冲突链表,均没有满足条件的状态集存在,则执行步骤b-6);b-6).新建状态集,新建状态集
Figure 865358DEST_PATH_IMAGE062
并将其添加至现有冲突链表的末端,并对状态集
Figure 157799DEST_PATH_IMAGE062
进行初始化,将
Figure 14896DEST_PATH_IMAGE062
作为
Figure 896134DEST_PATH_IMAGE030
对应的状态集,执行步骤b-7);b-7).判断存储信号强度的序列是否已满,以表示状态集
Figure 547695DEST_PATH_IMAGE062
Figure 2013101354422100002DEST_PATH_IMAGE070
序列当前实际存储数据的长度,
Figure 530694DEST_PATH_IMAGE010
为其最大长度,
Figure 112854DEST_PATH_IMAGE010
为偶数;判断是否成立,如果成立,则将该帧的
Figure 661647DEST_PATH_IMAGE032
值插入序列
Figure 687372DEST_PATH_IMAGE070
的末端,即存入
Figure 2013101354422100002DEST_PATH_IMAGE074
之中;如果不成立,表明
Figure 79039DEST_PATH_IMAGE068
已达序列最大长度,则执行步骤b-8);b-8).释放序列的部分空间并存储,以
Figure 2013101354422100002DEST_PATH_IMAGE076
表示原序列,
Figure 64816DEST_PATH_IMAGE070
表示更新后的序列;将
Figure 819145DEST_PATH_IMAGE076
前半段数据的均值作为
Figure 2013101354422100002DEST_PATH_IMAGE078
的值,将
Figure 686650DEST_PATH_IMAGE076
的后半段数据平移至
Figure 2013101354422100002DEST_PATH_IMAGE080
,并将该帧的
Figure 210035DEST_PATH_IMAGE032
插入
Figure 2013101354422100002DEST_PATH_IMAGE082
之中。All state sets that cause hash table conflicts due to the same last two bytes of the MAC address are stored in the same linear linked list; b-4). To determine whether there is a hash table conflict, the hash address The state set at
Figure 914665DEST_PATH_IMAGE002
,judge
Figure 2013101354422100002DEST_PATH_IMAGE066
Whether it is established, and if it is established, it will be
Figure 779852DEST_PATH_IMAGE002
Referred to as
Figure 105660DEST_PATH_IMAGE062
, as
Figure 689088DEST_PATH_IMAGE030
For the corresponding state set, execute step b-7); if not established, execute step b-5); b-5). Traverse the conflict list to
Figure 876487DEST_PATH_IMAGE060
The state set at is the head node of the linked list, traverse and read the state set in the linked list node , to find out whether there is
Figure 358470DEST_PATH_IMAGE066
The state set of , if there is a state set that satisfies the condition, then the
Figure 429194DEST_PATH_IMAGE002
Referred to as
Figure 420284DEST_PATH_IMAGE062
, as For the corresponding state set, execute step b-7); if there is no state set that satisfies the condition after traversing the conflict list, then execute step b-6); b-6). Create a new state set, create a new state set
Figure 865358DEST_PATH_IMAGE062
and add it to the end of the existing conflict list, and to the state set
Figure 157799DEST_PATH_IMAGE062
to initialize, the
Figure 14896DEST_PATH_IMAGE062
as
Figure 896134DEST_PATH_IMAGE030
For the corresponding state set, perform step b-7); b-7). Determine whether the sequence for storing signal strength is full, and use Represents a state set
Figure 547695DEST_PATH_IMAGE062
middle
Figure 2013101354422100002DEST_PATH_IMAGE070
The length of the actual data currently stored in the sequence,
Figure 530694DEST_PATH_IMAGE010
is its maximum length,
Figure 112854DEST_PATH_IMAGE010
is an even number; judgment is true, if true, the frame's
Figure 661647DEST_PATH_IMAGE032
value insertion sequence
Figure 687372DEST_PATH_IMAGE070
at the end of the
Figure 2013101354422100002DEST_PATH_IMAGE074
among; if not established, indicate
Figure 79039DEST_PATH_IMAGE068
Maximum sequence length reached , then perform step b-8); b-8). Release part of the space of the sequence and store ,by
Figure 2013101354422100002DEST_PATH_IMAGE076
represents the original sequence,
Figure 64816DEST_PATH_IMAGE070
Indicates the updated sequence; the
Figure 819145DEST_PATH_IMAGE076
The mean of the first half of the data is taken as
Figure 2013101354422100002DEST_PATH_IMAGE078
value, will
Figure 686650DEST_PATH_IMAGE076
The second half of the data is shifted to
Figure 2013101354422100002DEST_PATH_IMAGE080
, and the frame's
Figure 210035DEST_PATH_IMAGE032
insert
Figure 2013101354422100002DEST_PATH_IMAGE082
among.

本发明的针对无线局域网特定目标用户的MAC地址捕获方法,设所捕获无线帧的目的MAC地址为

Figure 2013101354422100002DEST_PATH_IMAGE084
为目的MAC地址
Figure 764513DEST_PATH_IMAGE084
所对应的状态集;源MAC地址为
Figure 740560DEST_PATH_IMAGE030
Figure 405896DEST_PATH_IMAGE062
为源MAC地址
Figure 236318DEST_PATH_IMAGE030
所对应的状态集;步骤c)所述更新WLAN的拓扑结构包括以下步骤:c-1).判断无线帧的类型,对于步骤b-1)所读取的无线帧,若为管理帧则执行步骤c-2),若为控制帧则执行步骤c-3),若为数据帧则执行步骤c-4);c-2).判断管理帧的子类型,若为探测请求则执行步骤c-2-1),若为信标则执行步骤c-2-2),若为探测响应则执行步骤c-2-3),若为关联响应或重新关联响应则执行步骤c-2-4),若为关联请求或重新关联请求则执行步骤c-2-5);c-2-1).判断是否成立,如果成立,则令
Figure 2013101354422100002DEST_PATH_IMAGE090
,返回步骤b-1);如果不成立,返回步骤b-1);c-2-2).判断
Figure 2013101354422100002DEST_PATH_IMAGE092
是否成立,如果成立,返回步骤b-1);如果不成立,则执行步骤c-2-2-1);c-2-2-1).判断
Figure 509167DEST_PATH_IMAGE088
是否成立,如果成立,设置
Figure 2013101354422100002DEST_PATH_IMAGE094
,并将
Figure 425040DEST_PATH_IMAGE062
的存储地址插入AP链表的末端,执行步骤c-2-2-2);如果不成立,则执行步骤c-2-2-2);c-2-2-2).根据帧体内容获取
Figure 2013101354422100002DEST_PATH_IMAGE096
Figure 2013101354422100002DEST_PATH_IMAGE098
的值,并设置
Figure 441537DEST_PATH_IMAGE092
,返回步骤b-1);c-2-3).判断
Figure 126465DEST_PATH_IMAGE092
是否成立,如果成立,执行步骤c-2-3-3);如果不成立,则执行步骤c-2-3-1);c-2-3-1).判断
Figure 632533DEST_PATH_IMAGE088
是否成立,如果不成立,则执行步骤c-2-3-2);如果成立,则先设置
Figure 848751DEST_PATH_IMAGE094
,并将的存储地址插入AP链表的末端,再执行步骤c-2-3-2);c-2-3-2).根据帧体内容获取
Figure 21423DEST_PATH_IMAGE096
Figure 88605DEST_PATH_IMAGE098
的值,并设置,执行步骤c-2-3-3);c-2-3-3).基于哈希表查找目的MAC地址
Figure 947157DEST_PATH_IMAGE084
所对应的状态集,并判断状态集
Figure 454547DEST_PATH_IMAGE086
中的
Figure 2013101354422100002DEST_PATH_IMAGE100
是否成立,如果成立,则设置,返回步骤b-1);如果不成立,返回步骤b-1);c-2-4).判断是否成立,如果不成立,则执行步骤c-2-4-1);如果成立,则设置
Figure 722860DEST_PATH_IMAGE094
,并将
Figure 49936DEST_PATH_IMAGE062
的存储地址插入AP链表的末端,再执行步骤c-2-4-1);c-2-4-1).基于哈希表查找目的MAC地址
Figure 271970DEST_PATH_IMAGE084
所对应的状态集
Figure 871448DEST_PATH_IMAGE086
,并判断状态集
Figure 633868DEST_PATH_IMAGE086
中的
Figure 753133DEST_PATH_IMAGE100
是否成立,如果成立,则设置
Figure 208385DEST_PATH_IMAGE102
,返回步骤b-1);如果不成立,返回步骤b-1);c-2-5).判断
Figure 108208DEST_PATH_IMAGE088
是否成立,如果不成立,则执行步骤c-2-5-1);如果成立,则先设置,再执行步骤c-2-5-1);c-2-5-1).基于哈希表查找目的MAC地址
Figure 835042DEST_PATH_IMAGE084
所对应的状态集,并判断
Figure 2013101354422100002DEST_PATH_IMAGE104
是否成立,如果成立,则返回步骤b-1);如果不成立,则执行步骤c-2-5-2);c-2-5-2).判断
Figure 35265DEST_PATH_IMAGE100
是否成立,如果不成立,则执行步骤c-2-5-3);如果成立,则设置
Figure 2013101354422100002DEST_PATH_IMAGE106
,并将
Figure 77170DEST_PATH_IMAGE086
的存储地址插入AP链表的末端,再执行步骤c-2-5-3);c-2-5-3).判断
Figure 2013101354422100002DEST_PATH_IMAGE108
的内容是否为空,如果不为空,直接返回步骤b-1);如果为空,则根据帧体内容,获取
Figure 420296DEST_PATH_IMAGE108
的值,再返回步骤b-1);c-3).判断控制帧的子类型,若为节能轮询,则基于哈希表查找目的MAC地址所对应的状态集
Figure 763869DEST_PATH_IMAGE086
,执行步骤c-3-1);若为其它子类型,则返回步骤b-1);c-3-1).判断
Figure 937362DEST_PATH_IMAGE092
是否成立,如果成立,则执行步骤c-3-4);如果不成立,则执行步骤c-3-2);c-3-2).判断
Figure 948043DEST_PATH_IMAGE088
是否成立,如果不成立,则执行步骤c-3-3);如果成立,先设置
Figure 102950DEST_PATH_IMAGE090
,再执行步骤c-3-3);c-3-3).将的存储地址插入其父节点
Figure 2013101354422100002DEST_PATH_IMAGE110
序列的末端,且序列
Figure 2013101354422100002DEST_PATH_IMAGE112
的长度增加1;并设置,执行步骤c-3-4);c-3-4).判断是否成立,如果不成立,返回步骤b-1);如果成立,则设置
Figure 750356DEST_PATH_IMAGE106
,并将
Figure 72DEST_PATH_IMAGE086
的存储地址插入AP链表的末端,返回步骤b-1);c-4).基于哈希表,查找目的MAC地址对应的状态集
Figure 232787DEST_PATH_IMAGE086
;判断数据帧的传输方向,若为上行帧则执行步骤c-4-1);若其为下行帧则执行步骤c-4-2);c-4-1).判断
Figure 303511DEST_PATH_IMAGE092
是否成立,如果成立,则执行步骤c-4-1-3);如果不成立,则执行步骤c-4-1-1);c-4-1-1).判断是否成立,如果不成立,则执行步骤c-4-1-2);如果成立,则先设置
Figure 401227DEST_PATH_IMAGE090
,再执行步骤c-4-1-2);c-4-1-2).将
Figure 819570DEST_PATH_IMAGE062
的存储地址插入其父节点
Figure 112011DEST_PATH_IMAGE086
Figure 93742DEST_PATH_IMAGE110
序列的末端,且序列
Figure 37296DEST_PATH_IMAGE112
的长度
Figure 62759DEST_PATH_IMAGE114
增加1;设置,执行步骤c-4-1-3);c-4-1-3).判断
Figure 503285DEST_PATH_IMAGE100
是否成立,如果不成立,则返回步骤b-1);如果成立,则设置
Figure 239028DEST_PATH_IMAGE106
,并将
Figure 264753DEST_PATH_IMAGE086
的存储地址插入AP链表的末端,返回步骤b-1);c-4-2).判断
Figure 531787DEST_PATH_IMAGE088
是否成立,如果不成立,则执行步骤c-4-2-1);如果成立,则设置
Figure 595601DEST_PATH_IMAGE094
,并将
Figure 451430DEST_PATH_IMAGE062
的存储地址插入AP链表的末端,执行步骤c-4-2-1);c-4-2-1).判断是否成立,如果成立,则返回步骤b-1);如果不成立,则执行步骤c-4-2-2);c-4-2-2).判断
Figure 136806DEST_PATH_IMAGE100
是否成立,如果不成立,则执行步骤c-4-2-3);如果成立,则先设置
Figure 139397DEST_PATH_IMAGE102
,再执行步骤c-4-2-3);c-4-2-3).将的存储地址插入其父节点
Figure 13998DEST_PATH_IMAGE062
Figure 193307DEST_PATH_IMAGE110
序列的末端,且序列
Figure 2013101354422100002DEST_PATH_IMAGE116
的长度增加1;设置
Figure 361169DEST_PATH_IMAGE104
,返回步骤b-1)。The present invention is directed at the MAC address acquisition method of wireless local area network specific target user, suppose the purpose MAC address of captured wireless frame is
Figure 2013101354422100002DEST_PATH_IMAGE084
, destination MAC address
Figure 764513DEST_PATH_IMAGE084
The corresponding state set; the source MAC address is
Figure 740560DEST_PATH_IMAGE030
,
Figure 405896DEST_PATH_IMAGE062
is the source MAC address
Figure 236318DEST_PATH_IMAGE030
Corresponding state set; Step c) said updating the topology of WLAN includes the following steps: c-1). Judging the type of wireless frame, for the wireless frame read in step b-1), if it is a management frame, then execute Step c-2), if it is a control frame, execute step c-3), if it is a data frame, execute step c-4); c-2). Determine the subtype of the management frame, if it is a detection request, execute step c -2-1), if it is a beacon, execute step c-2-2), if it is a probe response, execute step c-2-3), if it is an association response or re-association response, execute step c-2-4 ), if it is an association request or a re-association request, execute step c-2-5); c-2-1). Judgment Whether it is established, and if it is established, then let
Figure 2013101354422100002DEST_PATH_IMAGE090
, return to step b-1); if not established, return to step b-1); c-2-2). Judgment
Figure 2013101354422100002DEST_PATH_IMAGE092
Whether it is true, if true, return to step b-1); if not true, then perform step c-2-2-1); c-2-2-1). Judgment
Figure 509167DEST_PATH_IMAGE088
is true, if true, set
Figure 2013101354422100002DEST_PATH_IMAGE094
, and will
Figure 425040DEST_PATH_IMAGE062
Insert the storage address into the end of the AP linked list, execute step c-2-2-2); if not, execute step c-2-2-2); c-2-2-2). According to the content of the frame body
Figure 2013101354422100002DEST_PATH_IMAGE096
and
Figure 2013101354422100002DEST_PATH_IMAGE098
value, and set
Figure 441537DEST_PATH_IMAGE092
, return to step b-1); c-2-3). Judgment
Figure 126465DEST_PATH_IMAGE092
Whether it is established, if established, execute step c-2-3-3); if not established, execute step c-2-3-1); c-2-3-1). Judgment
Figure 632533DEST_PATH_IMAGE088
Whether it is true, if not, then execute step c-2-3-2); if true, set it first
Figure 848751DEST_PATH_IMAGE094
, and will Insert the storage address into the end of the AP linked list, and then execute step c-2-3-2); c-2-3-2). Obtain according to the frame body content
Figure 21423DEST_PATH_IMAGE096
and
Figure 88605DEST_PATH_IMAGE098
value, and set , execute step c-2-3-3); c-2-3-3). Find the destination MAC address based on the hash table
Figure 947157DEST_PATH_IMAGE084
The corresponding state set , and judge the state set
Figure 454547DEST_PATH_IMAGE086
middle
Figure 2013101354422100002DEST_PATH_IMAGE100
is true, and if so, set , return to step b-1); if not established, return to step b-1); c-2-4). Judgment Whether it is true, if not, then execute step c-2-4-1); if true, set
Figure 722860DEST_PATH_IMAGE094
, and will
Figure 49936DEST_PATH_IMAGE062
Insert the storage address into the end of the AP linked list, and then perform steps c-2-4-1); c-2-4-1). Find the destination MAC address based on the hash table
Figure 271970DEST_PATH_IMAGE084
The corresponding state set
Figure 871448DEST_PATH_IMAGE086
, and judge the state set
Figure 633868DEST_PATH_IMAGE086
middle
Figure 753133DEST_PATH_IMAGE100
is true, and if so, set
Figure 208385DEST_PATH_IMAGE102
, return to step b-1); if not established, return to step b-1); c-2-5). Judgment
Figure 108208DEST_PATH_IMAGE088
Whether it is true, if not, then execute step c-2-5-1); if true, set it first , and then perform step c-2-5-1); c-2-5-1). Find the destination MAC address based on the hash table
Figure 835042DEST_PATH_IMAGE084
The corresponding state set , and judge
Figure 2013101354422100002DEST_PATH_IMAGE104
Whether it is true, if true, return to step b-1); if not true, then perform step c-2-5-2); c-2-5-2). Judgment
Figure 35265DEST_PATH_IMAGE100
Whether it is true, if not, then execute step c-2-5-3); if true, set
Figure 2013101354422100002DEST_PATH_IMAGE106
, and will
Figure 77170DEST_PATH_IMAGE086
Insert the storage address into the end of the AP linked list, and then execute step c-2-5-3); c-2-5-3). Judgment
Figure 2013101354422100002DEST_PATH_IMAGE108
Whether the content of the frame is empty, if not, directly return to step b-1); if it is empty, according to the content of the frame body, get
Figure 420296DEST_PATH_IMAGE108
value, then return to step b-1); c-3). Determine the subtype of the control frame, if it is energy-saving polling, then look up the destination MAC address based on the hash table The corresponding state set
Figure 763869DEST_PATH_IMAGE086
, execute step c-3-1); if it is another subtype, return to step b-1); c-3-1).judgment
Figure 937362DEST_PATH_IMAGE092
Whether it is established, if established, then execute step c-3-4); if not established, execute step c-3-2); c-3-2). Judgment
Figure 948043DEST_PATH_IMAGE088
Whether it is true, if not, then execute step c-3-3); if true, first set
Figure 102950DEST_PATH_IMAGE090
, and then execute step c-3-3); c-3-3). Will The storage address of is inserted into its parent node Inside
Figure 2013101354422100002DEST_PATH_IMAGE110
the end of the sequence, and the sequence
Figure 2013101354422100002DEST_PATH_IMAGE112
length increment by 1; and set , execute step c-3-4); c-3-4).judgment Whether it is true, if not, return to step b-1); if true, set
Figure 750356DEST_PATH_IMAGE106
, and will
Figure 72DEST_PATH_IMAGE086
Insert the storage address at the end of the AP linked list, and return to step b-1); c-4). Based on the hash table, find the destination MAC address corresponding state set
Figure 232787DEST_PATH_IMAGE086
; Judging the transmission direction of the data frame, if it is an uplink frame, then perform step c-4-1); if it is a downlink frame, then perform step c-4-2); c-4-1). Judgment
Figure 303511DEST_PATH_IMAGE092
Whether it is established, if established, execute step c-4-1-3); if not established, execute step c-4-1-1); c-4-1-1). Judgment Whether it is true, if not, then execute step c-4-1-2); if true, set it first
Figure 401227DEST_PATH_IMAGE090
, and then execute step c-4-1-2); c-4-1-2). Will
Figure 819570DEST_PATH_IMAGE062
The storage address of is inserted into its parent node
Figure 112011DEST_PATH_IMAGE086
Inside
Figure 93742DEST_PATH_IMAGE110
the end of the sequence, and the sequence
Figure 37296DEST_PATH_IMAGE112
length
Figure 62759DEST_PATH_IMAGE114
increment by 1; set , execute step c-4-1-3); c-4-1-3).judgment
Figure 503285DEST_PATH_IMAGE100
Whether it is true, if not, return to step b-1); if true, set
Figure 239028DEST_PATH_IMAGE106
, and will
Figure 264753DEST_PATH_IMAGE086
Insert the storage address at the end of the AP linked list, and return to step b-1); c-4-2). Judgment
Figure 531787DEST_PATH_IMAGE088
Whether it is true, if not, then execute step c-4-2-1); if true, set
Figure 595601DEST_PATH_IMAGE094
, and will
Figure 451430DEST_PATH_IMAGE062
Insert the storage address into the end of the AP linked list, execute step c-4-2-1); c-4-2-1). Judgment Whether it is true, if true, return to step b-1); if not true, then perform step c-4-2-2); c-4-2-2). Judgment
Figure 136806DEST_PATH_IMAGE100
Whether it is true, if not, then execute step c-4-2-3); if true, set it first
Figure 139397DEST_PATH_IMAGE102
, and then execute step c-4-2-3); c-4-2-3). Will The storage address of is inserted into its parent node
Figure 13998DEST_PATH_IMAGE062
Inside
Figure 193307DEST_PATH_IMAGE110
the end of the sequence, and the sequence
Figure 2013101354422100002DEST_PATH_IMAGE116
length increment by 1; set
Figure 361169DEST_PATH_IMAGE104
, return to step b-1).

本发明的针对无线局域网特定目标用户的MAC地址捕获方法,设

Figure 2013101354422100002DEST_PATH_IMAGE118
为AP链表内节点的标号,
Figure 2013101354422100002DEST_PATH_IMAGE120
为AP链表内第
Figure 148865DEST_PATH_IMAGE118
个节点所索引的AP状态集,
Figure 2013101354422100002DEST_PATH_IMAGE122
Figure 2013101354422100002DEST_PATH_IMAGE124
序列内元素的标号,
Figure 2013101354422100002DEST_PATH_IMAGE126
Figure 549891DEST_PATH_IMAGE124
序列内第
Figure 18918DEST_PATH_IMAGE122
个元素所索引的STA状态集,
Figure 2013101354422100002DEST_PATH_IMAGE128
为信号强度RSSI的最大统计均值;拓扑树列表内,各AP状态集位于父节点列表层,各第一类STA状态集位于对应AP下的子节点列表层,AP节点显示的数据项为MAC地址、信道号、SSID、RSSI统计均值和捕获无线帧的总数,STA节点显示的数据项为MAC地址、RSSI统计均值和捕获无线帧的总数;步骤d)所述利用WLAN拓扑结构内的状态集对拓扑树列表进行周期性更新的处理,包括以下步骤:d-1).获取现有拓扑树列表内的AP节点总数
Figure 2013101354422100002DEST_PATH_IMAGE130
;d-2).初始值设定,将AP链表的读取位置设置为链表头结点,设置AP节点标号
Figure 641530DEST_PATH_IMAGE118
的初始值为“0”,RSSI的最大统计均值
Figure 453322DEST_PATH_IMAGE128
的初始值为-90,执行步骤d-3);d-3).判断遍历是否完成,判断AP链表是否遍历完成,如果完成,则执行步骤d-16);如果没有遍历完成,则执行步骤d-4);d-4).在AP链表的当前处理位置读取一个节点,并设置
Figure 2013101354422100002DEST_PATH_IMAGE132
;获取AP状态集的MAC地址、信道号、SSID和捕获无线帧的总数,并基于奇异点滤除和均值处理方法计算其RSSI的统计均值,执行步骤d-5);d-5).比较标号
Figure 489728DEST_PATH_IMAGE118
与AP节点总数
Figure 278431DEST_PATH_IMAGE130
,判断
Figure 2013101354422100002DEST_PATH_IMAGE134
是否成立,如果成立,执行步骤d-6);如果不成立,则执行步骤d-7);d-6).比较AP状态集
Figure 893083DEST_PATH_IMAGE120
与拓扑树列表内第
Figure 331017DEST_PATH_IMAGE118
个AP节点的对应数据项,对于不一致的数据项进行更新;并获取拓扑树列表第
Figure 328798DEST_PATH_IMAGE118
个AP节点的子节点总数
Figure 2013101354422100002DEST_PATH_IMAGE136
,执行步骤d-8);d-7).利用
Figure 227134DEST_PATH_IMAGE120
构建新节点,加入现有拓扑树列表内AP列表的末端,执行步骤d-8);d-8).初始化
Figure 776801DEST_PATH_IMAGE122
,将
Figure 31195DEST_PATH_IMAGE124
序列的元素标号
Figure 255503DEST_PATH_IMAGE122
设置为“1”,执行步骤d-9);d-9).判断序列
Figure 582579DEST_PATH_IMAGE124
中的所有元素是否读取完毕,如果读取完毕,则执行步骤d-3);如果没有读取完毕,则执行步骤d-10);d-10).读取序列
Figure 53880DEST_PATH_IMAGE124
的第
Figure 325462DEST_PATH_IMAGE122
个元素,获取STA状态集
Figure 602728DEST_PATH_IMAGE126
的MAC地址和捕获无线帧的总数,并基于奇异点滤除和均值处理方法计算其RSSI的统计均值
Figure 2013101354422100002DEST_PATH_IMAGE138
,执行步骤d-11);d-11).信号强度比较,比较
Figure 784311DEST_PATH_IMAGE138
Figure 557007DEST_PATH_IMAGE128
的大小,如果
Figure 2013101354422100002DEST_PATH_IMAGE140
,则执行步骤d-12);如果
Figure 2013101354422100002DEST_PATH_IMAGE142
,则以
Figure 2013101354422100002DEST_PATH_IMAGE144
Figure 2013101354422100002DEST_PATH_IMAGE146
记录
Figure 955365DEST_PATH_IMAGE118
的值,并设置
Figure 2013101354422100002DEST_PATH_IMAGE148
,执行步骤d-12);d-12).判断
Figure 682198DEST_PATH_IMAGE134
是否成立,如果成立,执行步骤d-13);如果不成立,则执行步骤d-14);d-13).判断
Figure 2013101354422100002DEST_PATH_IMAGE150
是否成立,如果成立,则比较
Figure 495302DEST_PATH_IMAGE126
与拓扑树列表第
Figure 616842DEST_PATH_IMAGE118
个AP节点的第
Figure 105418DEST_PATH_IMAGE122
个子节点的对应数据项,并对不一致的数据项进行更新,执行步骤d-15);如果不成立,则执行步骤d-14);d-14).利用
Figure 199276DEST_PATH_IMAGE126
构建新节点,加入拓扑树列表第
Figure 996331DEST_PATH_IMAGE118
个AP节点的子节点列表的末端,执行步骤d-15);d-15).设置
Figure 2013101354422100002DEST_PATH_IMAGE152
,跳转执行步骤d-9);d-16).拓扑树列表内第个AP节点下的第
Figure 886981DEST_PATH_IMAGE146
个STA节点,即为本
Figure 84613DEST_PATH_IMAGE036
周期内具有最大RSSI统计均值的第一类STA状态集,对其进行标记。The MAC address capture method for the specific target user of the wireless local area network of the present invention, set
Figure 2013101354422100002DEST_PATH_IMAGE118
is the label of the node in the AP linked list,
Figure 2013101354422100002DEST_PATH_IMAGE120
is the first in the AP linked list
Figure 148865DEST_PATH_IMAGE118
AP state set indexed by nodes,
Figure 2013101354422100002DEST_PATH_IMAGE122
for
Figure 2013101354422100002DEST_PATH_IMAGE124
the index of the element within the sequence,
Figure 2013101354422100002DEST_PATH_IMAGE126
for
Figure 549891DEST_PATH_IMAGE124
sequence number
Figure 18918DEST_PATH_IMAGE122
STA state set indexed by elements,
Figure 2013101354422100002DEST_PATH_IMAGE128
is the maximum statistical mean value of the signal strength RSSI; in the topology tree list, each AP state set is located at the parent node list layer, each first-class STA state set is located at the child node list layer under the corresponding AP, and the data item displayed by the AP node is the MAC address , channel number, SSID, RSSI statistical mean value and the total number of captured wireless frames, the data items displayed by the STA node are MAC address, RSSI statistical mean value and the total number of captured wireless frames; step d) using the state set pair in the WLAN topology The processing of the periodic update of the topology tree list includes the following steps: d-1). Obtain the total number of AP nodes in the existing topology tree list
Figure 2013101354422100002DEST_PATH_IMAGE130
; d-2). Initial value setting, set the reading position of the AP linked list as the head node of the linked list, and set the AP node label
Figure 641530DEST_PATH_IMAGE118
The initial value of "0", the maximum statistical mean of RSSI
Figure 453322DEST_PATH_IMAGE128
The initial value of -90, execute step d-3); d-3). Judging whether the traversal is completed, judging whether the traversal of the AP linked list is completed, if it is completed, then execute step d-16); if not, execute step d-4); d-4). Read a node at the current processing position of the AP linked list, and set
Figure 2013101354422100002DEST_PATH_IMAGE132
; Get AP state set MAC address, channel number, SSID and the total number of captured wireless frames, and calculate the statistical mean value of its RSSI based on singular point filtering and mean value processing methods, and perform step d-5); d-5). Compare labels
Figure 489728DEST_PATH_IMAGE118
and the total number of AP nodes
Figure 278431DEST_PATH_IMAGE130
,judge
Figure 2013101354422100002DEST_PATH_IMAGE134
Whether it is established, if established, execute step d-6); if not established, execute step d-7); d-6). Compare the AP state set
Figure 893083DEST_PATH_IMAGE120
and the first in the topological tree list
Figure 331017DEST_PATH_IMAGE118
The corresponding data items of AP nodes, update the inconsistent data items; and obtain the topological tree list No.
Figure 328798DEST_PATH_IMAGE118
The total number of child nodes of an AP node
Figure 2013101354422100002DEST_PATH_IMAGE136
, execute step d-8); d-7). Utilize
Figure 227134DEST_PATH_IMAGE120
Construct a new node, join the end of the AP list in the existing topology tree list, perform step d-8); d-8). Initialization
Figure 776801DEST_PATH_IMAGE122
,Will
Figure 31195DEST_PATH_IMAGE124
sequence element number
Figure 255503DEST_PATH_IMAGE122
Set to "1", execute step d-9); d-9). Judgment sequence
Figure 582579DEST_PATH_IMAGE124
Whether all the elements in have been read, if they have been read, go to step d-3); if not, go to step d-10); d-10). Read the sequence
Figure 53880DEST_PATH_IMAGE124
First
Figure 325462DEST_PATH_IMAGE122
elements to get the STA state set
Figure 602728DEST_PATH_IMAGE126
MAC address and the total number of captured wireless frames, and calculate the statistical mean of RSSI based on singular point filtering and mean value processing methods
Figure 2013101354422100002DEST_PATH_IMAGE138
, execute step d-11); d-11). Signal strength comparison, comparison
Figure 784311DEST_PATH_IMAGE138
and
Figure 557007DEST_PATH_IMAGE128
size, if
Figure 2013101354422100002DEST_PATH_IMAGE140
, then execute step d-12); if
Figure 2013101354422100002DEST_PATH_IMAGE142
, then with
Figure 2013101354422100002DEST_PATH_IMAGE144
and
Figure 2013101354422100002DEST_PATH_IMAGE146
Record
Figure 955365DEST_PATH_IMAGE118
and value, and set
Figure 2013101354422100002DEST_PATH_IMAGE148
, execute step d-12); d-12). Judgment
Figure 682198DEST_PATH_IMAGE134
Whether it is established, if established, execute step d-13); if not established, execute step d-14); d-13). Judgment
Figure 2013101354422100002DEST_PATH_IMAGE150
is true, and if so, compare
Figure 495302DEST_PATH_IMAGE126
and topological tree list No.
Figure 616842DEST_PATH_IMAGE118
The first AP node
Figure 105418DEST_PATH_IMAGE122
corresponding data items of child nodes, and update the inconsistent data items, execute step d-15); if not established, execute step d-14); d-14).
Figure 199276DEST_PATH_IMAGE126
Build a new node and add it to the topological tree list
Figure 996331DEST_PATH_IMAGE118
At the end of the child node list of AP nodes, perform step d-15); d-15). Set
Figure 2013101354422100002DEST_PATH_IMAGE152
, jump to step d-9); d-16). The first in the topology tree list The first AP under the AP node
Figure 886981DEST_PATH_IMAGE146
STA nodes, that is, the
Figure 84613DEST_PATH_IMAGE036
The first type of STA state set with the largest RSSI statistical mean value in the period is marked.

本发明的针对无线局域网特定目标用户的MAC地址捕获方法,设

Figure 177203DEST_PATH_IMAGE122
为在哈希表内所查找到的第二类STA状态集的标号,
Figure 2013101354422100002DEST_PATH_IMAGE154
为信号强度RSSI的最大统计均值;未关联列表内,各STA节点显示的数据项为MAC地址、RSSI统计均值和捕获无线帧的总数;步骤e)所述利用哈希表内的第二类STA状态集对未关联列表进行周期性更新的处理,包括以下步骤:e-1).获取现有未关联列表内的STA节点总数;将读取位置设为哈希表的起始位置;标号
Figure 2013101354422100002DEST_PATH_IMAGE156
,最大RSSI统计均值;e-2).判断包含冲突链表在内的哈希表是否遍历完成,如果完成,则执行步骤e-7);如果没有遍历完成,则执行步骤e-3);e-3).在哈希表的当前处理位置读取一个状态集,判断该状态集是否满足
Figure 302657DEST_PATH_IMAGE046
Figure 441514DEST_PATH_IMAGE044
的条件,如果不满足,则其不属于第二类STA状态集,跳转执行步骤e-2);如果满足,则执行步骤e-4);e-4).设置
Figure 759363DEST_PATH_IMAGE152
;获取STA状态集
Figure 716735DEST_PATH_IMAGE126
的MAC地址和捕获无线帧的总数,并基于奇异点滤除和均值处理方法计算其RSSI的统计均值,执行步骤e-5);e-5).信号强度比较,比较
Figure 702009DEST_PATH_IMAGE138
Figure 949451DEST_PATH_IMAGE154
的大小,如果
Figure 2013101354422100002DEST_PATH_IMAGE160
,则执行步骤e-6);如果
Figure 2013101354422100002DEST_PATH_IMAGE162
,则以
Figure 190814DEST_PATH_IMAGE146
记录
Figure 244220DEST_PATH_IMAGE122
的值,并设置
Figure 2013101354422100002DEST_PATH_IMAGE164
,执行步骤e-6);e-6).判断
Figure 21684DEST_PATH_IMAGE150
是否成立,如果成立,则比较
Figure 502344DEST_PATH_IMAGE126
与未关联列表第
Figure 184998DEST_PATH_IMAGE122
个STA节点的对应数据项,并对不一致的数据项进行更新,执行步骤e-2);如果不成立,则利用
Figure 963467DEST_PATH_IMAGE126
构建新节点,加入现有未关联列表的末端,执行步骤e-2);e-7).判断
Figure 861015DEST_PATH_IMAGE150
是否成立,如果不成立,则执行步骤e-8);如果成立,删除现有未关联列表末端的
Figure 2013101354422100002DEST_PATH_IMAGE166
个STA节点,执行步骤e-8);哈希表遍历完成后,这里
Figure 717106DEST_PATH_IMAGE122
记录了所查找到的第二类STA状态集的总数;e-8).未关联列表的第
Figure 621476DEST_PATH_IMAGE146
个STA节点,即为本周期内具有最大RSSI统计均值的第二类STA状态集,对其进行标记。The MAC address capture method for the specific target user of the wireless local area network of the present invention, set
Figure 177203DEST_PATH_IMAGE122
is the label of the second type of STA state set found in the hash table,
Figure 2013101354422100002DEST_PATH_IMAGE154
is the maximum statistical mean value of signal strength RSSI; in the unassociated list, the data items displayed by each STA node are the MAC address, the statistical mean value of RSSI and the total number of captured wireless frames; step e) uses the second type of STA in the hash table The processing of periodically updating the unassociated list by the state set includes the following steps: e-1). Obtain the total number of STA nodes in the existing unassociated list ;Set the read position to the start of the hash table; label
Figure 2013101354422100002DEST_PATH_IMAGE156
, the maximum RSSI statistical mean ; e-2). Judging whether the hash table including the conflicting linked list has been traversed, if completed, then execute step e-7); if not traversed, then execute step e-3); e-3). The current processing position of the hash table reads a state set , to judge whether the state set satisfies
Figure 302657DEST_PATH_IMAGE046
and
Figure 441514DEST_PATH_IMAGE044
If the condition is not satisfied, it does not belong to the second type of STA state set, jump to step e-2); if it is satisfied, then execute step e-4); e-4). Set
Figure 759363DEST_PATH_IMAGE152
; Get STA state set
Figure 716735DEST_PATH_IMAGE126
MAC address and the total number of captured wireless frames, and calculate the statistical mean value of its RSSI based on singular point filtering and mean value processing methods, and perform steps e-5); e-5). Signal strength comparison, comparison
Figure 702009DEST_PATH_IMAGE138
and
Figure 949451DEST_PATH_IMAGE154
size, if
Figure 2013101354422100002DEST_PATH_IMAGE160
, then execute step e-6); if
Figure 2013101354422100002DEST_PATH_IMAGE162
, then with
Figure 190814DEST_PATH_IMAGE146
Record
Figure 244220DEST_PATH_IMAGE122
value, and set
Figure 2013101354422100002DEST_PATH_IMAGE164
, execute step e-6); e-6). Judgment
Figure 21684DEST_PATH_IMAGE150
is true, and if so, compare
Figure 502344DEST_PATH_IMAGE126
with unassociated list No.
Figure 184998DEST_PATH_IMAGE122
corresponding data items of STA nodes, and update the inconsistent data items, and execute step e-2); if not established, use
Figure 963467DEST_PATH_IMAGE126
Build a new node, join the end of the existing unassociated list, and execute steps e-2); e-7). Judgment
Figure 861015DEST_PATH_IMAGE150
Whether it is established, if not, then execute step e-8); if it is established, delete the end of the existing unassociated list
Figure 2013101354422100002DEST_PATH_IMAGE166
STA nodes, execute step e-8); after hash table traversal is completed, here
Figure 717106DEST_PATH_IMAGE122
Recorded the total number of the second type of STA state sets found; e-8). The first unassociated list
Figure 621476DEST_PATH_IMAGE146
STA nodes, that is, the The second type of STA state set with the largest RSSI statistical mean value in the period is marked.

本发明的针对无线局域网特定目标用户的MAC地址捕获方法,设为拓扑树列表内所标记的STA节点和未关联列表内所标记的STA节点都保持稳定的时间,当两者中的任一个发生改变时,都重置为0;步骤f)所述对特定目标用户MAC地址进行判定的处理,包括以下步骤:f-1).判断稳定时间

Figure 715837DEST_PATH_IMAGE168
是否达到阈值
Figure 2013101354422100002DEST_PATH_IMAGE170
,如果达到
Figure 232138DEST_PATH_IMAGE170
,则执行步骤f-2);如果未达到,则随机等待一段时间后再执行步骤f-1);f-2).比较
Figure 617989DEST_PATH_IMAGE128
Figure 286868DEST_PATH_IMAGE154
值的大小,若
Figure 2013101354422100002DEST_PATH_IMAGE172
,则将拓扑树列表内所标记的STA节点确定为特定目标,返回其MAC地址;若
Figure 2013101354422100002DEST_PATH_IMAGE174
,则将未关联列表内所标记的STA节点确定为特定目标,返回其MAC地址。The MAC address acquisition method aimed at the specific target user of wireless local area network of the present invention, set The time for both the marked STA nodes in the topological tree list and the marked STA nodes in the unassociated list to remain stable, when any one of the two changes, All are reset to 0; Step f) The process of judging the MAC address of a specific target user includes the following steps: f-1). Judging the stabilization time
Figure 715837DEST_PATH_IMAGE168
Is the threshold reached
Figure 2013101354422100002DEST_PATH_IMAGE170
, if reaching
Figure 232138DEST_PATH_IMAGE170
, then execute step f-2); if not reached, then execute step f-1) after a random wait for a period of time; f-2). Compare
Figure 617989DEST_PATH_IMAGE128
and
Figure 286868DEST_PATH_IMAGE154
value size, if
Figure 2013101354422100002DEST_PATH_IMAGE172
, then determine the STA node marked in the topology tree list as a specific target, and return its MAC address; if
Figure 2013101354422100002DEST_PATH_IMAGE174
, the STA node marked in the unassociated list is determined as a specific target, and its MAC address is returned.

本发明的有益效果是:支持当前的各种WLAN标准(IEEE 802.11 a/b/g/n),可在WLAN中快速捕获特定目标STA的MAC地址,以对WLAN中的非法活动进行有效的检测和取证,并保证取证工作的无痕化。The beneficial effects of the present invention are: support various current WLAN standards (IEEE 802.11 a/b/g/n), can quickly capture the MAC address of a specific target STA in the WLAN, to effectively detect illegal activities in the WLAN And forensics, and ensure the traceless work of forensics.

具有以下四方面的优势:It has the following four advantages:

1、多用户适用性。即该方法可在WLAN中同时存在多个用户的情况下,对特定目标STA与正常用户STA的MAC进行准确分辨,基于对WLAN全局信息的分析处理,惟一捕获特定目标STA的MAC地址。1. Multi-user applicability. That is to say, this method can accurately distinguish the MAC address of a specific target STA from a normal user STA when there are multiple users in the WLAN at the same time, and uniquely capture the MAC address of a specific target STA based on the analysis and processing of WLAN global information.

2、网络连通适用性。即该方法既适用于特定目标STA已连接WLAN的情况,又适用于特定目标STA尚未接入任何WLAN(但其WLAN功能已开启)的情况。前者可获取特定目标STA的MAC地址、所用信道以及所连接AP的完整信息;后者至少可获取特定目标STA自身的MAC地址。2. Applicability of network connectivity. That is, this method is applicable not only to the situation that the specific target STA has connected to the WLAN, but also to the situation that the specific target STA has not connected to any WLAN (but its WLAN function has been turned on). The former can obtain the MAC address of the specific target STA, the channel used and the complete information of the connected AP; the latter can at least obtain the MAC address of the specific target STA itself.

3、无线数据量适用性。即该方法既适用于WLAN处于高负荷、所传输无线数据较多的情况,又适用于WLAN处于低负荷、所传输无线数据较少的情况。前者具备针对大量数据进行快速处理的功能;后者具备基于有限数据进行信息的“尽力”提取的功能。3. Applicability of wireless data volume. That is, the method is applicable not only to the situation where the WLAN is under high load and transmits more wireless data, but also applicable to the situation where the WLAN is under low load and transmits less wireless data. The former has the function of fast processing for a large amount of data; the latter has the function of "best effort" extraction of information based on limited data.

4、取证快速性与无痕性。即该方法可在短时间内(可接受范围为30~60秒)快速完成对特定目标MAC地址的捕获,而无须在WLAN中检测过长时间;另一方面,该方法对硬件配置的要求较低,可在便携式的手持设备实现,以做到取证的无痕化。4. Fast and traceless evidence collection. That is to say, this method can quickly complete the capture of a specific target MAC address in a short period of time (the acceptable range is 30-60 seconds), without the need to detect in the WLAN for a long time; on the other hand, this method requires relatively little hardware configuration. Low cost, it can be implemented on portable handheld devices to achieve traceless evidence collection.

附图说明Description of drawings

图1为本发明的MAC地址捕获方法的原理框图;Fig. 1 is the functional block diagram of MAC address acquisition method of the present invention;

图2为本发明中WLAN数据获取方法的流程图;Fig. 2 is the flowchart of WLAN data acquisition method among the present invention;

图3为本发明中基于哈希表的状态集构建与RSSI序列更新方法的流程图;Fig. 3 is the flow chart of the state set based on hash table construction and RSSI sequence update method in the present invention;

图4为本发明中基于管理帧的WLAN拓扑结构更新方法的流程图;Fig. 4 is the flowchart of the WLAN topology update method based on the management frame in the present invention;

图5为本发明中基于控制帧的WLAN拓扑结构更新方法的流程图;Fig. 5 is the flowchart of the WLAN topology update method based on the control frame in the present invention;

图6为本发明中基于数据帧的WLAN拓扑结构更新方法的流程图;Fig. 6 is the flowchart of the WLAN topology update method based on data frame in the present invention;

图7为利用WLAN拓扑结构内的状态集对拓扑树列表进行周期性更新方法的流程图。FIG. 7 is a flow chart of a method for periodically updating a topology tree list by using a state set in a WLAN topology structure.

图8为利用哈希表内的第二类STA状态集对未关联列表进行周期性更新方法的流程图。FIG. 8 is a flow chart of a method for periodically updating the unassociated list by using the second type of STA state set in the hash table.

具体实施方式Detailed ways

下面结合附图与实施例对本发明作进一步说明。The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

如图1所示,给出了本发明的MAC地址捕获方法的原理框图,由数据获取和数据处理两部分组成。“数据获取”模块可根据所选取的信道扫描策略,在射频监听工作模式下,捕获各类IEEE 802.11无线帧;经CRC校验后,基于特定的时间阈值策略和数据量阈值策略,将获取的数据提交至数据处理模块。“数据处理”部分包括三个子模块:(1)状态集构建与RSSI序列更新子模块,可基于哈希表实现“MAC地址→状态集存储地址”的直接映射,针对每个无线帧,快速查找或创建其源端所对应的状态集,将其RSSI值快速更新至状态集内的RSSI序列;并可基于链地址方法进行哈希冲突处理。(2)WLAN拓扑结构更新子模块,可基于“AP链表+

Figure 342548DEST_PATH_IMAGE024
序列”为所出现的STA/AP状态集构建快速有效的索引结构,并基于状态集完备标志,确定对状态集内与拓扑相关的数据项进行处理的策略,从而根据不同的帧类型和子帧类型,判定状态集类型以及STA/AP之间的关联关系。(3)MAC地址捕获结果的周期性统计、输出与更新子模块,可基于奇异值滤除和均值处理对各状态集的RSSI序列进行统计;可采用树状分层列表输出WLAN拓扑结构内的AP状态集和第一类STA状态集,以
Figure 283829DEST_PATH_IMAGE036
为周期更新拓扑树列表的节点数据,并标记具有最大RSSI统计均值的STA;可采用未关联列表输出哈希表内的第二类STA状态集,以为周期更新节点数据,并标记具有最大RSSI统计均值的STA;经若干更新周期,拓扑树列表与未关联列表内的RSSI最大者,即被确定为特定目标用户。As shown in FIG. 1 , the principle block diagram of the MAC address capture method of the present invention is given, which consists of two parts: data acquisition and data processing. The "Data Acquisition" module can capture various IEEE 802.11 wireless frames in the RF monitoring mode according to the selected channel scanning strategy; after CRC check, based on the specific time threshold strategy and data volume threshold strategy, the acquired The data is submitted to the data processing module. The "data processing" part includes three sub-modules: (1) The state set construction and RSSI sequence update sub-module, which can realize the direct mapping of "MAC address → state set storage address" based on the hash table, and quickly search for each wireless frame Or create a state set corresponding to its source, and quickly update its RSSI value to the RSSI sequence in the state set; and handle hash conflicts based on the chain address method. (2) WLAN topology update submodule, which can be based on "AP linked list +
Figure 342548DEST_PATH_IMAGE024
Sequence” builds a fast and effective index structure for the emerging STA/AP state set, and determines the strategy for processing topology-related data items in the state set based on the completeness flag of the state set, so that according to different frame types and subframe types , to determine the state set type and the relationship between STA/AP. (3) The periodic statistics, output and update submodule of the MAC address capture results can be based on singular value filtering and mean value processing for the RSSI sequence of each state set Statistics; the tree-like hierarchical list can be used to output the AP state set and the first-class STA state set in the WLAN topology, so as to
Figure 283829DEST_PATH_IMAGE036
Periodically update the node data of the topology tree list, and mark the STA with the largest RSSI statistical mean value; the second type of STA state set in the hash table can be output from the unassociated list, to Periodically update the node data, and mark the STA with the largest RSSI statistical average value; after several update cycles, the one with the largest RSSI in the topology tree list and the unassociated list is determined as the specific target user.

本发明的针对无线局域网特定目标用户的MAC地址捕获方法,AP为WLAN中的访问接入点,STA为用户终端设备,RSSI为接收信号强度指标,依次包括以下步骤:The MAC address acquisition method for the specific target user of the wireless local area network of the present invention, the AP is the access point in the WLAN, the STA is the user terminal equipment, and the RSSI is the received signal strength index, comprising the following steps in turn:

a).数据获取,选取与特定目标STA相距较近、与其他用户相距较远的位置,基于信道扫描策略、时间阈值策略和数据量阈值策略,获取WLAN内通过空中链路传输的各类无线帧;a). Data acquisition, select a location that is closer to a specific target STA and farther away from other users, and based on the channel scanning strategy, time threshold strategy, and data volume threshold strategy, obtain various types of wireless data transmitted through the air link in the WLAN frame;

如图2所示,给出了WLAN数据获取方法的流程图,设置标志

Figure 940298DEST_PATH_IMAGE048
,若
Figure 104563DEST_PATH_IMAGE050
,表示从首个可用信道开始依次对所有信道进行扫描,若
Figure 346189DEST_PATH_IMAGE052
,表示对特定信道进行扫描;其可采用以下步骤来实现:As shown in Figure 2, the flow chart of the WLAN data acquisition method is provided, and the flag is set
Figure 940298DEST_PATH_IMAGE048
,like
Figure 104563DEST_PATH_IMAGE050
, which means to scan all channels sequentially starting from the first available channel, if
Figure 346189DEST_PATH_IMAGE052
, which means to scan a specific channel; it can be realized by the following steps:

a-1).判断信道扫描策略,判断

Figure 824574DEST_PATH_IMAGE048
的值,若
Figure 202466DEST_PATH_IMAGE050
,将待扫描信道设置为全部可用信道中的首个信道;若
Figure 990162DEST_PATH_IMAGE052
,则将待扫描信道设置为输入值
Figure 453505DEST_PATH_IMAGE054
所对应的信道;a-1). Judging the channel scanning strategy, judging
Figure 824574DEST_PATH_IMAGE048
value, if
Figure 202466DEST_PATH_IMAGE050
, set the channel to be scanned as the first channel among all available channels; if
Figure 990162DEST_PATH_IMAGE052
, then set the channel to be scanned to the input value
Figure 453505DEST_PATH_IMAGE054
the corresponding channel;

a-2).将工作模式设置为射频监听模式;该模式下可对当前扫描信道内各STA/AP传输的所有无线帧进行捕获;a-2). Set the working mode to RF monitoring mode; in this mode, all wireless frames transmitted by each STA/AP in the current scanning channel can be captured;

a-3).捕获无线帧并进行校验,捕获一个无线帧并进行CRC校验,如果经CRC校验不正确,则将该帧丢弃并重新捕获一个无线帧;如果CRC校验正确,则将该帧暂存至缓冲区,执行步骤a-4);a-3). Capture a wireless frame and perform a check, capture a wireless frame and perform a CRC check, if the CRC check is incorrect, discard the frame and recapture a wireless frame; if the CRC check is correct, then Temporarily save the frame to the buffer, and execute steps a-4);

a-4).捕获时间阈值的判断,判断捕获无线帧的时间是否达到捕获时间阈值

Figure 860215DEST_PATH_IMAGE056
,如果达到
Figure 279564DEST_PATH_IMAGE056
,则执行步骤a-6);若未达到
Figure 51211DEST_PATH_IMAGE056
,则执行步骤a-5);a-4). Judgment of the capture time threshold, judging whether the time to capture the wireless frame reaches the capture time threshold
Figure 860215DEST_PATH_IMAGE056
, if reaching
Figure 279564DEST_PATH_IMAGE056
, then execute step a-6); if not reached
Figure 51211DEST_PATH_IMAGE056
, then execute step a-5);

a-5).捕获数据量阈值的判断,判断捕获无线帧的数据量是否达到捕获数据量阈值

Figure 1850DEST_PATH_IMAGE058
,如果达到
Figure 822038DEST_PATH_IMAGE058
,则执行步骤a-6);若未达到
Figure 174522DEST_PATH_IMAGE058
,则执行步骤a-3);a-5). Judgment of the threshold of the captured data volume, judging whether the data volume of the captured wireless frame reaches the captured data volume threshold
Figure 1850DEST_PATH_IMAGE058
, if reaching
Figure 822038DEST_PATH_IMAGE058
, then execute step a-6); if not reached
Figure 174522DEST_PATH_IMAGE058
, then perform step a-3);

a-6).提交数据,对暂存在缓冲区内的无线帧数据进行批量提交,执行步骤a-7);a-6). Submit the data, submit the wireless frame data temporarily stored in the buffer in batches, and execute step a-7);

a-7).判断,判断

Figure 741956DEST_PATH_IMAGE048
的值,如果,则监听下一个可用信道;若
Figure 572825DEST_PATH_IMAGE052
,则重新对当前信道进行监听;执行步骤a-3)。a-7). Judgment ,judge
Figure 741956DEST_PATH_IMAGE048
value, if , then monitor the next available channel; if
Figure 572825DEST_PATH_IMAGE052
, then monitor the current channel again; execute step a-3).

b).基于哈希表构建状态集和更新RSSI序列,设集合

Figure 810909DEST_PATH_IMAGE002
为一个STA或AP的状态信息的集合,称为“状态集”,
Figure 923090DEST_PATH_IMAGE002
记作:b).Construct a state set and update the RSSI sequence based on the hash table, set the set
Figure 810909DEST_PATH_IMAGE002
A collection of state information of a STA or AP, called "state set",
Figure 923090DEST_PATH_IMAGE002
Referred to as:

Figure 85081DEST_PATH_IMAGE004
Figure 85081DEST_PATH_IMAGE004

其中,

Figure 412157DEST_PATH_IMAGE006
为长度为6字节的序列,存储STA/AP的MAC地址,如
Figure DEST_PATH_IMAGE176
;由于MAC地址的惟一性,可将
Figure 617880DEST_PATH_IMAGE006
作为对该状态集
Figure 149181DEST_PATH_IMAGE002
的惟一标识;
Figure 177180DEST_PATH_IMAGE008
为最大长度为
Figure 296445DEST_PATH_IMAGE010
的序列,存储已捕获的源MAC地址为
Figure 751697DEST_PATH_IMAGE006
的各无线帧的RSSI值,各元素为-90至20之间的整数值,度量单位为dBm;表示实体的类型,表示其为AP,表示其为STA,
Figure 4507DEST_PATH_IMAGE018
表示其类型尚未确定;
Figure 126047DEST_PATH_IMAGE020
:仅当
Figure 682799DEST_PATH_IMAGE014
时有效,存储该AP的SSID;SSID为Service Set Identifier的缩写,为服务集标识;
Figure 838974DEST_PATH_IMAGE022
:仅当
Figure 636029DEST_PATH_IMAGE014
时有效,存储该AP当前使用的无线信道号;
Figure 182548DEST_PATH_IMAGE024
:仅当
Figure 277411DEST_PATH_IMAGE014
时有效,用于索引该AP的各STA子节点,是最大长度为
Figure 288093DEST_PATH_IMAGE026
的序列,各元素分别为各子节点所对应的STA状态集的存储地址;
Figure 193732DEST_PATH_IMAGE028
为布尔型数值,取值为0或1,指示内的各状态信息是否完备,当
Figure 188419DEST_PATH_IMAGE014
时,用于指示是否已获取该AP的
Figure 991290DEST_PATH_IMAGE020
Figure 130147DEST_PATH_IMAGE022
数据项;当
Figure 149793DEST_PATH_IMAGE016
时,用于指示是否已将该STA状态集的存储地址插入其父节点的
Figure 602771DEST_PATH_IMAGE024
序列;in,
Figure 412157DEST_PATH_IMAGE006
It is a sequence with a length of 6 bytes, storing the MAC address of the STA/AP, such as
Figure DEST_PATH_IMAGE176
; Due to the uniqueness of the MAC address, the
Figure 617880DEST_PATH_IMAGE006
as the state set
Figure 149181DEST_PATH_IMAGE002
unique identifier of
Figure 177180DEST_PATH_IMAGE008
is a maximum length of
Figure 296445DEST_PATH_IMAGE010
sequence, storing the captured source MAC address as
Figure 751697DEST_PATH_IMAGE006
The RSSI value of each wireless frame of , each element is an integer value between -90 and 20, and the measurement unit is dBm; Indicates the type of entity, Indicates that it is an AP, Indicates that it is STA,
Figure 4507DEST_PATH_IMAGE018
Indicates that its type has not been determined;
Figure 126047DEST_PATH_IMAGE020
: only if
Figure 682799DEST_PATH_IMAGE014
SSID of the AP is stored; SSID is the abbreviation of Service Set Identifier, which is the service set identifier;
Figure 838974DEST_PATH_IMAGE022
: only if
Figure 636029DEST_PATH_IMAGE014
Valid when the AP is currently used to store the wireless channel number;
Figure 182548DEST_PATH_IMAGE024
: only if
Figure 277411DEST_PATH_IMAGE014
It is valid when it is used to index each STA child node of the AP, and the maximum length is
Figure 288093DEST_PATH_IMAGE026
The sequence of , each element is the storage address of the STA state set corresponding to each child node;
Figure 193732DEST_PATH_IMAGE028
It is a Boolean value, the value is 0 or 1, indicating Whether the status information in the is complete, when
Figure 188419DEST_PATH_IMAGE014
, used to indicate whether the AP has been obtained
Figure 991290DEST_PATH_IMAGE020
and
Figure 130147DEST_PATH_IMAGE022
data item; when
Figure 149793DEST_PATH_IMAGE016
When , it is used to indicate whether the storage address of the STA state set has been inserted into its parent node
Figure 602771DEST_PATH_IMAGE024
sequence;

针对步骤a)中捕获到的每个无线帧,基于哈希表内“MAC地址→状态集

Figure 322466DEST_PATH_IMAGE002
存储地址”的直接映射,快速查找或构建该帧的源MAC地址
Figure 632224DEST_PATH_IMAGE030
所对应的状态集
Figure 895758DEST_PATH_IMAGE062
,并将该帧的RSSI值
Figure 886848DEST_PATH_IMAGE032
更新至序列
Figure 726628DEST_PATH_IMAGE070
;For each wireless frame captured in step a), based on the "MAC address → state set" in the hash table
Figure 322466DEST_PATH_IMAGE002
Stored address" direct mapping, quickly find or construct the source MAC address of the frame
Figure 632224DEST_PATH_IMAGE030
The corresponding state set
Figure 895758DEST_PATH_IMAGE062
, and the RSSI value of the frame
Figure 886848DEST_PATH_IMAGE032
update to sequence
Figure 726628DEST_PATH_IMAGE070
;

如图3所示,给出了本发明中基于哈希表的状态集构建与RSSI序列更新方法的流程图,其可采用以下步骤来实现:As shown in Figure 3, the flow chart of state set construction and RSSI sequence update method based on hash table in the present invention is provided, and it can adopt following steps to realize:

b-1).读取无线帧并判断其类型;从步骤a)所提交的批量数据中读取一个无线帧,并判断其是否为控制帧中的CTS或ACK子帧,如果为CTS或ACK子帧,则重新执行步骤b-1);如果既非CTS子帧也非ACK子帧,则获取该帧的源MAC地址

Figure 207288DEST_PATH_IMAGE030
和强度信号
Figure 201527DEST_PATH_IMAGE032
;这里CTS为Clear To Send的缩写,为清除待发子帧,ACK为Acknowledge的缩写,为确认子帧,这两种子帧内均不含源端的MAC地址;b-1). Read the wireless frame and judge its type; read a wireless frame from the batch data submitted in step a), and judge whether it is a CTS or ACK subframe in the control frame, if it is CTS or ACK subframe, then re-execute step b-1); if it is neither a CTS subframe nor an ACK subframe, then obtain the source MAC address of the frame
Figure 207288DEST_PATH_IMAGE030
and strength signal
Figure 201527DEST_PATH_IMAGE032
; Here CTS is an abbreviation of Clear To Send, which is to clear subframes to be sent, and ACK is an abbreviation of Acknowledge, which is to confirm subframes, and these two subframes do not contain the MAC address of the source end;

b-2).以的后两字节计算源MAC对应的哈希地址

Figure 425015DEST_PATH_IMAGE060
,并判断该哈希地址处的记录是否为空,如果为空则执行步骤b-3);如果不为空,则执行步骤b-4);b-2). With The hash address corresponding to the source MAC is calculated by the last two bytes
Figure 425015DEST_PATH_IMAGE060
, and judge whether the record at the hash address is empty, if it is empty, execute step b-3); if not empty, execute step b-4);

b-3).在哈希地址

Figure 529106DEST_PATH_IMAGE060
处新建状态集,并对状态集
Figure 781018DEST_PATH_IMAGE062
进行初始化,将
Figure 595390DEST_PATH_IMAGE062
作为对应的状态集,执行步骤b-7);b-3). At the hash address
Figure 529106DEST_PATH_IMAGE060
new state set , and for the state set
Figure 781018DEST_PATH_IMAGE062
to initialize, the
Figure 595390DEST_PATH_IMAGE062
as For the corresponding state set, perform step b-7);

Figure 871836DEST_PATH_IMAGE030
映射到哈希地址的哈希函数可表示为:Depend on
Figure 871836DEST_PATH_IMAGE030
A hash function mapped to a hash address can be expressed as:

对于MAC地址后两字节相同而造成哈希表冲突的所有状态集,都存储在同一线性链表中;All state sets that cause hash table conflicts due to the same last two bytes of the MAC address are stored in the same linear linked list;

b-4).判断是否存在哈希表冲突,将哈希地址

Figure 677298DEST_PATH_IMAGE060
处的状态集记作
Figure 670662DEST_PATH_IMAGE002
,判断
Figure 424991DEST_PATH_IMAGE066
是否成立,如果成立,则将
Figure 348954DEST_PATH_IMAGE002
记作
Figure 872339DEST_PATH_IMAGE062
,作为
Figure 239867DEST_PATH_IMAGE030
对应的状态集,执行步骤b-7);如果不成立,则执行步骤b-5);b-4). To determine whether there is a hash table conflict, the hash address
Figure 677298DEST_PATH_IMAGE060
The state set at
Figure 670662DEST_PATH_IMAGE002
,judge
Figure 424991DEST_PATH_IMAGE066
Whether it is established, and if it is established, then the
Figure 348954DEST_PATH_IMAGE002
Referred to as
Figure 872339DEST_PATH_IMAGE062
, as
Figure 239867DEST_PATH_IMAGE030
For the corresponding state set, execute step b-7); if not established, execute step b-5);

b-5).遍历冲突链表,以

Figure 481492DEST_PATH_IMAGE060
处的状态集为链表头结点,遍历读取链表节点内的状态集,查找是否存在
Figure 592897DEST_PATH_IMAGE066
的状态集,如有满足条件的状态集存在,则将
Figure 928063DEST_PATH_IMAGE002
记作
Figure 781618DEST_PATH_IMAGE062
,作为
Figure 860433DEST_PATH_IMAGE030
对应的状态集,执行步骤b-7);如果遍历完冲突链表,均没有满足条件的状态集存在,则执行步骤b-6);b-5). Traverse the conflict list to
Figure 481492DEST_PATH_IMAGE060
The state set at is the head node of the linked list, traverse and read the state set in the linked list node , to find out whether there is
Figure 592897DEST_PATH_IMAGE066
The state set of , if there is a state set that satisfies the condition, then the
Figure 928063DEST_PATH_IMAGE002
Referred to as
Figure 781618DEST_PATH_IMAGE062
, as
Figure 860433DEST_PATH_IMAGE030
For the corresponding state set, execute step b-7); if there is no state set satisfying the condition after traversing the conflict linked list, then execute step b-6);

b-6).新建状态集,新建状态集

Figure 296093DEST_PATH_IMAGE062
并将其添加至现有冲突链表的末端,并对状态集
Figure 254691DEST_PATH_IMAGE062
进行初始化,将
Figure 143013DEST_PATH_IMAGE062
作为
Figure 25518DEST_PATH_IMAGE030
对应的状态集,执行步骤b-7);b-6). New state set, new state set
Figure 296093DEST_PATH_IMAGE062
and add it to the end of the existing conflict list, and to the state set
Figure 254691DEST_PATH_IMAGE062
to initialize, the
Figure 143013DEST_PATH_IMAGE062
as
Figure 25518DEST_PATH_IMAGE030
For the corresponding state set, perform step b-7);

b-7).判断存储信号强度的序列是否已满,以

Figure 378002DEST_PATH_IMAGE068
表示状态集
Figure 507501DEST_PATH_IMAGE062
Figure 883118DEST_PATH_IMAGE070
序列当前实际存储数据的长度,
Figure 303735DEST_PATH_IMAGE010
为其最大长度,
Figure 963256DEST_PATH_IMAGE010
为偶数;判断
Figure 76705DEST_PATH_IMAGE072
是否成立,如果成立,则将该帧的值插入序列
Figure 163927DEST_PATH_IMAGE070
的末端,即存入
Figure 225424DEST_PATH_IMAGE074
之中;如果不成立,表明
Figure 509775DEST_PATH_IMAGE068
已达序列最大长度,则执行步骤b-8);b-7). Judging whether the sequence of storing signal strength is full, to
Figure 378002DEST_PATH_IMAGE068
Represents a state set
Figure 507501DEST_PATH_IMAGE062
middle
Figure 883118DEST_PATH_IMAGE070
The length of the data currently stored in the sequence,
Figure 303735DEST_PATH_IMAGE010
is its maximum length,
Figure 963256DEST_PATH_IMAGE010
is an even number; judgment
Figure 76705DEST_PATH_IMAGE072
Whether it is true, if it is true, the frame's value insertion sequence
Figure 163927DEST_PATH_IMAGE070
at the end of the
Figure 225424DEST_PATH_IMAGE074
among; if not established, indicate
Figure 509775DEST_PATH_IMAGE068
Maximum sequence length reached , then perform step b-8);

b-8).释放序列的部分空间并存储

Figure 74934DEST_PATH_IMAGE032
,以
Figure 256517DEST_PATH_IMAGE076
表示原序列,表示更新后的序列;将
Figure 532963DEST_PATH_IMAGE076
前半段数据的均值作为
Figure 36757DEST_PATH_IMAGE078
的值,将
Figure 338425DEST_PATH_IMAGE076
的后半段数据平移至
Figure 699000DEST_PATH_IMAGE080
,并将该帧的
Figure 273069DEST_PATH_IMAGE032
插入
Figure 642871DEST_PATH_IMAGE082
之中,即b-8). Release part of the sequence space and store
Figure 74934DEST_PATH_IMAGE032
,by
Figure 256517DEST_PATH_IMAGE076
represents the original sequence, Indicates the updated sequence; the
Figure 532963DEST_PATH_IMAGE076
The mean of the first half of the data is taken as
Figure 36757DEST_PATH_IMAGE078
value, will
Figure 338425DEST_PATH_IMAGE076
The second half of the data is shifted to
Figure 699000DEST_PATH_IMAGE080
, and the frame's
Figure 273069DEST_PATH_IMAGE032
insert
Figure 642871DEST_PATH_IMAGE082
among, namely

Figure DEST_PATH_IMAGE178
Figure DEST_PATH_IMAGE178

c).更新WLAN的拓扑结构:根据状态集完备标志

Figure 652241DEST_PATH_IMAGE028
,确定是否处理状态集内与拓扑相关的数据项
Figure 449295DEST_PATH_IMAGE012
Figure 995814DEST_PATH_IMAGE020
Figure 169307DEST_PATH_IMAGE022
Figure 179988DEST_PATH_IMAGE024
,根据帧类型和子帧类型,判定状态集类型以及STA/AP之间的关联关系,构建并更新基于“AP链表+
Figure 272578DEST_PATH_IMAGE024
序列”的WLAN拓扑结构;AP链表是一个线性链表,可对哈希表内的AP状态集进行索引,AP链表内各节点的结构为:c). Updating the topology structure of the WLAN: according to the complete flag of the state set
Figure 652241DEST_PATH_IMAGE028
, to determine whether to process topology-related data items in the state set
Figure 449295DEST_PATH_IMAGE012
,
Figure 995814DEST_PATH_IMAGE020
,
Figure 169307DEST_PATH_IMAGE022
and
Figure 179988DEST_PATH_IMAGE024
, according to the frame type and subframe type, determine the state set type and the association relationship between STA/AP, build and update based on the "AP linked list +
Figure 272578DEST_PATH_IMAGE024
sequence" WLAN topology; the AP linked list is a linear linked list that can index the AP state set in the hash table. The structure of each node in the AP linked list is:

Figure 368710DEST_PATH_IMAGE034
Figure 368710DEST_PATH_IMAGE034

如图4、图5和图6所示,分别给出了本发明中基于管理帧、控制帧和数据帧的WLAN拓扑结构更新方法的流程图;As shown in Fig. 4, Fig. 5 and Fig. 6, respectively provide the flowchart of the WLAN topology update method based on management frame, control frame and data frame among the present invention;

设所捕获无线帧的目的MAC地址为

Figure 80314DEST_PATH_IMAGE084
Figure 132452DEST_PATH_IMAGE086
为目的MAC地址
Figure 271310DEST_PATH_IMAGE084
所对应的状态集;源MAC地址为
Figure 792421DEST_PATH_IMAGE030
Figure 42137DEST_PATH_IMAGE062
为源MAC地址所对应的状态集;步骤c)所述更新WLAN的拓扑结构,可采用以下步骤来实现:Let the destination MAC address of the captured wireless frame be
Figure 80314DEST_PATH_IMAGE084
,
Figure 132452DEST_PATH_IMAGE086
destination MAC address
Figure 271310DEST_PATH_IMAGE084
The corresponding state set; the source MAC address is
Figure 792421DEST_PATH_IMAGE030
,
Figure 42137DEST_PATH_IMAGE062
is the source MAC address Corresponding state set; step c) described update the topology structure of WLAN, can adopt the following steps to realize:

c-1).判断无线帧的类型,对于步骤b-1)所读取的无线帧,若为管理帧则执行步骤c-2),若为控制帧则执行步骤c-3),若为数据帧则执行步骤c-4);c-1). Determine the type of wireless frame. For the wireless frame read in step b-1), if it is a management frame, then perform step c-2), if it is a control frame, then perform step c-3), if it is The data frame then executes step c-4);

c-2).判断管理帧的子类型,若为探测请求则执行步骤c-2-1),若为信标则执行步骤c-2-2),若为探测响应则执行步骤c-2-3),若为关联响应或重新关联响应则执行步骤c-2-4),若为关联请求或重新关联请求则执行步骤c-2-5);c-2). Determine the subtype of the management frame. If it is a probe request, execute step c-2-1). If it is a beacon, execute step c-2-2). If it is a probe response, execute step c-2. -3), if it is an association response or a re-association response, execute step c-2-4), if it is an association request or a re-association request, execute step c-2-5);

c-2-1).判断

Figure 524119DEST_PATH_IMAGE088
是否成立,如果成立,则令
Figure 594844DEST_PATH_IMAGE090
,返回步骤b-1);如果不成立,返回步骤b-1); c-2-1). Judgment
Figure 524119DEST_PATH_IMAGE088
Whether it is established, and if it is established, then let
Figure 594844DEST_PATH_IMAGE090
, return to step b-1); if not established, return to step b-1);

c-2-2).判断是否成立,如果成立,返回步骤b-1);如果不成立,则执行步骤c-2-2-1);c-2-2). Judgment Whether it is established, if established, return to step b-1); if not established, then perform step c-2-2-1);

c-2-2-1).判断

Figure 425713DEST_PATH_IMAGE088
是否成立,如果成立,设置,并将
Figure 385765DEST_PATH_IMAGE062
的存储地址插入AP链表的末端,执行步骤c-2-2-2);如果不成立,则执行步骤c-2-2-2);c-2-2-1). Judgment
Figure 425713DEST_PATH_IMAGE088
is true, and if so, set , and will
Figure 385765DEST_PATH_IMAGE062
Insert the storage address into the end of the AP linked list, execute step c-2-2-2); if not established, then execute step c-2-2-2);

c-2-2-2).根据帧体内容获取

Figure 242863DEST_PATH_IMAGE096
Figure 874832DEST_PATH_IMAGE098
的值,并设置
Figure 713344DEST_PATH_IMAGE092
,返回步骤b-1);c-2-2-2). According to the content of the frame body
Figure 242863DEST_PATH_IMAGE096
and
Figure 874832DEST_PATH_IMAGE098
value, and set
Figure 713344DEST_PATH_IMAGE092
, return to step b-1);

c-2-3).判断是否成立,如果成立,执行步骤c-2-3-3);如果不成立,则执行步骤c-2-3-1);c-2-3). Judgment Whether it is established, if established, execute step c-2-3-3); if not established, execute step c-2-3-1);

c-2-3-1).判断

Figure 91553DEST_PATH_IMAGE088
是否成立,如果不成立,则执行步骤c-2-3-2);如果成立,则先设置
Figure 827297DEST_PATH_IMAGE094
,并将
Figure 915338DEST_PATH_IMAGE062
的存储地址插入AP链表的末端,再执行步骤c-2-3-2);c-2-3-1). Judgment
Figure 91553DEST_PATH_IMAGE088
Whether it is true, if not, then execute step c-2-3-2); if true, set it first
Figure 827297DEST_PATH_IMAGE094
, and will
Figure 915338DEST_PATH_IMAGE062
Insert the storage address into the end of the AP linked list, and then perform step c-2-3-2);

c-2-3-2).根据帧体内容获取

Figure 120055DEST_PATH_IMAGE096
的值,并设置
Figure 909205DEST_PATH_IMAGE092
,执行步骤c-2-3-3);c-2-3-2). According to the content of the frame body
Figure 120055DEST_PATH_IMAGE096
and value, and set
Figure 909205DEST_PATH_IMAGE092
, execute step c-2-3-3);

c-2-3-3).基于哈希表查找目的MAC地址

Figure 556698DEST_PATH_IMAGE084
所对应的状态集
Figure 311027DEST_PATH_IMAGE086
,并判断状态集
Figure 48039DEST_PATH_IMAGE086
中的
Figure 509108DEST_PATH_IMAGE100
是否成立,如果成立,则设置
Figure 125903DEST_PATH_IMAGE102
,返回步骤b-1);如果不成立,返回步骤b-1);c-2-3-3). Find the destination MAC address based on the hash table
Figure 556698DEST_PATH_IMAGE084
The corresponding state set
Figure 311027DEST_PATH_IMAGE086
, and judge the state set
Figure 48039DEST_PATH_IMAGE086
middle
Figure 509108DEST_PATH_IMAGE100
is true, and if so, set
Figure 125903DEST_PATH_IMAGE102
, return to step b-1); if not established, return to step b-1);

c-2-4).判断

Figure 101949DEST_PATH_IMAGE088
是否成立,如果不成立,则执行步骤c-2-4-1);如果成立,则设置
Figure 580335DEST_PATH_IMAGE094
,并将的存储地址插入AP链表的末端,再执行步骤c-2-4-1);c-2-4). Judgment
Figure 101949DEST_PATH_IMAGE088
Whether it is true, if not, then execute step c-2-4-1); if true, set
Figure 580335DEST_PATH_IMAGE094
, and will Insert the storage address into the end of the AP linked list, and then perform step c-2-4-1);

c-2-4-1).基于哈希表查找目的MAC地址

Figure 745923DEST_PATH_IMAGE084
所对应的状态集
Figure 474844DEST_PATH_IMAGE086
,并判断状态集
Figure 491342DEST_PATH_IMAGE086
中的
Figure 989319DEST_PATH_IMAGE100
是否成立,如果成立,则设置
Figure 682338DEST_PATH_IMAGE102
,返回步骤b-1);如果不成立,返回步骤b-1);c-2-4-1). Find the destination MAC address based on the hash table
Figure 745923DEST_PATH_IMAGE084
The corresponding state set
Figure 474844DEST_PATH_IMAGE086
, and judge the state set
Figure 491342DEST_PATH_IMAGE086
middle
Figure 989319DEST_PATH_IMAGE100
is true, and if so, set
Figure 682338DEST_PATH_IMAGE102
, return to step b-1); if not established, return to step b-1);

c-2-5).判断

Figure 836238DEST_PATH_IMAGE088
是否成立,如果不成立,则执行步骤c-2-5-1);如果成立,则先设置
Figure 718744DEST_PATH_IMAGE090
,再执行步骤c-2-5-1);c-2-5). Judgment
Figure 836238DEST_PATH_IMAGE088
Whether it is true, if not, then execute step c-2-5-1); if true, set it first
Figure 718744DEST_PATH_IMAGE090
, and then perform step c-2-5-1);

c-2-5-1).基于哈希表查找目的MAC地址

Figure 71228DEST_PATH_IMAGE084
所对应的状态集
Figure 138410DEST_PATH_IMAGE086
,并判断是否成立,如果成立,则返回步骤b-1);如果不成立,则执行步骤c-2-5-2);c-2-5-1). Find the destination MAC address based on the hash table
Figure 71228DEST_PATH_IMAGE084
The corresponding state set
Figure 138410DEST_PATH_IMAGE086
, and judge Whether it is true, if true, return to step b-1); if not true, then perform step c-2-5-2);

c-2-5-2).判断

Figure 260877DEST_PATH_IMAGE100
是否成立,如果不成立,则执行步骤c-2-5-3);如果成立,则设置
Figure 733447DEST_PATH_IMAGE106
,并将
Figure 768268DEST_PATH_IMAGE086
的存储地址插入AP链表的末端,再执行步骤c-2-5-3);c-2-5-2). Judgment
Figure 260877DEST_PATH_IMAGE100
Whether it is true, if not, then execute step c-2-5-3); if true, set
Figure 733447DEST_PATH_IMAGE106
, and will
Figure 768268DEST_PATH_IMAGE086
Insert the storage address into the end of the AP linked list, and then perform step c-2-5-3);

c-2-5-3).判断的内容是否为空,如果不为空,直接返回步骤b-1);如果为空,则根据帧体内容,获取

Figure 855490DEST_PATH_IMAGE108
的值,再返回步骤b-1);c-2-5-3). Judgment Whether the content of the frame is empty, if not, directly return to step b-1); if it is empty, according to the content of the frame body, get
Figure 855490DEST_PATH_IMAGE108
value, and then return to step b-1);

c-3).判断控制帧的子类型,若为节能轮询,则基于哈希表查找目的MAC地址

Figure 182566DEST_PATH_IMAGE084
所对应的状态集,执行步骤c-3-1);若为其它子类型,则返回步骤b-1);c-3). Determine the subtype of the control frame. If it is energy-saving polling, look up the destination MAC address based on the hash table
Figure 182566DEST_PATH_IMAGE084
The corresponding state set , execute step c-3-1); if it is another subtype, return to step b-1);

c-3-1).判断

Figure 4077DEST_PATH_IMAGE092
是否成立,如果成立,则执行步骤c-3-4);如果不成立,则执行步骤c-3-2);c-3-1). Judgment
Figure 4077DEST_PATH_IMAGE092
Whether it is established, if established, then execute step c-3-4); if not established, execute step c-3-2);

c-3-2).判断是否成立,如果不成立,则执行步骤c-3-3);如果成立,先设置

Figure 135030DEST_PATH_IMAGE090
,再执行步骤c-3-3);c-3-2). Judgment Whether it is true, if not, then execute step c-3-3); if true, first set
Figure 135030DEST_PATH_IMAGE090
, and then perform step c-3-3);

c-3-3).将

Figure 527965DEST_PATH_IMAGE062
的存储地址插入其父节点
Figure 427788DEST_PATH_IMAGE086
Figure 180850DEST_PATH_IMAGE110
序列的末端,且序列
Figure 216939DEST_PATH_IMAGE112
的长度
Figure 780775DEST_PATH_IMAGE114
增加1;并设置
Figure 167894DEST_PATH_IMAGE092
,执行步骤c-3-4);c-3-3). Will
Figure 527965DEST_PATH_IMAGE062
The storage address of is inserted into its parent node
Figure 427788DEST_PATH_IMAGE086
Inside
Figure 180850DEST_PATH_IMAGE110
the end of the sequence, and the sequence
Figure 216939DEST_PATH_IMAGE112
length
Figure 780775DEST_PATH_IMAGE114
increment by 1; and set
Figure 167894DEST_PATH_IMAGE092
, execute step c-3-4);

c-3-4).判断

Figure 459067DEST_PATH_IMAGE100
是否成立,如果不成立,返回步骤b-1);如果成立,则设置
Figure 615242DEST_PATH_IMAGE106
,并将的存储地址插入AP链表的末端,返回步骤b-1);c-3-4). Judgment
Figure 459067DEST_PATH_IMAGE100
Whether it is true, if not, return to step b-1); if true, set
Figure 615242DEST_PATH_IMAGE106
, and will The storage address of is inserted into the end of the AP linked list, and returns to step b-1);

c-4).基于哈希表,查找目的MAC地址对应的状态集

Figure 132308DEST_PATH_IMAGE086
;判断数据帧的传输方向,若为上行帧则执行步骤c-4-1);若其为下行帧则执行步骤c-4-2);c-4). Find the destination MAC address based on the hash table corresponding state set
Figure 132308DEST_PATH_IMAGE086
; Judging the transmission direction of the data frame, if it is an uplink frame, then perform step c-4-1); if it is a downlink frame, then perform step c-4-2);

c-4-1).判断是否成立,如果成立,则执行步骤c-4-1-3);如果不成立,则执行步骤c-4-1-1);c-4-1). Judgment Whether it is established, if established, execute step c-4-1-3); if not established, execute step c-4-1-1);

c-4-1-1).判断

Figure 235579DEST_PATH_IMAGE088
是否成立,如果不成立,则执行步骤c-4-1-2);如果成立,则先设置
Figure 518662DEST_PATH_IMAGE090
,再执行步骤c-4-1-2);c-4-1-1). Judgment
Figure 235579DEST_PATH_IMAGE088
Whether it is true, if not, then execute step c-4-1-2); if true, set it first
Figure 518662DEST_PATH_IMAGE090
, and then perform step c-4-1-2);

c-4-1-2).将的存储地址插入其父节点

Figure 33137DEST_PATH_IMAGE086
Figure 939755DEST_PATH_IMAGE110
序列的末端,且序列
Figure 523183DEST_PATH_IMAGE112
的长度
Figure 710582DEST_PATH_IMAGE114
增加1;设置
Figure 695856DEST_PATH_IMAGE092
,执行步骤c-4-1-3);c-4-1-2). Will The storage address of is inserted into its parent node
Figure 33137DEST_PATH_IMAGE086
Inside
Figure 939755DEST_PATH_IMAGE110
the end of the sequence, and the sequence
Figure 523183DEST_PATH_IMAGE112
length
Figure 710582DEST_PATH_IMAGE114
increment by 1; set
Figure 695856DEST_PATH_IMAGE092
, execute step c-4-1-3);

c-4-1-3).判断

Figure 192565DEST_PATH_IMAGE100
是否成立,如果不成立,则返回步骤b-1);如果成立,则设置
Figure 263289DEST_PATH_IMAGE106
,并将的存储地址插入AP链表的末端,返回步骤b-1);c-4-1-3). Judgment
Figure 192565DEST_PATH_IMAGE100
Whether it is true, if not, return to step b-1); if true, set
Figure 263289DEST_PATH_IMAGE106
, and will The storage address of is inserted into the end of the AP linked list, and returns to step b-1);

c-4-2).判断是否成立,如果不成立,则执行步骤c-4-2-1);如果成立,则设置

Figure 574819DEST_PATH_IMAGE094
,并将的存储地址插入AP链表的末端,执行步骤c-4-2-1);c-4-2). Judgment Whether it is true, if not, then execute step c-4-2-1); if true, set
Figure 574819DEST_PATH_IMAGE094
, and will Insert the storage address into the end of the AP linked list, perform step c-4-2-1);

c-4-2-1).判断

Figure 917168DEST_PATH_IMAGE104
是否成立,如果成立,则返回步骤b-1);如果不成立,则执行步骤c-4-2-2);c-4-2-1). Judgment
Figure 917168DEST_PATH_IMAGE104
Whether it is true, if true, return to step b-1); if not true, then perform step c-4-2-2);

c-4-2-2).判断

Figure 611454DEST_PATH_IMAGE100
是否成立,如果不成立,则执行步骤c-4-2-3);如果成立,则先设置,再执行步骤c-4-2-3);c-4-2-2). Judgment
Figure 611454DEST_PATH_IMAGE100
Whether it is true, if not, then execute step c-4-2-3); if true, set it first , and then perform step c-4-2-3);

c-4-2-3).将

Figure 432966DEST_PATH_IMAGE086
的存储地址插入其父节点
Figure 376968DEST_PATH_IMAGE110
序列的末端,且序列
Figure 402693DEST_PATH_IMAGE116
的长度
Figure 669726DEST_PATH_IMAGE114
增加1;设置
Figure 789998DEST_PATH_IMAGE104
,返回步骤b-1)。c-4-2-3). Will
Figure 432966DEST_PATH_IMAGE086
The storage address of is inserted into its parent node Inside
Figure 376968DEST_PATH_IMAGE110
the end of the sequence, and the sequence
Figure 402693DEST_PATH_IMAGE116
length
Figure 669726DEST_PATH_IMAGE114
increment by 1; set
Figure 789998DEST_PATH_IMAGE104
, return to step b-1).

d).以时间

Figure 396559DEST_PATH_IMAGE036
为周期,对WLAN拓扑结构进行遍历,利用WLAN拓扑结构内的AP状态集和第一类STA状态集,更新现有拓扑树列表内的节点数据,并查找、标记RSSI统计均值
Figure 842453DEST_PATH_IMAGE038
最大的STA;第一类STA状态集是
Figure 271477DEST_PATH_IMAGE040
的状态集;拓扑树列表是采用树状分层列表的形式,对WLAN拓扑结构内的各AP状态集和第一类STA状态集的输出显示结果;
Figure 794863DEST_PATH_IMAGE038
是对序列
Figure 146078DEST_PATH_IMAGE008
内所有元素的统计均值;d). by time
Figure 396559DEST_PATH_IMAGE036
As a cycle, traverse the WLAN topology structure, use the AP state set and the first-class STA state set in the WLAN topology structure, update the node data in the existing topology tree list, and find and mark the statistical mean value of RSSI
Figure 842453DEST_PATH_IMAGE038
The largest STA; the first type of STA state set is and
Figure 271477DEST_PATH_IMAGE040
The state set; the topology tree list is in the form of a tree-like hierarchical list, and displays the results of the output of each AP state set and the first type of STA state set in the WLAN topology;
Figure 794863DEST_PATH_IMAGE038
is the sequence
Figure 146078DEST_PATH_IMAGE008
The statistical mean of all elements in ;

如图7所示,给出了利用WLAN拓扑结构内的状态集对拓扑树列表进行周期性更新方法的流程图;As shown in Figure 7, a flow chart of a method for periodically updating the topology tree list using the state set in the WLAN topology structure is provided;

Figure 387704DEST_PATH_IMAGE118
为AP链表内节点的标号,
Figure 866090DEST_PATH_IMAGE120
为AP链表内第
Figure 243982DEST_PATH_IMAGE118
个节点所索引的AP状态集,
Figure 31678DEST_PATH_IMAGE122
Figure 432703DEST_PATH_IMAGE124
序列内元素的标号,
Figure 275074DEST_PATH_IMAGE124
序列内第
Figure 968093DEST_PATH_IMAGE122
个元素所索引的STA状态集,
Figure 184310DEST_PATH_IMAGE128
为信号强度RSSI的最大统计均值;拓扑树列表内,各AP状态集位于父节点列表层,各第一类STA状态集位于对应AP下的子节点列表层,AP节点显示的数据项为MAC地址、信道号、SSID、RSSI统计均值和捕获无线帧的总数,STA节点显示的数据项为MAC地址、RSSI统计均值和捕获无线帧的总数;步骤d)所述利用WLAN拓扑结构内的状态集对拓扑树列表进行周期性更新的处理,可采用以下步骤来实现:set up
Figure 387704DEST_PATH_IMAGE118
is the label of the node in the AP linked list,
Figure 866090DEST_PATH_IMAGE120
is the first in the AP linked list
Figure 243982DEST_PATH_IMAGE118
AP state set indexed by nodes,
Figure 31678DEST_PATH_IMAGE122
for
Figure 432703DEST_PATH_IMAGE124
the index of the element within the sequence, for
Figure 275074DEST_PATH_IMAGE124
sequence number
Figure 968093DEST_PATH_IMAGE122
STA state set indexed by elements,
Figure 184310DEST_PATH_IMAGE128
is the maximum statistical mean value of the signal strength RSSI; in the topology tree list, each AP state set is located at the parent node list layer, each first-class STA state set is located at the child node list layer under the corresponding AP, and the data item displayed by the AP node is the MAC address , channel number, SSID, RSSI statistical mean value and the total number of captured wireless frames, the data items displayed by the STA node are MAC address, RSSI statistical mean value and the total number of captured wireless frames; step d) using the state set pair in the WLAN topology The process of periodically updating the topology tree list can be realized by the following steps:

d-1). 获取现有拓扑树列表内的AP节点总数

Figure 4499DEST_PATH_IMAGE130
;d-1). Obtain the total number of AP nodes in the existing topology tree list
Figure 4499DEST_PATH_IMAGE130
;

d-2).初始值设定,将AP链表的读取位置设置为链表头结点,设置AP节点标号

Figure 356983DEST_PATH_IMAGE118
的初始值为“0”, RSSI的最大统计均值的初始值为-90,执行步骤d-3);d-2). Initial value setting, set the reading position of the AP linked list as the head node of the linked list, and set the AP node label
Figure 356983DEST_PATH_IMAGE118
The initial value of is "0", the maximum statistical mean of RSSI The initial value of -90, execute step d-3);

d-3).判断遍历是否完成,判断AP链表是否遍历完成,如果完成,则执行步骤d-16);如果没有遍历完成,则执行步骤d-4);d-3). Judging whether the traversal is complete, judging whether the traversal of the AP linked list is complete, if complete, then perform step d-16); if not traversal is complete, then perform step d-4);

d-4).在AP链表的当前处理位置读取一个节点,并设置

Figure 658837DEST_PATH_IMAGE132
;获取AP状态集的MAC地址、信道号、SSID和捕获无线帧的总数,并基于奇异点滤除和均值处理方法计算其RSSI的统计均值,执行步骤d-5);d-4). Read a node at the current processing position of the AP linked list, and set
Figure 658837DEST_PATH_IMAGE132
; Get AP state set MAC address, channel number, SSID and the total number of captured wireless frames, and calculate the statistical mean value of its RSSI based on singular point filtering and mean value processing method, perform step d-5);

d-5).比较标号

Figure 489707DEST_PATH_IMAGE118
与AP节点总数
Figure 603156DEST_PATH_IMAGE130
,判断是否成立,如果成立,执行步骤d-6);如果不成立,则执行步骤d-7);d-5). Compare labels
Figure 489707DEST_PATH_IMAGE118
and the total number of AP nodes
Figure 603156DEST_PATH_IMAGE130
,judge Whether it is established, if established, execute step d-6); if not established, execute step d-7);

d-6).比较AP状态集

Figure 871469DEST_PATH_IMAGE120
与拓扑树列表内第
Figure 198546DEST_PATH_IMAGE118
个AP节点的对应数据项,对于不一致的数据项进行更新;并获取拓扑树列表第
Figure 669847DEST_PATH_IMAGE118
个AP节点的子节点总数
Figure 754478DEST_PATH_IMAGE136
,执行步骤d-8);d-6). Compare AP state sets
Figure 871469DEST_PATH_IMAGE120
and the first in the topological tree list
Figure 198546DEST_PATH_IMAGE118
The corresponding data items of AP nodes, update the inconsistent data items; and obtain the topological tree list No.
Figure 669847DEST_PATH_IMAGE118
The total number of child nodes of an AP node
Figure 754478DEST_PATH_IMAGE136
, execute step d-8);

d-7).利用

Figure 782477DEST_PATH_IMAGE120
构建新节点,加入现有拓扑树列表内AP列表的末端,执行步骤d-8);d-7). Use
Figure 782477DEST_PATH_IMAGE120
Build a new node, add the end of the AP list in the existing topology tree list, and perform step d-8);

d-8).初始化

Figure 964059DEST_PATH_IMAGE122
,将
Figure 606262DEST_PATH_IMAGE124
序列的元素标号
Figure 506085DEST_PATH_IMAGE122
设置为“1”,执行步骤d-9);d-8).Initialization
Figure 964059DEST_PATH_IMAGE122
,Will
Figure 606262DEST_PATH_IMAGE124
sequence element number
Figure 506085DEST_PATH_IMAGE122
set to "1", execute step d-9);

d-9).判断序列

Figure 9879DEST_PATH_IMAGE124
中的所有元素是否读取完毕,如果读取完毕,则执行步骤d-3);如果没有读取完毕,则执行步骤d-10);d-9). Judgment sequence
Figure 9879DEST_PATH_IMAGE124
Whether all the elements in are read completely, if read complete, execute step d-3); if not read complete, execute step d-10);

d-10).读取序列的第

Figure 859072DEST_PATH_IMAGE122
个元素,获取STA状态集
Figure 980612DEST_PATH_IMAGE126
的MAC地址和捕获无线帧的总数,并基于奇异点滤除和均值处理方法计算其RSSI的统计均值,执行步骤d-11);d-10). Read sequence First
Figure 859072DEST_PATH_IMAGE122
elements to get the STA state set
Figure 980612DEST_PATH_IMAGE126
MAC address and the total number of captured wireless frames, and calculate the statistical mean of RSSI based on singular point filtering and mean value processing methods , execute step d-11);

d-11).信号强度比较,比较

Figure 444271DEST_PATH_IMAGE138
Figure 241326DEST_PATH_IMAGE128
的大小,如果
Figure 37112DEST_PATH_IMAGE140
,则执行步骤d-12);如果
Figure 945025DEST_PATH_IMAGE142
,则以
Figure 955707DEST_PATH_IMAGE144
Figure 861346DEST_PATH_IMAGE146
记录
Figure 144429DEST_PATH_IMAGE118
Figure 856033DEST_PATH_IMAGE122
的值,并设置,执行步骤d-12);d-11). Signal strength comparison, comparison
Figure 444271DEST_PATH_IMAGE138
and
Figure 241326DEST_PATH_IMAGE128
size, if
Figure 37112DEST_PATH_IMAGE140
, then execute step d-12); if
Figure 945025DEST_PATH_IMAGE142
, then with
Figure 955707DEST_PATH_IMAGE144
and
Figure 861346DEST_PATH_IMAGE146
Record
Figure 144429DEST_PATH_IMAGE118
and
Figure 856033DEST_PATH_IMAGE122
value, and set , execute step d-12);

d-12).判断

Figure 63340DEST_PATH_IMAGE134
是否成立,如果成立,执行步骤d-13);如果不成立,则执行步骤d-14);d-12). Judgment
Figure 63340DEST_PATH_IMAGE134
Whether it is established, if established, execute step d-13); if not established, execute step d-14);

d-13).判断

Figure 381189DEST_PATH_IMAGE150
是否成立,如果成立,则比较
Figure 83435DEST_PATH_IMAGE126
与拓扑树列表第
Figure 68708DEST_PATH_IMAGE118
个AP节点的第
Figure 316150DEST_PATH_IMAGE122
个子节点的对应数据项,并对不一致的数据项进行更新,执行步骤d-15);如果不成立,则执行步骤d-14);d-13). Judgment
Figure 381189DEST_PATH_IMAGE150
is true, and if so, compare
Figure 83435DEST_PATH_IMAGE126
and topological tree list No.
Figure 68708DEST_PATH_IMAGE118
The first AP node
Figure 316150DEST_PATH_IMAGE122
child nodes, and update the inconsistent data items, execute step d-15); if not established, execute step d-14);

d-14).利用构建新节点,加入拓扑树列表第

Figure 361652DEST_PATH_IMAGE118
个AP节点的子节点列表的末端,执行步骤d-15);d-14). Use Build a new node and add it to the topological tree list
Figure 361652DEST_PATH_IMAGE118
The end of the child node list of AP node, execute step d-15);

d-15).设置

Figure 139115DEST_PATH_IMAGE152
,跳转执行步骤d-9);d-15). Setting
Figure 139115DEST_PATH_IMAGE152
, jump to step d-9);

d-16).拓扑树列表内第

Figure 892480DEST_PATH_IMAGE144
个AP节点下的第
Figure 637451DEST_PATH_IMAGE146
个STA节点,即为本周期内具有最大RSSI统计均值的第一类STA状态集,对其进行标记。d-16). The first in the topological tree list
Figure 892480DEST_PATH_IMAGE144
The first AP under the AP node
Figure 637451DEST_PATH_IMAGE146
STA nodes, namely The first type of STA state set with the largest RSSI statistical mean value in the period is marked.

e).以时间

Figure 126518DEST_PATH_IMAGE042
为周期,对哈希表内的第二类STA状态集进行遍历,利用第二类STA状态集,更新现有未关联列表内的节点数据,并查找、标记RSSI统计均值
Figure 778080DEST_PATH_IMAGE038
最大的STA;第二类STA状态集是
Figure 744767DEST_PATH_IMAGE044
Figure 139977DEST_PATH_IMAGE046
的状态集;未关联列表是采用单层列表的形式,对各第二类STA状态集的输出显示结果;e). by time
Figure 126518DEST_PATH_IMAGE042
As a cycle, traverse the second type of STA state set in the hash table, use the second type of STA state set to update the node data in the existing unassociated list, and find and mark the statistical mean value of RSSI
Figure 778080DEST_PATH_IMAGE038
The largest STA; the second type of STA state set is
Figure 744767DEST_PATH_IMAGE044
and
Figure 139977DEST_PATH_IMAGE046
The state set; the unassociated list is in the form of a single-layer list, and displays the results of the output of each second type STA state set;

如图8所示,给出了利用哈希表内的第二类STA状态集对未关联列表进行周期性更新方法的流程图;As shown in Figure 8, a flowchart of a method for periodically updating the unassociated list using the second type of STA state set in the hash table is provided;

Figure 78983DEST_PATH_IMAGE122
为在哈希表内所查找到的第二类STA状态集的标号,
Figure 839128DEST_PATH_IMAGE154
为信号强度RSSI的最大统计均值;未关联列表内,各STA节点显示的数据项为MAC地址、RSSI统计均值和捕获无线帧的总数;步骤e)所述利用哈希表内的第二类STA状态集对未关联列表进行周期性更新的处理,可采用以下步骤来实现:set up
Figure 78983DEST_PATH_IMAGE122
is the label of the second type of STA state set found in the hash table,
Figure 839128DEST_PATH_IMAGE154
is the maximum statistical mean value of signal strength RSSI; in the unassociated list, the data items displayed by each STA node are the MAC address, the statistical mean value of RSSI and the total number of captured wireless frames; step e) uses the second type of STA in the hash table The process of periodically updating the unassociated list by the state set can be realized by the following steps:

e-1). 获取现有未关联列表内的STA节点总数

Figure 106162DEST_PATH_IMAGE136
;将读取位置设为哈希表的起始位置;标号
Figure 305062DEST_PATH_IMAGE156
,最大RSSI统计均值
Figure 98574DEST_PATH_IMAGE158
;e-1). Obtain the total number of STA nodes in the existing unassociated list
Figure 106162DEST_PATH_IMAGE136
;Set the read position as the starting position of the hash table; label
Figure 305062DEST_PATH_IMAGE156
, the maximum RSSI statistical mean
Figure 98574DEST_PATH_IMAGE158
;

e-2).判断包含冲突链表在内的哈希表是否遍历完成,如果完成,则执行步骤e-7);如果没有遍历完成,则执行步骤e-3);e-2). Judging whether the hash table including the conflict linked list has been traversed, if completed, then execute step e-7); if not traversed, then execute step e-3);

e-3).在哈希表的当前处理位置读取一个状态集

Figure 91938DEST_PATH_IMAGE002
,判断该状态集是否满足
Figure 33218DEST_PATH_IMAGE046
Figure 35809DEST_PATH_IMAGE044
的条件,如果不满足,则其不属于第二类STA状态集,跳转执行步骤e-2);如果满足,则执行步骤e-4);e-3). Read a state set at the current processing position of the hash table
Figure 91938DEST_PATH_IMAGE002
, to judge whether the state set satisfies
Figure 33218DEST_PATH_IMAGE046
and
Figure 35809DEST_PATH_IMAGE044
If the condition is not satisfied, it does not belong to the second type of STA state set, and jumps to step e-2); if it is satisfied, then executes step e-4);

e-4).设置

Figure 559195DEST_PATH_IMAGE152
;获取STA状态集
Figure 661143DEST_PATH_IMAGE126
的MAC地址和捕获无线帧的总数,并基于奇异点滤除和均值处理方法计算其RSSI的统计均值,执行步骤e-5);e-4). Setting
Figure 559195DEST_PATH_IMAGE152
; Get STA state set
Figure 661143DEST_PATH_IMAGE126
MAC address and the total number of captured wireless frames, and calculate the statistical mean value of its RSSI based on singular point filtering and mean value processing method, perform step e-5);

e-5).信号强度比较,比较

Figure 902768DEST_PATH_IMAGE138
Figure 630422DEST_PATH_IMAGE154
的大小,如果,则执行步骤e-6);如果
Figure 546742DEST_PATH_IMAGE162
,则以
Figure 10084DEST_PATH_IMAGE146
记录
Figure 535569DEST_PATH_IMAGE122
的值,并设置
Figure 705651DEST_PATH_IMAGE164
,执行步骤e-6);e-5). Signal strength comparison, comparison
Figure 902768DEST_PATH_IMAGE138
and
Figure 630422DEST_PATH_IMAGE154
size, if , then execute step e-6); if
Figure 546742DEST_PATH_IMAGE162
, then with
Figure 10084DEST_PATH_IMAGE146
Record
Figure 535569DEST_PATH_IMAGE122
value, and set
Figure 705651DEST_PATH_IMAGE164
, execute step e-6);

e-6).判断

Figure 664248DEST_PATH_IMAGE150
是否成立,如果成立,则比较
Figure 614887DEST_PATH_IMAGE126
与未关联列表第个STA节点的对应数据项,并对不一致的数据项进行更新,执行步骤e-2);如果不成立,则利用
Figure 787559DEST_PATH_IMAGE126
构建新节点,加入现有未关联列表的末端,执行步骤e-2);e-6). Judgment
Figure 664248DEST_PATH_IMAGE150
is true, and if so, compare
Figure 614887DEST_PATH_IMAGE126
with unassociated list No. corresponding data items of STA nodes, and update the inconsistent data items, and execute step e-2); if not established, use
Figure 787559DEST_PATH_IMAGE126
Build a new node, join the end of the existing unassociated list, execute step e-2);

e-7).判断

Figure 917058DEST_PATH_IMAGE150
是否成立,如果不成立,则执行步骤e-8);如果成立,删除现有未关联列表末端的
Figure 354993DEST_PATH_IMAGE166
个STA节点,执行步骤e-8);哈希表遍历完成后,这里记录了所查找到的第二类STA状态集的总数;e-7). Judgment
Figure 917058DEST_PATH_IMAGE150
Whether it is established, if not, then execute step e-8); if it is established, delete the end of the existing unassociated list
Figure 354993DEST_PATH_IMAGE166
STA nodes, execute step e-8); after hash table traversal is completed, here Records the total number of found second-type STA state sets;

e-8).未关联列表的第个STA节点,即为本

Figure 299312DEST_PATH_IMAGE042
周期内具有最大RSSI统计均值的第二类STA状态集,对其进行标记。e-8). The first part of the unassociated list STA nodes, that is, the
Figure 299312DEST_PATH_IMAGE042
The second type of STA state set with the largest RSSI statistical mean value in the period is marked.

f).判定特定目标用户的MAC地址,当步骤d)所述拓扑树列表内和步骤e)所述未关联列表内所标记的

Figure 411493DEST_PATH_IMAGE038
最大的STA节点都保持稳定时,比较两个步骤中STA的RSSI统计均值,两者之中具有较大
Figure 635801DEST_PATH_IMAGE038
的STA节点所对应的MAC地址,即为特定目标用户的MAC地址。f). Determine the MAC address of the specific target user, when step d) in the topological tree list and step e) in the unassociated list described in the marked
Figure 411493DEST_PATH_IMAGE038
When the largest STA nodes remain stable, compare the statistical mean values of RSSI of the STAs in the two steps, and the one with the larger
Figure 635801DEST_PATH_IMAGE038
The MAC address corresponding to the STA node is the MAC address of the specific target user.

Figure 900561DEST_PATH_IMAGE168
为拓扑树列表内所标记的STA节点和未关联列表内所标记的STA节点都保持稳定的时间,当两者中的任一个发生改变时,
Figure 106283DEST_PATH_IMAGE168
都重置为0;步骤f)所述对特定目标用户MAC地址进行判定的处理,可采用以下步骤来实现:set up
Figure 900561DEST_PATH_IMAGE168
The time for both the marked STA nodes in the topological tree list and the marked STA nodes in the unassociated list to remain stable, when any one of the two changes,
Figure 106283DEST_PATH_IMAGE168
are all reset to 0; the process of determining the MAC address of a specific target user described in step f) can be realized by the following steps:

f-1).判断稳定时间

Figure 456493DEST_PATH_IMAGE168
是否达到阈值
Figure 484492DEST_PATH_IMAGE170
,如果达到
Figure 666074DEST_PATH_IMAGE170
,则执行步骤f-2);如果未达到,则随机等待一段时间后再执行步骤f-1);f-1). Judgment of stabilization time
Figure 456493DEST_PATH_IMAGE168
Is the threshold reached
Figure 484492DEST_PATH_IMAGE170
, if reaching
Figure 666074DEST_PATH_IMAGE170
, then execute step f-2); if not, then execute step f-1) after waiting for a period of time at random;

f-2).比较

Figure 432911DEST_PATH_IMAGE128
值的大小,若
Figure 570948DEST_PATH_IMAGE172
,则将拓扑树列表内所标记的STA节点确定为特定目标,返回其MAC地址;若
Figure 59567DEST_PATH_IMAGE174
,则将未关联列表内所标记的STA节点确定为特定目标,返回其MAC地址。f-2).Comparison
Figure 432911DEST_PATH_IMAGE128
and value size, if
Figure 570948DEST_PATH_IMAGE172
, then determine the STA node marked in the topology tree list as a specific target, and return its MAC address; if
Figure 59567DEST_PATH_IMAGE174
, the STA node marked in the unassociated list is determined as a specific target, and its MAC address is returned.

其中:in:

对于步骤a),在全部可用信道或指定信道内,有效获取通过空中链路传输的各类无线帧(包括5 GHz频段符合802.11 a标准、2.4 GHz频段802.11 b/g标准和2.4/5 GHz频段802.11n标准的无线管理帧、控制帧和数据帧),是对特定目标STA的MAC地址进行捕获的基础和前提。For step a), effectively acquire all kinds of wireless frames transmitted over the air link (including 802.11 a standard in the 5 GHz frequency band, 802.11 b/g standard in the 2.4 GHz frequency band and 2.4/5 GHz frequency band in all available channels or designated channels 802.11n standard wireless management frame, control frame and data frame) is the basis and premise of capturing the MAC address of a specific target STA.

对于步骤b),将各无线帧的RSSI值快速更新至源MAC地址所对应状态集内的

Figure 332327DEST_PATH_IMAGE008
序列,是高效、准确地实现基于RSSI的MAC地址捕获方法的核心问题。For step b), the RSSI value of each wireless frame is quickly updated to the corresponding state set of the source MAC address
Figure 332327DEST_PATH_IMAGE008
Sequence is the core problem of efficiently and accurately implementing the RSSI-based MAC address capture method.

优选地,将每个STA/AP状态集

Figure 453867DEST_PATH_IMAGE002
作为一条“记录”,以
Figure 761351DEST_PATH_IMAGE006
作为该记录的“关键字”,构建关于数据获取模块接收范围内各STA/AP状态集的哈希表,可实现由无线帧的源MAC地址到所对应状态集在哈希表内的存储位置的直接映射。由于MAC地址由6字节(48比特)组成,共存在
Figure DEST_PATH_IMAGE180
种可能的取值,因此无法直接将其用作哈希地址;可取其最后两字节(
Figure 104477DEST_PATH_IMAGE006
的第5, 6个元素)作为哈希地址,由此所构建哈希表的长度为,例如,对于MAC地址“00-A1-B0-BF-05-14”,可直接确定其所对应的状态集在哈希表内的位置,即。Preferably, each STA/AP state set
Figure 453867DEST_PATH_IMAGE002
as a "record" with
Figure 761351DEST_PATH_IMAGE006
As the "keyword" of this record, construct a hash table about each STA/AP state set within the receiving range of the data acquisition module, which can realize the storage location in the hash table from the source MAC address of the wireless frame to the corresponding state set direct mapping. Since the MAC address consists of 6 bytes (48 bits), there are
Figure DEST_PATH_IMAGE180
possible values, so it cannot be used directly as a hash address; its last two bytes (
Figure 104477DEST_PATH_IMAGE006
The 5th and 6th elements of ) are used as the hash address, so the length of the constructed hash table is , for example, for the MAC address "00-A1-B0-BF-05-14", the position of the corresponding state set in the hash table can be directly determined, namely .

然而当几个STA/AP的MAC地址的后两字节相同时,其状态集将具有相同的哈希地址,如MAC地址为“00-A1-B0-BF-05-14”和“8C-A9-82-65-05-14”的两个STA状态集的哈希地址均为1300,从而导致哈希表冲突问题。However, when the last two bytes of the MAC addresses of several STAs/APs are the same, their state sets will have the same hash address, for example, the MAC addresses are "00-A1-B0-BF-05-14" and "8C- The hash addresses of the two STA state sets of A9-82-65-05-14" are both 1300, which leads to hash table conflicts.

优选地,采用基于链地址的哈希表冲突处理方法,将MAC地址后两字节相同的所有STA/AP状态集,都存储在同一线性链表中。由于哈希函数是均匀的,因此在哈希表和冲突链表内查找符合

Figure 26165DEST_PATH_IMAGE066
的状态集,查找成功和失败时的平均查找长度分别为Preferably, a chain address-based hash table conflict processing method is used to store all STA/AP state sets with the same last two bytes of the MAC address in the same linear linked list. Due to the hash function is uniform, so look up in the hash table and collision list
Figure 26165DEST_PATH_IMAGE066
The state set of the state set, the average search length when the search succeeds and fails is respectively

Figure DEST_PATH_IMAGE188
Figure DEST_PATH_IMAGE190
Figure DEST_PATH_IMAGE188
,
Figure DEST_PATH_IMAGE190

式中

Figure DEST_PATH_IMAGE192
表示哈希表的装填因子(填入记录数/哈希表长)。通常数据获取模块接收范围内的STA/AP数量远远小于哈希表长,因此
Figure DEST_PATH_IMAGE194
Figure DEST_PATH_IMAGE196
都近似为1,可见该方法具有非常高的查找效率。In the formula
Figure DEST_PATH_IMAGE192
Indicates the filling factor of the hash table (the number of filled records/the length of the hash table). Usually the number of STAs/APs within the receiving range of the data acquisition module is much smaller than the length of the hash table, so
Figure DEST_PATH_IMAGE194
and
Figure DEST_PATH_IMAGE196
Both are approximately 1, which shows that this method has a very high search efficiency.

由于该方法可针对捕获的大量无线帧进行高效、快速的状态集查找和更新,因此其具有“无线数据量适用性”的优势。Because this method can perform efficient and fast state set lookup and update for a large number of captured wireless frames, it has the advantage of "wireless data volume applicability".

对于步骤c),构建WLAN网络拓扑结构的必要性在于:(1)可在稀疏度较大的哈希表内,为所出现的STA/AP状态集建立有效的索引结构,以快速遍历各状态集并获取RSSI的全局最优值;(2)可建立各STA/AP状态集间的关联关系,以获取特定目标STA所接入的AP和所使用的无线信道。For step c), the necessity of constructing the WLAN network topology lies in: (1) An effective index structure can be established for the STA/AP state set that appears in the hash table with a large sparsity, so as to quickly traverse each state (2) The association relationship between each STA/AP state set can be established to obtain the AP accessed by a specific target STA and the wireless channel used.

优选地,在Infrastructure(基础结构)模式的WLAN中,可由AP和STA间的“父子关系”描述网络拓扑结构。AP链表可对AP状态集进行索引,而AP状态集内的序列可对其各STA子节点进行索引;因此,基于“AP链表 + 序列”即可构建完整的WLAN拓扑结构。Preferably, in a WLAN in Infrastructure (infrastructure) mode, the network topology can be described by a "parent-child relationship" between APs and STAs. The AP linked list can index the AP state set, and the AP state set A sequence can index each of its STA child nodes; therefore, based on the "AP linked list + Sequence" to build a complete WLAN topology.

优选地,对状态集内与拓扑结构相关的各数据项(

Figure DEST_PATH_IMAGE198
Figure DEST_PATH_IMAGE200
Figure 859321DEST_PATH_IMAGE110
)以及AP链表的处理方法可包括:检测状态集内的
Figure DEST_PATH_IMAGE204
标志,若
Figure 110359DEST_PATH_IMAGE104
,则跳过后续对
Figure 759647DEST_PATH_IMAGE062
Figure 624834DEST_PATH_IMAGE086
的处理;若首次判定
Figure 950642DEST_PATH_IMAGE094
Figure 534071DEST_PATH_IMAGE106
(即类型为AP),则以
Figure 987049DEST_PATH_IMAGE062
Figure 706743DEST_PATH_IMAGE086
的存储地址构建新节点,并插入AP链表的末端;通过特定子类型的管理帧(如“信标”帧等)可获取AP状态集内的
Figure 203452DEST_PATH_IMAGE200
Figure 274176DEST_PATH_IMAGE202
值;通过数据帧或特定子类型的控制帧(如“节能轮询”帧等)可确定
Figure 105046DEST_PATH_IMAGE086
之间的关联关系,从而将STA状态集的存储地址插入AP状态集内的
Figure 585706DEST_PATH_IMAGE110
序列。Preferably, for each data item related to the topology in the state set (
Figure DEST_PATH_IMAGE198
,
Figure DEST_PATH_IMAGE200
, and
Figure 859321DEST_PATH_IMAGE110
) and the processing method of the AP linked list may include: detecting the
Figure DEST_PATH_IMAGE204
sign if or
Figure 110359DEST_PATH_IMAGE104
, then skip the subsequent pair
Figure 759647DEST_PATH_IMAGE062
or
Figure 624834DEST_PATH_IMAGE086
processing; if the first judgment
Figure 950642DEST_PATH_IMAGE094
or
Figure 534071DEST_PATH_IMAGE106
(that is, the type is AP), then use
Figure 987049DEST_PATH_IMAGE062
or
Figure 706743DEST_PATH_IMAGE086
The storage address of the new node is constructed and inserted into the end of the AP linked list; through a specific subtype of management frame (such as "beacon" frame, etc.), the information in the AP state set can be obtained
Figure 203452DEST_PATH_IMAGE200
and
Figure 274176DEST_PATH_IMAGE202
Value; determinable by data frames or by subtype-specific control frames (e.g. "Energy Saver Polling" frames, etc.) and
Figure 105046DEST_PATH_IMAGE086
The association relationship between, so that the storage address of the STA state set is inserted into the AP state set
Figure 585706DEST_PATH_IMAGE110
sequence.

当STA已接入AP,且收发的数据量较大时,基于所捕获的首个数据帧即可判定

Figure 330677DEST_PATH_IMAGE062
Figure 922195DEST_PATH_IMAGE086
的类型并确定关联关系,从而跳过对后续大量帧的处理;而当STA未接入AP,或已接入AP但收发的数据较少时,基于少量的管理帧或控制帧也可部分判定
Figure 471305DEST_PATH_IMAGE086
的类型;因此,上述方法具有“网络连通适用性”和“无线数据量适用性”的优势。When the STA has connected to the AP and the amount of data sent and received is large, it can be determined based on the first captured data frame
Figure 330677DEST_PATH_IMAGE062
,
Figure 922195DEST_PATH_IMAGE086
type and determine the association relationship, thereby skipping the processing of a large number of subsequent frames; and when the STA has not connected to the AP, or has connected to the AP but sends and receives less data, it can also be partially determined based on a small number of management frames or control frames ,
Figure 471305DEST_PATH_IMAGE086
type; therefore, the above method has the advantages of "network connectivity applicability" and "wireless data volume applicability".

对于步骤d)和步骤e),对WLAN拓扑结构和各STA/AP状态集进行周期性遍历和数据分析,基于各

Figure 251043DEST_PATH_IMAGE008
序列获取各STA所对应的RSSI统计均值,并将具有全局最大RSSI的STA确定为特定目标,是最终实现MAC地址捕获的关键。For step d) and step e), periodic traversal and data analysis are performed on the WLAN topology and each STA/AP state set, based on each
Figure 251043DEST_PATH_IMAGE008
Sequentially obtain the statistical mean value of RSSI corresponding to each STA, and determine the STA with the global maximum RSSI as a specific target, which is the key to finally realize MAC address capture.

优选地,基于一种高效率、低精度的数据处理方法,快速计算各状态集内序列

Figure 833203DEST_PATH_IMAGE008
的统计均值。常规的数据处理方法是,首先基于奇异点检测方法(如基于小波变换模极大值的方法)消除原始数据中的突变值;然后基于滤波方法(如基于卡尔曼滤波的方法)对数据进行平滑处理,消除白噪声等干扰;最后计算数据的平均值。但小波方法、卡尔曼滤波等方法的计算量相对较大,当数据获取模块接收范围内存在较多STA/AP时,处理能力相对较弱的手持式终端便无法实时完成对多个状态集的数据统计;同时,在环境复杂的WLAN内,卡尔曼等滤波器模型中的参数也难以确定,因此,常规方法并不适用于特定目标MAC地址捕获的场景需求。由于仅需获取RSSI统计值的最大者,而对其精确度的要求并不高,因此可简化奇异点滤除方法,并省略滤波步骤,快速获取
Figure 647575DEST_PATH_IMAGE008
的统计均值:首先计算原始序列
Figure 407720DEST_PATH_IMAGE008
的平均值,记为
Figure DEST_PATH_IMAGE206
;然后基于所设定的经验阈值
Figure DEST_PATH_IMAGE208
,当任一
Figure DEST_PATH_IMAGE210
Figure 570628DEST_PATH_IMAGE206
的差值高于
Figure 769528DEST_PATH_IMAGE208
时,可将其识别为奇异点而滤除;最后计算
Figure 625357DEST_PATH_IMAGE008
内剩余数据的平均值,记为
Figure 618721DEST_PATH_IMAGE038
:Preferably, based on a high-efficiency, low-precision data processing method, quickly calculate the sequence in each state set
Figure 833203DEST_PATH_IMAGE008
statistical mean. The conventional data processing method is to first eliminate the abrupt value in the original data based on the singular point detection method (such as the method based on the wavelet transform modulus maximum value); and then smooth the data based on the filtering method (such as the method based on the Kalman filter) Processing, eliminating interference such as white noise; finally calculating the average value of the data. However, wavelet method, Kalman filter and other methods require a relatively large amount of calculation. When there are many STAs/APs in the receiving range of the data acquisition module, handheld terminals with relatively weak processing capabilities cannot complete the real-time analysis of multiple state sets. Data statistics; at the same time, in a complex WLAN environment, parameters in filter models such as Kalman are also difficult to determine. Therefore, conventional methods are not suitable for the scene requirements of specific target MAC address capture. Since only the largest RSSI statistical value needs to be obtained, and its accuracy is not high, the singular point filtering method can be simplified, and the filtering step can be omitted to quickly obtain
Figure 647575DEST_PATH_IMAGE008
The statistical mean of : first calculate the original sequence
Figure 407720DEST_PATH_IMAGE008
the average value of
Figure DEST_PATH_IMAGE206
; then based on the set empirical threshold
Figure DEST_PATH_IMAGE208
, when either
Figure DEST_PATH_IMAGE210
and
Figure 570628DEST_PATH_IMAGE206
The difference is higher than
Figure 769528DEST_PATH_IMAGE208
When , it can be identified as a singular point and filtered out; finally calculate
Figure 625357DEST_PATH_IMAGE008
The average value of the remaining data in , denoted as
Figure 618721DEST_PATH_IMAGE038
:

Figure DEST_PATH_IMAGE212
Figure DEST_PATH_IMAGE212

式中

Figure DEST_PATH_IMAGE214
表示滤除奇异点后的无线帧数量。由于MAC地址捕获过程中,数据获取模块与特定目标之间的相对位置保持不变,因此上述方法可有效滤除奇异点并获取相对准确的统计均值。In the formula
Figure DEST_PATH_IMAGE214
Indicates the number of wireless frames after filtering out singular points. Since the relative position between the data acquisition module and the specific target remains unchanged during the MAC address capture process, the above method can effectively filter out singular points and obtain a relatively accurate statistical mean.

优选地,将数据获取模块接收范围内的STA分为“已关联至AP”和“未关联至AP”两类:仅当实体类型为STA,且其状态集内的

Figure 497684DEST_PATH_IMAGE040
时,将其归入第一类;若实体类型为STA且
Figure 172379DEST_PATH_IMAGE046
,或者实体类型尚未确定(即
Figure 876856DEST_PATH_IMAGE018
),则将其归入第二类。Preferably, the STA within the receiving range of the data acquisition module is divided into two types: "associated to AP" and "not associated to AP": only if the entity type is STA, and the STA in its state set
Figure 497684DEST_PATH_IMAGE040
, classify it into the first category; if the entity type is STA and
Figure 172379DEST_PATH_IMAGE046
, or the entity type has not been determined (i.e.
Figure 876856DEST_PATH_IMAGE018
), it is classified into the second category.

优选地,以时间

Figure 306700DEST_PATH_IMAGE036
为周期,对WLAN拓扑结构进行遍历和对拓扑树列表进行更新;以
Figure 486009DEST_PATH_IMAGE042
为周期,对哈希表内的第二类STA状态集进行遍历和对未关联列表进行更新。第一类STA状态集可基于“AP链表+
Figure 948083DEST_PATH_IMAGE024
序列”的结构进行快速索引,且通常因其与AP间所传输的数据较多而需频繁更新
Figure 591554DEST_PATH_IMAGE008
的统计值;而第二类STA状态集仅能通过遍历整个哈希表进行低效率的查找,且通常因传输数据较少而无需频繁更新的统计值;因此,可设置遍历周期。Preferably, in time
Figure 306700DEST_PATH_IMAGE036
As a cycle, the WLAN topology is traversed and the topology tree list is updated; with
Figure 486009DEST_PATH_IMAGE042
As a cycle, the second type of STA state set in the hash table is traversed and the unassociated list is updated. The first type of STA state set can be based on "AP linked list +
Figure 948083DEST_PATH_IMAGE024
"Sequence" structure for fast indexing, and usually requires frequent updates due to the large amount of data transmitted between the AP and the AP
Figure 591554DEST_PATH_IMAGE008
The statistical value of ; while the second type of STA state set can only be searched inefficiently by traversing the entire hash table, and usually does not need to be updated frequently due to the small amount of transmitted data The statistical value of ; therefore, the traversal period can be set .

该方法可从任意多个STA的RSSI统计均值中判定全局最大者,因此具有“多用户适用性”的优势。由于数据获取模块和特定目标STA都处于非移动状态,仅需较少

Figure 780276DEST_PATH_IMAGE036
Figure 859090DEST_PATH_IMAGE042
周期即可获取稳定的RSSI统计数据;同时该方法运算量小,适于在手持式设备实现,因此其具有“取证快速性与无痕性”的优势。This method can determine the global maximum from the RSSI statistical mean values of any number of STAs, so it has the advantage of "multi-user applicability". Since both the data acquisition module and the specific target STA are in a non-moving state, only a few
Figure 780276DEST_PATH_IMAGE036
and
Figure 859090DEST_PATH_IMAGE042
Stable RSSI statistical data can be obtained in only one cycle; at the same time, this method has a small amount of calculation and is suitable for implementation on handheld devices, so it has the advantages of "fast and traceless evidence collection".

Claims (7)

1. A MAC address capturing method for a specific target user of a wireless local area network, wherein an AP is an access point in a WLAN, an STA is user terminal equipment, and RSSI is a received signal strength index, is characterized by sequentially comprising the following steps:
a) acquiring data, namely selecting a position which is closer to a specific target STA and farther from other users, and acquiring various wireless frames transmitted through an air link in the WLAN based on a channel scanning strategy, a time threshold strategy and a data volume threshold strategy;
b) building a state set and a hash table based on the state setUpdating RSSI sequences, setsA set of state information for a STA or AP, referred to as a "state set",
Figure 593594DEST_PATH_IMAGE002
recording as follows:
wherein,
Figure DEST_PATH_IMAGE006
storing the MAC address of the STA/AP for a sequence with the length of 6 bytes; due to the uniqueness of the MAC address, the method can be used for solving the problems that the prior art has no special address
Figure 676825DEST_PATH_IMAGE006
As a set of the states
Figure 440513DEST_PATH_IMAGE002
A unique identification of;
Figure DEST_PATH_IMAGE008
has a maximum length ofStoring the captured source MAC address as
Figure 714498DEST_PATH_IMAGE006
Each element of the RSSI value of each wireless frame is an integer value between-90 and 20, and the measurement unit is dBm;
Figure DEST_PATH_IMAGE012
the type of the entity is represented by,
Figure DEST_PATH_IMAGE014
indicating that it is an AP to which it is,
Figure DEST_PATH_IMAGE016
indicating that it is a STA,
Figure DEST_PATH_IMAGE018
indicating that its type has not been determined;
Figure DEST_PATH_IMAGE020
: only when
Figure 4665DEST_PATH_IMAGE014
If the time is valid, the SSID of the AP is stored;: only when
Figure 258798DEST_PATH_IMAGE014
If the AP is valid, storing the currently used wireless channel number of the AP;
Figure DEST_PATH_IMAGE024
: only whenTime-efficient, each STA sub-node used to index the AP is of maximum length
Figure DEST_PATH_IMAGE026
Each element is the storage address of the STA state set corresponding to each child node;
Figure DEST_PATH_IMAGE028
is a Boolean type numerical value, indicates
Figure 992716DEST_PATH_IMAGE002
Whether each state information in the system is complete or not, whenFor indicating whether the AP has been acquired
Figure 952636DEST_PATH_IMAGE020
Anda data item; when in use
Figure 164492DEST_PATH_IMAGE016
For indicating whether the storage address of the STA state set has been inserted into its parent node
Figure 39038DEST_PATH_IMAGE024
A sequence;
for each radio frame acquired in step a), based on the MAC address → state set in the hash table
Figure 385706DEST_PATH_IMAGE002
Direct mapping of memory address ", fast lookup or construction of the source MAC address of the frame
Figure DEST_PATH_IMAGE030
Corresponding state set
Figure 798232DEST_PATH_IMAGE002
And the RSSI value of the frame is calculated
Figure DEST_PATH_IMAGE032
Update to sequence
Figure 137816DEST_PATH_IMAGE008
c) Updating the topology of the WLAN: according to the signDetermining whether to process topology dependencies within a state setData item of
Figure 571388DEST_PATH_IMAGE012
Figure 471211DEST_PATH_IMAGE020
Figure 850371DEST_PATH_IMAGE022
And
Figure 152039DEST_PATH_IMAGE024
judging the type of the state set and the association relationship between STA/AP according to the frame type and the subframe type, constructing and updating the association based on the' AP linked list +Sequence "WLAN topology; the AP linked list is a linear linked list and can index the AP state set in the hash table, and the structure of each node in the AP linked list is as follows:
d) by time
Figure DEST_PATH_IMAGE036
Traversing the WLAN topological structure for a period, updating node data in the existing topological tree list by using an AP state set and a first class STA state set in the WLAN topological structure, and searching and marking the RSSI statistical mean value
Figure DEST_PATH_IMAGE038
The largest STA; the first class of STA state set isAnd is
Figure DEST_PATH_IMAGE040
A set of states of; the topology tree list is in a form of a tree-shaped hierarchical list, and the output display result of each AP state set and the first type STA state set in the WLAN topology structure is displayed;
Figure 586978DEST_PATH_IMAGE038
is a pair of sequences
Figure 789158DEST_PATH_IMAGE008
Statistical mean of all elements in the set;
e) by timeTraversing a second STA state set in the hash table for a period, updating node data in the existing unassociated list by using the second STA state set, and searching and marking the RSSI statistical mean value
Figure 648529DEST_PATH_IMAGE038
The largest STA; the second type STA state set is
Figure DEST_PATH_IMAGE044
And is
Figure DEST_PATH_IMAGE046
A set of states of; the unassociated list is in a single-layer list form, and the result is output and displayed for each second type STA state set;
f) determining the MAC address of a particular target user, when marked in step d) said topology tree list and in step e) said unassociated list
Figure 444316DEST_PATH_IMAGE038
When the largest STA node is kept stable, the RSSI statistical mean value of the STA in the two steps is compared, and the larger RSSI statistical mean value of the STA in the two steps
Figure 617808DEST_PATH_IMAGE038
The MAC address corresponding to the STA node of (i.e. special)The MAC address of the targeted user is specified.
2. The method of claim 1, setting a flag for MAC address acquisition for a specific target user of a wireless local area network
Figure DEST_PATH_IMAGE048
If, if
Figure DEST_PATH_IMAGE050
Means that all channels are scanned in turn starting from the first available channel, if
Figure DEST_PATH_IMAGE052
Indicating that a specific channel is scanned; characterized in that the data acquisition of step a) comprises the following steps:
a-1) judging channel scanning strategy, judgingA value of, if
Figure 471812DEST_PATH_IMAGE050
Setting a channel to be scanned as a first channel in all available channels; if it is
Figure 630261DEST_PATH_IMAGE052
Then set the channel to be scanned to the input value
Figure DEST_PATH_IMAGE054
A corresponding channel;
a-2), setting the working mode to be a radio frequency monitoring mode; in the mode, all wireless frames transmitted by each STA/AP in the current scanning channel can be captured;
a-3), capturing a wireless frame and checking CRC, if the CRC is incorrect, discarding the frame and recapturing a wireless frame; if the CRC is correct, temporarily storing the frame into a buffer area, and executing the step a-4);
a-4) judging the capture time threshold, judging whether the time for capturing the wireless frame reaches the capture time threshold
Figure DEST_PATH_IMAGE056
If it reaches
Figure 653449DEST_PATH_IMAGE056
Then executing step a-6); if not, the product is
Figure 456320DEST_PATH_IMAGE056
Executing the step a-5);
a-5) judging the threshold value of the data quantity captured, and judging whether the data quantity of the captured wireless frame reaches the threshold value of the data quantity captured
Figure DEST_PATH_IMAGE058
If it reaches
Figure 900903DEST_PATH_IMAGE058
Then executing step a-6); if not, the product is
Figure 484331DEST_PATH_IMAGE058
Executing the step a-3);
a-6), submitting data, and carrying out batch submission on the wireless frame data temporarily stored in the buffer area to execute the step a-7);
a-7) judgment
Figure 796363DEST_PATH_IMAGE048
Judgment of
Figure 781637DEST_PATH_IMAGE048
A value of, if
Figure 904445DEST_PATH_IMAGE050
Monitoring the next available channel; if it is
Figure 975169DEST_PATH_IMAGE052
If yes, monitoring the current channel again; step a-3) is performed.
3. The MAC address acquisition method for a specific target user in a wireless lan according to claim 1 or 2, wherein the step b) of building a state set and updating an RSSI sequence based on the hash table comprises the steps of:
b-1), reading a wireless frame and judging the type of the wireless frame; reading a wireless frame from the batch data submitted in the step a), judging whether the wireless frame is a CTS or ACK subframe in the control frame, and if the wireless frame is the CTS or ACK subframe, re-executing the step b-1); if the frame is neither a CTS subframe nor an ACK subframe, a source MAC address of the frame is acquiredAnd intensity signal
Figure 930673DEST_PATH_IMAGE032
(ii) a Here, CTS is an abbreviation of Clear To Send, which is a Clear To Send subframe, ACK is an abbreviation of Acknowledge subframe, which is an acknowledgement subframe, and both subframes do not contain the MAC address of the source end;
b-2) toThe hash address corresponding to the last two bytes of computing source MAC
Figure DEST_PATH_IMAGE060
And judging whether the record at the hash address is empty, if so, executing the step b-3); if not, executing step b-4);
b-3) at Hash Address
Figure 77675DEST_PATH_IMAGE060
Set of new states
Figure DEST_PATH_IMAGE062
And to the state set
Figure 747822DEST_PATH_IMAGE062
Is initialized to
Figure 442108DEST_PATH_IMAGE062
As
Figure 155986DEST_PATH_IMAGE030
Corresponding state set, executing step b-7);
by
Figure 512887DEST_PATH_IMAGE030
The hash function mapped to the hash address may be represented as:
Figure DEST_PATH_IMAGE064
all state sets which cause hash table collision because two bytes are the same after the MAC address are stored in the same linear linked list;
b-4) judging whether hash table conflict exists or not, and enabling the hash addressThe state set of the department is recorded as
Figure 519206DEST_PATH_IMAGE002
Judgment ofIf it is, it willRecord as
Figure 687331DEST_PATH_IMAGE062
As a
Figure 948548DEST_PATH_IMAGE030
Corresponding state set, executing step b-7); if not, executing the step b-5);
b-5) traversing the conflict linked list to
Figure 351847DEST_PATH_IMAGE060
The state set is the head node of the linked list, and the state set in the nodes of the linked list is read in a traversing way
Figure 610790DEST_PATH_IMAGE002
Find out whether or notIf a state set satisfying the condition exists, it will
Figure 292012DEST_PATH_IMAGE002
Record as
Figure 815397DEST_PATH_IMAGE062
As a
Figure 307558DEST_PATH_IMAGE030
Corresponding state set, executing step b-7); if the conflict linked list is traversed, and no state set meeting the condition exists, executing the step b-6);
b-6) creating a State set, creating a State set
Figure 283605DEST_PATH_IMAGE062
And adds it to the end of the existing conflict linked list and sets the state
Figure 153470DEST_PATH_IMAGE062
Is initialized toAs
Figure 194424DEST_PATH_IMAGE030
Corresponding state set, executing step b-7);
b-7) determining whether the sequence of stored signal strengths is full, to
Figure DEST_PATH_IMAGE068
Representing a set of states
Figure 798712DEST_PATH_IMAGE062
In
Figure DEST_PATH_IMAGE070
The length of the data currently actually stored in the sequence,
Figure 251428DEST_PATH_IMAGE010
as to the maximum length thereof,
Figure 749405DEST_PATH_IMAGE010
is an even number; judgment of
Figure DEST_PATH_IMAGE072
If true, the frame is processed
Figure 68522DEST_PATH_IMAGE032
Value insertion sequence
Figure 284740DEST_PATH_IMAGE070
At the end of, i.e. logging in
Figure DEST_PATH_IMAGE074
To (1); if not, it indicates that
Figure 541147DEST_PATH_IMAGE068
Maximum length of the sequence
Figure 893631DEST_PATH_IMAGE010
Then step b-8) is executed;
b-8) freeing up part of the sequence and storing it
Figure 898496DEST_PATH_IMAGE032
To do so by
Figure DEST_PATH_IMAGE076
The sequence of the original sequence is shown,
Figure 149480DEST_PATH_IMAGE070
representing the updated sequence; will be provided with
Figure 570097DEST_PATH_IMAGE076
Mean of the first half of the data as
Figure DEST_PATH_IMAGE078
Will have a value of
Figure 104983DEST_PATH_IMAGE076
Second half of data translation to
Figure DEST_PATH_IMAGE080
And combining the frames
Figure 264438DEST_PATH_IMAGE032
Insert intoAmong them.
4. The method of claim 3, wherein the destination MAC address of the captured radio frames is set as
Figure DEST_PATH_IMAGE084
Figure DEST_PATH_IMAGE086
Is composed of
Figure 251986DEST_PATH_IMAGE084
A corresponding state set; the source MAC address is
Figure 289343DEST_PATH_IMAGE030
Figure 871546DEST_PATH_IMAGE062
Is composed ofA corresponding state set; the step c) of updating the topology of the WLAN comprises the steps of:
c-1), judging the type of the wireless frame, and executing the step c-2) if the wireless frame read in the step b-1) is a management frame, executing the step c-3) if the wireless frame is a control frame, and executing the step c-4) if the wireless frame is a data frame;
c-2), judging the subtype of the management frame, if the management frame is a probe request, executing the step c-2-1), if the management frame is a beacon, executing the step c-2-2), if the management frame is a probe response, executing the step c-2-3), if the management frame is an association response or a re-association response, executing the step c-2-4), and if the management frame is an association request or a re-association request, executing the step c-2-5);
c-2-1) judgment
Figure DEST_PATH_IMAGE088
Whether it is true, if so, order
Figure DEST_PATH_IMAGE090
And returning to the step b-1); if not, returning to the step b-1);
c-2-2) judgment
Figure DEST_PATH_IMAGE092
Whether the determination is true, if true, returning to the step b-1); if not, executing step c-2-2-1);
c-2-2-1) judgment
Figure 817691DEST_PATH_IMAGE088
Whether or not, if so, settingAnd will be
Figure 580111DEST_PATH_IMAGE062
The storage address of the AP is inserted into the tail end of the AP linked list, and the step c-2-2-2) is executed; if not, executing step c-2-2-2);
c-2-2-2) acquisition according to frame body content
Figure DEST_PATH_IMAGE096
And
Figure DEST_PATH_IMAGE098
and set a value of
Figure 135595DEST_PATH_IMAGE092
And returning to the step b-1);
c-2-3) judgment
Figure 590847DEST_PATH_IMAGE092
If true, performing step c-2-3-3); if not, executing step c-2-3-1);
c-2-3-1) judgment
Figure 490670DEST_PATH_IMAGE088
If true, if false, then execute step c-2-3-2); if so, firstly settingAnd will be
Figure 155186DEST_PATH_IMAGE062
The storage address of (a) is inserted into the end of the AP linked list, and then step c is executed-2-3-2);
c-2-3-2) acquisition according to frame body content
Figure 594389DEST_PATH_IMAGE096
And
Figure 43825DEST_PATH_IMAGE098
and set a value of
Figure 148047DEST_PATH_IMAGE092
Performing step c-2-3-3);
c-2-3-3) looking up destination MAC address based on hash tableCorresponding state set
Figure 412861DEST_PATH_IMAGE086
And judging the state set
Figure 84014DEST_PATH_IMAGE086
In (1)
Figure DEST_PATH_IMAGE100
Whether or not, if so, setting
Figure DEST_PATH_IMAGE102
And returning to the step b-1); if not, returning to the step b-1);
c-2-4) judgment
Figure 132873DEST_PATH_IMAGE088
If true, if false, then execute step c-2-4-1); if true, set up
Figure 143554DEST_PATH_IMAGE094
And will be
Figure 417235DEST_PATH_IMAGE062
The storage address of the AP is inserted into the tail end of the AP linked list, and then the step c-2-4-1 is executed;
c-2-4-1) looking up destination MAC address based on hash tableCorresponding state setAnd judging the state set
Figure 152476DEST_PATH_IMAGE086
In (1)
Figure 291333DEST_PATH_IMAGE100
Whether or not, if so, setting
Figure 687810DEST_PATH_IMAGE102
And returning to the step b-1); if not, returning to the step b-1);
c-2-5) judgment
Figure 937526DEST_PATH_IMAGE088
If true, if false, then execute step c-2-5-1); if so, firstly setting
Figure 985117DEST_PATH_IMAGE090
And then step c-2-5-1) is executed;
c-2-5-1) looking up destination MAC address based on hash table
Figure 606460DEST_PATH_IMAGE084
Corresponding state set
Figure 677184DEST_PATH_IMAGE086
And make a judgment on
Figure DEST_PATH_IMAGE104
Whether or not, if soImmediately, returning to the step b-1); if not, executing step c-2-5-2);
c-2-5-2) judgment
Figure 792907DEST_PATH_IMAGE100
If true, if false, then execute step c-2-5-3); if true, set up
Figure DEST_PATH_IMAGE106
And will beThe storage address of the AP is inserted into the tail end of the AP linked list, and then the step c-2-5-3 is executed;
c-2-5-3) judgment
Figure DEST_PATH_IMAGE108
If not, directly returning to the step b-1); if the frame is empty, acquiring according to the frame body content
Figure 988714DEST_PATH_IMAGE108
And then returning to step b-1);
c-3) judging the subtype of the control frame, and if the control frame is energy-saving polling, searching a destination MAC address based on a hash table
Figure 281155DEST_PATH_IMAGE084
Corresponding state set
Figure 449837DEST_PATH_IMAGE086
Performing step c-3-1); if the subtype is other subtype, returning to the step b-1);
c-3-1) judgment
Figure 206440DEST_PATH_IMAGE092
If true, performing step c-3-4); if not, executing step c-3-2);
c-3-2) judgment
Figure 858001DEST_PATH_IMAGE088
If true, if false, then executing step c-3-3); if so, first set
Figure 716367DEST_PATH_IMAGE090
And then step c-3-3) is executed;
c-3-3) is to
Figure 111576DEST_PATH_IMAGE062
Is inserted into its parent nodeInner part
Figure DEST_PATH_IMAGE110
End of sequence, and sequence
Figure DEST_PATH_IMAGE112
Length of (2)
Figure DEST_PATH_IMAGE114
Increasing by 1; and is provided with
Figure 59996DEST_PATH_IMAGE092
And c-3-4);
c-3-4) judgmentWhether the judgment is true or not, if not, returning to the step b-1); if true, set upAnd will be
Figure 807524DEST_PATH_IMAGE086
The storage address of the AP is inserted into the tail end of the AP linked list, and the step b-1 is returned;
c-4).lookup of destination MAC address based on hash tableCorresponding state set
Figure 258282DEST_PATH_IMAGE086
(ii) a Judging the transmission direction of the data frame, and executing the step c-4-1 if the data frame is an uplink frame); if it is a downlink frame, executing step c-4-2);
c-4-1) judgment
Figure 260873DEST_PATH_IMAGE092
If true, then performing step c-4-1-3); if not, executing step c-4-1-1);
c-4-1-1) judgment
Figure 846575DEST_PATH_IMAGE088
If true, if false, then execute step c-4-1-2); if so, firstly setting
Figure 10840DEST_PATH_IMAGE090
And then step c-4-1-2) is executed;
c-4-1-2) reactingIs inserted into its parent node
Figure 484513DEST_PATH_IMAGE086
Inner part
Figure 924722DEST_PATH_IMAGE110
End of sequence, and sequence
Figure 338517DEST_PATH_IMAGE112
Length of (2)
Figure 864176DEST_PATH_IMAGE114
Increasing by 1; is provided with
Figure 208570DEST_PATH_IMAGE092
Performing step c-4-1-3);
c-4-1-3) judgment
Figure 18132DEST_PATH_IMAGE100
If not, returning to the step b-1); if true, set upAnd will be
Figure 802734DEST_PATH_IMAGE086
The storage address of the AP is inserted into the tail end of the AP linked list, and the step b-1 is returned;
c-4-2) judgmentIf true, if false, then execute step c-4-2-1); if true, set up
Figure 850773DEST_PATH_IMAGE094
And will be
Figure 590058DEST_PATH_IMAGE062
The storage address of the AP is inserted into the tail end of the AP linked list, and the step c-4-2-1 is executed);
c-4-2-1) judgmentWhether the determination is true, if true, returning to the step b-1); if not, executing the step c-4-2-2);
c-4-2-2) judgment
Figure 25774DEST_PATH_IMAGE100
If true, if false, then execute step c-4-2-3); if so, firstly setting
Figure 232764DEST_PATH_IMAGE102
And then step c-4-2-3) is executed;
c-4-2-3) reacting
Figure 408531DEST_PATH_IMAGE086
Is inserted into its parent nodeInner partEnd of sequence, and sequence
Figure DEST_PATH_IMAGE116
Length of (2)
Figure 760512DEST_PATH_IMAGE114
Increasing by 1; is provided with
Figure 356447DEST_PATH_IMAGE104
And returning to the step b-1).
5. The method as claimed in claim 1 or 2, wherein the MAC address capturing method for specific target users of wireless LAN is characterized in that
Figure DEST_PATH_IMAGE118
Are the labels of the nodes in the AP linked list,is the first in the AP chain tableThe set of AP states indexed by the individual nodes,is composed of
Figure DEST_PATH_IMAGE124
The reference numbers of the elements within the sequence,
Figure DEST_PATH_IMAGE126
is composed of
Figure 469076DEST_PATH_IMAGE124
Within the sequence
Figure 956384DEST_PATH_IMAGE122
The set of STA states indexed by the individual elements,
Figure DEST_PATH_IMAGE128
the maximum statistical mean value of the signal strength RSSI is obtained; in the topology tree list, each AP state set is positioned on a father node list layer, each first-class STA state set is positioned on a child node list layer under the corresponding AP, data items displayed by the AP nodes are MAC addresses, channel numbers, SSIDs, RSSI statistical averages and the total number of captured wireless frames, and data items displayed by the STA nodes are the MAC addresses, the RSSI statistical averages and the total number of the captured wireless frames; the step d) of periodically updating the topology tree list by using the state set in the WLAN topology structure includes the following steps:
d-1) obtaining the total number of AP nodes in the existing topology tree list
Figure DEST_PATH_IMAGE130
d-2) setting initial value, setting reading position of AP linked list as head node of linked list, setting AP node label
Figure 473953DEST_PATH_IMAGE118
Is '0', the maximum statistical mean of RSSI
Figure 373776DEST_PATH_IMAGE128
Is-90, step d-3) is performed;
d-3), judging whether the traversal is finished, judging whether the traversal of the AP linked list is finished, and if so, executing the step d-16); if not, executing step d-4);
d-4) reading a node at the current processing position of the AP linked list and setting
Figure DEST_PATH_IMAGE132
(ii) a Obtaining AP state set
Figure 752936DEST_PATH_IMAGE120
The MAC address, the channel number, the SSID and the total number of the captured wireless frames, and based on a singular point filtering and mean processing method, calculating the statistical mean of the RSSI of the wireless frames, and executing the step d-5);
d-5) comparative reference numerals
Figure 851342DEST_PATH_IMAGE118
And AP node total number
Figure 477495DEST_PATH_IMAGE130
Judgment ofIf true, executing step d-6); if not, executing step d-7);
d-6) comparing AP State sets
Figure 972936DEST_PATH_IMAGE120
And the first in the topology tree list
Figure 342738DEST_PATH_IMAGE118
Updating the inconsistent data items of the corresponding data items of the AP nodes; and obtaining the topology tree listTotal number of child nodes of AP nodePerforming step d-8);
d-7) utilization
Figure 109017DEST_PATH_IMAGE120
Constructing a new node, adding the new node to the tail end of the AP list in the existing topology tree list, and executing the step d-8);
d-8) initializationWill be
Figure 688083DEST_PATH_IMAGE124
Numbering of elements of a sequenceSet to "1", perform step d-9);
d-9) judging the sequence
Figure 978305DEST_PATH_IMAGE124
If all the elements in the step (a) are read completely, if the reading is completed, executing the step (d-3); if the reading is not finished, executing the step d-10);
d-10) read sequence
Figure 136753DEST_PATH_IMAGE124
To (1) a
Figure 661407DEST_PATH_IMAGE122
Element, get STA State set
Figure 792174DEST_PATH_IMAGE126
The MAC address and the total number of the captured wireless frames are calculated, and the statistical mean value of the RSSI of the wireless frames is calculated based on a singular point filtering and mean value processing method
Figure DEST_PATH_IMAGE138
Performing step d-11);
d-11) signalIntensity comparison, comparison
Figure 993348DEST_PATH_IMAGE138
And
Figure 753275DEST_PATH_IMAGE128
is large or small, if
Figure DEST_PATH_IMAGE140
Then step d-12) is executed; if it is not
Figure DEST_PATH_IMAGE142
Then toAndrecording
Figure 954055DEST_PATH_IMAGE118
And
Figure 939329DEST_PATH_IMAGE122
and set a value of
Figure DEST_PATH_IMAGE148
Performing step d-12);
d-12) judgmentIf true, performing step d-13); if not, executing step d-14);
d-13) judgment
Figure DEST_PATH_IMAGE150
If true, then the comparison is made
Figure 632663DEST_PATH_IMAGE126
And topology Tree List
Figure 686069DEST_PATH_IMAGE118
A first of AP nodes
Figure 151948DEST_PATH_IMAGE122
The corresponding data items of the child nodes, the inconsistent data items are updated, and the step d-15) is executed; if not, executing step d-14);
d-14) utilization
Figure 632608DEST_PATH_IMAGE126
Building new node, adding into topology tree list
Figure 252945DEST_PATH_IMAGE118
The end of the child node list of the AP node, executing step d-15);
d-15) setting
Figure DEST_PATH_IMAGE152
Skipping to execute the step d-9);
d-16) in the topology Tree ListUnder each AP node
Figure 47737DEST_PATH_IMAGE146
An STA node is the local
Figure 512348DEST_PATH_IMAGE036
And marking the first type STA state set with the maximum RSSI statistical mean value in the period.
6. The method as claimed in claim 1 or 2, wherein the MAC address capturing method for specific target users of wireless LAN is characterized in that
Figure 292085DEST_PATH_IMAGE122
For the index of the second class STA state set found in the hash table,
Figure DEST_PATH_IMAGE154
the maximum statistical mean value of the signal strength RSSI is obtained; in the unassociated list, the data items displayed by each STA node are the MAC address, the RSSI statistical mean value and the total number of the captured wireless frames; the step e) of periodically updating the unassociated list by using the second type STA state set in the hash table includes the following steps:
e-1) obtaining the total number of STA nodes in the existing unassociated list(ii) a Setting the reading position as the initial position of the hash table; reference numerals
Figure DEST_PATH_IMAGE156
Statistical mean of maximum RSSI
Figure DEST_PATH_IMAGE158
e-2), judging whether the hash table containing the conflict linked list is traversed completely, and if so, executing the step e-7); if not, executing step e-3);
e-3) reading a state set at the current processing position of the hash table
Figure 937885DEST_PATH_IMAGE002
Judging whether the state set is satisfied
Figure 573397DEST_PATH_IMAGE046
And is
Figure 840430DEST_PATH_IMAGE044
If not, it does not belong to the second class STA state set, and the step e-2) is executed by skipping; if so, performing step e-4);
e-4) setting
Figure 101647DEST_PATH_IMAGE152
(ii) a Obtaining a STA state set
Figure 770526DEST_PATH_IMAGE126
The total number of the captured wireless frames and the MAC address, and calculating the statistical mean of the RSSI based on a singular point filtering and mean processing method, and executing the step e-5);
e-5) signal strength comparison, comparison
Figure 75474DEST_PATH_IMAGE138
And
Figure 829803DEST_PATH_IMAGE154
is large or small, if
Figure DEST_PATH_IMAGE160
Then step e-6) is executed; if it is not
Figure DEST_PATH_IMAGE162
Then toRecording
Figure 231146DEST_PATH_IMAGE122
And set a value of
Figure DEST_PATH_IMAGE164
Performing step e-6);
e-6) judgment
Figure 769312DEST_PATH_IMAGE150
If true, then the comparison is made
Figure 10938DEST_PATH_IMAGE126
With unassociated list
Figure 613957DEST_PATH_IMAGE122
Corresponding data items of the STA nodes, updating inconsistent data items and executing the step e-2); if not, utilize
Figure 991849DEST_PATH_IMAGE126
Constructing a new node, adding the tail end of the existing unassociated list, and executing the step e-2);
e-7) judgmentIf true, if false, executing step e-8); if so, deleting the end of the existing unassociated listThe STA node executes the step e-8); after the hash table traversal is complete, here
Figure 574431DEST_PATH_IMAGE122
Recording the total number of the searched second-class STA state sets;
e-8) No. of the list of associations
Figure 981141DEST_PATH_IMAGE146
An STA node is the local
Figure 213540DEST_PATH_IMAGE042
And marking the second type STA state set with the maximum RSSI statistical mean value in the period.
7. The method as claimed in claims 1, 5 and 6, wherein the device is configured to capture the MAC address of a specific target user in a wireless LAN
Figure DEST_PATH_IMAGE168
For within a topology tree listThe time for which both the marked STA node and the STA node marked in the unassociated list remain stable, when either of them changes,
Figure 798236DEST_PATH_IMAGE168
are all reset to 0; step f) said process of determining a specific destination user MAC address comprises the steps of:
f-1) determining the stabilization timeWhether or not a threshold value is reached
Figure DEST_PATH_IMAGE170
If it reaches
Figure 5281DEST_PATH_IMAGE170
Then step f-2) is executed; if not, randomly waiting for a period of time and then executing the step f-1);
f-2) comparison
Figure 357765DEST_PATH_IMAGE128
And
Figure 362630DEST_PATH_IMAGE154
magnitude of value, if
Figure DEST_PATH_IMAGE172
If yes, determining the marked STA node in the topology tree list as a specific target, and returning the MAC address of the specific target; if it is
Figure DEST_PATH_IMAGE174
Then the STA node marked in the unassociated list is determined as a specific target and its MAC address is returned.
CN201310135442.2A2013-04-182013-04-18A kind of MAC Address catching method for WLAN (wireless local area network) specific objective userActiveCN103259878B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201310135442.2ACN103259878B (en)2013-04-182013-04-18A kind of MAC Address catching method for WLAN (wireless local area network) specific objective user

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201310135442.2ACN103259878B (en)2013-04-182013-04-18A kind of MAC Address catching method for WLAN (wireless local area network) specific objective user

Publications (2)

Publication NumberPublication Date
CN103259878Atrue CN103259878A (en)2013-08-21
CN103259878B CN103259878B (en)2015-09-30

Family

ID=48963567

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201310135442.2AActiveCN103259878B (en)2013-04-182013-04-18A kind of MAC Address catching method for WLAN (wireless local area network) specific objective user

Country Status (1)

CountryLink
CN (1)CN103259878B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105101149A (en)*2015-07-282015-11-25福建师范大学 A Neighbor Detection Method Based on Wireless AP
CN107734504A (en)*2017-11-012018-02-23深圳汇生通科技股份有限公司To the realization method and system of mobile device MAC Address collection in a kind of WIFI
CN108668227A (en)*2018-04-272018-10-16广州仁星数位时代科技有限公司Feature identification method and device based on block chain and server
CN110225557A (en)*2018-03-022019-09-10华为技术有限公司A kind of communication means and device based on Internet of Things
CN110267299A (en)*2019-07-042019-09-20南京茂毓通软件科技有限公司The MAC Address catching method of WIFI terminal
CN111278036A (en)*2018-12-042020-06-12山东快发网络科技有限公司Method and device for collecting MAC address
WO2020125174A1 (en)*2018-12-192020-06-25杭州光启人工智能研究院Data collection and processing method and system for sniffing device, and storage medium and processor
CN111786811A (en)*2020-05-252020-10-16福建中锐电子科技有限公司Portable on-site electronic data evidence obtaining terminal and device
CN111914244A (en)*2020-07-312020-11-10深圳力维智联技术有限公司 Data processing method, apparatus and computer readable storage medium
CN112770249A (en)*2019-10-182021-05-07厦门雅迅网络股份有限公司Wireless positioning method, positioning terminal and positioning center platform capable of saving flow
CN113360783A (en)*2021-06-212021-09-07上海哔哩哔哩科技有限公司User online list updating method and device and computer equipment
CN113592413A (en)*2021-09-302021-11-02浙江宇视科技有限公司Intelligent scheduling method and device based on multi-user cooperation, electronic equipment and medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101860872A (en)*2009-04-072010-10-13王冬冬Wireless local area network AP positioning method
US20120294231A1 (en)*2011-05-172012-11-22Keir Finlow-BatesWi-fi access point characteristics database

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101860872A (en)*2009-04-072010-10-13王冬冬Wireless local area network AP positioning method
US20120294231A1 (en)*2011-05-172012-11-22Keir Finlow-BatesWi-fi access point characteristics database

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JIE YANG等: "Detection and Localization of Multiple Spoofing Attackers in Wireless Networks", 《IEEE TRANSACTIONS ON PARALLEL AND DISTRIBUTED SYSTEMS》*

Cited By (19)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105101149A (en)*2015-07-282015-11-25福建师范大学 A Neighbor Detection Method Based on Wireless AP
CN105101149B (en)*2015-07-282018-05-04福建师范大学A kind of neighbour's detection method based on wireless aps
CN107734504A (en)*2017-11-012018-02-23深圳汇生通科技股份有限公司To the realization method and system of mobile device MAC Address collection in a kind of WIFI
CN110225557A (en)*2018-03-022019-09-10华为技术有限公司A kind of communication means and device based on Internet of Things
US11316630B2 (en)2018-03-022022-04-26Huawei Technologies Co., Ltd.Internet of things-based communication method and apparatus
CN110225557B (en)*2018-03-022022-04-22华为技术有限公司Communication method and device based on Internet of things
CN108668227A (en)*2018-04-272018-10-16广州仁星数位时代科技有限公司Feature identification method and device based on block chain and server
CN111278036A (en)*2018-12-042020-06-12山东快发网络科技有限公司Method and device for collecting MAC address
CN111278036B (en)*2018-12-042024-01-09京东科技信息技术有限公司Method and device for acquiring MAC address
WO2020125174A1 (en)*2018-12-192020-06-25杭州光启人工智能研究院Data collection and processing method and system for sniffing device, and storage medium and processor
CN110267299B (en)*2019-07-042022-08-09南京茂毓通软件科技有限公司MAC (media Access control) address capturing method of WIFI (Wireless Fidelity) terminal
CN110267299A (en)*2019-07-042019-09-20南京茂毓通软件科技有限公司The MAC Address catching method of WIFI terminal
CN112770249A (en)*2019-10-182021-05-07厦门雅迅网络股份有限公司Wireless positioning method, positioning terminal and positioning center platform capable of saving flow
CN111786811A (en)*2020-05-252020-10-16福建中锐电子科技有限公司Portable on-site electronic data evidence obtaining terminal and device
CN111786811B (en)*2020-05-252022-07-08福建中锐电子科技有限公司Portable on-site electronic data evidence obtaining terminal and device
CN111914244A (en)*2020-07-312020-11-10深圳力维智联技术有限公司 Data processing method, apparatus and computer readable storage medium
CN111914244B (en)*2020-07-312024-06-07深圳力维智联技术有限公司 Data processing method, device and computer readable storage medium
CN113360783A (en)*2021-06-212021-09-07上海哔哩哔哩科技有限公司User online list updating method and device and computer equipment
CN113592413A (en)*2021-09-302021-11-02浙江宇视科技有限公司Intelligent scheduling method and device based on multi-user cooperation, electronic equipment and medium

Also Published As

Publication numberPublication date
CN103259878B (en)2015-09-30

Similar Documents

PublicationPublication DateTitle
CN103259878B (en)A kind of MAC Address catching method for WLAN (wireless local area network) specific objective user
ES2755681T3 (en) FTM protocol with arrival angle and departure angle
CN102844672B (en)Positioning device and positioning method
CN105050112B (en)Network access method and mobile terminal
CN103634881B (en)Frequency searching method and device, terminal
CN105049422B (en)A kind of WIFI detections identification equipment, system and WIFI detection identification methods
CN112449302B (en)Method and device for generating positioning and offline fingerprint database
US20150351017A1 (en)Verifying stored location data for WLAN access points
CN103747519B (en)Method and system for dynamically establishing indoor positioning fingerprint database
US12089087B2 (en)Method, apparatus, and system for reporting data usage
CN112040432A (en)Method and device for identifying mobile terminal user type
JP2015523797A (en) Method and apparatus for implementing high-speed network connections
CN105144773A (en)Updating stored information about wireless access points
CN113873563B (en) Signal strength measurement method, wireless gateway device and readable storage medium
CN114364053A (en)Data communication method and device
CN113453334B (en) Positioning method and positioning device
CN109474947B (en)Measurement parameter determination method and device, readable storage medium and user equipment
CN103517443B (en)A kind of radio sensor network channel dispatching method based on link-quality indicated value and device
CN107708072A (en)Trajectory analysis method and device based on mobile communications network
CN111935628B (en) Wi-Fi positioning method and device based on location fingerprint
CN204741572U (en) A kind of WIFI detection identification equipment and WIFI detection identification system
CN113938226B (en) Method, device, and storage medium for analyzing received channel power indication value
TWI765324B (en)Wireless communication device and wireless communication method used in wireless communication device
CN104684098A (en) A method and device for scheduling channel resources
CN103703819B (en)Cell identity conflict detection method and conflict detection device

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C53Correction of patent of invention or patent application
CB02Change of applicant information

Address after:250014 Ji'nan Province, Shandong Province, Lixia District, Department of road, No. 19, Shandong Computing Center

Applicant after:SHANDONG COMPUTER SCIENCE CENTER

Address before:250014 Shandong computing center, No. 19 ASTRI Road, Shandong, Ji'nan

Applicant before:Shandong Prov. Computing Center

CORChange of bibliographic data

Free format text:CORRECT: APPLICANT; FROM: SHANDONG PROV. COMPUTING CENTER TO: SHANDONG COMPUTING CENTER (NATIONAL SUPER COMPUTING JI NAN CENTER)

C14Grant of patent or utility model
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp