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

Osi model vs TCP/IP
Osi model vs TCP/IPOsi model vs TCP/IP
Osi model vs TCP/IP
Mannu Khani
 
Network Slides
Network SlidesNetwork Slides
Network Slides
iarthur
 
CCNA Introducing Networks
CCNA Introducing NetworksCCNA Introducing Networks
CCNA Introducing Networks
Dsunte Wilson
 
TCP/IP Network ppt
TCP/IP Network pptTCP/IP Network ppt
TCP/IP Network ppt
extraganesh
 
Osi reference model and the tcp
Osi reference model and the tcpOsi reference model and the tcp
Osi reference model and the tcp
Agrippa Mungazi
 

Mais procurados (20)

Networking Fundamentals.ppt
Networking Fundamentals.pptNetworking Fundamentals.ppt
Networking Fundamentals.ppt
 
Osi model vs TCP/IP
Osi model vs TCP/IPOsi model vs TCP/IP
Osi model vs TCP/IP
 
Network protocols
Network protocolsNetwork protocols
Network protocols
 
Introduction of computer network
Introduction of computer networkIntroduction of computer network
Introduction of computer network
 
Data communication and network Chapter -1
Data communication and network Chapter -1Data communication and network Chapter -1
Data communication and network Chapter -1
 
Networking devices
Networking devicesNetworking devices
Networking devices
 
Network Slides
Network SlidesNetwork Slides
Network Slides
 
Networking Basics and Cisco
Networking Basics and CiscoNetworking Basics and Cisco
Networking Basics and Cisco
 
Network administration and Management
Network administration and ManagementNetwork administration and Management
Network administration and Management
 
Presentation on TCP/IP Model
Presentation on TCP/IP ModelPresentation on TCP/IP Model
Presentation on TCP/IP Model
 
Network devices ppt
Network devices   pptNetwork devices   ppt
Network devices ppt
 
IT system and network administrator
IT system and network administratorIT system and network administrator
IT system and network administrator
 
CCNA Introducing Networks
CCNA Introducing NetworksCCNA Introducing Networks
CCNA Introducing Networks
 
Tcp IP Model
Tcp IP ModelTcp IP Model
Tcp IP Model
 
TCP/IP Network ppt
TCP/IP Network pptTCP/IP Network ppt
TCP/IP Network ppt
 
INTRODUCTION TO INTERNET PROTOCOL BY SAIKIRAN PANJALA
INTRODUCTION TO INTERNET PROTOCOL BY SAIKIRAN PANJALAINTRODUCTION TO INTERNET PROTOCOL BY SAIKIRAN PANJALA
INTRODUCTION TO INTERNET PROTOCOL BY SAIKIRAN PANJALA
 
Osi reference model and the tcp
Osi reference model and the tcpOsi reference model and the tcp
Osi reference model and the tcp
 
Osi , tcp/ip protocol and Addressing
Osi , tcp/ip protocol and Addressing Osi , tcp/ip protocol and Addressing
Osi , tcp/ip protocol and Addressing
 
Osi model 7 Layers
Osi model 7 LayersOsi model 7 Layers
Osi model 7 Layers
 
Osi model
Osi modelOsi model
Osi model
 

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
 
TCP/IP 3-way Handshake
TCP/IP 3-way Handshake TCP/IP 3-way Handshake
TCP/IP 3-way Handshake
 
計概
計概計概
計概
 
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]
 
TCP/IP Basics
TCP/IP BasicsTCP/IP Basics
TCP/IP Basics
 
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
 

Último

Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Último (20)

Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 

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