第六章IP地址与TCPIP协议课件.ppt
《第六章IP地址与TCPIP协议课件.ppt》由会员分享,可在线阅读,更多相关《第六章IP地址与TCPIP协议课件.ppt(74页珍藏版)》请在三一办公上搜索。
1、,第六章 IP地址和TCP/IP协议,1,第六章 IP地址和TCP/IP协议1,问题的提出:1、用户的网络属性中各项如何配置(有路由、无路由)2、各项配置的意义(IP地址、网关、DNS),2,问题的提出:2,一、什么是协议协议是规则,是网络的语言二、协议的功能协议的功能:分割、寻址、封装、排序、信息流控制、同步、干路传输、连接控制传输控制协议TCP:负责流量控制,并保证传输的正确性网际协议IP:将数据从一处传到另一处,第一节协议的基本概念,3,一、什么是协议第一节协议的基本概念3,介绍tcp/ip,Host,Internet,TCP/IP,Host,介绍tcp/ipHostInternetTC
2、P/IPHost,tcp/ip的分层,应用层,传输层,网络层,网络接口层,协议只有四层,使用Sniffer抓个数据包来说明协议的封装,比如访问可以查看DNS的解析等细节,5,tcp/ip的分层应用层传输层网络层网络接口层协议只有四层,,TCP 端口号,SourcePort,Dest.Port,Host A,1028,23,SP,DP,Host Z,Telnet Z,目的=23.Telnet 应用程序.,TCP 端口号SourceDest.Host A10282,Send SYN(seq=100 ctl=SYN),SYN received,Host A,Host B,TCP 三次握手确立连接,S
3、end SYN SYN receivedHost AHos,Send SYN(seq=100 ctl=SYN),SYN received,Send SYN,ACK(seq=300 ack=101 ctl=syn,ack),Host A,Host B,SYN received,TCP 三次握手确立连接,Send SYN SYN receivedSend SYN,Send SYN(seq=100 ctl=SYN),SYN received,Send SYN,ACK(seq=300 ack=101 ctl=syn,ack),Established(seq=101 ack=301 ctl=ack),H
4、ost A,Host B,SYN received,TCP 三次握手确立连接,Send SYN SYN receivedSend SYN,TCP 简单知识,Window size=1,Sender,Receiver,TCP 简单知识Window size=1 Sender,TCP 简单知识,Window size=1,Sender,Receiver,Send 1,Receive 1,TCP 简单知识Window size=1 Sender,TCP 简单知识,Window size=1,Sender,Receiver,Send 1,Receive 1,Receive ACK 2,Send ACK
5、 2,TCP 简单知识Window size=1 Sender,TCP 简单知识,Window size=1,Sender,Receiver,Send 1,Receive 1,Receive ACK 2,Send ACK 2,Send 2,Receive 2,TCP 简单知识Window size=1 Sender,TCP 简单知识,Window size=1,Sender,Receiver,Send 1,Receive 1,Receive ACK 2,Send ACK 2,Send 2,Receive 2,Receive ACK 3,Send ACK 3,TCP 简单知识Window siz
6、e=1 Sender,TCP 简单知识,Window size=1,Sender,Receiver,Send 1,Receive 1,Receive ACK 2,Send ACK 2,Send 2,Receive 2,Receive ACK 3,Send ACK 3,Send 3,Receive 3,TCP 简单知识Window size=1 Sender,Window size=1,Sender,Receiver,Send 1,Receive 1,Receive ACK 2,Send ACK 2,Send 2,Receive 2,Receive ACK 3,Send ACK 3,Send 3
7、,Receive 3,Receive ACK 4,Send ACK 4,TCP 简单知识,Window size=1 Sender Receiv,TCP 序列和确认,SourcePort,Dest.Port,Sequence#,Acknowledgement#,Source,Dest.,Seq.,Ack.,1028,23,10,1,I justsent#10.,TCP 序列和确认SourceDest.SequenceA,TCP 序列和确认,I just got#10,now I need#11.,SourcePort,Dest.Port,Sequence#,Acknowledgement#,1
8、028,23,Source,Dest.,10,Seq.,1,Ack.,1028,23,Source,Dest.,11,Seq.,1,Ack.,I justsent#10.,TCP 序列和确认I just got#10,Source,TCP 序列和确认,SourcePort,Dest.Port,Sequence#,Acknowledgement#,1028,23,Source,Dest.,11,Seq.,2,Ack.,1028,23,Source,Dest.,10,Seq.,1,Ack.,1028,23,Source,Dest.,11,Seq.,1,Ack.,I just got#10,now
9、I need#11.,I justsent#11.,TCP 序列和确认SourceDest.SequenceA,TCP 序列和确认,SourcePort,Dest.Port,Sequence#,Acknowledgement#,1028,23,Source,Dest.,11,Seq.,2,Ack.,1028,23,Source,Dest.,10,Seq.,1,Ack.,1028,23,Source,Dest.,11,Seq.,1,Ack.,1028,23,Source,Dest.,12,Seq.,2,Ack.,I just got#11,now I need#12.,I justsent#11
10、.,TCP 序列和确认SourceDest.SequenceA,TCP 窗口,Sender,Receiver,TCP 窗口SenderReceiver,TCP 窗口,Window size=3Send 2,Sender,Receiver,Window size=3Send 1,Window size=3Send 3,TCP 窗口Window size=3SenderRec,Window size=3Send 2,TCP 窗口,Sender,Window size=3Send 1,Window size=3Send 3,ACK 3Window size=2,Packet 3 isDropped,
11、Receiver,Window size=3TCP 窗口SenderWin,Window size=3Send 2,TCP 窗口,Sender,Window size=3Send 1,Window size=3Send 3,ACK 3Window size=2,Packet 3 isDropped,Window size=3Send 4,Window size=3Send 3,Receiver,Window size=3TCP 窗口SenderWin,Window size=3Send 2,TCP 窗口,Sender,Window size=3Send 1,Window size=3Send
12、3,ACK 3Window size=2,Packet 3 isDropped,Window size=3Send 4,Window size=3Send 3,ACK 5Window size=2,Receiver,Window size=3TCP 窗口SenderWin,地址解析协议,172.16.3.1,172.16.3.2,IP:172.16.3.2=?,我需要176.16.3.2的MAC地址,地址解析协议172.16.3.1172.16.3.2IP:,地址解析协议,172.16.3.1,172.16.3.2,IP:172.16.3.2=?,地址解析协议172.16.3.1172.16.
13、3.2IP:,地址解析协议,172.16.3.1,IP:172.16.3.2 Ethernet:0800.0020.1111,172.16.3.2,IP:172.16.3.2=?,地址解析协议172.16.3.1IP:172.16.3.2,地址解析协议,Map IP MAC,172.16.3.1,IP:172.16.3.2 MAC:0800.0020.1111,172.16.3.2,IP:172.16.3.2=?,ARP地址解析协议,根据IP地址解析出MAC地址,地址解析协议Map IP MAC1,反向 ARP,Ethernet:0800.0020.1111 IP=?,What is my I
14、P address?,反向 ARPEthernet:0800.0020.1111,反向 ARP,Ethernet:0800.0020.1111 IP=?,What is my IP address?,I heard that broadcast.Your IP address is 172.16.3.25.,反向 ARPEthernet:0800.0020.1111,反向 ARP,Ethernet:0800.0020.1111IP:172.16.3.25,Ethernet:0800.0020.1111 IP=?,What is my IP address?,I heard that broad
15、cast.Your IP address is 172.16.3.25.,反向 ARPEthernet:0800.0020.1111,反向 ARP,Map Ethernet IP,Ethernet:0800.0020.1111IP:172.16.3.25,Ethernet:0800.0020.1111 IP=?,What is my IP address?,I heard that broadcast.Your IP address is 172.16.3.25.,反向 ARPMap Ethernet IP,介绍 TCP/IP 地址,172.18.0.2,172.18.0.1,172.17.0
16、.2,172.17.0.1,172.16.0.2,172.16.0.1,SA,DA,HDR,DATA,10.13.0.0,192.168.1.0,10.13.0.1,192.168.1.1,介绍 TCP/IP 地址172.18.0.2172.18.0,IP 地址,255,255,255,255,DottedDecimal,Maximum,Network,Host,32 bits,IP 地址 255255 255 255DottedDec,IP 地址,255,255,255,255,DottedDecimal,Maximum,Network,Host,1286432168421,11111111
17、,11111111,11111111,11111111,Binary,32 bits,1,8,9,16,17,24,25,32,1286432168421,1286432168421,1286432168421,IP 地址 255255 255 255DottedDec,IP 地址,255,255,255,255,DottedDecimal,Maximum,Network,Host,1286432168421,11111111,11111111,11111111,11111111,10101100,00010000,01111010,11001100,Binary,32 bits,172,16
18、,122,204,ExampleDecimal,ExampleBinary,1,8,9,16,17,24,25,32,1286432168421,1286432168421,1286432168421,IP 地址 255255 255 255DottedDec,Class A:Class B:Class C:Class D:多播 Class E:研究,IP 地址类,8 bits,8 bits,8 bits,8 bits,Class A:IP 地址类NetworkHostHos,IP 地址分类,1,Class A:,Bits:,0NNNNNNN,Host,Host,Host,8,9,16,17,
19、24,25,32,Range(1-126),1,Class B:,Bits:,10NNNNNN,Network,Host,Host,8,9,16,17,24,25,32,Range(128-191),1,Class C:,Bits:,110NNNNN,Network,Network,Host,8,9,16,17,24,25,32,Range(192-223),1,Class D:,Bits:,1110MMMM,Multicast Group,Multicast Group,Multicast Group,8,9,16,17,24,25,32,Range(224-239),IP 地址分类1Cla
20、ss A:Bits:0NNNNNNNH,主机地址,172.16.2.1,172.16.3.10,172.16.12.12,10.1.1.1,10.250.8.11,10.180.30.118,E1,172.16,12,12,网络号,主机号,.,.,网络号,接口,172.16.0.010.0.0.0,E0E1,路由表,172.16.2.1,10.6.24.2,E0,主机地址172.16.2.1172.16.3.10172.1,11111111,决定可利用的主机地址,172 16 0 0,10101100,00010000,00000000,00000000,16151413121110 9,87
21、654321,Network,Host,00000000,00000001,11111111,11111111,11111111,11111110,.,.,00000000,00000011,11111101,1,2,3,65534,65535,65536,-,.,2,65534,N,2N-2=216-2=65534,41,11111111决定可利用的主机地址 172,IP 地址练习,Address,Class,Network,Host,10.2.1.1,128.63.2.100,201.222.5.64,192.6.141.2,130.113.64.16,256.241.201.10,IP
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 第六 IP 地址 TCPIP 协议 课件
链接地址:https://www.31ppt.com/p-2111159.html