SlideShare a Scribd company logo
Chapter 5: 
Transport Layer 
Network Fundamentals 
© 2008 Cisco Systems, Inc. All Presentation_ID rights reserved. Cisco Confidential 1
Chapter 5 
5.1 Transport Layer Protocols 
5.2 TCP and UDP 
5.3 Summary 
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 2
Chapter 5: Objectives 
 Explain the need for the transport layer. 
 Identify the role of the transport layer as it provides the 
end-to-end transfer of data between applications. 
 Describe the role of two TCP/IP transport layer protocols: 
TCP and UDP. 
 Explain the key functions of the transport layer, including 
reliability, port addressing, and segmentation. 
 Explain how TCP and UDP each handle key functions. 
 Identify when it is appropriate to use TCP or UDP and 
provide examples of applications that use each protocol 
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 3
Role of the Transport Layer 
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 4
Transportation of Data 
Role of the Transport Layer 
The Transport Layer is responsible for establishing a temporary 
communication session between two applications and delivering data 
between them. TCP/IP uses two protocols to achieve this: 
 Transmission Control Protocol (TCP) 
 User Datagram Protocol (UDP) 
Primary Responsibilities of Transport layer Protocols 
 Tracking the individual communication between applications on the 
source and destination hosts 
 Segmenting data for manageability and reassembling segmented 
data into streams of application data at the destination 
 Identifying the proper application for each communication stream 
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 5
Transportation of Data 
Conversation Multiplexing 
Segmenting the data 
 Enables many different 
communications, from many 
different users, to be 
interleaved (multiplexed) on 
the same network, at the 
same time. 
 Provides the means to both 
send and receive data when 
running multiple applications. 
 Header added to each 
segment to identify it. 
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 6
Transportation of Data 
Transport Layer Reliability 
TCP/IP provides two transport layer protocols, TCP and UDP 
Transmission Control Protocol (TCP) 
 Provides reliable delivery ensuring that all of the data arrives at the 
destination. 
 Uses acknowledged delivery and other processes to ensure 
delivery. 
 Makes larger demands on the network – more overhead. 
User Datagram Protocol (UDP) 
 Provides just the basic functions for delivery – no reliability. 
 Less overhead. 
TCP or UDP 
 There is a trade-off between the value of reliability and the burden it 
places on the network. 
 Application developers choose the transport protocol based on the 
requirements of their applications. 
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 7
Introducing TCP and UDP 
Introducing TCP 
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 8
Introducing TCP and UDP 
Introducing TCP 
Transmission Control Protocol (TCP) 
 RFC 793 
 Connection-oriented – creating a session between 
source and destination 
 Reliable delivery – retransmitting lost or corrupt data 
 Ordered data reconstruction – numbering and 
sequencing of segments 
 Flow control - regulating the amount of data transmitted 
 Stateful protocol – keeping track of the session 
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 9
Introducing TCP and UDP 
Introducing UDP 
User Datagram Protocol (UDP) 
 RFC 768 
 Connectionless 
 Unreliable delivery 
 No ordered data reconstruction 
 No flow control 
 Stateless protocol 
Applications that use UDP: 
 Domain Name System (DNS) 
 Video Streaming 
 Voice over IP (VoIP) 
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 10
Introducing TCP and UDP 
Separating Multiple Communications 
Port Numbers are used by TCP and UDP to differentiate between 
applications. 
. 
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 11
Introducing TCP and UDP 
TCP and UDP Port Addressing 
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 12
Introducing TCP and UDP 
TCP and UDP Port Addressing 
Netstat 
 Used to examine TCP connections that are open and 
running on a networked host 
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 13
TCP Communication 
TCP Server Processes 
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 14
TCP Communication 
TCP Connection, Establishment and 
Termination 
Three-Way Handshake 
 Establishes that the destination device is present on the 
network 
 Verifies that the destination device has an active 
service and is accepting requests on the destination 
port number that the initiating client intends to use for 
the session 
 Informs the destination device that the source client 
intends to establish a communication session on that 
port number 
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 15
TCP Communication 
TCP Three-Way Handshake – Step 1 
 Step 1: The initiating client requests a client-to-server 
communication session with the server. 
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 16
TCP Communication 
TCP Three-Way Handshake – Step 2 
 Step 2: The server acknowledges the client-to-server 
communication session and requests a 
server-to-client communication session. 
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 17
TCP Communication 
TCP Three-Way Handshake – Step 3 
 Step 3: The initiating client acknowledges the 
server-to-client communication session. 
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 18
Protocol Data Units??? Is this correct title?? 
TCP Reliability – Ordered Delivery 
Sequence numbers used to reassemble segments into 
original order 
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 19
TCP Reliability – Acknowledgement and 
Window Size 
The sequence number and acknowledgement number 
are used together to confirm receipt. 
Window Size - The amount of data that a source can 
transmit before an acknowledgement must be received. 
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 20
Protocol Data Units 
TCP Reliability and Flow Control 
Data Loss and Retransmission 
 When TCP at the source host has not received an 
acknowledgement after a predetermined amount of time, it will go 
back to the last acknowledgement number that it received and 
retransmit data from that point forward 
Flow Control 
 Uses the window size field in the TCP header to specify the 
amount of data that can be transmitted before an acknowledgement 
must be received. 
 Adjusts the effective rate of data transmission to the maximum flow 
that the network and destination device can support without loss. 
 Manages the rate of transmission so that all data will be received 
and retransmissions will be minimized. 
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 21
Protocol Data Units 
TCP Flow Control – Congestion Avoidance 
Using Dynamic Window Sizes 
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 22
TCP and UDP 
TCP Reliability - Acknowledgements 
 TCP uses a combination of sequence numbers and 
acknowledgements to ensure all requested data has 
been received. 
 Can be inefficient when there is loss of one or more 
segments 
 Selective Acknowledgements (SACK) – 
implementation of TCP that overcomes the inefficiency 
of TCP acknowledgements 
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 23
UDP Communication 
UDP Low Overhead vs. Reliability 
UDP 
 Simple protocol that provides the basic transport layer function 
 Used by applications that can tolerate small loss of data 
 Used by applications that cannot tolerate delay 
Used by 
 Domain Name System (DNS) 
 Simple Network Management Protocol (SNMP) 
 Dynamic Host Configuration Protocol (DHCP) 
 Trivial File Transfer Protocol (TFTP) 
 IP telephony or Voice over IP (VoIP) 
 Online games 
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 24
UDP Communication 
Datagram Reassembly 
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 25
UDP Communication 
UDP Server and Client Processes 
 UDP-based server applications are assigned well-known 
or registered port numbers. 
 UDP client process randomly selects port number from 
range of dynamic port numbers as the source port. 
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 26
TCP or UDP 
Applications that use TCP 
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 27
TCP or UDP 
Applications that use UDP 
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 28
Chapter 5: Summary 
 The role of the Transport layer is to provide three main 
functions: multiplexing, segmentation and reassembly, 
and error checking. 
 These functions are necessary in order to address 
issues in quality of service and security on networks. 
 Knowing how TCP and UDP operate and which popular 
applications use each protocol will allow the 
implementation of quality of service and build more 
reliable networks. 
 Ports provide a “tunnel” for data to get from the Transport 
layer to the appropriate application at the destination. 
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 29
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 30

More Related Content

PPTX
CCNA RS_NB - Chapter 7
PPTX
CCNA 2 Routing and Switching v5.0 Chapter 6
PPTX
CCNA 2 Routing and Switching v5.0 Chapter 11
PPTX
CCNA 2 Routing and Switching v5.0 Chapter 4
PPTX
CCNA 2 Routing and Switching v5.0 Chapter 7
PPTX
CCNA 1 Routing and Switching v5.0 Chapter 4
PPTX
CCNA 2 Routing and Switching v5.0 Chapter 9
PPTX
CCNA 2 Routing and Switching v5.0 Chapter 5
CCNA RS_NB - Chapter 7
CCNA 2 Routing and Switching v5.0 Chapter 6
CCNA 2 Routing and Switching v5.0 Chapter 11
CCNA 2 Routing and Switching v5.0 Chapter 4
CCNA 2 Routing and Switching v5.0 Chapter 7
CCNA 1 Routing and Switching v5.0 Chapter 4
CCNA 2 Routing and Switching v5.0 Chapter 9
CCNA 2 Routing and Switching v5.0 Chapter 5

What's hot (20)

PDF
CCNAv5 - S1: Chapter 3 - Network protocols and communications
PPTX
CCNA 2 Routing and Switching v5.0 Chapter 10
PPTX
CCNA 1 Routing and Switching v5.0 Chapter 5
PPTX
CCNA v6.0 ITN - Chapter 03
PDF
CCNAv5 - S2: Chapter3 Vlans
PPTX
What is PCRF? – Detailed PCRF architecture and functioning
PDF
CCNAv5 - S3: Chapter 4 Wireless Lans
PPT
Drive test final
PPTX
CCNA v6.0 ITN - Chapter 06
PPT
Sigtran Workshop
PDF
VoLTE Interfaces , Protocols & IMS Stack
PDF
CCNAv5 - S2: Chapter2 Basic Switching Concepts and Configuration
PPTX
Wireless Security null seminar
PDF
CCNAv5 - S2: Chapter5 Inter Vlan Routing
PDF
PCRF-Policy Charging System-Functional Analysis
PPTX
Ofdma tutorial
PPT
IMS IP multimedia subsystem presentation
PPTX
CCNA v6.0 ITN - Chapter 01
PDF
Understanding Session Border Controllers
PPTX
Routers and Routing Configuration
CCNAv5 - S1: Chapter 3 - Network protocols and communications
CCNA 2 Routing and Switching v5.0 Chapter 10
CCNA 1 Routing and Switching v5.0 Chapter 5
CCNA v6.0 ITN - Chapter 03
CCNAv5 - S2: Chapter3 Vlans
What is PCRF? – Detailed PCRF architecture and functioning
CCNAv5 - S3: Chapter 4 Wireless Lans
Drive test final
CCNA v6.0 ITN - Chapter 06
Sigtran Workshop
VoLTE Interfaces , Protocols & IMS Stack
CCNAv5 - S2: Chapter2 Basic Switching Concepts and Configuration
Wireless Security null seminar
CCNAv5 - S2: Chapter5 Inter Vlan Routing
PCRF-Policy Charging System-Functional Analysis
Ofdma tutorial
IMS IP multimedia subsystem presentation
CCNA v6.0 ITN - Chapter 01
Understanding Session Border Controllers
Routers and Routing Configuration
Ad

Viewers also liked (20)

PPTX
CCNA RS_NB - Chapter 6
PPTX
CCNA RS_NB - Chapter 3
PPTX
CCNA RS_NB - Chapter 2
PPTX
CCNA RS_NB - Chapter 11
PPT
CCNA Exploration 1 - Chapter 5
PPTX
Best Practice TLS for IBM Domino
PPTX
CCNA RS_ITN - Chapter 10
PPTX
CCNA RS_NB - Chapter 1
PPTX
CCNA RS_NB - Chapter 9
PPTX
CCNA RS_NB - Chapter 4
PPTX
CCNA RS_NB - Chapter 8
PPTX
CCNA RS_NB - Chapter 10
PPTX
CCNA RS_ITN - Chapter 4
PPTX
VMware vShield - Overview
PDF
Aplication and Transport layer- a practical approach
PDF
Advanced Crypto Service Provider – cryptography as a service
PDF
Recover A RSA Private key from a TLS session with perfect forward secrecy
PPTX
F5 Networks Adds To Oracle Database
PPTX
F5 Networks: миграция c Microsoft TMG
PDF
20071015 Architecting Enterprise Security
CCNA RS_NB - Chapter 6
CCNA RS_NB - Chapter 3
CCNA RS_NB - Chapter 2
CCNA RS_NB - Chapter 11
CCNA Exploration 1 - Chapter 5
Best Practice TLS for IBM Domino
CCNA RS_ITN - Chapter 10
CCNA RS_NB - Chapter 1
CCNA RS_NB - Chapter 9
CCNA RS_NB - Chapter 4
CCNA RS_NB - Chapter 8
CCNA RS_NB - Chapter 10
CCNA RS_ITN - Chapter 4
VMware vShield - Overview
Aplication and Transport layer- a practical approach
Advanced Crypto Service Provider – cryptography as a service
Recover A RSA Private key from a TLS session with perfect forward secrecy
F5 Networks Adds To Oracle Database
F5 Networks: миграция c Microsoft TMG
20071015 Architecting Enterprise Security
Ad

Similar to CCNA RS_NB - Chapter 5 (20)

PPTX
CCNA RS_ITN - Chapter 7
PPTX
CCNA 1 Routing and Switching v5.0 Chapter 7
PPTX
Ccna v5-S1-Chapter 7
PDF
CCNAv5 - S1: Chapter 7 - Transport Layer
PPTX
Chapter 7 : Transport layer
PDF
محمد مشاري
PPTX
Chp3 Transport Layer.pptxdata communication and networking
PPTX
ITN6_Instructor_Materials_Chapter9git.pptx
PPTX
CCNA (R & S) Module 01 - Introduction to Networks - Chapter 9
PPTX
CCNA v6.0 ITN - Chapter 09
PDF
It nv51 instructor_ppt_ch9
PPTX
Lecture Notes- Network Services - Copy.pptx
PPTX
CCNA 1 Routing and Switching v5.0 Chapter 3
PPTX
Networking essentials lect3
PPT
CCNA Exploration 1 - Chapter 4
PPTX
CCNA RS_ITN - Chapter 3
PPTX
Ccna v5-S1-Chapter 3
PDF
Itn instruction ppt_chapter3
PPT
Exploration network chapter4
PPTX
Chapter 3 : Network protocols and communications
CCNA RS_ITN - Chapter 7
CCNA 1 Routing and Switching v5.0 Chapter 7
Ccna v5-S1-Chapter 7
CCNAv5 - S1: Chapter 7 - Transport Layer
Chapter 7 : Transport layer
محمد مشاري
Chp3 Transport Layer.pptxdata communication and networking
ITN6_Instructor_Materials_Chapter9git.pptx
CCNA (R & S) Module 01 - Introduction to Networks - Chapter 9
CCNA v6.0 ITN - Chapter 09
It nv51 instructor_ppt_ch9
Lecture Notes- Network Services - Copy.pptx
CCNA 1 Routing and Switching v5.0 Chapter 3
Networking essentials lect3
CCNA Exploration 1 - Chapter 4
CCNA RS_ITN - Chapter 3
Ccna v5-S1-Chapter 3
Itn instruction ppt_chapter3
Exploration network chapter4
Chapter 3 : Network protocols and communications

More from Irsandi Hasan (12)

PPTX
CCNA v6.0 ITN - Chapter 11
PPTX
CCNA v6.0 ITN - Chapter 10
PPTX
CCNA v6.0 ITN - Chapter 08
PPTX
CCNA v6.0 ITN - Chapter 07
PPTX
CCNA v6.0 ITN - Chapter 05
PPTX
CCNA v6.0 ITN - Chapter 04
PPTX
CCNA v6.0 ITN - Chapter 02
PPTX
CCNA RS_ITN - Chapter 11
PPTX
CCNA RS_ITN - Chapter 9
PPTX
CCNA RS_ITN - Chapter 8
PPTX
CCNA RS_ITN - Chapter 6
PPTX
CCNA RS_ITN - Chapter 5
CCNA v6.0 ITN - Chapter 11
CCNA v6.0 ITN - Chapter 10
CCNA v6.0 ITN - Chapter 08
CCNA v6.0 ITN - Chapter 07
CCNA v6.0 ITN - Chapter 05
CCNA v6.0 ITN - Chapter 04
CCNA v6.0 ITN - Chapter 02
CCNA RS_ITN - Chapter 11
CCNA RS_ITN - Chapter 9
CCNA RS_ITN - Chapter 8
CCNA RS_ITN - Chapter 6
CCNA RS_ITN - Chapter 5

Recently uploaded (20)

PDF
Enhancing emotion recognition model for a student engagement use case through...
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
O2C Customer Invoices to Receipt V15A.pptx
PPT
Module 1.ppt Iot fundamentals and Architecture
PDF
STKI Israel Market Study 2025 version august
PDF
2021 HotChips TSMC Packaging Technologies for Chiplets and 3D_0819 publish_pu...
PDF
Zenith AI: Advanced Artificial Intelligence
PPTX
observCloud-Native Containerability and monitoring.pptx
PDF
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
PDF
project resource management chapter-09.pdf
PDF
Web App vs Mobile App What Should You Build First.pdf
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
A novel scalable deep ensemble learning framework for big data classification...
PDF
A contest of sentiment analysis: k-nearest neighbor versus neural network
PPTX
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
PDF
Getting Started with Data Integration: FME Form 101
PDF
DP Operators-handbook-extract for the Mautical Institute
PPTX
cloud_computing_Infrastucture_as_cloud_p
PPTX
The various Industrial Revolutions .pptx
PPTX
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
Enhancing emotion recognition model for a student engagement use case through...
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
O2C Customer Invoices to Receipt V15A.pptx
Module 1.ppt Iot fundamentals and Architecture
STKI Israel Market Study 2025 version august
2021 HotChips TSMC Packaging Technologies for Chiplets and 3D_0819 publish_pu...
Zenith AI: Advanced Artificial Intelligence
observCloud-Native Containerability and monitoring.pptx
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
project resource management chapter-09.pdf
Web App vs Mobile App What Should You Build First.pdf
Group 1 Presentation -Planning and Decision Making .pptx
A novel scalable deep ensemble learning framework for big data classification...
A contest of sentiment analysis: k-nearest neighbor versus neural network
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
Getting Started with Data Integration: FME Form 101
DP Operators-handbook-extract for the Mautical Institute
cloud_computing_Infrastucture_as_cloud_p
The various Industrial Revolutions .pptx
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx

CCNA RS_NB - Chapter 5

  • 1. Chapter 5: Transport Layer Network Fundamentals © 2008 Cisco Systems, Inc. All Presentation_ID rights reserved. Cisco Confidential 1
  • 2. Chapter 5 5.1 Transport Layer Protocols 5.2 TCP and UDP 5.3 Summary Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 2
  • 3. Chapter 5: Objectives  Explain the need for the transport layer.  Identify the role of the transport layer as it provides the end-to-end transfer of data between applications.  Describe the role of two TCP/IP transport layer protocols: TCP and UDP.  Explain the key functions of the transport layer, including reliability, port addressing, and segmentation.  Explain how TCP and UDP each handle key functions.  Identify when it is appropriate to use TCP or UDP and provide examples of applications that use each protocol Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 3
  • 4. Role of the Transport Layer Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 4
  • 5. Transportation of Data Role of the Transport Layer The Transport Layer is responsible for establishing a temporary communication session between two applications and delivering data between them. TCP/IP uses two protocols to achieve this:  Transmission Control Protocol (TCP)  User Datagram Protocol (UDP) Primary Responsibilities of Transport layer Protocols  Tracking the individual communication between applications on the source and destination hosts  Segmenting data for manageability and reassembling segmented data into streams of application data at the destination  Identifying the proper application for each communication stream Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 5
  • 6. Transportation of Data Conversation Multiplexing Segmenting the data  Enables many different communications, from many different users, to be interleaved (multiplexed) on the same network, at the same time.  Provides the means to both send and receive data when running multiple applications.  Header added to each segment to identify it. Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 6
  • 7. Transportation of Data Transport Layer Reliability TCP/IP provides two transport layer protocols, TCP and UDP Transmission Control Protocol (TCP)  Provides reliable delivery ensuring that all of the data arrives at the destination.  Uses acknowledged delivery and other processes to ensure delivery.  Makes larger demands on the network – more overhead. User Datagram Protocol (UDP)  Provides just the basic functions for delivery – no reliability.  Less overhead. TCP or UDP  There is a trade-off between the value of reliability and the burden it places on the network.  Application developers choose the transport protocol based on the requirements of their applications. Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 7
  • 8. Introducing TCP and UDP Introducing TCP Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 8
  • 9. Introducing TCP and UDP Introducing TCP Transmission Control Protocol (TCP)  RFC 793  Connection-oriented – creating a session between source and destination  Reliable delivery – retransmitting lost or corrupt data  Ordered data reconstruction – numbering and sequencing of segments  Flow control - regulating the amount of data transmitted  Stateful protocol – keeping track of the session Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 9
  • 10. Introducing TCP and UDP Introducing UDP User Datagram Protocol (UDP)  RFC 768  Connectionless  Unreliable delivery  No ordered data reconstruction  No flow control  Stateless protocol Applications that use UDP:  Domain Name System (DNS)  Video Streaming  Voice over IP (VoIP) Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 10
  • 11. Introducing TCP and UDP Separating Multiple Communications Port Numbers are used by TCP and UDP to differentiate between applications. . Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 11
  • 12. Introducing TCP and UDP TCP and UDP Port Addressing Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 12
  • 13. Introducing TCP and UDP TCP and UDP Port Addressing Netstat  Used to examine TCP connections that are open and running on a networked host Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 13
  • 14. TCP Communication TCP Server Processes Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 14
  • 15. TCP Communication TCP Connection, Establishment and Termination Three-Way Handshake  Establishes that the destination device is present on the network  Verifies that the destination device has an active service and is accepting requests on the destination port number that the initiating client intends to use for the session  Informs the destination device that the source client intends to establish a communication session on that port number Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 15
  • 16. TCP Communication TCP Three-Way Handshake – Step 1  Step 1: The initiating client requests a client-to-server communication session with the server. Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 16
  • 17. TCP Communication TCP Three-Way Handshake – Step 2  Step 2: The server acknowledges the client-to-server communication session and requests a server-to-client communication session. Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 17
  • 18. TCP Communication TCP Three-Way Handshake – Step 3  Step 3: The initiating client acknowledges the server-to-client communication session. Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 18
  • 19. Protocol Data Units??? Is this correct title?? TCP Reliability – Ordered Delivery Sequence numbers used to reassemble segments into original order Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 19
  • 20. TCP Reliability – Acknowledgement and Window Size The sequence number and acknowledgement number are used together to confirm receipt. Window Size - The amount of data that a source can transmit before an acknowledgement must be received. Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 20
  • 21. Protocol Data Units TCP Reliability and Flow Control Data Loss and Retransmission  When TCP at the source host has not received an acknowledgement after a predetermined amount of time, it will go back to the last acknowledgement number that it received and retransmit data from that point forward Flow Control  Uses the window size field in the TCP header to specify the amount of data that can be transmitted before an acknowledgement must be received.  Adjusts the effective rate of data transmission to the maximum flow that the network and destination device can support without loss.  Manages the rate of transmission so that all data will be received and retransmissions will be minimized. Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 21
  • 22. Protocol Data Units TCP Flow Control – Congestion Avoidance Using Dynamic Window Sizes Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 22
  • 23. TCP and UDP TCP Reliability - Acknowledgements  TCP uses a combination of sequence numbers and acknowledgements to ensure all requested data has been received.  Can be inefficient when there is loss of one or more segments  Selective Acknowledgements (SACK) – implementation of TCP that overcomes the inefficiency of TCP acknowledgements Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 23
  • 24. UDP Communication UDP Low Overhead vs. Reliability UDP  Simple protocol that provides the basic transport layer function  Used by applications that can tolerate small loss of data  Used by applications that cannot tolerate delay Used by  Domain Name System (DNS)  Simple Network Management Protocol (SNMP)  Dynamic Host Configuration Protocol (DHCP)  Trivial File Transfer Protocol (TFTP)  IP telephony or Voice over IP (VoIP)  Online games Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 24
  • 25. UDP Communication Datagram Reassembly Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 25
  • 26. UDP Communication UDP Server and Client Processes  UDP-based server applications are assigned well-known or registered port numbers.  UDP client process randomly selects port number from range of dynamic port numbers as the source port. Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 26
  • 27. TCP or UDP Applications that use TCP Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 27
  • 28. TCP or UDP Applications that use UDP Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 28
  • 29. Chapter 5: Summary  The role of the Transport layer is to provide three main functions: multiplexing, segmentation and reassembly, and error checking.  These functions are necessary in order to address issues in quality of service and security on networks.  Knowing how TCP and UDP operate and which popular applications use each protocol will allow the implementation of quality of service and build more reliable networks.  Ports provide a “tunnel” for data to get from the Transport layer to the appropriate application at the destination. Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 29
  • 30. Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 30