SlideShare a Scribd company logo
© 2008 Cisco Systems, Inc. All rights reserved. Cisco ConfidentialPresentation_ID 1
Chapter 7:
Transport Layer
Introduction to Networking
Presentation_ID 2© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
Chapter 7
7.0 Introduction
7.1 Transport Layer Protocols
7.2 TCP and UDP
7.3 Summary
Presentation_ID 3© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
Chapter 7: Objectives
 Describe the purpose of the transport layer in managing the
transportation of data in end-to-end communication.
 Describe characteristics of the TCP and UDP protocols, including
port numbers and their uses.
 Explain how TCP session establishment and termination
processes facilitate reliable communication.
 Explain how TCP protocol data units are transmitted and
acknowledged to guarantee delivery.
 Explain the UDP client processes to establish communication with
a server.
 Determine whether high-reliability TCP transmissions, or non-
guaranteed UDP transmissions, are best suited for common
applications.
© 2008 Cisco Systems, Inc. All rights reserved. Cisco ConfidentialPresentation_ID 4
7.1: Transport Layer
Protocols
Presentation_ID 5© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
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 6© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
Transportation of Data
Role of the Transport Layer (Cont.)
Presentation_ID 7© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
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 8© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
Transportation of Data
Conversation Multiplexing (Cont.)
Presentation_ID 9© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
Transportation of Data
Conversation Multiplexing (Cont.)
Presentation_ID 10© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
Transportation of Data
Transport Layer Reliability
Different applications have different transport reliability requirements.
TCP/IP provides two transport layer protocols, TCP and UDP.
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.
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 11© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
Introducing TCP and UDP
Introducing TCP
 Defined in RFC 793
 Connection-oriented – Creates a session between the source and
destination
 Reliable delivery – Retransmits lost or corrupt data
 Ordered data reconstruction – Reconstructs numbering and
sequencing of segments
 Flow control – Regulates the amount of data transmitted
 Stateful protocol – Tracks the session
Presentation_ID 12© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
Introducing TCP and UDP
Introducing 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
 VoIP
Presentation_ID 13© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
Introducing TCP and UDP
Separating Multiple Communications
TCP and UDP use port numbers to differentiate between applications.
.
Presentation_ID 14© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
Introducing TCP and UDP
TCP and UDP Port Addressing
Presentation_ID 15© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
Introducing TCP and UDP
TCP and UDP Port Addressing (Cont.)
Presentation_ID 16© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
Introducing TCP and UDP
TCP and UDP Port Addressing (Cont.)
Presentation_ID 17© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
Introducing TCP and UDP
TCP and UDP Port Addressing (Cont.)
Netstat is used to examine TCP connections that are
open and running on a networked host.
Presentation_ID 18© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
Introducing TCP and UDP
TCP and UDP Segmentation
The transport layer divides the data into pieces and adds
a header for delivery over the network
© 2008 Cisco Systems, Inc. All rights reserved. Cisco ConfidentialPresentation_ID 19
7.2 TCP and UDP
Presentation_ID 20© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
TCP Communication
TCP Server Processes
Presentation_ID 21© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
TCP Communication
TCP Server Processes (Cont.)
Presentation_ID 22© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
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 23© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
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 24© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
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 25© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
TCP Communication
TCP Three-Way Handshake – Step 3
Step 3: The initiating client acknowledges the server-to-client
communication session.
Presentation_ID 26© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
TCP Communication
TCP Session Termination
Presentation_ID 27© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
Reliability and Flow Control
TCP Reliability – Ordered Delivery
Sequence numbers are used to reassemble segments into their
original order.
Presentation_ID 28© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
Reliability and Flow Control
Acknowledgement and Window Size
The sequence number and acknowledgement number are used
together to confirm receipt.
The window size is the amount of data that a source can transmit
before an acknowledgement must be received.
Presentation_ID 29© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
Reliability and Flow Control
Window Size and Acknowledgements
Presentation_ID 30© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
Reliability and Flow Control
TCP Flow Control – Congestion Avoidance
Presentation_ID 31© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
Reliability and Flow Control
TCP Reliability - Acknowledgements
Presentation_ID 32© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
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
 DNS
 Simple Network Management Protocol (SNMP)
 Dynamic Host Configuration Protocol (DHCP)
 Trivial File Transfer Protocol (TFTP)
 IP telephony or VoIP
 Online games
Presentation_ID 33© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
UDP Communication
Datagram Reassembly
Presentation_ID 34© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
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 35© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
TCP or UDP
Applications that use TCP
Presentation_ID 36© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
TCP or UDP
Applications That Use UDP
© 2008 Cisco Systems, Inc. All rights reserved. Cisco ConfidentialPresentation_ID 37
7.3 Summary
Presentation_ID 38© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
Chapter 7: Summary
In this chapter, you learned:
 The role of the transport layer is to provide three main services:
multiplexing, segmentation and reassembly, and error checking. It
does this by:
•Dividing data received from an application into segments.
•Adding a header to identify and manage each segment.
•Using the header information to reassemble the segments back
into application data.
•Passing the assembled data to the correct application.
 How TCP and UDP operate and which popular applications use
each protocol.
 Transport Layer functions are necessary to address issues in QoS
and security in networks.
 Ports provide a “tunnel” for data to get from the transport layer to
the appropriate application at the destination.
Presentation_ID 39© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential

More Related Content

What's hot

Spanning tree protocol
Spanning tree protocolSpanning tree protocol
Spanning tree protocol
Muuluu
 
Spannig tree
Spannig treeSpannig tree
Spannig tree
1 2d
 
1.komponen rangkaian
1.komponen rangkaian1.komponen rangkaian
1.komponen rangkaian
exorakelisa
 
23 network security threats pkg
23 network security threats pkg23 network security threats pkg
23 network security threats pkg
Umang Gupta
 

What's hot (20)

Tunneling vpn security and implementation
Tunneling vpn security and implementationTunneling vpn security and implementation
Tunneling vpn security and implementation
 
OSI Model
OSI ModelOSI Model
OSI Model
 
Network Fundamentals – Chapter 1
Network Fundamentals – Chapter 1Network Fundamentals – Chapter 1
Network Fundamentals – Chapter 1
 
CyberOps Associate Modul 19 Access Control
CyberOps Associate Modul 19 Access ControlCyberOps Associate Modul 19 Access Control
CyberOps Associate Modul 19 Access Control
 
Spanning tree protocol
Spanning tree protocolSpanning tree protocol
Spanning tree protocol
 
Ccna PPT
Ccna PPTCcna PPT
Ccna PPT
 
TFTP - Trivial File Transfer Protocol
TFTP - Trivial File Transfer ProtocolTFTP - Trivial File Transfer Protocol
TFTP - Trivial File Transfer Protocol
 
Cisco Internetworking Operating System (ios)
Cisco Internetworking Operating System (ios)Cisco Internetworking Operating System (ios)
Cisco Internetworking Operating System (ios)
 
osi vs tcp/ip
osi vs tcp/iposi vs tcp/ip
osi vs tcp/ip
 
UDP - User Datagram Protocol
UDP - User Datagram ProtocolUDP - User Datagram Protocol
UDP - User Datagram Protocol
 
VLSM (1).pptx
VLSM (1).pptxVLSM (1).pptx
VLSM (1).pptx
 
Network Sockets
Network SocketsNetwork Sockets
Network Sockets
 
TCP and UDP
TCP and UDP TCP and UDP
TCP and UDP
 
Spanning tree protocol (stp)
Spanning tree protocol (stp)Spanning tree protocol (stp)
Spanning tree protocol (stp)
 
Transport Layer
Transport LayerTransport Layer
Transport Layer
 
Spannig tree
Spannig treeSpannig tree
Spannig tree
 
Makalah quality-of-service
Makalah quality-of-serviceMakalah quality-of-service
Makalah quality-of-service
 
1.komponen rangkaian
1.komponen rangkaian1.komponen rangkaian
1.komponen rangkaian
 
23 network security threats pkg
23 network security threats pkg23 network security threats pkg
23 network security threats pkg
 
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
 

Similar to Chapter 7 : Transport layer

CCNA Exploration 1 - Chapter 4
CCNA Exploration 1 - Chapter 4CCNA Exploration 1 - Chapter 4
CCNA Exploration 1 - Chapter 4
Irsandi Hasan
 

Similar to Chapter 7 : Transport layer (20)

Ccna v5-S1-Chapter 7
Ccna v5-S1-Chapter 7Ccna v5-S1-Chapter 7
Ccna v5-S1-Chapter 7
 
CCNA 1 Routing and Switching v5.0 Chapter 7
CCNA 1 Routing and Switching v5.0 Chapter 7CCNA 1 Routing and Switching v5.0 Chapter 7
CCNA 1 Routing and Switching v5.0 Chapter 7
 
CCNA RS_ITN - Chapter 7
CCNA RS_ITN - Chapter 7CCNA RS_ITN - Chapter 7
CCNA RS_ITN - Chapter 7
 
CCNA RS_NB - Chapter 5
CCNA RS_NB - Chapter 5CCNA RS_NB - Chapter 5
CCNA RS_NB - Chapter 5
 
Lecture Notes- Network Services - Copy.pptx
Lecture Notes- Network Services - Copy.pptxLecture Notes- Network Services - Copy.pptx
Lecture Notes- Network Services - Copy.pptx
 
CCNA RS_ITN - Chapter 3
CCNA RS_ITN - Chapter 3CCNA RS_ITN - Chapter 3
CCNA RS_ITN - Chapter 3
 
CCNAv5 - S4: Chapter3 Point to-point Connections
CCNAv5 - S4: Chapter3 Point to-point ConnectionsCCNAv5 - S4: Chapter3 Point to-point Connections
CCNAv5 - S4: Chapter3 Point to-point Connections
 
Chapter 10 - Application Layer
Chapter 10 - Application LayerChapter 10 - Application Layer
Chapter 10 - Application Layer
 
CCNAv5 - S1: Chapter 10 Application Layer
CCNAv5 - S1: Chapter 10 Application LayerCCNAv5 - S1: Chapter 10 Application Layer
CCNAv5 - S1: Chapter 10 Application Layer
 
Chapter 10 : Application layer
Chapter 10 : Application layerChapter 10 : Application layer
Chapter 10 : Application layer
 
CCNA v6.0 ITN - Chapter 09
CCNA v6.0 ITN - Chapter 09CCNA v6.0 ITN - Chapter 09
CCNA v6.0 ITN - Chapter 09
 
CCNA RS_NB - Chapter 3
CCNA RS_NB - Chapter 3CCNA RS_NB - Chapter 3
CCNA RS_NB - Chapter 3
 
cisco-nti-Day18
cisco-nti-Day18cisco-nti-Day18
cisco-nti-Day18
 
CCNA RS_NB - Chapter 4
CCNA RS_NB - Chapter 4CCNA RS_NB - Chapter 4
CCNA RS_NB - Chapter 4
 
Chapter 03 - Network Protocols and Communications
Chapter 03 - Network Protocols and CommunicationsChapter 03 - Network Protocols and Communications
Chapter 03 - Network Protocols and Communications
 
Chapter 3 : Network protocols and communications
Chapter 3 : Network protocols and communicationsChapter 3 : Network protocols and communications
Chapter 3 : Network protocols and communications
 
CCNAv5 - S1: Chapter 3 - Network protocols and communications
CCNAv5 - S1: Chapter 3 - Network protocols and communicationsCCNAv5 - S1: Chapter 3 - Network protocols and communications
CCNAv5 - S1: Chapter 3 - Network protocols and communications
 
CCNA Exploration 1 - Chapter 4
CCNA Exploration 1 - Chapter 4CCNA Exploration 1 - Chapter 4
CCNA Exploration 1 - Chapter 4
 
CCNA 1 Routing and Switching v5.0 Chapter 3
CCNA 1 Routing and Switching v5.0 Chapter 3CCNA 1 Routing and Switching v5.0 Chapter 3
CCNA 1 Routing and Switching v5.0 Chapter 3
 
CCNA 1 Routing and Switching v5.0 Chapter 10
CCNA 1 Routing and Switching v5.0 Chapter 10CCNA 1 Routing and Switching v5.0 Chapter 10
CCNA 1 Routing and Switching v5.0 Chapter 10
 

More from teknetir

More from teknetir (20)

آموزش کوتاه و کاربردی Nmap
آموزش کوتاه و کاربردی Nmapآموزش کوتاه و کاربردی Nmap
آموزش کوتاه و کاربردی Nmap
 
CEHv9 : module 18 - cryptography
CEHv9 : module 18 - cryptographyCEHv9 : module 18 - cryptography
CEHv9 : module 18 - cryptography
 
CEHv9 : module 17 - cloud computing
CEHv9 : module 17 - cloud computingCEHv9 : module 17 - cloud computing
CEHv9 : module 17 - cloud computing
 
CEHv9 : module 16 - evading ids firewalls and honeypots
CEHv9 : module 16 - evading ids firewalls and honeypotsCEHv9 : module 16 - evading ids firewalls and honeypots
CEHv9 : module 16 - evading ids firewalls and honeypots
 
CEHv9 : module 14 - hacking wireless networks
CEHv9 : module 14 - hacking wireless networksCEHv9 : module 14 - hacking wireless networks
CEHv9 : module 14 - hacking wireless networks
 
CEHv9 : module 15 - hacking mobile platforms
CEHv9 : module 15 - hacking mobile platformsCEHv9 : module 15 - hacking mobile platforms
CEHv9 : module 15 - hacking mobile platforms
 
CEHv9 : module 13 - SQL injection
CEHv9 : module 13 - SQL injectionCEHv9 : module 13 - SQL injection
CEHv9 : module 13 - SQL injection
 
CEHv9 : module 12 - hacking web applications
CEHv9 : module 12 - hacking web applicationsCEHv9 : module 12 - hacking web applications
CEHv9 : module 12 - hacking web applications
 
CEHv9 : module 11 - hacking web servers
CEHv9 : module 11 - hacking web serversCEHv9 : module 11 - hacking web servers
CEHv9 : module 11 - hacking web servers
 
CEHv9 : module 10 - session hijacking
CEHv9 : module 10 - session hijackingCEHv9 : module 10 - session hijacking
CEHv9 : module 10 - session hijacking
 
CEHv9 : module 09 : denial of service
CEHv9 : module 09 : denial of serviceCEHv9 : module 09 : denial of service
CEHv9 : module 09 : denial of service
 
CEHv9 : module 08 - social engineering
CEHv9 : module 08 - social engineeringCEHv9 : module 08 - social engineering
CEHv9 : module 08 - social engineering
 
CEHv9 : module 07 - sniffing
CEHv9 : module 07 - sniffingCEHv9 : module 07 - sniffing
CEHv9 : module 07 - sniffing
 
CEHv9 : module 06 - malware threats
CEHv9 : module 06 - malware threatsCEHv9 : module 06 - malware threats
CEHv9 : module 06 - malware threats
 
CEHv9 : module 05 - system hacking
CEHv9 : module 05 - system hackingCEHv9 : module 05 - system hacking
CEHv9 : module 05 - system hacking
 
CEHv9 : module 03 - scanning networks
CEHv9 : module 03 - scanning networksCEHv9 : module 03 - scanning networks
CEHv9 : module 03 - scanning networks
 
CEHv9 : module 02 - footprinting and reconnaissance
CEHv9 : module 02 - footprinting and reconnaissanceCEHv9 : module 02 - footprinting and reconnaissance
CEHv9 : module 02 - footprinting and reconnaissance
 
CEHv9 : module 01 - introduction to ethical hacking
CEHv9 : module 01 - introduction to ethical hackingCEHv9 : module 01 - introduction to ethical hacking
CEHv9 : module 01 - introduction to ethical hacking
 
Chapter 22 : network address translation for IPv4
Chapter 22 : network address translation for IPv4Chapter 22 : network address translation for IPv4
Chapter 22 : network address translation for IPv4
 
Chapter 21 : DHCP
Chapter 21 : DHCPChapter 21 : DHCP
Chapter 21 : DHCP
 

Recently uploaded

The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
CarlosHernanMontoyab2
 
plant breeding methods in asexually or clonally propagated crops
plant breeding methods in asexually or clonally propagated cropsplant breeding methods in asexually or clonally propagated crops
plant breeding methods in asexually or clonally propagated crops
parmarsneha2
 

Recently uploaded (20)

Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
 
plant breeding methods in asexually or clonally propagated crops
plant breeding methods in asexually or clonally propagated cropsplant breeding methods in asexually or clonally propagated crops
plant breeding methods in asexually or clonally propagated crops
 
Salient features of Environment protection Act 1986.pptx
Salient features of Environment protection Act 1986.pptxSalient features of Environment protection Act 1986.pptx
Salient features of Environment protection Act 1986.pptx
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
 
NCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdfNCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdf
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Basic Civil Engineering Notes of Chapter-6, Topic- Ecosystem, Biodiversity G...
Basic Civil Engineering Notes of Chapter-6,  Topic- Ecosystem, Biodiversity G...Basic Civil Engineering Notes of Chapter-6,  Topic- Ecosystem, Biodiversity G...
Basic Civil Engineering Notes of Chapter-6, Topic- Ecosystem, Biodiversity G...
 
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
 

Chapter 7 : Transport layer

  • 1. © 2008 Cisco Systems, Inc. All rights reserved. Cisco ConfidentialPresentation_ID 1 Chapter 7: Transport Layer Introduction to Networking
  • 2. Presentation_ID 2© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential Chapter 7 7.0 Introduction 7.1 Transport Layer Protocols 7.2 TCP and UDP 7.3 Summary
  • 3. Presentation_ID 3© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential Chapter 7: Objectives  Describe the purpose of the transport layer in managing the transportation of data in end-to-end communication.  Describe characteristics of the TCP and UDP protocols, including port numbers and their uses.  Explain how TCP session establishment and termination processes facilitate reliable communication.  Explain how TCP protocol data units are transmitted and acknowledged to guarantee delivery.  Explain the UDP client processes to establish communication with a server.  Determine whether high-reliability TCP transmissions, or non- guaranteed UDP transmissions, are best suited for common applications.
  • 4. © 2008 Cisco Systems, Inc. All rights reserved. Cisco ConfidentialPresentation_ID 4 7.1: Transport Layer Protocols
  • 5. Presentation_ID 5© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 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
  • 6. Presentation_ID 6© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential Transportation of Data Role of the Transport Layer (Cont.)
  • 7. Presentation_ID 7© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 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.
  • 8. Presentation_ID 8© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential Transportation of Data Conversation Multiplexing (Cont.)
  • 9. Presentation_ID 9© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential Transportation of Data Conversation Multiplexing (Cont.)
  • 10. Presentation_ID 10© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential Transportation of Data Transport Layer Reliability Different applications have different transport reliability requirements. TCP/IP provides two transport layer protocols, TCP and UDP. 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. 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.
  • 11. Presentation_ID 11© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential Introducing TCP and UDP Introducing TCP  Defined in RFC 793  Connection-oriented – Creates a session between the source and destination  Reliable delivery – Retransmits lost or corrupt data  Ordered data reconstruction – Reconstructs numbering and sequencing of segments  Flow control – Regulates the amount of data transmitted  Stateful protocol – Tracks the session
  • 12. Presentation_ID 12© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential Introducing TCP and UDP Introducing 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  VoIP
  • 13. Presentation_ID 13© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential Introducing TCP and UDP Separating Multiple Communications TCP and UDP use port numbers to differentiate between applications. .
  • 14. Presentation_ID 14© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential Introducing TCP and UDP TCP and UDP Port Addressing
  • 15. Presentation_ID 15© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential Introducing TCP and UDP TCP and UDP Port Addressing (Cont.)
  • 16. Presentation_ID 16© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential Introducing TCP and UDP TCP and UDP Port Addressing (Cont.)
  • 17. Presentation_ID 17© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential Introducing TCP and UDP TCP and UDP Port Addressing (Cont.) Netstat is used to examine TCP connections that are open and running on a networked host.
  • 18. Presentation_ID 18© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential Introducing TCP and UDP TCP and UDP Segmentation The transport layer divides the data into pieces and adds a header for delivery over the network
  • 19. © 2008 Cisco Systems, Inc. All rights reserved. Cisco ConfidentialPresentation_ID 19 7.2 TCP and UDP
  • 20. Presentation_ID 20© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential TCP Communication TCP Server Processes
  • 21. Presentation_ID 21© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential TCP Communication TCP Server Processes (Cont.)
  • 22. Presentation_ID 22© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 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
  • 23. Presentation_ID 23© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential TCP Communication TCP Three-Way Handshake – Step 1 Step 1: The initiating client requests a client-to-server communication session with the server
  • 24. Presentation_ID 24© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 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.
  • 25. Presentation_ID 25© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential TCP Communication TCP Three-Way Handshake – Step 3 Step 3: The initiating client acknowledges the server-to-client communication session.
  • 26. Presentation_ID 26© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential TCP Communication TCP Session Termination
  • 27. Presentation_ID 27© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential Reliability and Flow Control TCP Reliability – Ordered Delivery Sequence numbers are used to reassemble segments into their original order.
  • 28. Presentation_ID 28© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential Reliability and Flow Control Acknowledgement and Window Size The sequence number and acknowledgement number are used together to confirm receipt. The window size is the amount of data that a source can transmit before an acknowledgement must be received.
  • 29. Presentation_ID 29© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential Reliability and Flow Control Window Size and Acknowledgements
  • 30. Presentation_ID 30© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential Reliability and Flow Control TCP Flow Control – Congestion Avoidance
  • 31. Presentation_ID 31© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential Reliability and Flow Control TCP Reliability - Acknowledgements
  • 32. Presentation_ID 32© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 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  DNS  Simple Network Management Protocol (SNMP)  Dynamic Host Configuration Protocol (DHCP)  Trivial File Transfer Protocol (TFTP)  IP telephony or VoIP  Online games
  • 33. Presentation_ID 33© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential UDP Communication Datagram Reassembly
  • 34. Presentation_ID 34© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 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.
  • 35. Presentation_ID 35© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential TCP or UDP Applications that use TCP
  • 36. Presentation_ID 36© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential TCP or UDP Applications That Use UDP
  • 37. © 2008 Cisco Systems, Inc. All rights reserved. Cisco ConfidentialPresentation_ID 37 7.3 Summary
  • 38. Presentation_ID 38© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential Chapter 7: Summary In this chapter, you learned:  The role of the transport layer is to provide three main services: multiplexing, segmentation and reassembly, and error checking. It does this by: •Dividing data received from an application into segments. •Adding a header to identify and manage each segment. •Using the header information to reassemble the segments back into application data. •Passing the assembled data to the correct application.  How TCP and UDP operate and which popular applications use each protocol.  Transport Layer functions are necessary to address issues in QoS and security in networks.  Ports provide a “tunnel” for data to get from the transport layer to the appropriate application at the destination.
  • 39. Presentation_ID 39© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential