What TCP/IP Provides to Applications
TCP/IP provides 6 major features:
- Connection orientation -
for two programs to employ TCP/IP,
one program must first request a connection to the destination
before communication may proceed.
- Reliable connection startup -
when two applications create a connection,
both must agree to the new connection.
No packets from previous, or ongoing, connections will interfere.
- Point-to-point communication -
each communication session has exactly 2 endpoints.
- Full-duplex communication -
once established,
a single connection may be used for messages in both directions.
This requires buffering at both each input and output 'end',
and enables each application to continue with computation while
data is being communicated.
- Stream interface -
from the application's viewpoint, data is sent and received as a
continuous sequence of bytes.
Applications need not (but may) communicate using fixed-sized records.
Data may be written and read in blocks of arbritary size.
- Graceful connection shutdown -
TCP/IP guarantees to reliably deliver all 'pending' data once a
connection is closed by one of the endpoints.
CITS3002 Computer Networks, Lecture 8, Transport layer protocols and APIs, p4, 24th April 2024.
|