SlideShare uma empresa Scribd logo
1 de 20
Introduction
 TCP: Major Transport Protocol in the TCP/IP suite


 Uses unreliable datagram service offered by IP when
  sending data to another computer

 Provides reliable data delivery service to applications
The Need for Reliable Transport
 Reliability is fundamental in a computer system


 Software in the internet must provide the same level
  of reliability as a computer system

 Software must guarantee prompt and reliable
  communication without any loss, duplication, and
  change in the order
Transmission Control Protocol
 Reliability is the responsibility of the Transport Layer


 In TCP/IP, TCP provides reliable transport service


 Most internet applications use TCP as no other
  protocol has proved to work better
Service provided by TCP
 Connection-Oriented service
 Point-to-point
 Complete Reliability
 Full-duplex communication
 Stream interface
 Reliable Connection Startup
 Graceful Connection Shutdown
End-to-End Service and Datagrams
  Applications can request a connection


  TCP connections are called Virtual Connections
     Created by Software only
     Internet does not provide software or hardware support
      for the connections
     TCP software modules on two computers create an
      illusion of a connection
End-to-End Service and Datagrams

  TCP uses IP to carry messages


  TCP message encapsulated in IP datagram and sent to
   the destination

  On the destination host, IP passes the contents to TCP
End-to-End Service and Datagrams
Achieving Reliability
  The major problems in the reliable delivery are:

    Unreliable delivery by the underlying communication
     system

    System reboot
Packet Loss and Retransmission
  How does TCP achieve Reliability?


  Retransmission
     An Acknowledgement is used to verify that data has
      arrived successfully.

     If Acknowledgement does not arrive, the previous data is
     retransmitted.
Packet Loss and Retransmission
How Long Should TCP Wait Before Retransmitting?
  Time for acknowledgement to arrive depends on
     Distance to destination
     Current traffic conditions


  Multiple connections can be opened simultaneously.


  Traffic conditions change rapidly.
Adaptive Retransmission
  Set a timer. It sounds so easy, but …What time interval?
     Too long?
     – You are spending time waiting for something that is just not
       going to happen.


    Too short?
     – You will resend needlessly.
Adaptive Retransmission
  Keep estimate of round trip time on each connection


  Use current estimate to set transmission timer


  Know as Adaptive Retransmission


  Key to TCP’s success
Comparison of Retransmission Times
Buffers, Flow Control & Windows
Three-Way Handshake to Close a Connection
Three-way Handshake to Begin a
Connection
  This will not mean much until you look at the
  packets, but
    SYN
     – Randomly chosen sequence number, S1:0
    SYN + ACK
     – S2:S1+1
    ACK
     – S1+1:S2+1
Congestion Control
  The goal is to avoid adding retransmissions to an
  already congested network

  Reduce window size quickly in response to lost
  messages
    Assumption: loss is due to congestion


  Resume carefully. Otherwise the network will swing
  wildly between congestion and under utilization
TCP Segment Format

Mais conteúdo relacionado

Mais procurados

User datagram protocol
User datagram protocolUser datagram protocol
User datagram protocol
Mohd Arif
 
Hypertext transfer protocol and hypertext transfer protocol secure(HTTP and H...
Hypertext transfer protocol and hypertext transfer protocol secure(HTTP and H...Hypertext transfer protocol and hypertext transfer protocol secure(HTTP and H...
Hypertext transfer protocol and hypertext transfer protocol secure(HTTP and H...
rahul kundu
 

Mais procurados (20)

TCP/IP Introduction
TCP/IP IntroductionTCP/IP Introduction
TCP/IP Introduction
 
What Is User Datagram Protocol?
What Is User Datagram Protocol?What Is User Datagram Protocol?
What Is User Datagram Protocol?
 
User datagram protocol
User datagram protocolUser datagram protocol
User datagram protocol
 
TCP and UDP
TCP and UDP TCP and UDP
TCP and UDP
 
TCP/IP – Transmission Control Protocol/ Internet Protocol
TCP/IP – Transmission Control Protocol/ Internet ProtocolTCP/IP – Transmission Control Protocol/ Internet Protocol
TCP/IP – Transmission Control Protocol/ Internet Protocol
 
OSI Model
OSI ModelOSI Model
OSI Model
 
Ports and protocols
Ports and protocolsPorts and protocols
Ports and protocols
 
Tcp and udp
Tcp and udpTcp and udp
Tcp and udp
 
TCP Vs UDP
TCP Vs UDP TCP Vs UDP
TCP Vs UDP
 
Osi model
Osi modelOsi model
Osi model
 
TCP-IP Reference Model
TCP-IP Reference ModelTCP-IP Reference Model
TCP-IP Reference Model
 
TCP/IP 3-way Handshake
TCP/IP 3-way Handshake TCP/IP 3-way Handshake
TCP/IP 3-way Handshake
 
MPI message passing interface
MPI message passing interfaceMPI message passing interface
MPI message passing interface
 
Ports and protocols
Ports and protocolsPorts and protocols
Ports and protocols
 
FTP - File Transfer Protocol
FTP - File Transfer ProtocolFTP - File Transfer Protocol
FTP - File Transfer Protocol
 
User datagram protocol (udp)
User datagram protocol (udp)User datagram protocol (udp)
User datagram protocol (udp)
 
TCP/IP Basics
TCP/IP BasicsTCP/IP Basics
TCP/IP Basics
 
TCP/IP MODEL
TCP/IP MODEL TCP/IP MODEL
TCP/IP MODEL
 
Hypertext transfer protocol and hypertext transfer protocol secure(HTTP and H...
Hypertext transfer protocol and hypertext transfer protocol secure(HTTP and H...Hypertext transfer protocol and hypertext transfer protocol secure(HTTP and H...
Hypertext transfer protocol and hypertext transfer protocol secure(HTTP and H...
 
Unicast multicast & broadcast
Unicast multicast & broadcastUnicast multicast & broadcast
Unicast multicast & broadcast
 

Destaque (14)

transport protocols
 transport protocols  transport protocols
transport protocols
 
networking technologies
networking technologiesnetworking technologies
networking technologies
 
Overview gsm,gprs& umts
Overview gsm,gprs& umtsOverview gsm,gprs& umts
Overview gsm,gprs& umts
 
types of magnets
types of  magnetstypes of  magnets
types of magnets
 
Seerat e-hazrat umerbinabdulaziz
Seerat e-hazrat umerbinabdulazizSeerat e-hazrat umerbinabdulaziz
Seerat e-hazrat umerbinabdulaziz
 
Basic switch and router configurations
Basic switch and router configurationsBasic switch and router configurations
Basic switch and router configurations
 
Dictionary of networking
Dictionary of networkingDictionary of networking
Dictionary of networking
 
Difference between Interlaced & progressive scanning
Difference between Interlaced & progressive scanningDifference between Interlaced & progressive scanning
Difference between Interlaced & progressive scanning
 
6.freq reuse and network planning
6.freq reuse and network planning6.freq reuse and network planning
6.freq reuse and network planning
 
biot savart law
 biot savart law biot savart law
biot savart law
 
Intellectual property
Intellectual propertyIntellectual property
Intellectual property
 
Basics of Gsm
Basics of Gsm Basics of Gsm
Basics of Gsm
 
wireless sensor netw
wireless sensor netwwireless sensor netw
wireless sensor netw
 
Bukhari Shareef Volume 3
Bukhari Shareef Volume 3Bukhari Shareef Volume 3
Bukhari Shareef Volume 3
 

Semelhante a TCP/IP

Semelhante a TCP/IP (20)

Mod4
Mod4Mod4
Mod4
 
Transport layer
Transport layerTransport layer
Transport layer
 
Tcp3 wayhandshakeprocess
Tcp3 wayhandshakeprocessTcp3 wayhandshakeprocess
Tcp3 wayhandshakeprocess
 
計概
計概計概
計概
 
transport layer pptxdkididkdkdkddjjdjffkfif
transport layer pptxdkididkdkdkddjjdjffkfiftransport layer pptxdkididkdkdkddjjdjffkfif
transport layer pptxdkididkdkdkddjjdjffkfif
 
An overview of TCP (Transmission Control Protocol)
An overview of TCP (Transmission Control Protocol)An overview of TCP (Transmission Control Protocol)
An overview of TCP (Transmission Control Protocol)
 
Tcp
TcpTcp
Tcp
 
tcp-ippresentation-150614172243-lva1-app6892.pptx
tcp-ippresentation-150614172243-lva1-app6892.pptxtcp-ippresentation-150614172243-lva1-app6892.pptx
tcp-ippresentation-150614172243-lva1-app6892.pptx
 
Mobile Transpot Layer
Mobile Transpot LayerMobile Transpot Layer
Mobile Transpot Layer
 
Transaction TCP
Transaction TCPTransaction TCP
Transaction TCP
 
Tcp vs udp difference and comparison diffen
Tcp vs udp   difference and comparison   diffenTcp vs udp   difference and comparison   diffen
Tcp vs udp difference and comparison diffen
 
TCP - IP Presentation
TCP - IP PresentationTCP - IP Presentation
TCP - IP Presentation
 
Tcp ip presentation
Tcp ip presentationTcp ip presentation
Tcp ip presentation
 
Transport Layer
Transport LayerTransport Layer
Transport Layer
 
Transport Layer [Autosaved]
Transport Layer [Autosaved]Transport Layer [Autosaved]
Transport Layer [Autosaved]
 
Udp vs-tcp
Udp vs-tcpUdp vs-tcp
Udp vs-tcp
 
chapter 3.2 TCP.pptx
chapter 3.2 TCP.pptxchapter 3.2 TCP.pptx
chapter 3.2 TCP.pptx
 
Mcseminar
McseminarMcseminar
Mcseminar
 
Group 3 Presen.pptx
Group 3 Presen.pptxGroup 3 Presen.pptx
Group 3 Presen.pptx
 
TCP/IP & UDP
TCP/IP & UDPTCP/IP & UDP
TCP/IP & UDP
 

Último

ppt your views.ppt your views of your college in your eyes
ppt your views.ppt your views of your college in your eyesppt your views.ppt your views of your college in your eyes
ppt your views.ppt your views of your college in your eyes
ashishpaul799
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
中 央社
 

Último (20)

Morse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptxMorse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptx
 
Behavioral-sciences-dr-mowadat rana (1).pdf
Behavioral-sciences-dr-mowadat rana (1).pdfBehavioral-sciences-dr-mowadat rana (1).pdf
Behavioral-sciences-dr-mowadat rana (1).pdf
 
Capitol Tech Univ Doctoral Presentation -May 2024
Capitol Tech Univ Doctoral Presentation -May 2024Capitol Tech Univ Doctoral Presentation -May 2024
Capitol Tech Univ Doctoral Presentation -May 2024
 
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfDanh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
 
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
 
Application of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesApplication of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matrices
 
ppt your views.ppt your views of your college in your eyes
ppt your views.ppt your views of your college in your eyesppt your views.ppt your views of your college in your eyes
ppt your views.ppt your views of your college in your eyes
 
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfINU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
 
MichaelStarkes_UncutGemsProjectSummary.pdf
MichaelStarkes_UncutGemsProjectSummary.pdfMichaelStarkes_UncutGemsProjectSummary.pdf
MichaelStarkes_UncutGemsProjectSummary.pdf
 
How to Manage Closest Location in Odoo 17 Inventory
How to Manage Closest Location in Odoo 17 InventoryHow to Manage Closest Location in Odoo 17 Inventory
How to Manage Closest Location in Odoo 17 Inventory
 
Open Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPointOpen Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPoint
 
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptxslides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
 
Championnat de France de Tennis de table/
Championnat de France de Tennis de table/Championnat de France de Tennis de table/
Championnat de France de Tennis de table/
 
Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
 Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
 
“O BEIJO” EM ARTE .
“O BEIJO” EM ARTE                       .“O BEIJO” EM ARTE                       .
“O BEIJO” EM ARTE .
 
The Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. HenryThe Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. Henry
 
....................Muslim-Law notes.pdf
....................Muslim-Law notes.pdf....................Muslim-Law notes.pdf
....................Muslim-Law notes.pdf
 
Discover the Dark Web .pdf InfosecTrain
Discover the Dark Web .pdf  InfosecTrainDiscover the Dark Web .pdf  InfosecTrain
Discover the Dark Web .pdf InfosecTrain
 
size separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceuticssize separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceutics
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
 

TCP/IP

  • 1.
  • 2. Introduction  TCP: Major Transport Protocol in the TCP/IP suite  Uses unreliable datagram service offered by IP when sending data to another computer  Provides reliable data delivery service to applications
  • 3. The Need for Reliable Transport  Reliability is fundamental in a computer system  Software in the internet must provide the same level of reliability as a computer system  Software must guarantee prompt and reliable communication without any loss, duplication, and change in the order
  • 4. Transmission Control Protocol  Reliability is the responsibility of the Transport Layer  In TCP/IP, TCP provides reliable transport service  Most internet applications use TCP as no other protocol has proved to work better
  • 5. Service provided by TCP  Connection-Oriented service  Point-to-point  Complete Reliability  Full-duplex communication  Stream interface  Reliable Connection Startup  Graceful Connection Shutdown
  • 6. End-to-End Service and Datagrams  Applications can request a connection  TCP connections are called Virtual Connections  Created by Software only  Internet does not provide software or hardware support for the connections  TCP software modules on two computers create an illusion of a connection
  • 7. End-to-End Service and Datagrams  TCP uses IP to carry messages  TCP message encapsulated in IP datagram and sent to the destination  On the destination host, IP passes the contents to TCP
  • 9. Achieving Reliability  The major problems in the reliable delivery are:  Unreliable delivery by the underlying communication system  System reboot
  • 10. Packet Loss and Retransmission  How does TCP achieve Reliability?  Retransmission  An Acknowledgement is used to verify that data has arrived successfully.  If Acknowledgement does not arrive, the previous data is retransmitted.
  • 11. Packet Loss and Retransmission
  • 12. How Long Should TCP Wait Before Retransmitting?  Time for acknowledgement to arrive depends on  Distance to destination  Current traffic conditions  Multiple connections can be opened simultaneously.  Traffic conditions change rapidly.
  • 13. Adaptive Retransmission  Set a timer. It sounds so easy, but …What time interval?  Too long? – You are spending time waiting for something that is just not going to happen.  Too short? – You will resend needlessly.
  • 14. Adaptive Retransmission  Keep estimate of round trip time on each connection  Use current estimate to set transmission timer  Know as Adaptive Retransmission  Key to TCP’s success
  • 17. Three-Way Handshake to Close a Connection
  • 18. Three-way Handshake to Begin a Connection  This will not mean much until you look at the packets, but  SYN – Randomly chosen sequence number, S1:0  SYN + ACK – S2:S1+1  ACK – S1+1:S2+1
  • 19. Congestion Control  The goal is to avoid adding retransmissions to an already congested network  Reduce window size quickly in response to lost messages  Assumption: loss is due to congestion  Resume carefully. Otherwise the network will swing wildly between congestion and under utilization