802.11无线网络协议分析工具的设计与实现

 2022-01-26 11:01

论文总字数:26815字

摘 要

伴随着网络信息技术的快速发展,无线网络覆盖逐渐普及,越来越多的人接触并使用无线网络,无线路由器的出现更是加快了这种趋势。当网络管理者需要分析无线网络下的流量流动情况时,比如区分用户进行的上网流量、监测用户的在线活动等,就需要用到数据包的抓取和分析工具。

本论文基于libpcap函数库接口设计并实现了简单的无线数据包抓取和分析工具。首先在linux系统下将网卡调成监听模式,进行无线数据包的抓取;之后在学校的无线网络环境下,通过C 程序进行数据包的分析,主要分析数据包的包头部分,包括IP头、TCP头,实现典型的应用层协议(如HTTP,DNS)的识别,实现控制帧、管理帧和数据帧子类型的识别,分析结果存入文件和MySQL数据库;最后通过WEB页面展示数据库中的数据包分析结果。

关键词:802.11无线网络,协议分析工具,无线数据包

Design and Implementation of 802.11 Wireless Network

Protocol Analysis Tool

Abstract

With the rapid development of the network and information technologies, the override of the wireless network is gradually popularize, more and more people use the wireless network and the invention of the wireless router also accelerate this tendency. When the network manager need to analyze the traffic flow under the wireless network, such as to distinguish the network traffic of the users or to monitor the online activities of the users, they need to use the packet capture and analyze tool.

In this thesis, the design and implementation of the packet capture and analysis tool is based on the libpcap function interface. First of all, change the mode of network card to Monitor mode under Linux system for the capturing of the wireless packets. Next, analyze the packets through C program under the wireless network environment. The main part of the analysis is to analyze the header of the packets, including the IP header and the TCP header, to identify the typical protocols of the application layer and the subtype of control frame, management frame and data frame, and then insert the results into the file and the MySQL database. In the end, display the analysis results in the database through the WEB page.

KEY WORDS: 802.11 wireless network, protocol analysis tool, packet

目录

摘要 I

Abstract II

目录 i

第一章 绪论 1

1.1 研究背景 1

1.2 研究现状分析 1

1.2.1 802.11无线局域网协议 1

1.2.2无线数据包的嗅探和分析 2

1.3研究目标和内容 3

1.4论文组织结构 3

第二章 系统总体设计 4

2.1系统结构 4

2.2系统模块细化 4

2.2.1数据包抓取 4

2.2.2数据包分析 5

2.2.3结果存储和展示 7

2.3本章小结 7

第三章 系统实现 8

3.1开发环境和工具 8

3.2数据包抓取模块 8

3.2.1设置网卡为监听模式 8

3.2.2编码实现数据包的抓取 8

3.3数据包分析模块 8

3.4结果存储和展示模块 13

3.4.1数据库设计 13

3.4.2图形化展示 16

3.5本章小结 16

第四章 系统测试和结果分析 17

4.1系统实验环境 17

4.2数据包抓取模块 17

4.3数据包分析模块 17

4.4结果存储和展示模块 18

4.4.1数据库搭建 18

4.4.2结果展示 18

4.5本章小结 22

第五章 总结和展望 23

5.1论文总结 23

5.2工作展望 23

致谢 24

参考文献 25

第一章 绪论

1.1 研究背景

伴随着信息技术的快速发展,互联网越来越影响着人们的生活。近年来,无线网络覆盖逐渐普及,越来越多的人接触并使用无线网络。很多公共场所也都有公开的无线网覆盖,使人们可以很方便的上网。无线路由器的发展更是加快了这种趋势。

当网络出现故障时,网络管理者通常会去检查网络设备的状态来排除故障,这就需要用到抓包工具。传统的抓包工具有很多,比如wireshark[2]、tcpdump、Sniffer等等,都是当前比较流行的抓包工具。通过抓取并分析当前网络环境下的数据包,网络管理者便能够发现设备的异常进而进行故障排除。无线网络环境下,信号散布在空气中,数据包是广播的形式。一般的无线网卡接收到数据包后仅仅把发给本机的包留下并传递给上层程序,而其他的包则是丢弃。当需要监听整个无线网络环境下的流量流动情况时,就需要将监听主机的网卡调节成监听模式,这样就能监听到整个无线网络环境下的数据包了。协议分析的最终目的是更好的掌握当前无线网络下的流量流动情况,进而推断用户的在线活动,这需要用到许多技术以及多方面的数据汇总,很有研究前景。

本论文实现了数据包的抓取,并分析了数据包的包头部分和一些典型的应用层协议及其负载内容,解析各个字段并提取有用的信息进行存储和展示,最后在校园非加密无线网络环境下进行了测试。

剩余内容已隐藏,请支付后下载全文,论文总字数:26815字

您需要先支付 80元 才能查看全部内容!立即支付

该课题毕业论文、开题报告、外文翻译、程序设计、图纸设计等资料可联系客服协助查找;