vb校园网交换机节点管理系统毕业论文.doc
学校代码10126学号01305080605038分类号密级本科论文(设计)校园网交换机节点管理学院、系计算机学院专业名称计算机科学与技术年级2001级学生姓名崔伟指导教师2005年5月20日内蒙古大学本科毕业论文(设计)第1页校园网交换机节点管理摘要本毕业论文(设计)是在VisualBasic6.0编程环境下实现的,主要研究如何使用交换机和利用VB程序设计语言来开发一套图形界面的校园网交换机节点管理程序,对交换机各端口进行设置,修改某一子网在指定时间内的连通状态。完成此管理程序能够方便的管理校园网的交换机节点,减少管理员定时开通或关闭子网的工作量。该程序使用VB自带的Winsock控件telnet到交换机的某一端口,然后通过对交换机发送一系列命令,来设置交换机各Vlan和端口的相关状态;将交换机各子网的相关信息、修改子网连通状态的时间信息等存储在文本文件中,使用一个timer控件定时访问这些文本文件来决定是否修改某子网的连通状态,然后使用访问控制列表(AccessControlList,ACL)来修改。通过完成这个题目,加深对交换机的理解,并且更好地学习编程思想,掌握VB语言的应用,了解软件开发的过程,为以后进一步的研究打好基础。关键词VB,交换机,Winsock控件内蒙古大学本科毕业论文(设计)第2页PortSubnetAdministratorAbstract:AccomplishedinVisualBasic6.0programmingenvironment,thisgraduationthesismainlystudieshowtomakeuseoftheswitchandemployVBProgrammingLanguagetodevelopanadministrationprogramofaseriesofgraphicalinterfacescampuswebswitchmodes,settinguptheswitchportsandmodifyingthestateofconnectionofsomesubnetinacertaintime.Theprogramcanconvenientlycontrolcampuswebswitchnodessoastodecreasetheadministratorsworkloadthatheturnsonoroffthesubnettimely.UsingWinsockcontrolinVB,theprogramtelnetthesomeportinswitch.Then,bysendingaseriesoforderstotheswitch,itputsupthestateofconnectionofswitchVLANandports.Whentheinformationrelativetotheswitchsubnetsandthetimeinformationaboutmodifyingthestateofconnectionofsubnetsarestoredinthetextfiles,theprogramusingatimercontroltoopenthesefilestimelyinordertodecidewhetheritisrevisedthestateofconnectionofsomesubnetornot,andthenitisemployedACLtoreviseit.Byfinishingthispaper,Igetdeeperunderstandingabouttheswitch,learnmoreabouttheprogrammingthought,grasptheapplicationofVBProgrammingLanguageandknowtheprocessofdevelopingsoftware.Alloftheseaspectslaythegoodfoundationsofmyfurtherresearchinfuture.Keywords:VB,Switch,Winsockcontrol内蒙古大学本科毕业论文(设计)第3页目录目录.3引言.4第2章VB概述.52.1VisualBasic简介.52.2VisualBasic功能特点.6第3章交换机概述.83.1什么是三层交换机.83.2虚拟局域网.93.3访问控制列表.11第四章课题实现的功能介绍.13第五章功能实现.165.1日程文件的实现.165.2Winsock控件创建TCP/IP通讯.175.3定时功能的实现.20第6章结论.24第七章致谢.25第8章参考文献.26第9章附录(Cisco基本命令集).27