SlideShare ist ein Scribd-Unternehmen logo
1 von 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

Weitere ähnliche Inhalte

Was ist angesagt?

Ethernet Computer network
Ethernet Computer networkEthernet Computer network
Ethernet Computer networkmiteshppt
 
Unit 3 Network Layer PPT
Unit 3 Network Layer PPTUnit 3 Network Layer PPT
Unit 3 Network Layer PPTKalpanaC14
 
Packet switching
Packet switchingPacket switching
Packet switchingasimnawaz54
 
TCP/IP Network ppt
TCP/IP Network pptTCP/IP Network ppt
TCP/IP Network pptextraganesh
 
Computer networking devices
Computer networking devicesComputer networking devices
Computer networking devicesRajesh Sadhukha
 
TCP/IP 3-way Handshake
TCP/IP 3-way Handshake TCP/IP 3-way Handshake
TCP/IP 3-way Handshake Alok Tripathi
 
TCP - IP Presentation
TCP - IP PresentationTCP - IP Presentation
TCP - IP PresentationHarish Chand
 
Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)k33a
 
User datagram protocol (udp)
User datagram protocol (udp)User datagram protocol (udp)
User datagram protocol (udp)Ramola Dhande
 

Was ist angesagt? (20)

Ethernet Computer network
Ethernet Computer networkEthernet Computer network
Ethernet Computer network
 
Ethernet
EthernetEthernet
Ethernet
 
Ethernet
EthernetEthernet
Ethernet
 
Ip address and subnetting
Ip address and subnettingIp address and subnetting
Ip address and subnetting
 
Unit 3 Network Layer PPT
Unit 3 Network Layer PPTUnit 3 Network Layer PPT
Unit 3 Network Layer PPT
 
TCP/IP Basics
TCP/IP BasicsTCP/IP Basics
TCP/IP Basics
 
Packet switching
Packet switchingPacket switching
Packet switching
 
OSI MODEL
OSI MODELOSI MODEL
OSI MODEL
 
Transport layer protocol
Transport layer protocolTransport layer protocol
Transport layer protocol
 
TCP/IP Network ppt
TCP/IP Network pptTCP/IP Network ppt
TCP/IP Network ppt
 
Media Access Control
Media Access ControlMedia Access Control
Media Access Control
 
Secure Hash Algorithm
Secure Hash AlgorithmSecure Hash Algorithm
Secure Hash Algorithm
 
TCP/IP Introduction
TCP/IP IntroductionTCP/IP Introduction
TCP/IP Introduction
 
Computer networking devices
Computer networking devicesComputer networking devices
Computer networking devices
 
TCP/IP 3-way Handshake
TCP/IP 3-way Handshake TCP/IP 3-way Handshake
TCP/IP 3-way Handshake
 
TCP - IP Presentation
TCP - IP PresentationTCP - IP Presentation
TCP - IP Presentation
 
computer network OSI layer
computer network OSI layercomputer network OSI layer
computer network OSI layer
 
Transport layer
Transport layer Transport layer
Transport layer
 
Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)
 
User datagram protocol (udp)
User datagram protocol (udp)User datagram protocol (udp)
User datagram protocol (udp)
 

Andere mochten auch

transport protocols
 transport protocols  transport protocols
transport protocols aibad ahmed
 
networking technologies
networking technologiesnetworking technologies
networking technologiesaibad ahmed
 
Overview gsm,gprs& umts
Overview gsm,gprs& umtsOverview gsm,gprs& umts
Overview gsm,gprs& umtsaibad ahmed
 
types of magnets
types of  magnetstypes of  magnets
types of magnetsaibad ahmed
 
Seerat e-hazrat umerbinabdulaziz
Seerat e-hazrat umerbinabdulazizSeerat e-hazrat umerbinabdulaziz
Seerat e-hazrat umerbinabdulazizaibad ahmed
 
Basic switch and router configurations
Basic switch and router configurationsBasic switch and router configurations
Basic switch and router configurationsaibad ahmed
 
Dictionary of networking
Dictionary of networkingDictionary of networking
Dictionary of networkingaibad ahmed
 
Difference between Interlaced & progressive scanning
Difference between Interlaced & progressive scanningDifference between Interlaced & progressive scanning
Difference between Interlaced & progressive scanningaibad ahmed
 
6.freq reuse and network planning
6.freq reuse and network planning6.freq reuse and network planning
6.freq reuse and network planningaibad ahmed
 
biot savart law
 biot savart law biot savart law
biot savart lawaibad ahmed
 
Intellectual property
Intellectual propertyIntellectual property
Intellectual propertyaibad ahmed
 
wireless sensor netw
wireless sensor netwwireless sensor netw
wireless sensor netwaibad ahmed
 
Bukhari Shareef Volume 3
Bukhari Shareef Volume 3Bukhari Shareef Volume 3
Bukhari Shareef Volume 3aibad ahmed
 

Andere mochten auch (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
 

Ähnlich wie TCP/IP

transport layer pptxdkididkdkdkddjjdjffkfif
transport layer pptxdkididkdkdkddjjdjffkfiftransport layer pptxdkididkdkdkddjjdjffkfif
transport layer pptxdkididkdkdkddjjdjffkfifMujtabaFarooq5
 
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)Ammad Marwat
 
tcp-ippresentation-150614172243-lva1-app6892.pptx
tcp-ippresentation-150614172243-lva1-app6892.pptxtcp-ippresentation-150614172243-lva1-app6892.pptx
tcp-ippresentation-150614172243-lva1-app6892.pptxAlphaKoiSylvester
 
Mobile Transpot Layer
Mobile Transpot LayerMobile Transpot Layer
Mobile Transpot LayerMaulik Patel
 
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 diffenHarikiran Raju
 
Transport Layer [Autosaved]
Transport Layer [Autosaved]Transport Layer [Autosaved]
Transport Layer [Autosaved]Ram Dutt Shukla
 
chapter 3.2 TCP.pptx
chapter 3.2 TCP.pptxchapter 3.2 TCP.pptx
chapter 3.2 TCP.pptxTekle12
 
Group 3 Presen.pptx
Group 3 Presen.pptxGroup 3 Presen.pptx
Group 3 Presen.pptxStudyvAbhi
 
Chapter Five - Transport Layer.pptx
Chapter Five - Transport Layer.pptxChapter Five - Transport Layer.pptx
Chapter Five - Transport Layer.pptxGirT2
 

Ähnlich wie 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
 
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
 
Chapter Five - Transport Layer.pptx
Chapter Five - Transport Layer.pptxChapter Five - Transport Layer.pptx
Chapter Five - Transport Layer.pptx
 

Kürzlich hochgeladen

Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)cama23
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptxiammrhaywood
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 

Kürzlich hochgeladen (20)

Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 

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