欢迎来到天天文库
浏览记录
ID:49199679
大小:241.00 KB
页数:5页
时间:2020-03-01
《DHCP交互报文分析.doc》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、DHCP交互报文分析DHCP简单介绍DHCP(DynamicHostConfigurationProtocol,动态主机配置协议)是一个局域网的网络协议,使用UDP协议工作,主要有两个用途:给内部网络或网络服务供应商自动分配IP地址,给用户或者内部网络管理员作为对所有计算机作中央管理的手段,在RFC2131中有详细的描述°DHCP有3个端口,其中UDP67和UDP68为正常的DHCP服务•端口,分别作为DHCPServer和DHCPClient的服务端口;546号端口用于DHCPv6Client,而不用于DHCPv4,是为DHCPfailover服务,这是需要特别
2、开启的服务,DHCPfailover是用来做“双机热备”的。DHCP协议前身为bootp协议,故使用抓包软件过滤时过滤协议为:bootpDHCP交互过程如图1喜户armDHCPfig势IMS供地址租约(Offer)(^)(彳)喜户豳摄拜请貳地址租用(RequeM)DHCPS户684DHCPK务88ig务am认将地址租用给喜户馥(ackDHCP报文交互过程分析DHCPDiscover客户端请求报文此过程主要为客户端用户寻找DHCP服务器过程,此时客户肌没有IP地址向全网发送广播报文,等待DHCP服务的回应,只有装有DHCP服务器的主机才能响应此报文DHCP服务器接收
3、到discover请求后,会向客户端发出DHCPOffer报文作为回应,该报文包含该DHCP服务器可向DHCP客户端提供的IP地址以及该DHCP服务器自己的IP地址信息502581.41573512590.41699522606.42253>OO•••>oo•••>oo•••>OoLJ9«255.255.255.255255.255.255.255DHCPDHCPDHCPS32746.82983QToro.o2SS.2SS.25S.2SSDHCPS41RR10?DHTP・Transactionid0x6f9a<・Transactionid0x6f9a4、ctionid0x6f9a5、:bootps(67)BootstrapProtocol协纯E无IP堆址.发医广爲报文[阳严g.typ•:Boo、R@qu竺g(1?Hardwaretype:Ethernet(0x01)Hardwareaddresslength:6如果无响应报文,则客八端会持续发送Discover报文Secondelapsed为下一次发送discover报文的时间:462521.24684D.0.0.04712529.2495SD.0.0.048C544.397160.0.0.04Q77S760.0.0.0・inc•userrjBOO255.255.255.255255.255.6、255.255255.255.255.2557SS.”5.W.”5DHCPDHCPDHCPHHTP3423423423DHCPDHCPDHCPDHTPDiscoverDiscoverDiscovern1^rnv0r・Transaction-Transaction-Transaction-Tr^rK^rr7、c(50:7b:9d:00:1b:0c)eOst:Broadcast(ft:ff:ff:ff:ff:ff)netProtocolversion4.Src:0.0.0.0(0.0.0.0).Ost:255.255.255.255(255.255.255.255)DatagramProtocoltsrcPort:bootpc(68)fOstPort:bootps(67)trapProtocol^qlssagetype:BootRequest(1)Hardwaretype:Ethernet(0x01)*<^rdwareaddress1电ngth:6S:0r^ansact8、ionID
4、ctionid0x6f9a5、:bootps(67)BootstrapProtocol协纯E无IP堆址.发医广爲报文[阳严g.typ•:Boo、R@qu竺g(1?Hardwaretype:Ethernet(0x01)Hardwareaddresslength:6如果无响应报文,则客八端会持续发送Discover报文Secondelapsed为下一次发送discover报文的时间:462521.24684D.0.0.04712529.2495SD.0.0.048C544.397160.0.0.04Q77S760.0.0.0・inc•userrjBOO255.255.255.255255.255.6、255.255255.255.255.2557SS.”5.W.”5DHCPDHCPDHCPHHTP3423423423DHCPDHCPDHCPDHTPDiscoverDiscoverDiscovern1^rnv0r・Transaction-Transaction-Transaction-Tr^rK^rr7、c(50:7b:9d:00:1b:0c)eOst:Broadcast(ft:ff:ff:ff:ff:ff)netProtocolversion4.Src:0.0.0.0(0.0.0.0).Ost:255.255.255.255(255.255.255.255)DatagramProtocoltsrcPort:bootpc(68)fOstPort:bootps(67)trapProtocol^qlssagetype:BootRequest(1)Hardwaretype:Ethernet(0x01)*<^rdwareaddress1电ngth:6S:0r^ansact8、ionID
5、:bootps(67)BootstrapProtocol协纯E无IP堆址.发医广爲报文[阳严g.typ•:Boo、R@qu竺g(1?Hardwaretype:Ethernet(0x01)Hardwareaddresslength:6如果无响应报文,则客八端会持续发送Discover报文Secondelapsed为下一次发送discover报文的时间:462521.24684D.0.0.04712529.2495SD.0.0.048C544.397160.0.0.04Q77S760.0.0.0・inc•userrjBOO255.255.255.255255.255.
6、255.255255.255.255.2557SS.”5.W.”5DHCPDHCPDHCPHHTP3423423423DHCPDHCPDHCPDHTPDiscoverDiscoverDiscovern1^rnv0r・Transaction-Transaction-Transaction-Tr^rK^rr7、c(50:7b:9d:00:1b:0c)eOst:Broadcast(ft:ff:ff:ff:ff:ff)netProtocolversion4.Src:0.0.0.0(0.0.0.0).Ost:255.255.255.255(255.255.255.255)DatagramProtocoltsrcPort:bootpc(68)fOstPort:bootps(67)trapProtocol^qlssagetype:BootRequest(1)Hardwaretype:Ethernet(0x01)*<^rdwareaddress1电ngth:6S:0r^ansact8、ionID
7、c(50:7b:9d:00:1b:0c)eOst:Broadcast(ft:ff:ff:ff:ff:ff)netProtocolversion4.Src:0.0.0.0(0.0.0.0).Ost:255.255.255.255(255.255.255.255)DatagramProtocoltsrcPort:bootpc(68)fOstPort:bootps(67)trapProtocol^qlssagetype:BootRequest(1)Hardwaretype:Ethernet(0x01)*<^rdwareaddress1电ngth:6S:0r^ansact
8、ionID
此文档下载收益归作者所有