- 1、本文档共7页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
PAGE
-PAGE1-
陕西师范大学计算机网络实验报告
实验七ICMP
一、实验目的
1.熟悉并掌握wireshark的操作。
2.分析ICMP协议。
二、实验器材
1.PC机电脑一台。
2.下载wireshark软件并安装
三、实验内容及问题回答
1.ICMPandPing
打开wireshark开始抓包
在widows命令下输入ping–n10www.ust.hk
待ping程序终止,停止wireshark抓包
1.WhatistheIPaddressofyourhost?WhatistheIPaddressofthedestination
host?
源和目的IP地址。
源和目的IP地址。
我的主机的IP地址为:3
目的主机的IP地址为:53
2.WhyisitthatanICMPpacketdoesnothavesourceanddestinationport
Numbers
答:从课本可知,ICMP用于主机和路由器彼此交互网络层信息。ICMP报文有一个类型字段和一个编码字段,用来表示特定的消息被接收。因为它能解释所有消息,所以ICMP到应用层不需要端口号。
3.Examineoneofthepingrequestpacketssentbyyourhost.WhataretheICMP
typeandcodenumbers?WhatotherfieldsdoesthisICMPpackethave?How
manybytesarethechecksum,sequencenumberandidentifierfields?
类型和编码字段
类型和编码字段
ICMP类型:8(回显请求)
ICMP编码:0
ICMP报文其他字段包括:checksum(2字节)、identifier(2字节)、sequencenumber(2字节)、sequencenumber(LE)、datafields.
4.Examinethecorrespondingpingreplypacket.WhataretheICMPtypeandcode
numbers?WhatotherfieldsdoesthisICMPpackethave?Howmanybytesarethe
checksum,sequencenumberandidentifierfields?
类型和编码字段
类型和编码字段
ICMP类型:0(回显回答)
ICMP编码:0
ICMP报文其他字段包括:checksum(2字节)、identifier(2字节)、sequencenumber(2字节)、sequencenumber(LE)、datafields.
2.ICMPandTraceroute
1.打开wireshark开始抓包
2.在widows命令下输入tracertwww.inria.fr
3.待tracert程序终止,停止wireshark抓包
截图如下:
5.WhatistheIPaddressofyourhost?WhatistheIPaddressofthetarget
destinationhost?
答:我的主机IP地址:3
目的地主机IP地址:49
6.IfICMPsentUDPpacketsinstead(asinUnix/Linux),wouldtheIPprotocol
numberstillbe01fortheprobepackets?Ifnot,whatwoulditbe?
答:如果ICMP发送UDP数据报,IP协议号应该为0x11.十进制为17,表明交给UDP。
7.ExaminetheICMPechopacketinyourscreenshot.Isthisdifferentfromthe
ICMPpingquerypacketsinthefirsthalfofthislab?Ifyes,howso?
ICMP请求回显报文
ICMP请求回显报文
答:ICMP回显数据报与ping请求数据报有相同的字段。
8.ExaminetheICMPerrorpacketinyourscreenshot.Ithasmorefieldsthanthe
ICMPechopacket.Whatisincludedin
文档评论(0)