计算机网络课程设计小型网络设计Word格式文档下载.docx
《计算机网络课程设计小型网络设计Word格式文档下载.docx》由会员分享,可在线阅读,更多相关《计算机网络课程设计小型网络设计Word格式文档下载.docx(12页珍藏版)》请在冰点文库上搜索。
树型拓扑结构的特点是,比较简单,成本低。
网络中任意两个节点之间不产生回路,每个链路
课程设计说明书MZ2
都支持双向传输。
网络中节点扩充方便灵活,寻找链路路径比较方便。
树型网的优点:
树型拓扑结构除了具有星型结构的所有优点外,还具有以下自身优点。
(1)扩展性能好-其实这也是星型结构的主要优点,通过多级星型级联,就可以十分方便地扩展原有网络,实现网络的升级改造。
只需简单地更换高速率的集线设备,即可平滑地从10Mbps升级至100Mbps、1000Mbps甚至1OGbps,.实现网络的升级。
正是由于这两条重要的特点,星型网络才会成为网络布线的当然之选。
(2)易于网络维护-集线设备居于网络或子网络的中心,这也正是放置网络诊断设备的绝好位置。
就实际应用来看,利用附加于集线设备中的网络诊断设备,可以使得故障的诊断和定位变得简单而有效。
这种结构的缺点就是对根(核心,或者骨干层)交换机的依赖性太大,如果根发生故障,则全网不能正常工作。
同时,大量数据要经过多级传输,系统的响应时间较长。
2.2具体设计
使用模拟仿真软件,构建一个小型网络。
网络规模要求如下:
终端用户包括:
1号楼有48个校园网普通用户;
2号楼有1个包含24个多媒体用户的电子阅览室;
3号楼有1个包含48个用户的多媒体教室(性能要求髙于电子阅览室)。
4号楼是网络中心支持远程教学,可以接入互联网,具有广域网访问的安全机制和网络管理功能。
各楼之间的距离为500米。
2.2.1设备及传输介质选择
表1小型局域网设备选择表
楼号
设备选择
设备型号
设备数量
1号楼
Router
Router-PT
1
Switch
2950T-24
3
PC
PC-PT
48
2号楼
24
3号楼
2
4号楼
Cloud
Cloud-PT
Server
Server-PT
表2各设备间传输介质表
设备a
设备b
设备c
设备d
设备与设备之间选择的连线
a-b同轴电缆b-c双绞线
c-d同轴电缆-4光纤
a-b同轴电缆
c-d同轴电缆2-3光纤
c-d同轴电缆3-4光纤
a-b同轴电缆a-c光纤b・d同轴电缆
2.2.2网络拓扑图
3.
图1网络拓扑图
设计结果分析
3.1设计结果
本设计的主要目标是根据学校园区局域网建设需求,以满足目前校园网大多数应用为目标,在现有独立信息教室的基础上,将对学校1号楼、2号楼、3号楼和4号楼等几座主要建筑物构建校园网络。
所设计的拓扑结构经发送数据包后成功,说明设计基本合理。
但是,在设计的过程中仍需注意以下几点:
1.若发送数据包后不成功,则需重新检査拓扑结构,是否地址设错,然后再重新发送。
2.在连接设备时,接口处若显现出红点,则这时检査下路由器是否开通,然后再检査相关代码设计的准确性。
程序运行结果如图2所示
Fire
LastStatus
Source
Destination
Type
Color
Time(sec)
Periodic
Num
EditDelete
Successful
ServerO
PC7
ICMP
U..T7J
0.000
N
(edit)(delete)1
■
PC5
(edit)(delete)
successful
servero
PC2
PCI
PC8
PC6
4
PC10
PCO
5
PC4
6
PC9
7
8
图2程序运行结果
3.2设计相关的IP配置
表3PC机和路由器的IP的配置
PC机
Gateway
IPAddress
Submask
223.124.0.1
223.124.0.2
255.255.255.0
223.124.0.3
223.124.20.1
223.124.20.2
PC3
223.124.40.1
223.124.40.2
223.124.40.3
223.124.50.1
223.124.50.2
223.124.50.3
255.255.255.0
223.124.70.1
223.124.70.2
223.124.70.3
223.124.70.4
223.124.70.5
223.124.80.1
223.124.80.2
表4pc机IP设置表
223.124.0.1
223.124.0.2-223.124.0.12
223.124.0.13-223.124.0.23
223.124.20.1
223.124.20.24-223.124.20.34
223.124.40.1
223.124.20.35-223.124.20.41
223.124.40.42-223.124.40.49
223.124.50.2-223.124.50.13
223.124.50.1
223.124.50.13-223.124.50.25
223.124.70.1
223.124.70.2-223.124.70.13
223.124.70.14-223.124.70.25
223.124.70.26-223.124.70.37
223.124.70.38-223.124.70.49
223.124.80.2
255・255.255.0
3.3相关代码
路由器和交换机配置如下
Router0
Router>
enable
Router#configureterminal
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
Router(config)ttinterfaceFastEthernetO/0
Router(config-if)#noshutdown
%LINK-5-CHANGED:
InterfaceFastEthernetO/0,chemgedstatetoup%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceFastEthernetO/0,changedstatetoup
Router(config-if)#
Router(config-if)ttexit
Router(config)ttinterfaceFastEthernetl/0
InterfaceFastEthernet1/0,chzmgedstatetoup%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceFastEthernet1/0,changedstatetoup
Router(config-if)#exit
Router(config)^interfaceSerial2/0
InterfaceSerial2/0,changedstatetoup
Router(config-if)#exit
Router(config)#interfaceFastEthernet0/0
Router(config-if)#ipaddress223.124.0.1255.255.255.0
Router(config)#interfaceFastEthernetl/0
Router(config-if)#ipaddress223.214.20.1255.255.255.0
Router(config-if)#ipaddress223.214.20.1255.255.255.0
Router(config)^interfaceFastEthernet0/0
Router(config)^interfaceFastEthernetl/0
Router(config"
if)#ipaddress223.124.20.1255.255.255.0
Router(config)^interfaceFastEthernetO/0
Router(config)^interfaceFastEthernet1/0
Router(config-if)#exit
Router(config)^interfaceSerial2/0
Router(config-if)#ipaddress223.124.30.1255.255.255.0
Router(config-if)ttclockrate56000
%LINEPR0T0-5-UPD0WN:
LineprotocolonInterfaceSerial2/0,changedstatetoupRouter(config-if)#exit
Router(config)#iproute223.124.40.0255.255.255.0223.124.30.2
Router(config)#iproute223.124.60.0255.255.255.0223.124.30.2
Router(config)#iproute223,124.70.0255.255.255.0223.124.30.2
Router(config)#
Router(config)#
%SYS-5-C0NFIG_I:
ConfiguredfromconsolebyconsoleRouter#
Router1
Router〉enable
Enterconfigurationcommands,oneperline・EndwithCNTL/Z・
Router(config)#interfaceFastEthernetO/0
InterfaceFastEthernetO/0,changedstatetoup%LINEPR0T0-5-UPD0WN:
Router(config-if)#
Router(config-if)#
InterfaceSerial2/0,changedstatetoupnoshutdown
Router(config)#interfaceSerial3/0
InterfaceSerial3/0,changedstatetoup%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceSerial2/0,changedstatetoupRouter(config-if)#exit
Router(config-if)#ipaddress223.124.40.1255.255.255.0
Router(config-if)#noipaddress
Router(config-辻)#ipaddress223.124.30.2255.255.255.0
Router(config)^interfaceSerial3/0
Router(config-辻)#ipaddress223.124.50.1255.255.255-0
Router(config-i«
f)#clockrate56000
%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceSerial3/0,changedstatetoupRouter(config-if)#exit
Router(config)#iproute223.124.10.0255.255.255.0223.124.30.1
Router(config)#iproute223.124.20.0255.255.255.0223.124.30.1
Router(config)#iproute223.124.70.0255.255.255.0223.124.50.2
Router2
Routerftconfigureterminal
Enterconfigurationcommands,oneperline.EndwithCNTL/Z
InterfaceSerial3/0,changedstatetoupnoshutdown
Router(config-if)#noshutdown
InterfaceFastEthernetO/0,changedstatetoup
Router(config-if)#%LINEPR0T0-5-UPD0WN:
Router(config-辻)#ipaddress223.124.50.2255.255.255.0
Router(config)#interfaceSerial2/0
Router(config-if)#ipaddress223.124.60.1255.255.255.0
Rout