分类号:TP311.1 U D C:D10621-408-(2007) 6061-0
密 级:公 开 编 号:2003215001
成 都 信 息 工 程 学 院
学 位 论 文
基于局域网的信息收发系统的设计与实现
论 文 作 者 姓 名 :
张蜀程
申 请 学 位 专 业 :
网络工程
申 请 学 位 类 别 :
工学学士
指导教师姓名(职称):
赵军
论 文 提 交 日 期 :
2007 年 06 月 05 日
基于局域网的信息收发系统的设计与实现
摘 要
网 络 通 讯在当今已经不算新鲜事物,但大多数网络通讯都需要借助
Internet 上的服务器,这就给那些具有大规模内部网络的用户造成了许多问题,
如浪费网络资源、遭遇到网络攻击、传播的病毒、破坏防御系统等等。由于互连
网上的网络通讯工具给企业内部信息交流带来了不便,所以为了方便内部网络的
用户之间的沟通,需要开发一个基于局域网的信息收发系统的即时通讯工具,实
现在内部网络中进行信息的交流。本课题设计主要针对局域网通讯而开发设计的,
采用的是 C/S 构架,利用 Delphi 编程工具来实现单播、广播以及在线用户显示
和查看历史记录的功能,并借助一些网络通讯组件,成功的实现了在局域网上的
即时通讯。本论文共分为六部分。第一部分是课题的背景及研究意义;第二部分
是所运用的理论基础知识;第三部分是本系统的需求分析;第四部分是系统结构
和模块设计;第五部是实施和测试情况;最后是本设计的结论总结及部分参考文
献。
关键词:即时通讯;C/S 构架;单播;广播;历史记录
The Design and Implementation of Receiving and
Sending Information System Based On LAN
Abstract
The network communication in already did not calculate the new things now, but
the majority network communication all needed to draw support from on Internet the
server, this gave these to have the large-scale internal network user to create many
problems, like waste network resources, bitter experience to network attack,
dissemination virus, destruction defense system and so on. Because on the
interconnection network communication facilities the interior communication have
brought inconveniently for the enterprise, therefore in order to facilitate internal
network between user's communication, needs to develop one based on the local area
network information receiving and dispatching system instant message facilities,
realizes carries on the information in the internal network the exchange. This topic
design mainly aims at the local area network communication to develop the design,
uses is the C/S structure, realizes the unicast, the broadcast as well as the online user
demonstration and the examination historic record function using the Delphi
programming tool, and drew support from some network communication module, the
success realization on the local area network instant message. The present paper
altogether divides into six parts. The first part is the topic background and the research
significance; the second part is the rationale knowledge which utilizes; the third part is
this system demand analysis; the fourth part is the system structure and the module
design; fifth is the implementation and the test situation; finally is this design
conclusion summary and the part reference.
Key words: Instant message; C/S structure; Unicast; Broadcast; Historic
record
目 录
论文总页数:25 页
1 引言......................................................................1
1.1 课题的背景............................................................1
1.2 国内外研究现状........................................................1
1.3 本课题研究的意义......................................................2
2 理论基础..................................................................2
2.1 C/S 软件架构技术 ......................................................2
2.2 用户数据报协议(UDP).................................................3
2.3 单播(UNICAST)........................................................3
2.4 广播(BROADCAST) ......................................................4
3 需求分析..................................................................5
3.1 现行业务系统描述......................................................5
3.2 现行系统存在的主要问题分析............................................5
3.3 提出解决方案..........................................................6
4 系统设计..................................................................6
4.1 系统总体架构..........................................................6
4.2 界面设计..............................................................7
4.3 系统功能模块设计......................................................9
4.3.1 网络组件 .........................................................9
4.3.2 用户信息显示功能 ................................................10
4.3.3 局域网内实现单播功能 ............................................14
4.3.4 局域网内实现广播功能 ............................................17
4.3.5 历史信息记录功能 ................................................17
5 系统实施及测试...........................................................18
5.1 实施概况.............................................................18
5.2 测试方案.............................................................19
5.3 测试结果.............................................................21
结 论.....................................................................22
参考文献.....................................................................22
致 谢.....................................................................24
声 明.....................................................................25
第 1 页 共 25 页
1 引言
1.1 课题的背景
随着计算机网络日新月异的发展,人们的交流方式越来越多,传统的交流方
式,如:信件、电报、电话等已经难以满足人们的交流要求,在互联网上即时的
和好友取得联系,已经成为当今社会人们主流的联系方式。因此,计算机之间进
行即时通讯、发送文件等交流方式已经成为必然潮流。因此出现了 QQ、UC 等聊
天工具,然而 QQ、UC 等聊天工具虽然方便、实用,但是,娱乐功能太多,有很
多吸引人的娱乐功能,从一定程度上来说,是一种娱乐工具,不能作为用于即时
通讯、文件共享的专用工具。目前,用于实现单一的即时通讯、文件共享的软件
实在太少,而且它们中大部分都对远程服务器有非常大的依赖性,没有彻底实现
点对点的交流。为此,我们决定开发一个专用于实现基于局域网内部计算机之间
即时通讯、文件传输的软件,以方便内网计算机之间信息的交流。本软件属于点
对点连接的,在连接并通信时,尤其是近程的即时通讯,彻底的脱离了远程的服
务器,避免了和远程服务器连接时过多的浪费网络资源。并且避免了服务器忙或
与服务器无法连接时,浪费过多时间用于和服务器建立连接。因此,这个软件是
极具适应性和实用性的即时通讯软件。
1.2 国内外研究现状
即时通讯的出现和互联网有着密不可分的关系,从技术上来说,IM 完全基
于 TCP/IP 网络协议族实现,而 TCP/IP 协议族是整个互联网得以实现的技术基础,
最早期的即时通讯雏形可以追溯到芬兰人 Jarkko Oikarinen 于 1988 年发明的一
种网络聊天协议 IRC(Internet Relay Chat),该协议仅支持文本聊天,并且也
不支持好友列表的概念,1996 年第一个 IM 产品 ICQ 发明后,即时通讯的技术和
功能开始基本成型,其工作原理开始被人们所了解,但不同厂商实现即时通讯技
术原理时采用的协议却有较大的差异,甚至到目前为止世界主要的 IM 服务运营
商 AOL(American Online:美国在线)仍然没有公布其主要即时通讯产品 AIM
(American Instant Messenger)的专用协议。从 1997 年第一代即时通讯软件诞
生后发展到现在,即时通讯行业先后经历了文本通信(第一代)、语音交流(第
二代)、视频交流(第三代)和跨网沟通(第四代)等多种信息传递技术变革。
尽管第一代、第二代以及第三代即时通讯软件的信息传递主要在互联网范围内,
但各个阶段都可以看到即时通讯行业在跨网通讯领域中的应用,在移动即时信息
进一步深化应用,跨网语音交流进一步加强,跨网通讯领域的进一步拓宽,都意
味着真正意义的跨网即时通讯已发展成型。可以说跨网即时通讯应用的萌芽、雏
形以及诞生,都贯穿着整个行业的发展。而在过去的几年,行业的主导服务商腾