Chapter 10 - Transport Layer-1
Chapter 10 - Transport Layer-1
Transport Layer
10
Module Objectives
Module Title: Transport Layer
Reliability and Flow Control Explain how TCP protocol data units are transmitted and
acknowledged to guarantee delivery.
UDP Communication Compare the operations of transport layer protocols in
supporting end-to-end communication.
10.1 Transportation of Data
Role of the Transport Layer
Source Port A 16-bit field used to identify the source application by port number.
Destination Port A 16-bit field used to identify the destination application by port number.
Acknowledgment A 32-bit field used to indicate that data has been received and the next
Number byte expected from the source.
A 4-bit field known as ʺdata offsetʺ that indicates the length of the TCP
Header Length
segment header.
Reserved A 6-bit field that is reserved for future use.
A 6-bit field used that includes bit codes, or flags, which indicate the
Control bits
purpose and function of the TCP segment.
A 16-bit field used to indicate the number of bytes that can be accepted at
Window size
one time.
Checksum A 16-bit field used for error checking of the segment header and data.
The table identifies and describes the four fields in a UDP header.
UDP Header
Description
Field
Source Port A 16-bit field used to identify the source application by port number.
Length A 16-bit field that indicates the length of the UDP datagram header.
A 16-bit field used for error checking of the datagram header and
Checksum
data.
Applications that use UDP
▪ Live video and multimedia applications -
These applications can tolerate some data
loss but require little or no delay. Examples
include VoIP and live streaming video.
▪ Simple request and reply applications -
Applications with simple transactions
where a host sends a request and may or
may not receive a reply. Examples include
DNS and DHCP.
▪ Applications that handle reliability
themselves - Unidirectional
communications where flow control, error
detection, acknowledgments, and error
recovery is not required, or can be handled
by the application. Examples include SNMP
and TFTP.
10.4 Port Numbers
Multiple Separate Communications
TCP and UDP transport layer protocols use port numbers to manage multiple,
simultaneous conversations.
The source port number is associated with the originating application on the
local host whereas the destination port number is associated with the
destination application on the remote host.
Socket Pairs
• The source and destination ports
are placed within the segment.
• The segments are then
encapsulated within an IP packet.
• The combination of the source IP
address and source port number, or
the destination IP address and
destination port number is known
as a socket.
• Sockets enable multiple processes,
running on a client, to distinguish
themselves from each other, and
multiple connections to a server
process to be distinguished from
each other.
Port Number Groups
Port Group Number Range Description
C:\> netstat
Active Connections
Proto Local Address Foreign Address State
TCP 192.168.1.124:3126 192.168.0.2:netbios-ssn ESTABLISHED
TCP 192.168.1.124:3158 207.138.126.152:http ESTABLISHED
TCP 192.168.1.124:3159 207.138.126.169:http ESTABLISHED
TCP 192.168.1.124:3160 207.138.126.169:http ESTABLISHED
TCP 192.168.1.124:3161 sc.msn.com:http ESTABLISHED
TCP 192.168.1.124:3166 www.cisco.com:http ESTABLISHED
10.5 TCP Communication Process
TCP Server Processes
Each application process running on a
server is configured to use a port
number.
• An individual server cannot have two
services assigned to the same port
number within the same transport
layer services.
• An active server application assigned
to a specific port is considered open,
which means that the transport layer
accepts, and processes segments
addressed to that port.
• Any incoming client request
addressed to the correct socket is
accepted, and the data is passed to
the server application.
TCP Connection Establishment
This video shows the process of resending segments that are not initially
received by the destination.
TCP Flow Control – Window Size and Acknowledgments
UDP does not establish a connection. UDP provides low overhead data
transport because it has a small datagram header and no network
management traffic.
UDP Datagram Reassembly