欢迎来到天天文库
浏览记录
ID:51781326
大小:112.50 KB
页数:4页
时间:2020-03-15
《利用WireShark分析IP协议.doc》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、计算机网络 实验报告年级:姓名: 学号:实验日期: 实验名称: 利用WireShark分析IP协议 一、实验目的1.利用wireshark分析ip协议,学习了解ip数据包。2.学习ip报文段的各领域。二、实验器材1.接入Internet的计算机主机;2.抓包工具wireshark和截图工具snagit。三、实验内容1.SelectthefirstICMPEchoRequestmessagesentbyyourcomputer,andexpandtheInternetProtocolpartofthepacketinthepack
2、etdetailswindow.WhatistheIPaddressofyourcomputer?实验结果如下:2.WithintheIPpacketheader,whatisthevalueintheupperlayerprotocolfield?答:theupperlayerprotocolfieldis1实验结果如下:3.HowmanybytesareintheIPheader?HowmanybytesareinthepayloadoftheIPdatagram?Explainhowyoudeterminedthenumberofpaylo
3、adbytes.答:56-20=36就是有效载荷的长度,即此IP数据报的有效载荷为36字节实验结果如下:4.HasthisIPdatagrambeenfragmented?Explainhowyoudeterminedwhetherornotthedatagramhasbeenfragmented.答:没有分片,原因:flag和offset都为0;实验结果如下如:5.WhichfieldsintheIPdatagramalwayschangefromonedatagramtothenextwithinthisseriesofICMPmessage
4、ssentbyyourcomputer?答:分析结果之TTL,首部检验和,标识等一直在不断地变化。6.Whichfieldsstayconstant?Whichofthefieldsmuststayconstant?Whichfieldsmustchange?Why?答:分析可知:stayconstant:版本号首部长度,服务类型,标志,偏移,上层协议,目的和源IP地址muststayconstant:必须保持不变的是:版本号源和目的IP地址mustchange:标识,首部检验和7.Describethepatternyouseeintheval
5、uesintheIdentificationfieldoftheIPDatagram答:thepatternis:每一个IP数据报头部的标识号域都不一样,每次加一8.WhatisthevalueintheIdentificationfieldandtheTTLfield?答:thevalueintheIdentificationfield:25603theTTLfield:2549.DothesevaluesremainunchangedforalloftheICMPTTL-exceededrepliessenttoyourcomputerbyt
6、henearest(firsthop)router?Why?答:每一个固定的路由器都有一个固定的TTL值,所以最近的那个路由器回复的所有的ICMPTTL-exceeded的TTL的值都不会改变。11.PrintoutthefirstfragmentofthefragmentedIPdatagram.WhatinformationintheIPheaderindicatesthatthedatagrambeenfragmented?WhatinformationintheIPheaderindicateswhetherthisisthefirstf
7、ragmentversusalatterfragment?HowlongisthisIPdatagram?答:如截图,数据报大小改为2000后,开始分片。12.PrintoutthesecondfragmentofthefragmentedIPdatagram.WhatinformationintheIPheaderindicatesthatthisisnotthefirstdatagramfragment?Arethemorefragments?Howcanyoutell?答:由以上接入可知:这个IP数据报的长度为1500+520-20=200
8、0bytes,从这片的片内偏移量不为零可以看出这不是第一片没有更多的分片,因为这片的标志位已经是0。13.Whatfieldschang
此文档下载收益归作者所有