论文首页哲学论文经济论文法学论文教育论文文学论文历史论文理学论文工学论文医学论文管理论文艺术论文 |
网络数据包分析工具设计和实现
摘要:本篇主要论叙了在Linux平台下,基于TCP/IP协议族,采用C网络编程,用网络数据捕获函数包——Libpcap开发包设计1个网络数据包分析工具,即网络嗅探器Sniffer。
本文首先对Linux操作系统、网络嗅探软件Tcpdump及TCP/IP协议族的中IP层和传输层各类协议作了了解性的说明,然后详细重点介绍了Libpcap开发包在本次设计中所要用到的接口函数以及网络编程技术。接着对网络数据包分析工具(Sniffer)设计的几个主要原理做了11的介绍,并以软件设计的模块化思想为主介绍了编写1个网络数据包分析工具的总体设计思想。最后对网络数据包分析工具(Sniffer)的程序作了1个总体的解释。
该工具能通过对所在机器的网卡设置为混杂模式,探索局域网络里所有流经过的数据包,并把探索到的包按TCP/IP协议族中的层次进行过滤性的分类和统计,得到所需要的信息。
关键词:TCP/IP;Libpcap;嗅探;混杂模式
Networks Data Packet Analysis Tool Design and Realization
Abstract :This thesis main theory been chatted under Linux platform, on the basis of TCP/IP agreement clan , adopts C network programming, catch the function to wrap up with the network data - -Libpcap develops and wraps up to design a network datum to wrap up and analyze tools, the network takes a sniff at the visiting device Sniffer.
This text take a sniff at , visit to Linux operating system , network software Tcpdump and TCP/IP agreement clan hit IP layer and transmit layers of all kinds of agreement comments to act as person who understand at first, then introduced Libpcap and developed bag interface function and network programming technology used in this design detailedly especially. Make , analyze to network data tool (Sniffer ) odd cardinal principles designed make the one-to-one introduction then, and has turned thought into the main introduction and written a network datum and made the overall design philosophy which analyzes the tool with the module of software design. Make analyzing to the network data the procedure of the tool (Sniffer ) made a total explanation finally.
This tool can be through to setting up in the network card of the machine in order to promiscuous mode, it explore the the networkses office the lands flow all data wrap up,and have bag got to explore lasted classification and statistics of filtering according to TCP/IP the levels of agreement, get the information needed.
Keywords:TCP/IP;Libpcap;Sniff;Promiscuous mode
注释:不含源代码