常见网络协议实验报告.docx
- 文档编号:2851161
- 上传时间:2022-11-15
- 格式:DOCX
- 页数:20
- 大小:503.21KB
常见网络协议实验报告.docx
《常见网络协议实验报告.docx》由会员分享,可在线阅读,更多相关《常见网络协议实验报告.docx(20页珍藏版)》请在冰豆网上搜索。
常见网络协议实验报告
电子科技大学
信
息
网
络
技
术
实
验
报
告
政治与公共管理学院
2016-03-17
实验名称常见网络协议分析实验
实验编号6.3
姓名
学号
成绩
一、实验室名称
政管电子政务实验可视化办公室
二、实验项目名称
常见网络协议分析实验
三、实验原理
利用wireshark捕获发生在ping过程中的ARP报文,加强对ARP协议的理解,掌握ARP报文格式,掌握ARP请求报文和应答报文的区别;利用wireshark捕获一次网页打开的过程,通过观察整个网页获得全过程,加强对HTTP协议的理解,通过观察捕获分组分析和理解HTTP协议细节和格式;通过追踪本地ping实验过程和远程ping实验过程,观察整个网页获得全过程,利用wireshark捕获实验记录,分析本地ping和远程ping的区别,加深对ICMP协议的理解;掌握FTP服务器软件的安装,使用FTP命令进行文件的上传、下载等操作。
四、实验目的
通过实验加深对数据包的认识,网络信息传输过程的理解,加深对协议的理解,并了解协议的结构与区别。
五、实验内容
实验3利用wireshark分析ping过程
Ping回顾:
What’sPING?
Ping程序目的是为了测试另一台主机是否可达。
该程序发送一份ICMP回显请求报文给主机,并等待返ICMP回显应答.
一般而言(无路由器和防火墙限制),如果不能Ping到某台主机,那么通常可以用Ping程序来确定问题出在哪里。
Ping程序还能测出到这台主机的往返时间,以表明该主机离我们有”多远”。
ICMP回显请求和回显应答报文格式
ICMP报文类型
利用wireshark捕获分组示例:
LANPing
首先使用管理员命令清空缓存,然后查看ARP高速缓存是否空的:
arp–a
ICMP和ARP报文分别为2个和1个,捕获后wireshark面板显示
然后执行ping113.54.181.153
捕获结果如图:
分析报文
LANPing请求,类型:
8代码:
0,表示请求回显(ping请求)
(1)
Frame6632:
74bytesonwire(592bits),74bytescaptured(592bits)oninterface0
Interfaceid:
0(\Device\NPF_{9A929778-1688-4150-82A0-C8F7FF2DDAD9})
Encapsulationtype:
Ethernet
(1)
ArrivalTime:
Jun16,201621:
45:
45.658843000�й���ʱ��
[Timeshiftforthispacket:
0.000000000seconds]
EpochTime:
1466084745.658843000seconds
[Timedeltafrompreviouscapturedframe:
0.000043000seconds]
[Timedeltafrompreviousdisplayedframe:
0.000000000seconds]
[Timesincereferenceorfirstframe:
64.258432000seconds]
FrameNumber:
6632
FrameLength:
74bytes(592bits)
CaptureLength:
74bytes(592bits)
[Frameismarked:
False]
[Frameisignored:
False]
[Protocolsinframe:
eth:
ethertype:
ip:
icmp:
data]
[ColoringRuleName:
ICMP]
[ColoringRuleString:
icmp||icmpv6]
6632号帧,线路74字节,实际捕获592字节
(2)
EthernetII,Src:
IntelCor_2f:
09:
e0(d0:
7e:
35:
2f:
09:
e0),Dst:
HonHaiPr_ba:
4e:
17(9c:
d2:
1e:
ba:
4e:
17)
Destination:
HonHaiPr_ba:
4e:
17(9c:
d2:
1e:
ba:
4e:
17)
Address:
HonHaiPr_ba:
4e:
17(9c:
d2:
1e:
ba:
4e:
17)
......0.................=LGbit:
Globallyuniqueaddress(factorydefault)
.......0................=IGbit:
Individualaddress(unicast)
Source:
IntelCor_2f:
09:
e0(d0:
7e:
35:
2f:
09:
e0)
Address:
IntelCor_2f:
09:
e0(d0:
7e:
35:
2f:
09:
e0)
......0.................=LGbit:
Globallyuniqueaddress(factorydefault)
.......0................=IGbit:
Individualaddress(unicast)
目标MAC地址为HonHaiPr_ba:
4e:
17(9c:
d2:
1e:
ba:
4e:
17)、
源MAC地址为IntelCor_2f:
09:
e0(d0:
7e:
35:
2f:
09:
e0)
(3)
Type:
IPv4(0x0800)
InternetProtocolVersion4,Src:
113.54.182.53,Dst:
113.54.181.153
网络层IP包头部信息,源地址113.54.182.53目的地址113.54.181.153
0100....=Version:
4
....0101=HeaderLength:
20bytes
DifferentiatedServicesField:
0x00(DSCP:
CS0,ECN:
Not-ECT)
000000..=DifferentiatedServicesCodepoint:
Default(0)
......00=ExplicitCongestionNotification:
NotECN-CapableTransport(0)
TotalLength:
60
Identification:
0x7ea1(32417)
Flags:
0x00
0.......=Reservedbit:
Notset
.0......=Don'tfragment:
Notset
..0.....=Morefragments:
Notset
Fragmentoffset:
0
Timetolive:
64
Protocol:
ICMP
(1)
Headerchecksum:
0xade4[validationdisabled]
[Good:
False]
[Bad:
False]
Source:
113.54.182.53
Destination:
113.54.181.153
[SourceGeoIP:
Unknown]
[DestinationGeoIP:
Unknown]
版本为IPV4,
报头长度为20字节
查分服务字段为0x00(DSCP:
CS0,ECN:
Not-ECT)
IP包的总长度为60
(4)
InternetControlMessageProtocol
Type:
8(Echo(ping)request)
Code:
0
Checksum:
0x4d32[correct]
Identifier(BE):
1(0x0001)
Identifier(LE):
256(0x0100)
Sequencenumber(BE):
41(0x0029)
Sequencenumber(LE):
10496(0x2900)
[Responseframe:
6634]
Data(32bytes)
语句分别表示:
类型0(为请求回显报文)代码零,检验和正确,为0x4d32,BE标识符为1(0x0001),LE标识符为256(0x0100),BE序号为41(0x0029),LE序号10496(0x2900),数据部分长32字节
LANPing应答,类型:
0代码:
0,表示回显应答(ping应答)
Frame6634:
74bytesonwire(592bits),74bytescaptured(592bits)oninterface0
Interfaceid:
0(\Device\NPF_{9A929778-1688-4150-82A0-C8F7FF2DDAD9})
Encapsulationtype:
Ethernet
(1)
ArrivalTime:
Jun16,201621:
45:
45.664186000�й���ʱ��
[Timeshiftforthispacket:
0.000000000seconds]
EpochTime:
1466084745.664186000seconds
[Timedeltafrompreviouscapturedframe:
0.003454000seconds]
[Timedeltafrompreviousdisplayedframe:
0.005343000seconds]
[Timesincereferenceorfirstframe:
64.263775000seconds]
FrameNumber:
6634
FrameLength:
74bytes(592bits)
CaptureLength:
74bytes(592bits)
[Frameismarked:
False]
[Frameisignored:
False]
[Protocolsinframe:
eth:
ethertype:
ip:
icmp:
data]
[ColoringRuleName:
ICMP]
[ColoringRuleString:
icmp||icmpv6]
6634号帧,线路74字节,实际捕获592字节
(2)
EthernetII,Src:
HonHaiPr_ba:
4e:
17(9c:
d2:
1e:
ba:
4e:
17),Dst:
IntelCor_2f:
09:
e0(d0:
7e:
35:
2f:
09:
e0)
Destination:
IntelCor_2f:
09:
e0(d0:
7e:
35:
2f:
09:
e0)
Address:
IntelCor_2f:
09:
e0(d0:
7e:
35:
2f:
09:
e0)
......0.................=LGbit:
Globallyuniqueaddress(factorydefault)
.......0............
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 常见 网络 协议 实验 报告
![提示](https://static.bdocx.com/images/bang_tan.gif)