TCP-IP协议栈.ppt
《TCP-IP协议栈.ppt》由会员分享,可在线阅读,更多相关《TCP-IP协议栈.ppt(49页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、 2004,Cisco Systems,Inc.All rights reserved.ICND 2.00-1 2004,Cisco Systems,Inc.All rights reserved.2004,Cisco Systems,Inc.All rights reserved.2TCP/IP 2004,Cisco Systems,Inc.All rights reserved.ICND 2.00-3本章目标本章目标1.了解了解TCP/IP通信协议通信协议2.掌握掌握TCP、UDP及及IP报文格式报文格式3.理解并掌握理解并掌握TCP、UDP、IP通信原理通信原理4.熟悉熟悉PING、TR
2、ACEROUTE、ARP、RARP等几种三层协议等几种三层协议 2004,Cisco Systems,Inc.All rights reserved.ICND 2.00-4早期的协议栈早期的协议栈普遍性的普遍性的介绍介绍介绍介绍 TCP/IPTCP/IP主机主机InternetTCP/IP主机主机 2004,Cisco Systems,Inc.All rights reserved.ICND 2.00-5TCP/IP TCP/IP 协议栈协议栈协议栈协议栈764325432应用层应用层表示层表示层会话层会话层传输层传输层网络层网络层数据链路层数据链路层物理层物理层1应用层应用层传输层传输层互联
3、网层互联网层数据链路层数据链路层物理层物理层1 2004,Cisco Systems,Inc.All rights reserved.ICND 2.00-6应用层概述应用层概述应用层概述应用层概述*Used by the router应用层应用层传输层传输层互联网层互联网层数据链路层数据链路层物理层物理层File Transfer-TFTP*-FTP*-NFSE-Mail-SMTPRemote Login-Telnet*-rlogin*Network Management-SNMP*Name Management-DNS*2004,Cisco Systems,Inc.All rights re
4、served.ICND 2.00-7传输层概述传输层概述传输层概述传输层概述Transmission ControlProtocol(TCP)User Datagram Protocol(UDP)应用层应用层传输层传输层互联网层互联网层数据链路层数据链路层物理层物理层面向连接的面向连接的非面向连接的非面向连接的 2004,Cisco Systems,Inc.All rights reserved.ICND 2.00-8TCP TCP 报文格式报文格式报文格式报文格式Source port(16)Destination port(16)Sequence number(32)Headerlengt
5、h(4)Acknowledgement number(32)Reserved(6)Code bits(6)Window(16)Checksum(16)Urgent(16)Options(0 or 32 if any)Data(varies)20BytesBit 0Bit 15Bit 16Bit 31 2004,Cisco Systems,Inc.All rights reserved.ICND 2.00-9端口号端口号端口号端口号TCP端口号端口号FTP传输层传输层TELNETDNSSNMPTFTPSMTPUDP应用层应用层2123255369161RIP520 2004,Cisco Syst
6、ems,Inc.All rights reserved.ICND 2.00-10TCP TCP 端口号端口号端口号端口号SourcePortDest.PortHost A102823SPDPHost ZTelnet ZDest.port=23.Send packet to my Telnet application.2004,Cisco Systems,Inc.All rights reserved.ICND 2.00-11Send SYN(seq=100 ctl=SYN)SYN receivedHost AHost B1TCP TCP 三次握手建立连接三次握手建立连接三次握手建立连接三次握手
7、建立连接 2004,Cisco Systems,Inc.All rights reserved.ICND 2.00-12Send SYN(seq=100 ctl=SYN)SYN receivedSend SYN,ACK(seq=300 ack=101 ctl=syn,ack)Host AHost BSYN received12TCP TCP 三次握手建立连接三次握手建立连接三次握手建立连接三次握手建立连接 2004,Cisco Systems,Inc.All rights reserved.ICND 2.00-13Send SYN(seq=100 ctl=SYN)SYN receivedSen
8、d SYN,ACK(seq=300 ack=101 ctl=syn,ack)Established(seq=101 ack=301 ctl=ack)Host AHost B123SYN receivedTCP TCP 三次握手建立连接三次握手建立连接三次握手建立连接三次握手建立连接 2004,Cisco Systems,Inc.All rights reserved.ICND 2.00-14TCPTCP简单确认简单确认简单确认简单确认Window size=1 Sender Receiver 2004,Cisco Systems,Inc.All rights reserved.ICND 2.0
9、0-15TCPTCP简单确认简单确认简单确认简单确认Window size=1 Sender ReceiverSend 1Receive 1 2004,Cisco Systems,Inc.All rights reserved.ICND 2.00-16TCPTCP简单确认简单确认简单确认简单确认Window size=1 Sender ReceiverSend 1Receive 1Receive ACK 2 Send ACK 2 2004,Cisco Systems,Inc.All rights reserved.ICND 2.00-17TCPTCP简单确认简单确认简单确认简单确认Window
10、 size=1 Sender ReceiverSend 1Receive 1Receive ACK 2 Send ACK 2Send 2Receive 2 2004,Cisco Systems,Inc.All rights reserved.ICND 2.00-18TCPTCP简单确认简单确认简单确认简单确认Window size=1 Sender ReceiverSend 1Receive 1Receive ACK 2 Send ACK 2Send 2Receive 2Receive ACK 3Send ACK 3 2004,Cisco Systems,Inc.All rights rese
11、rved.ICND 2.00-19TCPTCP简单确认简单确认简单确认简单确认Window size=1 Sender ReceiverSend 1Receive 1Receive ACK 2 Send ACK 2Send 2Receive 2Receive ACK 3Send ACK 3Send 3Receive 3 2004,Cisco Systems,Inc.All rights reserved.ICND 2.00-20Window size=1 Sender ReceiverSend 1Receive 1Receive ACK 2 Send ACK 2Send 2Receive 2R
12、eceive ACK 3Send ACK 3Send 3Receive 3Receive ACK 4Send ACK 4TCPTCP简单确认简单确认简单确认简单确认 2004,Cisco Systems,Inc.All rights reserved.ICND 2.00-21TCP TCP 序列号和确认号序列号和确认号序列号和确认号序列号和确认号SourcePortDest.PortSequence#Acknowledgement#Source Dest.Seq.Ack.102823101I justsent#10.2004,Cisco Systems,Inc.All rights reser
13、ved.ICND 2.00-22TCP 序列号和确认号序列号和确认号I just got#10,now I need#11.SourcePortDest.PortSequence#Acknowledgement#102823Source Dest.1010Seq.1Ack.102823Source Dest.1111Seq.1Ack.I justsent#10.2004,Cisco Systems,Inc.All rights reserved.ICND 2.00-23TCPTCP序列号和确认号序列号和确认号序列号和确认号序列号和确认号SourcePortDest.PortSequence#A
14、cknowledgement#102823Source Dest.1111Seq.2Ack.102823Source Dest.1010Seq.1Ack.102823Source Dest.1111Seq.1Ack.I just got#10,now I need#11.I justsent#11.2004,Cisco Systems,Inc.All rights reserved.ICND 2.00-24TCPTCP序列号和确认号序列号和确认号序列号和确认号序列号和确认号SourcePortDest.PortSequence#Acknowledgement#102823Source Dest
15、.1111Seq.2Ack.102823Source Dest.1010Seq.1Ack.102823Source Dest.1111Seq.1Ack.102823Source Dest.1212Seq.2Ack.I just got#11,now I need#12.I justsent#11.2004,Cisco Systems,Inc.All rights reserved.ICND 2.00-25TCPTCP窗口窗口窗口窗口SenderReceiver 2004,Cisco Systems,Inc.All rights reserved.ICND 2.00-26TCPTCP窗口窗口窗口
16、窗口Window size=3Send 2SenderReceiverWindow size=3Send 1Window size=3Send 3 2004,Cisco Systems,Inc.All rights reserved.ICND 2.00-27Window size=3Send 2TCPTCP窗口窗口窗口窗口SenderWindow size=3Send 1Window size=3Send 3ACK 3Window size=2Packet 3 isDroppedReceiver 2004,Cisco Systems,Inc.All rights reserved.ICND 2
17、.00-28Window size=3Send 2TCPTCP窗口窗口窗口窗口SenderWindow size=3Send 1Window size=3Send 3ACK 3Window size=2Packet 3 isDroppedWindow size=2Send 4Window size=2Send 3Receiver 2004,Cisco Systems,Inc.All rights reserved.ICND 2.00-29Window size=3Send 2TCPTCP窗口窗口窗口窗口SenderWindow size=3Send 1Window size=3Send 3AC
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- TCP IP 协议
限制150内