




已阅读5页,还剩4页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
实验五 :网络系统故障分析和排除(1)PING命令的操作一、实验目的1、了解和熟悉网络中的常见故障2、熟悉用于网络测试的常用工具和命令3、掌握基本网络分析和排除方法二、实验设备和环境1、10/100M以太网2、装有Windows9X/2000操作系统的PC机,要求安装好NetBEUI协议和TCP/IP协议3、PC机能通过以太网接入Internet三、实验内容和步骤1、 网络系统故障现实使用过程中,计算机网络系统出现问题的情况并不少见,这些问题有的是用户使用不当造成的,也有的是网络系统出现了各种故障,为此我们必须掌握网络系统故障分析和排除的基本方法。计算机网络系统出现的故障主要分以下几类:(1) 网卡故障;(2) 计算机网络软件和协议配置问题;(3) LAN网络连线故障;(4) 网关故障;(5) DNS故障;(6) 骨干网故障;(7) 网络服务器故障(8) 网络病毒等。2、 网络测试的常用工具和命令之一2.1 ping 测试网络的格式和功能使用格式:ping x -t -a -n count -l size 参数介绍: -t 让用户所在的主机不断向目标主机发送数据 -a 以IP地址格式来显示目标主机的网络地址 -n count 指定要Ping多少次,具体次数由后面的count来指定 -l size 指定发送到目标主机的数据包的大小 主要功能:用来测试一帧数据从一台主机传输到另一台主机所需的时间,从而判断主响应时间。详细介绍:该命令主要是用来检查路由是否能够到达某站点。由于该命令的包长常小,所以在网上传递的速度非常快,可以快速检测您要去的站点是否可达。如果执行Ping不成功,则可以预测故障出现在以下几个方面:网线是否连通,网络适配器配置是否正确,IP地址是否可用等。如果执行Ping成功而网络仍无法使用,那么问题很可能出在网络系统的软件配置方面,Ping成功只能保证当前主机与目的主机间存在一条连通的物理路径。它的使用格式是在命令提示符下键入:PingIP地址或主机名,执行结果显示响应时间。重复执行这个命令,你可以发现Ping报告的响应时间是不同的。具体的ping命令后还可跟好多参数,你可以键入ping后回车,以得到详细说明。 举例说明: 当我们ping一个站点时,得到的回答是Request time out信息,意味着网址没有在1秒内响应,这表明服务器没有对Ping做出响应的配置或者网址反应极慢。如果你看到4个“请求暂停”信息,说明网址拒绝Ping请求。因为过多的Ping测试本身会产生瓶颈,因此,许多Web管理员不让服务器接受此测试。如果网址很忙或者出于其他原因运行速度很慢,如硬件动力不足,数据信道比较狭窄,可以过一段时间再试一次,以确定网址是不是真的有故障。如果多次测试都存在问题,则可以认为是用户的主机和该站点没有联接上,用户应该及时与因特网服务商或网络管理员联系。2.2 ping x -t使用-t 有这个参数时,当你ping一个主机时系统就不停的运行ping这个命令,直到结束或按下Control-C。 例如: 点击 “开始”菜单,再点击“运行”在其窗口中,1)输入IP地址X=8 ping 8 -t 打入以后会在接下来弹出的窗口中显示如下信息:Pinging 8 with 32 bytes of data:Reply from 8 :bytes=32 time=10ms TTL=50 Reply from 202.103 24.68 : bytes=32 time=10ms TTL=50 Reply from 8 : bytes=32 time=12ms TTL=50 Reply from 8 : bytes=32 time=12ms TTL=50 Reply from 8 : bytes=32 time=12ms TTL=50 Reply from 8 : bytes=32 time=13ms TTL=50 Reply from 8 : bytes=32 time=11ms TTL=50 Reply from 8 : bytes=32 time=11ms TTL=50 Ping statistics for 8:Packets: Sent = 10, Received = 8, Lost = 2 (20% loss),Approximate round trip times in milli-seconds: Minimum = 10ms, Maximum = 13ms, Average = 11ms 如果显示上面的信息,说明你到8 的电脑的线路是通畅的,可以通信。也证明了你线路没有问题!Pinging 8 with 32 bytes of data: 表示“到8地址携带的数据包长度是32个字节(缺省值)”。Ping statistics for 8:表示“到8地址的统计结果是”从以上可以知道在给8发送10个数据包的过程当中,返回了8个,其中有2个由于未知原因丢失,这8个数据包当中返回速度最快为10ms,最慢为13ms,平均速度为11ms。对于Reply from 8 : bytes=32 time=10ms TTL=50 信息的解释如下:Reply from 8 表示收到来自目标电脑的包信息bytes=32 表示包大小为32bits,time=10ms 表示延迟时间等于10ms, TTL=50 表示你的电脑到目标电脑中间通过的路由器/交换机数目。一般初始值为64、128和254,每经过一个路由器/交换机就减1。本次显示TTL=50,表示中间通过的路由器/交换机数目为14。如果打完ping IP地址命令,显示的如下信息,那说明线路不通:Request timed out.Request timed out.Request timed out.Request timed out.Ping statistics for 8:Packets: Sent = 4, Received = 0, Lost = 4 (100% loss)此时,就需要检查一下网线,路由器或者交换机的工作状况了!2)输入域名地址X= ping -t 打入以后会在接下来弹出的窗口中显示如下信息:Pinging 9 with 32 bytes of data:Reply from 9: bytes=32 time=46ms TTL=55 Reply from 9: bytes=32 time=47ms TTL=55 Reply from 9: bytes=32 time=47ms TTL=55Reply from 9: bytes=32 time=47ms TTL=55 Reply from 9: bytes=32 time=47ms TTL=55 Reply from 9: bytes=32 time=46ms TTL=55Reply from 9: bytes=32 time=46ms TTL=55 Reply from 9: bytes=32 time=46ms TTL=55 Ping statistics for 9:Packets: Sent = 8, Received = 8, Lost = 0 (0% loss),Approximate round trip times in milli-seconds: Minimum = 46ms, Maximum = 47ms, Average = 46ms 如果显示上面的信息,说明你到 9 的电脑的线路是通畅的,可以通信。也证明了你线路没有问题!从以上可以知道在给9发送8个数据包的过程当中,返回了8个,没有丢失。其返回速度最快为46,最慢为47,平均速度为46。 次显示TTL=55,示中间通过的路由器/交换机数目为9个。同样,如果打完ping域名地址,显示的如下信息,那说明线路不通:Request timed out.Request timed out.Request timed out.Request timed out.Ping statistics for 8:Packets: Sent = 4, Received = 0, Lost = 4 (100% loss)此时,就需要检查一下网线,路由器或者交换机的工作状况了!2.3 ping x -a使用-a解析主机的NETBIOS主机名,如果你想知道你ping的计算机名则要加上这个参数了,一般是在运用ping命令后的第一行就显示出来。 C:WINDOWSping -a 00 Pinging 000 00 with 32 bytes of data: Reply from 00: bytes=32 time=10ms TTL=128 Reply from 00: bytes=32 time=10ms TTL=128 Reply from 00: bytes=32 time=10ms TTL=128 Reply from 00: bytes=32 time=10ms TTL=128 Ping statistics for 00: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 0ms, Average = 0ms 可以得知: IP 为00的计算机,NETBIOS名为000 再如: C:WINDOWSping -a 3 Pinging 9.localdomain 3 with 32 bytes of data: Reply from 3: bytes=32 time=10ms TTL=128 Reply from 3: bytes=32 time=10ms TTL=128 Reply from 3: bytes=32 time=10ms TTL=128 Reply from 3: bytes=32 time=10ms TTL=128 Ping statistics for 3: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 0ms, Average = 0ms 可以得知: ip 为3的计算机,NETBIOS名为9 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx2.4 ping x -n使用-n参数 -n count定义用来测试所发出的测试包的个数,缺省值为4。通过这个命令可以自己定义发送的个数,对衡量网络速度很有帮助,比如我想测试发送20个数据包的返回的平均时间为多少,最快时间为多少,最慢时间为多少就可以通过执行带有这个参数的命令获知。 例如: 点击 “开始”菜单,再点击“运行”在其窗口中,输入:C:WINDOWSping -n 10 88 Pinging 88 with 32 bytes of data: Reply from 88: bytes=32 time=10ms TTL=64 Reply from 88: bytes=32 time=10ms TTL=64 Reply from 88: bytes=32 time=10ms TTL=64 Reply from 88: bytes=32 time=10ms TTL=64 Reply from 88: bytes=32 time=10ms TTL=64 Reply from 88: bytes=32 time=10ms TTL=64 Reply from 88: bytes=32 time=10ms TTL=64 Reply from 88: bytes=32 time=10ms TTL=64 Reply from 88: bytes=32 time=10ms TTL=64 Reply from 88: bytes=32 time=10ms TTL=64 Ping statistics for 88: Packets: Sent = 10, Received = 10, Lost = 0 (0% loss) Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 0ms, Average = 0ms 向IP为88的计算机,发送10个数据包,发送10个,返回10个,没有丢包2.5 ping x -l使用-l参数 -l length定义所发送缓冲区的数据包的大小,在默认的情况下windows的ping发送的数据包大小为32byte,也可以自己定义,但有一个限制,就是最大只能发送65536byte,一般取32 byte的整倍数。超过这个数时,对方就很有可能因接收的数据包太大而死机,所以微软公司为了解决这一安全漏洞于是限制了ping的数据包大小。 例如: C:WINDOWSping -l 32768 -n 10 88 Pinging 88 with 32768 bytes of data: Request timed out. Reply from 88: bytes=32768 time=12ms TTL=64 Reply from 88: bytes=32768 time=12ms TTL=64 Reply from 88: bytes=32768 time=12ms TTL=64 Reply from 88: bytes=32768 time=9ms TTL=64 Reply from 88: bytes=32768 time=9ms TTL=64 Reply from 88: bytes=32768 time=9ms TTL=64 Reply from 88: bytes=32768 time=9ms TTL=64 Reply from 88: bytes=32768 time=9ms TTL=64 Reply from 88: bytes=32768 time=9ms TTL=64 Ping statistics for 88: Packets: Sent = 10, Received = 9, Lost = 1 (10% loss), Approximate round trip times in milli-seconds: Minimum = 9ms, Maximum = 12ms, Average = 9ms 向IP为88的计算机,发送大小为32768byt的数据包10个,发送10个,返回9个,丢失1个。返回数据包最短时间为9ms,最长时间为12ms。 2.6 ping x -n count -l size综合使用输入域名地址X= (美国密西根州立大学网址) ping -l 64 -n 8 或 ping -l 64 -n 8打入以后会在接下来弹出的窗口中显示如下信息:Pinging 40 with 64 bytes of data:Reply from 40: bytes=64 time=246ms TTL=237 Reply from 40: bytes=64 time=246ms TTL=237 Reply from 40: bytes=64 time=246ms TTL=237Reply from 40: bytes=64 time=245ms TTL=237 Reply from 40: bytes=64 time=246ms TTL=237 Reply from 40: bytes=64 time=247ms TTL=237Reply from 40: bytes=64 time=247ms TTL=237 Reply from 40: bytes=64 time=247ms TTL=237 Ping statistics for 40:Packets: Sent = 8, Received = 8, Lost = 0 (0% loss),Approximate round trip times in milli-seconds: Mini
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2024-2025学年人教版(PEP)三下英语期末模拟卷(含答案含听力原文无音频)
- 《金融服务营销》 测试题及答案A
- 工业废水处理与排放标准环境监测研究
- 工业机器人应用及操作规范介绍
- 工业旅游开发与文化传承研究
- 工业机器人技术及智能制造应用案例
- 工业污染防治与清洁生产技术
- 工业物联网提升非标设备运行效率的策略
- 工业污染防治技术及措施
- 工业污染防治的技术与策略
- 项目工程实体质量(路基、路面工程)检查表
- 图文高中英语语法if条件句If - Clauses
- 中国网民权益保护调查报告
- 2022年四川省成考(专升本)经济学考试真题含解析
- 大模型在航空航天领域的应用:智能探索宇宙的无限可能
- 《直流电源》课件
- 《中医药健康知识讲座》课件
- 解决多模穴流动不平衡问题之流道翻转技术
- 民俗文化的产业化发展
- 抖音新号怎么养号
- 国开02316-中级财务会计(一)机考复习资料
评论
0/150
提交评论