Professional Documents
Culture Documents
Module 11
TCP/IP Application and Transport
Objectives
But
Butthey
theymade
madeno noprovision
provisionfor
forassuring
assuring
our
ourdata
datareliably
reliablytravels
travelsend-to-end
end-to-endacross
across
the
thevast
vastnetwork
networkpath.
path.
Introduction to transport layer
• The transport layer data stream is a logical
connection between the endpoints of a network.
• Its primary duties are to transport and regulate the
flow of information from source to destination
reliably and accurately.
• Transport services include the following basic
services:
– Segmentation of upper-layer application data
– Establishment of end-to-end operations
– Transport of segments from one end host to another end host
– Flow control provided by sliding windows
– Reliability provided by sequence numbers and
acknowledgments
Flow Control
Port
7 00
C -1
RF
TCP
• TCP supplies a virtual circuit between end-user
applications. These are its characteristics:
– connection-oriented.
– reliable.
– divides outgoing messages into segments.
– reassembles messages at the destination station.
– re-sends anything not received.
• Protocols that use TCP include FTP, SMTP, HTTP,
Telnet
TCP Header format
6 1
7
F C-
R
•• Source
Source Port
Port 16
16 bits.
bits.
•• Destination
Destination Port
Port 16
16 bits.
bits.
TCP Header format: Sequence
•• Sequence
Sequence Number:
Number: 32
32 bits
bits
–– The
The sequence
sequence number
number of of the
the
first
first data
data octet
octet in
in this
this segment
segment
(except
(except when
when SYN
SYN is is present).
present).
•• Acknowledgment
Acknowledgment Number:
Number: 32
32 bits
bits
–– This
This field
field contains
contains the
the value
value ofof the
the
next
next sequence
sequence number
number the
the sender
sender of of
the
the segment
segment is is expecting
expecting to
to receive.
receive.
TCP Header format: Code bits
•• Control
Control Bits:
Bits: 88 bits
bits
–– ACK:
ACK: Acknowledgment
Acknowledgment fieldfield significant
significant
–– RST:
RST: Reset
Reset the
the connection
connection
–– SYN:
SYN: Synchronize
Synchronize sequence
sequence numbers
numbers
–– FIN:
FIN: No
No more
more data
data from
from sender
sender
•• Window:
Window: 16
16 bits
bits
–– The
The number
number ofof data
data octets
octets beginning
beginning
with
with the
the one
one indicated
indicated inin the
the
acknowledgment
acknowledgment field field which
which the the sender
sender
of
of this
this segment
segment isis willing
willing to to accept.
accept.
Three-way handshake
6 8
C -7
RF
Presentation: Functions
TCP/IP Application Layer
• Handles high-level
protocols, issues of
representation, encoding,
and dialog control.
• The TCP/IP combines all
application-related issues
into one layer, and assures
this data is properly
packaged for the next layer.
– FTP, HTTP, SMTP, DNS,
SNMP ...
– Format of data, data
structure, encode …
– Dialog control, session
management …
Interfaces
• Direct network application:
– The application layer provides a direct interface for the rest of
the OSI model by using network applications.
– Client server: WEB, FTP, Mail
• Indirect network application:
– The application layer provides an indirect interface for the rest
of the OSI model by using standalone applications.
– The redirector directs requests from local computer to the
proper network resources. Applications on client never have to
recognize the network.
– Redirector: network driver, network printer
Client-Server application
•• The
The client
client side
side is
is located
located on
on the
the local
local
computer
computer and
and isis the
the requestor
requestor of
of the
the
services.
services.
•• The
The server
server side
side is
is located
located on
on aa remote
remote
computer
computer and
and provides
provides services
services inin
response
response toto the
the client’s
client’s requests.
requests.
Network driver
•• The
The applications
applications on
on the
the client
client never
never have
have
to
to recognize
recognize the
the network.
network.
•• Redirectors
Redirectors expand
expand the
the capabilities
capabilities of
of
non-network
non-network software.
software.
Make and Break a connection
DNS
..
com
com edu
edu gov
gov vn
vn frfr uk
uk
vnn
vnn com
com edu
edu gov
gov
Request
Request ..
Reply
Reply
vn
vn Address
Address com
com
of
ofcom
com
server
server
Address
Addressof of
yahoo.com
yahoo.com
vnn
vnn server
server yahoo
yahoo
Address
Addressof
of
www.yahoo.com Address
Addressof
of
www.yahoo.com
www.yahoo.com
www.yahoo.com
FTP
TFTP
• Trivial File Transfer Protocol (TFTP) is a
connectionless service that uses UDP.
• TFTP is designed to be small and easy to
implement.
• TFTP is used on the router to transfer
configuration files and Cisco IOS images
and to transfer files between systems that
support TFTP.
• TFTP can read, write, or mail files to or from
a remote server but it cannot list directories
and currently has no provisions for user
authentication.
HTTP
Telnet
SNMP
Summary