SlideShare a Scribd company logo
Instructor Materials
Chapter 9: Transport Layer
CCNA Routing and Switching
Introduction to Networks v6.0
3Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Chapter 9: Transport Layer
Introduction to Networks 6.0 Planning
Guide
Chapter 9: Transport Layer
CCNA Routing and Switching
Introduction to Networks v6.0
14Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
ο‚§ 9.1 Transport Layer Protocols
β€’ Explain how transport layer protocols and services support communications across data
networks.
β€’ Explain the purpose of the transport layer in managing the transportation of data in end-to-end
communication.
β€’ Explain characteristics of the TCP and UDP protocols, including port numbers and their uses.
ο‚§ 9.2 TCP and UDP
β€’ Compare the operations of transport layer protocols in supporting end-to-end
communication.
β€’ Explain how TCP session establishment and termination processes facilitate reliable communication.
β€’ Explain how TCP protocol data units are transmitted and acknowledged to guarantee delivery.
β€’ Describe 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.
Chapter 9 - Sections & Objectives
15Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
9.1 Transport Layer Protocols
16Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Transportation of Data
Role of the Transport Layer
ο‚§ Responsible for establishing a
temporary communication session
between two applications and
delivering data between them.
ο‚§ Link between the application layer
and the lower layers that are
responsible for network transmission.
17Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Transportation of Data
Transport Layer Responsibilities
ο‚§ Tracking the Conversation -
Tracks each individual
conversation flowing between a
source and a destination
application.
ο‚§ Segmentation - Divides the data
into segments that are easier to
manage and transport. Header
used for reassembly is used for
tracking.
ο‚§ Identifying the Application -
Ensures that even with multiple
applications running on a device,
all applications receive the
correct data via port numbers.
18Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Transportation of Data
Conversation Multiplexing
ο‚§ Segmenting the data into smaller chunks enables many different communications to be
multiplexed on the same network.
19Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Transportation of Data
Transport Layer Reliability
ο‚§ TCP/IP provides two transport
layer protocols:
β€’ Transmission Control Protocol
(TCP)
β€’ Considered reliable which
ensures that all of the data
arrives at the destination.
β€’ Additional fields needed in
header which increases size and
delay.
β€’ User Datagram Protocol (UDP)
β€’ Does not provide for reliability.
β€’ Fewer fields and is faster than TCP.
20Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Transportation of Data
TCP ο‚§ TCP transport is similar to
sending tracked packages. If
a shipping order is broken up
into several packages, a
customer can check online to
see the order of the delivery.
21Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Transportation of Data
TCP (Cont.)
22Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Transportation of Data
TCP (Cont.) TCP Three Responsibilities:
ο‚§ Numbering and tracking data segments
ο‚§ Acknowledging received data
ο‚§ Retransmitting any unacknowledged
data after a certain period of time
23Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Use UDP for less overhead and
to reduce possible delays.
ο‚§ Best-effort delivery (unreliable)
ο‚§ No acknowledgment
ο‚§ Similar to a non-registered
letter
Transportation of Data
UDP
24Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
ο‚§ TCP - databases, web
browsers, and email
clients require that all
data that is sent arrives
at the destination in its
original condition.
ο‚§ UDP - if one or two
segments of a live
video stream fail to
arrive, if disruption in
the stream, may not be
noticeable to the user.
Transportation of Data
The Right Transport Layer Protocol for the Right Application
25Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
ο‚§ Establishing a Session
β€’ Connection-oriented protocol
β€’ Ensures the application is ready to receive the data
β€’ Negotiate the amount of traffic that can be forwarded at a given time
ο‚§ Reliable Delivery
β€’ Ensuring that each segment that the source sends arrives at the destination
ο‚§ Same-Order Delivery
β€’ Numbering & Sequencing the segments guarantees reassembly into the proper order
ο‚§ Flow Control
β€’ Regulate the amount of data the source transmits
TCP and UDP Overview
TCP Features
26Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
TCP and UDP Overview
TCP Header
ο‚§ Source and Destination Port used to identify
application
ο‚§ Sequence number used for data reassembly
ο‚§ Acknowledgement number indicates data
has been received and ready for next byte
from source
ο‚§ Header length – length of TCP segment
header
ο‚§ Control bits – purpose and function of TCP
segment
ο‚§ Window size – number of bytes that can be
accepted at one time
ο‚§ Checksum – Used for error checking of
segment header and data
20 Bytes Total
27Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
TCP and UDP Overview
UDP Features
28Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
ο‚§ UDP is a stateless protocol – no tracking
ο‚§ Reliability handled by application
TCP and UDP Overview
UDP Header
29Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
ο‚§ Users expect to simultaneously receive and send email, view websites and make a
VoIP phone call
ο‚§ TCP and UDP manage multiple conversations by using unique identifiers called
port numbers
TCP and UDP Overview
Multiple Separate Communications
30Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
ο‚§ Source Port
β€’ Originating application port that is
dynamically generated by sending
device
β€’ Example: Each separate HTTP
conversation is tracked based on
the source ports.
ο‚§ Destination Port
β€’ Tell the destination what service is
being requested
β€’ Example: Port 80 web services are
being requested
TCP and UDP Overview
Port Numbers
31Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
TCP and UDP Overview
Socket Pairs
ο‚§ Source and destination port
placed in segment
ο‚§ Segments encapsulated in IP
packet
ο‚§ IP and port number = socket
ο‚§ Example: 192.168.1.7:80
ο‚§ Sockets enable multiple
processes to be
distinguished
ο‚§ Source port acts as a return
address
32Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
TCP and UDP Overview
Port Number Groups
ο‚§ Well-known Ports (Numbers 0 to 1023) - These numbers are reserved for
services and applications.
ο‚§ Registered Ports (Numbers 1024 to 49151) - These port numbers are
assigned by IANA to a requesting entity to use with specific processes or
applications.
ο‚§ Dynamic or Private Ports (Numbers 49152 to 65535) - Usually assigned
dynamically by the client’s OS and used to identify the client application
during communication.
33Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
TCP and UDP Overview
Port Number Groups (Cont.)
Well
Known
Port
Numbers
34Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
TCP and UDP Overview
The netstat Command
ο‚§ Network utility that
can be used to verify
connections
ο‚§ By default, will
attempt to resolve IP
addresses to domain
names and port
numbers to well-
known applications
ο‚§ -n option used to
display IPs and ports
in numerical form
35Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
9.2 TCP and UDP
36Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
TCP Communication Process
TCP Server Process
37Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
TCP Communication Process
TCP Server Process (Cont.)
38Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
ο‚§ Step 1 – Initiating
client requests a
session with server.
TCP Communication Process
TCP Connection Establishment
ο‚§ Step 2 – Server
acknowledges and
requests a session with
client.
ο‚§ Step 3 – Client acknowledges
communication session with
server.
39Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
ο‚§ To close a connection, the Finish (FIN) control flag must
be set in the segment header.
ο‚§ To end each one-way TCP session, a two-way
handshake, consisting of a FIN segment and an
Acknowledgment (ACK) segment, is used.
ο‚§ To terminate a single conversation supported by TCP, four
exchanges are needed to end both sessions.
TCP Communication Process
TCP Session Termination
40Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
ο‚§ The 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.
β€’ Informs the destination device that the source client
intends to establish a communication session on
that port number.
ο‚§ The six bits in the Control Bits field of the TCP
segment header are also known as flags.
β€’ RST flag is used to reset a connection when an
error or timeout occurs
TCP Communication Process
TCP Three-way Handshake Analysis
41Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
TCP Communication Process
Video Demonstration - TCP 3-Way Handshake
SYN
SYN, ACK
ACK
42Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
TCP Communication Process
Lab – Using Wireshark to Observe the TCP 3-Way Handshake
43Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
ο‚§ Sequence numbers are assigned
in the header of each packet.
ο‚§ Represents the first data byte of
the TCP segment.
ο‚§ During session setup, an initial
sequence number (ISN) is set -
represents the starting value of
the bytes.
ο‚§ As data is transmitted during the
session, the sequence number is
incremented by the number of
bytes that have been transmitted.
ο‚§ Missing segments can then be
identified.
Reliability and Flow Control
TCP Reliability – Ordered Delivery
44Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Reliability and Flow Control
Video Demonstration - TCP Reliability – Sequence Numbers and
Acknowledgments
45Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Reliability and Flow Control
Video Demonstration – Data Loss and Retransmission
46Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Reliability and Flow Control
TCP Flow Control – Window Size and Acknowledgments
ο‚§ In the figure, the source is
transmitting 1,460 bytes of
data within each segment.
ο‚§ Window size agreed on
during 3-way handshake.
ο‚§ Typically, PC B will not
wait for 10,000 bytes
before sending an
acknowledgment.
ο‚§ PC A can adjust its send
window as it receives
acknowledgments from
PC B.
47Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Reliability and Flow Control
TCP Flow Control – Congestion Avoidance
ο‚§ Congestion causes
retransmission of lost TCP
segments
ο‚§ Retransmission of segments
can make the congestion
worse
ο‚§ To avoid and control
congestion, TCP employs
several congestion handling
mechanisms, timers, and
algorithms
ο‚§ Example: Reduce the number
of bytes it sends before
receiving an acknowledgment
48Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
UDP Communication
UDP Low Overhead versus Reliability
ο‚§ UDP not connection-
oriented
ο‚§ No retransmission,
sequencing, and flow
control
ο‚§ Functions not
provided by the
transport layer
implemented
elsewhere
49Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
UDP Communication
UDP Datagram Reassembly
UDP: Connectionless and Unreliable
ο‚§ UDP reassembles
data in order received
and forwards to
application
ο‚§ Application must
identify the proper
sequence
50Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
UDP Communication
UDP Server Processes and Requests
Note: The Remote
Authentication Dial-in
User Service
(RADIUS) server
shown in the figure
provides
authentication,
authorization, and
accounting services to
manage user access.
51Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
UDP Communication
UDP Client Processes
Clients Sending UDP Requests
52Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
UDP Communication
UDP Client Processes (Cont.)
Clients Sending UDP Requests
53Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
UDP Communication
Lab – Using Wireshark to Examine a UDP DNS Capture
54Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
TCP or UDP
Applications that use TCP
TCP frees
applications
from having to
manage
reliability
55Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
TCP or UDP
Applications that use UDP
Three types of
applications best
suited for UDP:
ο‚§ Live video and
multimedia
ο‚§ Simple request
and reply
ο‚§ Handle reliability
themselves
56Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
TCP or UDP
Lab – Using Wireshark to Examine TCP and UDP Captures
57Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
9.3 Chapter Summary
58Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Conclusion
Packet Tracer – TCP and UDP Communications
59Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
ο‚§ Explain how transport layer protocols and services support communications across data networks.
ο‚§ Compare the operations of transport layer protocols in supporting end-to-end communication.
Conclusion
Chapter 9: Transport Layer
CCNA v6.0 ITN - Chapter 09

More Related Content

PPTX
CCNA v6.0 ITN - Chapter 05
PPTX
CCNA v6.0 ITN - Chapter 10
PPTX
CCNA v6.0 ITN - Chapter 07
PPTX
CCNA v6.0 ITN - Chapter 02
PPTX
CCNA v6.0 ITN - Chapter 08
PPTX
CCNA v6.0 ITN - Chapter 11
PPT
CCNA IP Addressing
PPTX
CCNA v6.0 ITN - Chapter 01
CCNA v6.0 ITN - Chapter 05
CCNA v6.0 ITN - Chapter 10
CCNA v6.0 ITN - Chapter 07
CCNA v6.0 ITN - Chapter 02
CCNA v6.0 ITN - Chapter 08
CCNA v6.0 ITN - Chapter 11
CCNA IP Addressing
CCNA v6.0 ITN - Chapter 01

What's hot (20)

PPTX
CCNA v6.0 ITN - Chapter 03
PPTX
CCNA v6.0 ITN - Chapter 04
PPTX
CCNA v6.0 ITN - Chapter 06
PPTX
CCNA 1 Routing and Switching v5.0 Chapter 3
PPTX
CCNA 2 Routing and Switching v5.0 Chapter 3
PPTX
CCNA 2 Routing and Switching v5.0 Chapter 2
PPTX
CCNA 2 Routing and Switching v5.0 Chapter 4
PPTX
CCNA Product Overview.pptx
PPTX
ITN_Module_2.pptx
PPTX
CCNA 2 Routing and Switching v5.0 Chapter 7
PPTX
Chapter 17 : static routing
PPTX
IP Address
PPTX
CCNA 2 Routing and Switching v5.0 Chapter 5
PPTX
ITN_Module_3.pptx
PPTX
ITN_Module_8.pptx
PPTX
CCNA 1 Routing and Switching v5.0 Chapter 6
PPT
CCNA Advanced Routing Protocols
PPTX
ITN_Module_6.pptx
PDF
CCNAv5 - S2: Chapter4 Routing Concepts
PPTX
CCNA 200-301 Chapter 1-Introduction to TCP IP Networking.pptx
CCNA v6.0 ITN - Chapter 03
CCNA v6.0 ITN - Chapter 04
CCNA v6.0 ITN - Chapter 06
CCNA 1 Routing and Switching v5.0 Chapter 3
CCNA 2 Routing and Switching v5.0 Chapter 3
CCNA 2 Routing and Switching v5.0 Chapter 2
CCNA 2 Routing and Switching v5.0 Chapter 4
CCNA Product Overview.pptx
ITN_Module_2.pptx
CCNA 2 Routing and Switching v5.0 Chapter 7
Chapter 17 : static routing
IP Address
CCNA 2 Routing and Switching v5.0 Chapter 5
ITN_Module_3.pptx
ITN_Module_8.pptx
CCNA 1 Routing and Switching v5.0 Chapter 6
CCNA Advanced Routing Protocols
ITN_Module_6.pptx
CCNAv5 - S2: Chapter4 Routing Concepts
CCNA 200-301 Chapter 1-Introduction to TCP IP Networking.pptx
Ad

Similar to CCNA v6.0 ITN - Chapter 09 (20)

PPTX
Chp3 Transport Layer.pptxdata communication and networking
PPTX
CCNA (R & S) Module 01 - Introduction to Networks - Chapter 9
PDF
It nv51 instructor_ppt_ch9
PPTX
ITN6_Instructor_Materials_Chapter9git.pptx
PPTX
CCNA RS_NB - Chapter 5
PPTX
CCNA RS_ITN - Chapter 7
PPTX
CCNA 1 Routing and Switching v5.0 Chapter 7
PPTX
Ccna v5-S1-Chapter 7
PPTX
Networking essentials lect3
PDF
CCNAv5 - S1: Chapter 7 - Transport Layer
PDF
Ω…Ψ­Ω…Ψ― Ω…Ψ΄Ψ§Ψ±ΩŠ
PPTX
Chapter 7 : Transport layer
PPT
Transport Layer
PPT
Transport Layer [Autosaved]
PPTX
Unit 5.Transport Layer.pptx
PDF
Lecture set 7
PDF
UNit-4 Transport Layer and its protocols.pdf
PPTX
Chapter Five - Transport Layer.pptx
Β 
PPTX
Chp2 Application layer.pptxdata communication and networking
PPTX
16.) layer 3 (basic tcp ip routing)
Chp3 Transport Layer.pptxdata communication and networking
CCNA (R & S) Module 01 - Introduction to Networks - Chapter 9
It nv51 instructor_ppt_ch9
ITN6_Instructor_Materials_Chapter9git.pptx
CCNA RS_NB - Chapter 5
CCNA RS_ITN - Chapter 7
CCNA 1 Routing and Switching v5.0 Chapter 7
Ccna v5-S1-Chapter 7
Networking essentials lect3
CCNAv5 - S1: Chapter 7 - Transport Layer
Ω…Ψ­Ω…Ψ― Ω…Ψ΄Ψ§Ψ±ΩŠ
Chapter 7 : Transport layer
Transport Layer
Transport Layer [Autosaved]
Unit 5.Transport Layer.pptx
Lecture set 7
UNit-4 Transport Layer and its protocols.pdf
Chapter Five - Transport Layer.pptx
Β 
Chp2 Application layer.pptxdata communication and networking
16.) layer 3 (basic tcp ip routing)
Ad

More from Irsandi Hasan (18)

PPTX
VMware vShield - Overview
PPTX
CCNA RS_NB - Chapter 11
PPTX
CCNA RS_NB - Chapter 10
PPTX
CCNA RS_NB - Chapter 9
PPTX
CCNA RS_NB - Chapter 8
PPTX
CCNA RS_NB - Chapter 7
PPTX
CCNA RS_NB - Chapter 6
PPTX
CCNA RS_NB - Chapter 4
PPTX
CCNA RS_NB - Chapter 3
PPTX
CCNA RS_NB - Chapter 2
PPTX
CCNA RS_NB - Chapter 1
PPTX
CCNA RS_ITN - Chapter 11
PPTX
CCNA RS_ITN - Chapter 10
PPTX
CCNA RS_ITN - Chapter 9
PPTX
CCNA RS_ITN - Chapter 8
PPTX
CCNA RS_ITN - Chapter 6
PPTX
CCNA RS_ITN - Chapter 5
PPTX
CCNA RS_ITN - Chapter 4
VMware vShield - Overview
CCNA RS_NB - Chapter 11
CCNA RS_NB - Chapter 10
CCNA RS_NB - Chapter 9
CCNA RS_NB - Chapter 8
CCNA RS_NB - Chapter 7
CCNA RS_NB - Chapter 6
CCNA RS_NB - Chapter 4
CCNA RS_NB - Chapter 3
CCNA RS_NB - Chapter 2
CCNA RS_NB - Chapter 1
CCNA RS_ITN - Chapter 11
CCNA RS_ITN - Chapter 10
CCNA RS_ITN - Chapter 9
CCNA RS_ITN - Chapter 8
CCNA RS_ITN - Chapter 6
CCNA RS_ITN - Chapter 5
CCNA RS_ITN - Chapter 4

Recently uploaded (20)

PDF
RPKI Status Update, presented by Makito Lay at IDNOG 10
Β 
PPTX
Introduction to Information and Communication Technology
PPT
isotopes_sddsadsaadasdasdasdasdsa1213.ppt
PDF
Sims 4 Historia para lo sims 4 para jugar
PDF
An introduction to the IFRS (ISSB) Stndards.pdf
PDF
Unit-1 introduction to cyber security discuss about how to secure a system
PPTX
international classification of diseases ICD-10 review PPT.pptx
PPTX
Job_Card_System_Styled_lorem_ipsum_.pptx
PPTX
Power Point - Lesson 3_2.pptx grad school presentation
Β 
PDF
Tenda Login Guide: Access Your Router in 5 Easy Steps
PDF
Testing WebRTC applications at scale.pdf
PPTX
PptxGenJS_Demo_Chart_20250317130215833.pptx
PDF
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
PDF
πŸ’° π”πŠπ“πˆ πŠπ„πŒπ„ππ€ππ†π€π πŠπˆππ„π‘πŸ’πƒ π‡π€π‘πˆ 𝐈𝐍𝐈 πŸπŸŽπŸπŸ“ πŸ’°
Β 
PPTX
Internet___Basics___Styled_ presentation
PPTX
CHE NAA, , b,mn,mblblblbljb jb jlb ,j , ,C PPT.pptx
PPTX
Introduction about ICD -10 and ICD11 on 5.8.25.pptx
PDF
Automated vs Manual WooCommerce to Shopify Migration_ Pros & Cons.pdf
PPTX
artificial intelligence overview of it and more
PDF
Paper PDF World Game (s) Great Redesign.pdf
RPKI Status Update, presented by Makito Lay at IDNOG 10
Β 
Introduction to Information and Communication Technology
isotopes_sddsadsaadasdasdasdasdsa1213.ppt
Sims 4 Historia para lo sims 4 para jugar
An introduction to the IFRS (ISSB) Stndards.pdf
Unit-1 introduction to cyber security discuss about how to secure a system
international classification of diseases ICD-10 review PPT.pptx
Job_Card_System_Styled_lorem_ipsum_.pptx
Power Point - Lesson 3_2.pptx grad school presentation
Β 
Tenda Login Guide: Access Your Router in 5 Easy Steps
Testing WebRTC applications at scale.pdf
PptxGenJS_Demo_Chart_20250317130215833.pptx
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
πŸ’° π”πŠπ“πˆ πŠπ„πŒπ„ππ€ππ†π€π πŠπˆππ„π‘πŸ’πƒ π‡π€π‘πˆ 𝐈𝐍𝐈 πŸπŸŽπŸπŸ“ πŸ’°
Β 
Internet___Basics___Styled_ presentation
CHE NAA, , b,mn,mblblblbljb jb jlb ,j , ,C PPT.pptx
Introduction about ICD -10 and ICD11 on 5.8.25.pptx
Automated vs Manual WooCommerce to Shopify Migration_ Pros & Cons.pdf
artificial intelligence overview of it and more
Paper PDF World Game (s) Great Redesign.pdf

CCNA v6.0 ITN - Chapter 09

  • 1. Instructor Materials Chapter 9: Transport Layer CCNA Routing and Switching Introduction to Networks v6.0
  • 2. 3Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Chapter 9: Transport Layer Introduction to Networks 6.0 Planning Guide
  • 3. Chapter 9: Transport Layer CCNA Routing and Switching Introduction to Networks v6.0
  • 4. 14Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential ο‚§ 9.1 Transport Layer Protocols β€’ Explain how transport layer protocols and services support communications across data networks. β€’ Explain the purpose of the transport layer in managing the transportation of data in end-to-end communication. β€’ Explain characteristics of the TCP and UDP protocols, including port numbers and their uses. ο‚§ 9.2 TCP and UDP β€’ Compare the operations of transport layer protocols in supporting end-to-end communication. β€’ Explain how TCP session establishment and termination processes facilitate reliable communication. β€’ Explain how TCP protocol data units are transmitted and acknowledged to guarantee delivery. β€’ Describe 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. Chapter 9 - Sections & Objectives
  • 5. 15Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 9.1 Transport Layer Protocols
  • 6. 16Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Transportation of Data Role of the Transport Layer ο‚§ Responsible for establishing a temporary communication session between two applications and delivering data between them. ο‚§ Link between the application layer and the lower layers that are responsible for network transmission.
  • 7. 17Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Transportation of Data Transport Layer Responsibilities ο‚§ Tracking the Conversation - Tracks each individual conversation flowing between a source and a destination application. ο‚§ Segmentation - Divides the data into segments that are easier to manage and transport. Header used for reassembly is used for tracking. ο‚§ Identifying the Application - Ensures that even with multiple applications running on a device, all applications receive the correct data via port numbers.
  • 8. 18Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Transportation of Data Conversation Multiplexing ο‚§ Segmenting the data into smaller chunks enables many different communications to be multiplexed on the same network.
  • 9. 19Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Transportation of Data Transport Layer Reliability ο‚§ TCP/IP provides two transport layer protocols: β€’ Transmission Control Protocol (TCP) β€’ Considered reliable which ensures that all of the data arrives at the destination. β€’ Additional fields needed in header which increases size and delay. β€’ User Datagram Protocol (UDP) β€’ Does not provide for reliability. β€’ Fewer fields and is faster than TCP.
  • 10. 20Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Transportation of Data TCP ο‚§ TCP transport is similar to sending tracked packages. If a shipping order is broken up into several packages, a customer can check online to see the order of the delivery.
  • 11. 21Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Transportation of Data TCP (Cont.)
  • 12. 22Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Transportation of Data TCP (Cont.) TCP Three Responsibilities: ο‚§ Numbering and tracking data segments ο‚§ Acknowledging received data ο‚§ Retransmitting any unacknowledged data after a certain period of time
  • 13. 23Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Use UDP for less overhead and to reduce possible delays. ο‚§ Best-effort delivery (unreliable) ο‚§ No acknowledgment ο‚§ Similar to a non-registered letter Transportation of Data UDP
  • 14. 24Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential ο‚§ TCP - databases, web browsers, and email clients require that all data that is sent arrives at the destination in its original condition. ο‚§ UDP - if one or two segments of a live video stream fail to arrive, if disruption in the stream, may not be noticeable to the user. Transportation of Data The Right Transport Layer Protocol for the Right Application
  • 15. 25Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential ο‚§ Establishing a Session β€’ Connection-oriented protocol β€’ Ensures the application is ready to receive the data β€’ Negotiate the amount of traffic that can be forwarded at a given time ο‚§ Reliable Delivery β€’ Ensuring that each segment that the source sends arrives at the destination ο‚§ Same-Order Delivery β€’ Numbering & Sequencing the segments guarantees reassembly into the proper order ο‚§ Flow Control β€’ Regulate the amount of data the source transmits TCP and UDP Overview TCP Features
  • 16. 26Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential TCP and UDP Overview TCP Header ο‚§ Source and Destination Port used to identify application ο‚§ Sequence number used for data reassembly ο‚§ Acknowledgement number indicates data has been received and ready for next byte from source ο‚§ Header length – length of TCP segment header ο‚§ Control bits – purpose and function of TCP segment ο‚§ Window size – number of bytes that can be accepted at one time ο‚§ Checksum – Used for error checking of segment header and data 20 Bytes Total
  • 17. 27Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential TCP and UDP Overview UDP Features
  • 18. 28Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential ο‚§ UDP is a stateless protocol – no tracking ο‚§ Reliability handled by application TCP and UDP Overview UDP Header
  • 19. 29Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential ο‚§ Users expect to simultaneously receive and send email, view websites and make a VoIP phone call ο‚§ TCP and UDP manage multiple conversations by using unique identifiers called port numbers TCP and UDP Overview Multiple Separate Communications
  • 20. 30Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential ο‚§ Source Port β€’ Originating application port that is dynamically generated by sending device β€’ Example: Each separate HTTP conversation is tracked based on the source ports. ο‚§ Destination Port β€’ Tell the destination what service is being requested β€’ Example: Port 80 web services are being requested TCP and UDP Overview Port Numbers
  • 21. 31Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential TCP and UDP Overview Socket Pairs ο‚§ Source and destination port placed in segment ο‚§ Segments encapsulated in IP packet ο‚§ IP and port number = socket ο‚§ Example: 192.168.1.7:80 ο‚§ Sockets enable multiple processes to be distinguished ο‚§ Source port acts as a return address
  • 22. 32Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential TCP and UDP Overview Port Number Groups ο‚§ Well-known Ports (Numbers 0 to 1023) - These numbers are reserved for services and applications. ο‚§ Registered Ports (Numbers 1024 to 49151) - These port numbers are assigned by IANA to a requesting entity to use with specific processes or applications. ο‚§ Dynamic or Private Ports (Numbers 49152 to 65535) - Usually assigned dynamically by the client’s OS and used to identify the client application during communication.
  • 23. 33Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential TCP and UDP Overview Port Number Groups (Cont.) Well Known Port Numbers
  • 24. 34Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential TCP and UDP Overview The netstat Command ο‚§ Network utility that can be used to verify connections ο‚§ By default, will attempt to resolve IP addresses to domain names and port numbers to well- known applications ο‚§ -n option used to display IPs and ports in numerical form
  • 25. 35Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 9.2 TCP and UDP
  • 26. 36Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential TCP Communication Process TCP Server Process
  • 27. 37Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential TCP Communication Process TCP Server Process (Cont.)
  • 28. 38Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential ο‚§ Step 1 – Initiating client requests a session with server. TCP Communication Process TCP Connection Establishment ο‚§ Step 2 – Server acknowledges and requests a session with client. ο‚§ Step 3 – Client acknowledges communication session with server.
  • 29. 39Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential ο‚§ To close a connection, the Finish (FIN) control flag must be set in the segment header. ο‚§ To end each one-way TCP session, a two-way handshake, consisting of a FIN segment and an Acknowledgment (ACK) segment, is used. ο‚§ To terminate a single conversation supported by TCP, four exchanges are needed to end both sessions. TCP Communication Process TCP Session Termination
  • 30. 40Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential ο‚§ The 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. β€’ Informs the destination device that the source client intends to establish a communication session on that port number. ο‚§ The six bits in the Control Bits field of the TCP segment header are also known as flags. β€’ RST flag is used to reset a connection when an error or timeout occurs TCP Communication Process TCP Three-way Handshake Analysis
  • 31. 41Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential TCP Communication Process Video Demonstration - TCP 3-Way Handshake SYN SYN, ACK ACK
  • 32. 42Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential TCP Communication Process Lab – Using Wireshark to Observe the TCP 3-Way Handshake
  • 33. 43Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential ο‚§ Sequence numbers are assigned in the header of each packet. ο‚§ Represents the first data byte of the TCP segment. ο‚§ During session setup, an initial sequence number (ISN) is set - represents the starting value of the bytes. ο‚§ As data is transmitted during the session, the sequence number is incremented by the number of bytes that have been transmitted. ο‚§ Missing segments can then be identified. Reliability and Flow Control TCP Reliability – Ordered Delivery
  • 34. 44Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Reliability and Flow Control Video Demonstration - TCP Reliability – Sequence Numbers and Acknowledgments
  • 35. 45Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Reliability and Flow Control Video Demonstration – Data Loss and Retransmission
  • 36. 46Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Reliability and Flow Control TCP Flow Control – Window Size and Acknowledgments ο‚§ In the figure, the source is transmitting 1,460 bytes of data within each segment. ο‚§ Window size agreed on during 3-way handshake. ο‚§ Typically, PC B will not wait for 10,000 bytes before sending an acknowledgment. ο‚§ PC A can adjust its send window as it receives acknowledgments from PC B.
  • 37. 47Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Reliability and Flow Control TCP Flow Control – Congestion Avoidance ο‚§ Congestion causes retransmission of lost TCP segments ο‚§ Retransmission of segments can make the congestion worse ο‚§ To avoid and control congestion, TCP employs several congestion handling mechanisms, timers, and algorithms ο‚§ Example: Reduce the number of bytes it sends before receiving an acknowledgment
  • 38. 48Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential UDP Communication UDP Low Overhead versus Reliability ο‚§ UDP not connection- oriented ο‚§ No retransmission, sequencing, and flow control ο‚§ Functions not provided by the transport layer implemented elsewhere
  • 39. 49Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential UDP Communication UDP Datagram Reassembly UDP: Connectionless and Unreliable ο‚§ UDP reassembles data in order received and forwards to application ο‚§ Application must identify the proper sequence
  • 40. 50Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential UDP Communication UDP Server Processes and Requests Note: The Remote Authentication Dial-in User Service (RADIUS) server shown in the figure provides authentication, authorization, and accounting services to manage user access.
  • 41. 51Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential UDP Communication UDP Client Processes Clients Sending UDP Requests
  • 42. 52Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential UDP Communication UDP Client Processes (Cont.) Clients Sending UDP Requests
  • 43. 53Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential UDP Communication Lab – Using Wireshark to Examine a UDP DNS Capture
  • 44. 54Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential TCP or UDP Applications that use TCP TCP frees applications from having to manage reliability
  • 45. 55Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential TCP or UDP Applications that use UDP Three types of applications best suited for UDP: ο‚§ Live video and multimedia ο‚§ Simple request and reply ο‚§ Handle reliability themselves
  • 46. 56Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential TCP or UDP Lab – Using Wireshark to Examine TCP and UDP Captures
  • 47. 57Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 9.3 Chapter Summary
  • 48. 58Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Conclusion Packet Tracer – TCP and UDP Communications
  • 49. 59Β© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential ο‚§ Explain how transport layer protocols and services support communications across data networks. ο‚§ Compare the operations of transport layer protocols in supporting end-to-end communication. Conclusion Chapter 9: Transport Layer