Professional Documents
Culture Documents
Intermediate TCP/IP
Version 3.1
TCP Protocol
Three Functions:
Flow Control
Reliability by
sequence numbers
and
acknowledging
Synchronization
Version 3.1
Two Protocols:
TCP
connection oriented
UDP (tftp, DNS,
SNMP)
connectionless
Three-Way Handshake
This handshake establishes a round trip connection
between sender and receiver before data is transferred
Version 3.1
Windowing
Communicating devices
negotiate the amount of
unacknowledged data
that can be sent.
Sequencing Numbers
TCP applies sequence
numbers to the data
segments it is transmitting
so that the receiver will be
able to properly
reassemble the bytes in
their original order.
If TCP segments arrive out
of order, the segments
may be reassembled
incorrectly.
Sequencing numbers
indicate to the destination
device the correct order in
which to put the bytes
when they are received
Version 3.1
Sequencing Numbers:
Version 3.1
UDP
Connectionless Layer 4 protocol
Non-guaranteed
UDP segments do not contain sequence or
acknowledgement fields, so checksum is used to
determine if the data or header has been transferred
without corruption
Version 3.1
Version 3.1
10
Port Numbers
The three categories of port numbers are wellknown ports, registered ports, and dynamic or
private ports.
The first 1023 ports are well-known ports.
Registered ports range from 1024 to 49151.
Ports between 49152 and 65535 are defined as
dynamic or private ports.
End systems use port numbers to select proper
applications
Port numbers in the range of 0-1023 are controlled by the
Internet Assigned Numbers Authority (IANA)
Well known ports (23, 21, 80) and dynamic port numbers
are represented in the header of TCP & UDP segments
Version 3.1
11
Port Numbers
TCP Examples:
UDP Examples:
FTP-DATA - Port 20
DNS - Port 53
FTP - Port 21
TFTP - Port 69
Telnet - Port 23
SMTP - 25
Version 3.1
12
Transport Layer
IP addresses
Network Layer
MAC addresses
Version 3.1
13