ICMP

时间:2024.5.2

陕西师范大学 计算机网络 实验报告

年级:12级计科2班 姓名:

学号: 实验日期:2012-11-28

实验名称:Wireshark Lab:ICMP

一、 实验目的

1、 会用wireshark分析ICMP协议,对ICMP协议有个全面的学习与了解

2、 分析ICMP协议,学习ICMP报文段的各领域。

3、掌握ICMP协议以及ping和 tracert 两种命令。

二、 实验器材

1、 接入internet的计算机主机。

2、 抓包工具wreshark 和截图工具

三、 实验内容实验操作实践与步骤

(一)、ICMP and Ping

1、打开wireshark开始抓包。

2、在windows命令下输入ping-n

1、 待ping程序终止,停止wireshark抓包。实验截图如下:

ICMP

ICMP

1. What is the IP address of your host? What is the IP address of the destination host?

答:截图如下:

ICMP

由图可知:本地主机IP地址是10.150.191.7

目的主机IP地址是143.89.14.2

2. Why is it that an ICMP packet does not have source and destination port numbers?

答:ICMP用于主机和路由器彼此交互网络层信息,它的报文中有一个类型字段和一个编码字段,用来表示特定的消息被接收。因为它能解释所有消息,所以ICMP报文不需要源和目的端口。

3. Examine one of the ping request packets sent by your host. What are the ICMP type and code numbers? What other fields does this ICMP packet have? How many bytes are the checksum, sequence number and identifier fields?

答:如下截图:

ICMP

由图可知:ICMP类型为8,编码为0,可知是是对Ping的回显回答。ICMP报文其他字段包括:checksum(2字节),identifier(2字节),sequence number(2字节),sequence number(LE),data fields.

4. Examine the corresponding(相应的) ping reply packet. What are the ICMP type and code numbers? What other fields does this ICMP packet have? How many bytes are the checksum, sequence number and identifier fields?

ICMP

答:由上图可知。ICMP的type是0,code是0,它的其他字段还包括:checksum(2字节),identifier(2字节),sequence number(2字节),sequence number(LE),data fields.

(二)、ICMP和tracerout

1、打开wireshark开始抓包。

2、在Windows命令下输入tracert www.inria .fr

3、等tracert程序结束后,停止抓包。

ICMP

ICMP

5. What is the IP address of your host? What is the IP address of the target destination host?

答:截图如下:可知主机的IP地址是:10.2.136.54,目标主机的IP是:193.51.193.149

ICMP

6. If ICMP sent by UDP packets instead (as in Unix/Linux), would the IP protocol number still be 01 for the probe packets? If not, what would it be?

答:不是01,因为它的上层协议UDP.,所以它的protocol number 不是ICMP(1)。

7. Examine the ICMP echo packet in your screenshot. Is this

different from the ICMP ping query packets in the first half of this lab? If yes, how so?

答:Ping 请求消息如下:

ICMP

Tracert请求的消息如下:

ICMP

二者的checksum ,sequence number ,data的值都不一样。

8. Examine the ICMP error packet in your screenshot. It has more fields than the ICMP echo packet. What is included in those fields? 答:在error packet 中,

ICMP

在ecoh packet中,

ICMP

相比两者,error packet 比echo packet 多出了

ICMP

9. Examine the last three ICMP packets received by the source host. How are these packets different from the ICMP error packets? Why are they different?

答:后三个reply消息中与error 分组相比,error packet 比它们多出了如下消息:

ICMP

10. Within the tracert measurements, is there a link whose delay is significantly longer than others? Refer to the screenshot in Figure 4, is there a link whose delay is significantly longer than others? On the basis of the router names, can you guess the location of the two routers on the end of this link?

答:在tracert跟踪中,时延差距很大,如图所示

ICMP

由IP地址查询可知一个位于美国一个位于欧洲的奥地利,所以时延很长。

四、实验总结

通过实验进一步学习了ICMP协议的格式,知道其功能是差错报告,以及在ping 和tracert命令中ICMP协议的使用,并比较了在这两种命令中ICMP数据包的异同;同时知道ICMP数据包中没有源端口号和目的端口号。


第二篇:ICMP攻击及其相应对策


ICMP攻击及其相应对策

ICMP攻击及其相应对策

ICMP攻击及其相应对策

ICMP攻击及其相应对策

ICMP攻击及其相应对策

ICMP攻击及其相应对策

ICMP攻击及其相应对策

ICMP攻击及其相应对策

更多相关推荐:
icp可行性报告

ICP可行性报告一立项依据分析1社会背景从国家经济建设和社会发展这两个大环境描述本项目的必要性2特色创新从可能的技术特色和创新方面描述本项目的必要性3现状分析从国内外的现状以及发展趋势描述本项目的必要性4应用前...

Icp对比报告

受控文件不得复印1OF32OF3

icp证年检说明13

ICP证年检说明一报送年检的有关材料要求参加年检单位需报送的材料请一律使用A4纸打印一增值电信业务经营基本情况表用计算机填写后加盖公章并法人签字二增值电信业务经营许可证原件参加过年检的单位需持年检合格通知书三工...

ipcc第五次报告

Ipcc政府间气候变化专门委员会主席帕乔里IPCC联合主席第一工作组秦大河和托马斯斯托克第五次报告第一次报告是20xx年5月发布的可再生能源与减缓气候变化IPCC第五次评估报告由三个工作组报告和一个综合报告组成...

ICP实验报告

现代分析测试技术实验报告组别第八组左瑾瑜20xx000143等离子体发射光谱分析实验一目的要求1了解等离子体发射光谱仪的基本构造原理与方法2了解等离子体发射光谱分析过程的一般过程和主要操作步骤3掌握等离子体发射...

ICP DATA、MSDS知识

ICPDATAMSDS知识一ICP测试报告ICPDATA11什么是ICPDATA瑞士通标SGS英国天祥ITS中国华测CTI中国安姆特AOV中国谱尼测试PONY等几家检测公司都具备国家认可的ROHS检测能力可以出...

ICP报告、MSDS受入判定基准书-

ICP报告、MSDS受入判定基准书-,内容附图。

ICP报告确认程序

ICP报告确认程序,内容附图。

SGS测试报告解读

SGSROHS报告解读由于欧盟RoHS指令20xx95EC的重订指令20xx65EU附录的实施最近很多客户来咨询怎么才能看懂SGS新版的ROHS报告特此我们制作这篇ROHS报告解读希望给大家带来帮助1报告编号2...

ICP报告检查与确认培训

作者时间ICP报告检查与确认作者时间培训内容一什么叫ICP报告二ICP报告检查与确认方法三宣告表的填写要求作者时间一什么叫ICP报告1ICP测试电感耦合等离子体ICP是目前用于原子发射光谱的主要光源ICP作为原...

fm-qc-005IPQC巡检报告005

深圳福盛高科电子技术有限公司IPQC巡检报告IPQC生产确认质量技术员PE编号FMQC005A0

中国IPO 20xx年度报告

北京市东直门南大街3号国华投资大厦51215层1000075F12F15FGuohuaPlaza3DongzhimennanAvenueBeijing100007ChinaTEL861058137799FAX8...

icp报告(2篇)