SlideShare a Scribd company logo
1 of 26
2
 What is TCP
 TCP Uses
 TCP Connection Creation
 Flow Control
 Error Control
 Congestion Control
 Sliding Windows Protocol
 Purpose of sliding windows protocol
 QUESTIONS
Sequence
3
What is TCP ?
4
TCP (Transmission Control Protocol ) is a transport layer Process
to Process Data delivery protocol . Its main characteristics are:
 Connection oriented
 Reliable
 Full Duplex
 Bytes steams
Connection oriented
5
Connection oriented means:
 A connection is established before any data is transferred
 If the connection can’t be established, the user program is
notified
 If an established connection is interrupted, the user program
is notified
Reliable
6
Reliable means:
 Each and every transmission of Data is Acknowledged by Receiver
 If the acknowledgement is not received with in specified time, data
is retransmitted
Byte Streams
7
Byte Stream means:
 Connection is treated as stream of Bytes
 The user application does not need to package data in individual
Datagrams
Uses of TCP
8
TCP is used for those services where error free and reliable Data
transmission is required. For example following well known services
use TCS as transport layer Protocol.
Service / Protocol Port Number
Used
Description
HTTP 80 Hyper text transfer protocol
SMTP 25 Simple mail transfer protocol
FTP 21 File transfer protocol
SSH 22 Secure shell
TELNET 23 Terminal Network
TCP Connection Creation
9
3 Way Hand Shake : Before any Data transfer TCP establishes a
connection using 3 Way Hand Shake mechanism
3 Way Hand Shake
10
3 Way Hand Shake
Client : I want to establish a connection and I
will transfer Data with initial sequence number
8000 (Syn Packet)
Server : OK. I received your syn, My intial
sequence number will be 15000 and expect
your Data Starting with Byte number 8001 (Syn
+ Ack Packet)
Client : Got it. You start your data transfer
starting with Byte number 15001 (Ack Packet)
11
Data Transfer
12
Half Close Connection
13
Half Close Connection
14
Flow Control
TCP uses flow control to balance the rate at which sender
sends Data and receiver receives it.
Messages
are pushed
1
Segements are pushed
2
Messages
are pulled
3
Flow control feedback
4
Flow control
feedback
5
15
Flow Control : How it works
 Receiver advertises spare room (available buffer size) by
including value of rwind (receive window) in segments.
 Sender limits Data transfer size to rwind avoiding the
receiver to overflow
16
Error Control
 TCP is a reliable Transport layer protocol . It sends Data
end to end without error, in order, and without any part lost
or duplicated
 Error Control in TCP is achieved through the use of three
tools :
1. Checksum
2. Acknowledgement
3. Time out
17
Congestion Control
TCP uses a congestion window and a congestion policy that
avoid congestion and detect and alleviate congestion after it
has occurred.
18
Congestion Control
In Slow Start algorithm, the size of Congestion window (cwnd) exponentially
increases until it reaches a threshold.
cwnd
1
cwnd
2
RTT
cwnd
4
RTT
cwnd
8
RTT
19
Congestion Control
In the congestion avoidance algorithm the size of the congestion window
increases additively until congestion is detected.
20
Sliding Window Protocol
 Sliding window is lesser of receiver (rwnd) and congestion
(cwnd) windows
 The source does not have to send a full window’s worth of
data
21
Sliding Window Protocol
(cwnd, rwnd)
22
Purpose Of Sliding Window Protocol
Sliding window is used :
 To make the transmission more efficient
 To prevent the receiver from overwhelming with data
 To prevent the network from Congestion and loss free
transmission
23
RFC 1122 enhancements in RFC 793
24
Van Jacobson algorithms
25
THANK YOU
26

More Related Content

What's hot

What's hot (20)

Quality of Service
Quality of ServiceQuality of Service
Quality of Service
 
UDP - User Datagram Protocol
UDP - User Datagram ProtocolUDP - User Datagram Protocol
UDP - User Datagram Protocol
 
Framing in data link layer
Framing in data link layerFraming in data link layer
Framing in data link layer
 
Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)
 
TCP-IP Reference Model
TCP-IP Reference ModelTCP-IP Reference Model
TCP-IP Reference Model
 
Data Link Layer| Error Detection
Data Link Layer| Error DetectionData Link Layer| Error Detection
Data Link Layer| Error Detection
 
Traffic and Congestion Control in ATM Networks Chapter 13
Traffic and Congestion Control in ATM Networks Chapter 13Traffic and Congestion Control in ATM Networks Chapter 13
Traffic and Congestion Control in ATM Networks Chapter 13
 
Circuit Switching, Packet Switching, Virtual Circuit Networks and Datagram Ne...
Circuit Switching, Packet Switching, Virtual Circuit Networks and Datagram Ne...Circuit Switching, Packet Switching, Virtual Circuit Networks and Datagram Ne...
Circuit Switching, Packet Switching, Virtual Circuit Networks and Datagram Ne...
 
What Is User Datagram Protocol?
What Is User Datagram Protocol?What Is User Datagram Protocol?
What Is User Datagram Protocol?
 
TCP - Transmission Control Protocol
TCP - Transmission Control ProtocolTCP - Transmission Control Protocol
TCP - Transmission Control Protocol
 
Ethernet - Networking presentation
Ethernet - Networking presentationEthernet - Networking presentation
Ethernet - Networking presentation
 
User datagram protocol (udp)
User datagram protocol (udp)User datagram protocol (udp)
User datagram protocol (udp)
 
Simple Mail Transfer Protocol
Simple Mail Transfer ProtocolSimple Mail Transfer Protocol
Simple Mail Transfer Protocol
 
IEEE standards 802.3.&802.11
IEEE standards 802.3.&802.11IEEE standards 802.3.&802.11
IEEE standards 802.3.&802.11
 
Computer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESS
Computer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESSComputer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESS
Computer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESS
 
TCP/ IP
TCP/ IP TCP/ IP
TCP/ IP
 
TCP Model
TCP ModelTCP Model
TCP Model
 
Computer Networks Unit 1 Introduction and Physical Layer
Computer Networks Unit 1 Introduction and Physical Layer Computer Networks Unit 1 Introduction and Physical Layer
Computer Networks Unit 1 Introduction and Physical Layer
 
Transport layer
Transport layerTransport layer
Transport layer
 
Congestion control in TCP
Congestion control in TCPCongestion control in TCP
Congestion control in TCP
 

Viewers also liked (11)

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
 
Tcp and udp
Tcp and udpTcp and udp
Tcp and udp
 
Congestion control
Congestion controlCongestion control
Congestion control
 
TCPIP
TCPIPTCPIP
TCPIP
 
Congetion Control.pptx
Congetion Control.pptxCongetion Control.pptx
Congetion Control.pptx
 
TCP protocol flow control
TCP protocol flow control TCP protocol flow control
TCP protocol flow control
 
Chapter 3 : User Datagram Protocol (UDP)
Chapter 3 : User Datagram Protocol (UDP)Chapter 3 : User Datagram Protocol (UDP)
Chapter 3 : User Datagram Protocol (UDP)
 
User datagram protocol
User datagram protocolUser datagram protocol
User datagram protocol
 
Congestion Control
Congestion ControlCongestion Control
Congestion Control
 
ISSC481_Term_Paper_John_Intindolo
ISSC481_Term_Paper_John_IntindoloISSC481_Term_Paper_John_Intindolo
ISSC481_Term_Paper_John_Intindolo
 
Congestion control
Congestion controlCongestion control
Congestion control
 

Similar to An overview of TCP (Transmission Control Protocol)

transport layer protocols
transport layer protocolstransport layer protocols
transport layer protocols
BE Smârt
 

Similar to An overview of TCP (Transmission Control Protocol) (20)

Tcp
TcpTcp
Tcp
 
Unit 5.Transport Layer.pptx
Unit 5.Transport Layer.pptxUnit 5.Transport Layer.pptx
Unit 5.Transport Layer.pptx
 
Transport_Layer_Protocols.pptx
Transport_Layer_Protocols.pptxTransport_Layer_Protocols.pptx
Transport_Layer_Protocols.pptx
 
TCP- Transmission Control Protocol
TCP-  Transmission Control Protocol TCP-  Transmission Control Protocol
TCP- Transmission Control Protocol
 
TCP/IP
TCP/IPTCP/IP
TCP/IP
 
tcp-ippresentation-150614172243-lva1-app6892.pptx
tcp-ippresentation-150614172243-lva1-app6892.pptxtcp-ippresentation-150614172243-lva1-app6892.pptx
tcp-ippresentation-150614172243-lva1-app6892.pptx
 
TCP - IP Presentation
TCP - IP PresentationTCP - IP Presentation
TCP - IP Presentation
 
Tcp ip presentation
Tcp ip presentationTcp ip presentation
Tcp ip presentation
 
TCP/IP & UDP
TCP/IP & UDPTCP/IP & UDP
TCP/IP & UDP
 
Transport layer
Transport layerTransport layer
Transport layer
 
Group 3 Presen.pptx
Group 3 Presen.pptxGroup 3 Presen.pptx
Group 3 Presen.pptx
 
DCN 5th ed. slides ch24 Transport-Layer Protocols.pdf
DCN 5th ed. slides ch24 Transport-Layer Protocols.pdfDCN 5th ed. slides ch24 Transport-Layer Protocols.pdf
DCN 5th ed. slides ch24 Transport-Layer Protocols.pdf
 
Tcp presentation
Tcp presentationTcp presentation
Tcp presentation
 
MK-PPT Chapter 5.ppt advanced computer networks
MK-PPT Chapter 5.ppt advanced computer networksMK-PPT Chapter 5.ppt advanced computer networks
MK-PPT Chapter 5.ppt advanced computer networks
 
TCP.docx
TCP.docxTCP.docx
TCP.docx
 
transport layer pptxdkididkdkdkddjjdjffkfif
transport layer pptxdkididkdkdkddjjdjffkfiftransport layer pptxdkididkdkdkddjjdjffkfif
transport layer pptxdkididkdkdkddjjdjffkfif
 
Transport Layer
Transport LayerTransport Layer
Transport Layer
 
Transport Layer [Autosaved]
Transport Layer [Autosaved]Transport Layer [Autosaved]
Transport Layer [Autosaved]
 
transport layer protocols
transport layer protocolstransport layer protocols
transport layer protocols
 
Udp vs-tcp
Udp vs-tcpUdp vs-tcp
Udp vs-tcp
 

Recently uploaded

Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
AnaAcapella
 

Recently uploaded (20)

COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111
 
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
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
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
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.ppt
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdf
 
Philosophy of china and it's charactistics
Philosophy of china and it's charactisticsPhilosophy of china and it's charactistics
Philosophy of china and it's charactistics
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
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Ă...
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningdusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learning
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Basic Intentional Injuries Health Education
Basic Intentional Injuries Health EducationBasic Intentional Injuries Health Education
Basic Intentional Injuries Health Education
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 

An overview of TCP (Transmission Control Protocol)

  • 1.
  • 2. 2
  • 3.  What is TCP  TCP Uses  TCP Connection Creation  Flow Control  Error Control  Congestion Control  Sliding Windows Protocol  Purpose of sliding windows protocol  QUESTIONS Sequence 3
  • 4. What is TCP ? 4 TCP (Transmission Control Protocol ) is a transport layer Process to Process Data delivery protocol . Its main characteristics are:  Connection oriented  Reliable  Full Duplex  Bytes steams
  • 5. Connection oriented 5 Connection oriented means:  A connection is established before any data is transferred  If the connection can’t be established, the user program is notified  If an established connection is interrupted, the user program is notified
  • 6. Reliable 6 Reliable means:  Each and every transmission of Data is Acknowledged by Receiver  If the acknowledgement is not received with in specified time, data is retransmitted
  • 7. Byte Streams 7 Byte Stream means:  Connection is treated as stream of Bytes  The user application does not need to package data in individual Datagrams
  • 8. Uses of TCP 8 TCP is used for those services where error free and reliable Data transmission is required. For example following well known services use TCS as transport layer Protocol. Service / Protocol Port Number Used Description HTTP 80 Hyper text transfer protocol SMTP 25 Simple mail transfer protocol FTP 21 File transfer protocol SSH 22 Secure shell TELNET 23 Terminal Network
  • 9. TCP Connection Creation 9 3 Way Hand Shake : Before any Data transfer TCP establishes a connection using 3 Way Hand Shake mechanism
  • 10. 3 Way Hand Shake 10
  • 11. 3 Way Hand Shake Client : I want to establish a connection and I will transfer Data with initial sequence number 8000 (Syn Packet) Server : OK. I received your syn, My intial sequence number will be 15000 and expect your Data Starting with Byte number 8001 (Syn + Ack Packet) Client : Got it. You start your data transfer starting with Byte number 15001 (Ack Packet) 11
  • 15. Flow Control TCP uses flow control to balance the rate at which sender sends Data and receiver receives it. Messages are pushed 1 Segements are pushed 2 Messages are pulled 3 Flow control feedback 4 Flow control feedback 5 15
  • 16. Flow Control : How it works  Receiver advertises spare room (available buffer size) by including value of rwind (receive window) in segments.  Sender limits Data transfer size to rwind avoiding the receiver to overflow 16
  • 17. Error Control  TCP is a reliable Transport layer protocol . It sends Data end to end without error, in order, and without any part lost or duplicated  Error Control in TCP is achieved through the use of three tools : 1. Checksum 2. Acknowledgement 3. Time out 17
  • 18. Congestion Control TCP uses a congestion window and a congestion policy that avoid congestion and detect and alleviate congestion after it has occurred. 18
  • 19. Congestion Control In Slow Start algorithm, the size of Congestion window (cwnd) exponentially increases until it reaches a threshold. cwnd 1 cwnd 2 RTT cwnd 4 RTT cwnd 8 RTT 19
  • 20. Congestion Control In the congestion avoidance algorithm the size of the congestion window increases additively until congestion is detected. 20
  • 21. Sliding Window Protocol  Sliding window is lesser of receiver (rwnd) and congestion (cwnd) windows  The source does not have to send a full window’s worth of data 21
  • 23. Purpose Of Sliding Window Protocol Sliding window is used :  To make the transmission more efficient  To prevent the receiver from overwhelming with data  To prevent the network from Congestion and loss free transmission 23
  • 24. RFC 1122 enhancements in RFC 793 24

Editor's Notes

  1. HTTP= used in internet browsing from web browser such mozilla firefox, chrome etc. FTP = a protocol used for file (data ) transfer between server and a client SSH= used for securely managing and configuring servers via a terminal. TELNET= also used for remotely connecting and managing of servers but the connection is unsecured as oppose to SSH. SMTP = used in mail transfer