You are on page 1of 27

4.

OSI Transport
Layer

CCNA1v4.0Chpt4 © 2007 SSA CATC. All rights reserved. 1


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
& how TCP and UDP handle this.
▪ Identify when it is appropriate to use TCP or UDP and
provide examples of applications that use each
protocol.

CCNA1V4.0Chpt4 © 2007 SSA CATC. All rights reserved 2


Transport Layer Role and
Services

CCNA1V4.0Chpt4 © 2007 SSA CATC. All rights reserved 3


Primary functions of Transport
Layer
▪ Maintain multiple communication streams
(conversations)
▪ Segmenting data
▪ Reassembling the segments into streams of application
data
▪ Identifying the different applications (via port numbers)

CCNA1V4.0Chpt4 © 2007 SSA CATC. All rights reserved 4


Additional Services

(Connection-Oriented) (Reliability)

(Sequencing) (Congestion management)

CCNA1V4.0Chpt4 © 2007 SSA CATC. All rights reserved 5


Reliability
▪ Different Applications have different requirements

CCNA1V4.0Chpt4 © 2007 SSA CATC. All rights reserved 6


How Reliability is implemented at
Transport Layer

▪ tracking transmitted data


▪ acknowledging received data
▪ retransmitting any unacknowledged data

CCNA1V4.0Chpt4 © 2007 SSA CATC. All rights reserved 7


The 2 Transport Layer Protocols

▪ TCP (Transport Control Protocol)


Connection-oriented protocol
Used by Web browsers, e-mail, file transfer

▪ UDP (User Datagram Protocol)


Connectionless protocol
Used by DNS, VoIP, Video Streaming

CCNA1V4.0Chpt4 © 2007 SSA CATC. All rights reserved 8


TCP & UDP pdu

20 bytes

8 bytes

CCNA1V4.0Chpt4 © 2007 SSA CATC. All rights reserved 9


Port numbers

▪ Port# identifies the application/service involved in the


session
Destination port = static
Source port = dynamic/random

▪ Port# + IP Address = socket number


e.g. 192.168.10.10:49152

CCNA1V4.0Chpt4 © 2007 SSA CATC. All rights reserved 10


Port Numbers

•Well Known:
•Reserved for common applications/services
•E.g. HTTP, etc.
•Registered:
•Registered for specific vendor applications
•If not used, can be used for Private/dynamic
•Dynamic/Private:
•Used by clients to assign source ports
CCNA1V4.0Chpt4 © 2007 SSA CATC. All rights reserved 11
TCP Ports

CCNA1V4.0Chpt4 © 2007 SSA CATC. All rights reserved 12


UDP Ports

CCNA1V4.0Chpt4 © 2007 SSA CATC. All rights reserved 13


TCP/UDP Ports

CCNA1V4.0Chpt4 © 2007 SSA CATC. All rights reserved 14


How port #s are used

CCNA1V4.0Chpt4 © 2007 SSA CATC. All rights reserved 15


Which ports am I using?

CCNA1V4.0Chpt4 © 2007 SSA CATC. All rights reserved 16


TCP 3-way Handshaking

CCNA1V4.0Chpt4 © 2007 SSA CATC. All rights reserved 17


TCP termination

CCNA1V4.0Chpt4 © 2007 SSA CATC. All rights reserved 18


Ordering of segments

CCNA1V4.0Chpt4 © 2007 SSA CATC. All rights reserved 19


Acknowledgements and Windows
Size

CCNA1V4.0Chpt4 © 2007 SSA CATC. All rights reserved 20


Lost segments & Congestions

CCNA1V4.0Chpt4 © 2007 SSA CATC. All rights reserved 21


UDP Protocol

CCNA1V4.0Chpt4 © 2007 SSA CATC. All rights reserved 22


UDP Protocol
▪ Often data send is single segments/datagrams

CCNA1V4.0Chpt4 © 2007 SSA CATC. All rights reserved 23


UDP Protocol

CCNA1V4.0Chpt4 © 2007 SSA CATC. All rights reserved 24


End
CCNA1V4.0Chpt4 © 2007 SSA CATC. All rights reserved 25
Questions?

CCNA1v4.0Chpt4 © 2007 SSA CATC. All rights reserved. 26


Activities & Labs

▪ PT 4.1.6: UDP and TCP Port Numbers (A)


▪ PT 4.2.5: Observing TCP Session Establishment and TCP
Session Termination (A)
▪ PT 4.4.4: UDP Operation (A)
▪ PT 4.5.3: Application and Transport Layer Protocols
Examination (B)
▪ Lab 4.5.1: Observing TCP and UDP using Netstat (A)
▪ Lab 4.5.2: TCP/IP Transport Layer Protocols, TCP and UDP
using WireShark (A)
▪ Lab 4.5.3: Application and Transport Layer Protocols
Examination using WireShark (A)
▪ PT 4.6.1: Skills Integration Challenge-Analyzing the
Application and Transport Layers (A)
CCNA1V4.0Chpt4 © 2007 SSA CATC. All rights reserved 27

You might also like