摘要
TCP/IP协议是网络通信中应用广泛的协议,通过它可以实现不同网络媒介之间的信息传递。分析TCP/IP协议,了解网络通信的基本流程,对于网络通信,网络优化和网络安全都有重要的意义。通过程序截获TCP/IP协议并对其内容进行相应的提取分析,基本的流程是利用程序将网卡设置成混乱模式,对截取的数据包按相应的协议规格分析,提取相应的地址、端口号以及数据内容,并显示出来。程序中应用了线程的处理方法,使得抓取数据包和分析数据包分离,便于实时监控,并且解决了共享资源的访问冲突的问题。在程序中,截获到的数据都以文件保存下来,方便对已截获的数据进行查询。程序主要涉及到TCP/IP协议的基本知识,网络套接字的应用,线程处理问题的方法,数据的存储,MFC框架下相关的可视化编程等方面的基本知识和实际应用。
关键词: TCP/IP,协议,数据包,网络套接字,线程
ABSTRACT
TCP/IP protocol is used widely in munication, which can realize the message transmission between work media machines. That has important significance work optimization, munication work security through analyzes of the TCP/IP protocol and understanding of the basic process munication. The program can intercept TCP/IP protocol to analyze the messages of the protocol. The basic process is using the program set to mix mode at work card, analyzing the packet from work card as relevant protocols, extraction of corresponding specification and address, the socket data content, and displayed. The thread is used in the program, it can make grab packet part and analysis data part in different parts, it make program monitor work card all the time, and resolve the problem about the share resource. In the program, the data got from work card is saved as file, it is convenient for check of data. This program mainly involves the TCP/IP protocol's basic knowledge, socket, thread of the method to deal with problems, data storage, MFC framework related visual programming.
KEY WORDS: TCP/IP, protocol, packet, network socket, thread
目录
前言 3
第1章技术可行性分析 3
3
开发环境可行性分析 3
程序设计可行性分析 3
第2章相关知识 3
TCP/IP协议 3
socket简介 3
线程原理 3
第3章设计思路 3
总体设计 3
3
变量的说明 3
数据结构说明 3
网络协议截获部分设计 3
3
线程部分设计 3
不同部分数据传递设计 3
第4章编码及实现 3
网络协议截获部分 3
数据分析部分 3
3
3
第5章结果分析 3
第6章总结 3
致谢 3
参考文献 3
前言
TCP/IP(Transmission Control Protocol/ Protocol)的简写,中文译名为传输控制协议/因特网互联协议。TCP/IP协议是目前应用最广技术最
毕业设计(论文)-基于IP、TCP协议分析器的开发 来自淘豆网m.daumloan.com转载请标明出处.