网络常用测试工具的应用实验报告Word格式.docx
《网络常用测试工具的应用实验报告Word格式.docx》由会员分享,可在线阅读,更多相关《网络常用测试工具的应用实验报告Word格式.docx(13页珍藏版)》请在冰豆网上搜索。
![网络常用测试工具的应用实验报告Word格式.docx](https://file1.bdocx.com/fileroot1/2022-11/27/56889a04-1c0c-4c86-b080-a16e7bcfd585/56889a04-1c0c-4c86-b080-a16e7bcfd5851.gif)
实验完成后应认真撰写实验报告。
五、实验原理
六、实验步骤
1、最常用的网络测试工具-PING.EXE
(1)判断本地的TCP/IP协议栈是否已安装成功
C:
\DocumentsandSettings\student>
ping127.0.0.1
Pinging127.0.0.1with32bytesofdata:
用32个数据字节验证本机与计算机的连接
Replyfrom127.0.0.1:
bytes=32time<
10msTTL=128
返回本机:
字节为32个时间小于10毫秒生存时间为128
Pingstatisticsfor127.0.0.1:
统计本机的数据:
Packets:
Sent=4,Received=4,Lost=0(0%loss),
包数:
发送为4,接收为4,丢失为0(丢失率为0%)
Approximateroundtriptimesinmilli-seconds:
大概回路行程时间在毫秒
Minimum=0ms,Maximum=0ms,Average=0ms
最小为0毫秒,最大为0毫秒,平均为0毫秒
(2)判断能否到达指定IP地址的远程计算机
ping10.64.42.1
Pinging10.64.42.1with32bytesofdata:
用32个数据字节验证网关与计算机的连接
Replyfrom10.64.42.1:
10msTTL=64
返回网关:
字节为32个时间小于10毫秒生存时间为64
bytes=32time=34msTTL=64
Pingstatisticsfor10.64.42.1:
统计网关的数据:
用32个数据字节验证网络与计算机的连接
返回网络:
字节为32时间小于10毫秒生存时间为128
统计腾讯网的数据:
发送为4,收回为4,丢失为0(丢失率为0%)
大概循环时间在毫秒:
最小值01毫秒,最大值为0毫秒,平均值为0毫秒
(6)Ping指定的IP地址30次
ping-n30202.205.107.58
Pinging202.205.107.58with32bytesofdata:
Replyfrom202.205.107.58:
10msTTL=126
字节为32时间小于10毫秒生存时间为126
Pingstatisticsfor202.205.107.58:
统计网络的数据:
Sent=30,Received=30,Lost=0(0%loss),
发送为30,收回为30,丢失为0(丢失率为0%)
最小值为10毫秒,最大值为0毫秒,平均值为0毫秒
(7)用400字节长的包Ping指定的IP地址
ping-l400202.205.107.10
Pinging202.205.107.10with400bytesofdata:
用400个数据字节验证网络与计算机的连接
Replyfrom202.205.107.10:
bytes=400time<
10msTTL=62
字节为400时间小于10毫秒生存时间为62
Pingstatisticsfor202.205.107.10:
最小值为0毫秒,最大值为0毫秒,平均值为0毫秒
2、网络配置查看程序-IPCONFIG.EXE
(1)查看所有配置信息:
Winipcfg或Ipconfig/all
\DocumentsandSettings\Administrator>
Ipconfig/all
WindowsIPConfiguration
HostName............:
r5-045
PrimaryDnsSuffix.......:
NodeType............:
Unknown
IPRoutingEnabled........:
No
WINSProxyEnabled........:
Ethernetadapter本地连接:
Connection-specificDNSSuffix.:
Description...........:
RealtekRTL8139FamilyPCIFastEthe
rnetNIC
PhysicalAddress.........:
00-E0-4C-4C-A9-DB
DhcpEnabled...........:
IPAddress............:
10.64.5.45
SubnetMask...........:
255.255.255.0
DefaultGateway.........:
10.64.5.254
DNSServers...........:
202.205.107.10
3、网络连接统计工具-NETSTAT.EXE
(1)显示所有连接
netstat-a
ActiveConnections
ProtoLocalAddressForeignAddressState
TCPr5-045:
epmapr5-045:
0LISTENING
microsoft-dsr5-045:
1161r5-045:
8177r5-045:
10019r5-045:
netbios-ssnr5-045:
102810.64.7.199:
10018ESTABLISHED
1045r5-045:
10019ESTABLISHED
1681221.7.91.31:
httpSYN_SENT
168210.64.7.122:
7211SYN_SENT
1027CLOSE_WAIT
1045ESTABLISHED
1031r5-045:
UDPr5-045:
microsoft-ds*:
*
isakmp*:
ms-sql-m*:
4500*:
5412*:
5999*:
6000*:
6002*:
ntp*:
netbios-ns*:
netbios-dgm*:
1900*:
1099*:
(2)显示所有协议的统计信息
netstat-s
IPv4Statistics
PacketsReceived=142692
ReceivedHeaderErrors=0
ReceivedAddressErrors=94
DatagramsForwarded=0
UnknownProtocolsReceived=0
ReceivedPacketsDiscarded=21591
ReceivedPacketsDelivered=121098
OutputRequests=137681
RoutingDiscards=0
DiscardedOutputPackets=12
OutputPacketNoRoute=0
ReassemblyRequired=0
ReassemblySuccessful=0
ReassemblyFailures=0
DatagramsSuccessfullyFragmented=0
DatagramsFailingFragmentation=0
FragmentsCreated=0
ICMPv4Statistics
ReceivedSent
Messages805811
Errors00
DestinationUnreachable06
TimeExceeded00
ParameterProblems00
SourceQuenches00
Redirects00
Echos75847
EchoReplies47758
Timestamps00
TimestampReplies00
AddressMasks00
AddressMaskReplies00
TCPStatisticsforIPv4
ActiveOpens=17741
PassiveOpens=12445
FailedConnectionAttempts=13063
ResetConnections=171
CurrentConnections=4
SegmentsReceived=110285
SegmentsSent=120741
SegmentsRetransmitted=9516
UDPStatisticsforIPv4
DatagramsReceived=10002
NoPorts=59
ReceiveErrors=0
DatagramsSent=6608
4、操纵网络路由表的工具-ROUTE.EXE
(1)显示全部路由信息:
routeprint
===========================================================================
InterfaceList
0x1...........................MSTCPLoopbackinterface
0x2...00e04c4ca9db......RealtekRTL8139FamilyPCIFastEthernetNIC-
数据包计划程序微型端口
ActiveRoutes:
NetworkDestinationNetmaskGatewayInterfaceMetric
0.0.0.00.0.0.010.64.5.25410.64.5.4520
10.64.5.0255.255.255.010.64.5.4510.64.5.4520
10.64.5.45255.255.255.255127.0.0.1127.0.0.120
10.255.255.255255.255.255.25510.64.5.4510.64.5.4520
127.0.0.0255.0.0.0127.0.0.1127.0.0.11
224.0.0.0240.0.0.010.64.5.4510.64.5.4520
255.255.255.255255.255.255.25510.64.5.4510.64.5.451
DefaultGateway:
PersistentRoutes:
None
(2)添加一个路由
routeADD157.0.0.0MASK255.0.0.0157.5
5.80.1METRIC3IF2
Manipulatesnetworkroutingtables.
ROUTE[-f][-p][command[destination]
[MASKnetmask][gateway][METRICmetric][IFinterface]
-fClearstheroutingtablesofallgatewayentries.Ifthisis
usedinconjunctionwithoneofthecommands,thetablesare
clearedpriortorunningthecommand.
-pWhenusedwiththeADDcommand,makesaroutepersistentacross
bootsofthesystem.Bydefault,routesarenotpreserved
whenthesystemisrestarted.Ignoredforallothercommands,
whichalwaysaffecttheappropriatepersistentroutes.This
optionisnotsupportedinWindows95.
commandOneofthese:
PRINTPrintsaroute
ADDAddsaroute
DELETEDeletesaroute
CHANGEModifiesanexistingroute
destinationSpecifiesthehost.
MASKSpecifiesthatthenextparameteristhe'
netmask'
value.
netmaskSpecifiesasubnetmaskvalueforthisroutee