Beruflich Dokumente
Kultur Dokumente
Chapter 23
Process-to-Process Delivery:
UDP, TCP
Copyright The McGraw-Hill Companies, Inc. Permission required or reproduction or display.
McGraw-Hill
23-1 PROCESS-TO-PROCESS DELIVERY
23-1 PROCESS-TO-PROCESS DELIVERY
The transport layer is responsible for process-to-
The transport layer is responsible for process-to-
process deliverythe delivery of a packet, part of a
process deliverythe delivery of a packet, part of a
message, from one process to another. Two processes
message, from one process to another. Two processes
communicate in a client/server relationship,
communicate in a client/server relationship,
In Client!"er#er communication, our entities must $e deined%
&"ending 'ode
&(ocal Host IP
&(ocal Process Port num$er
&)ecei#ing 'ode
& )emote host IP
&)emote Process I* Port num$er
McGraw-Hill
Position of UDP in the TCP/IP protocol suite
McGraw-Hill
'esting o TP*+, Pac,ets, and -rames
Packetizing
"ender side% $rea,s application messages into segments, passes them to networ,
layer
Transport layer at the recei#ing host deli#er data to the recei#ing process
Connection control
Connection-oriented
Connectionless
Addressing
Reliability
-low control
1rror Control
transport
-end transport
McGraw-Hill
The Internet Transport Layer
The process recei#es messages rom, and sends messages into the
networ, through its socket
$%a#ple&
Connectionless
2 server application that uses +*P ser#es only 5$+ re6uest at a time. 2ll other requests are
stored in a 6ueue waiting or ser#ice.
+*P doe not do anyt(ing to recover rom an error it simply discard the segment
2pplication accepts ull responsi$ility or errors
Process-to-Process deli#ery
1rror chec,ing .howe#er, i there is an error +*P does '4T do anything to reco#er rom
error. #t 'ill 9ust discard the message
McGraw-Hill
Figure 23.12 $ueues in !"P
McGraw-Hill
)'! .pplications
Multi#edia applications/
nternet telephony/
real-ti#e-video conferencing
.udio
1outing !rotocols
McGraw-Hill
Figure 23.: !ser datagram format
$eader si%e & ' bytes
Mini#u# )'! !rocess data si2e 3 bytes
Ma%i#u# )'! !rocess data si2e=
455+5 6 *3 ,network layer headers- - 7 ,)'! headres-=
6550( bytes
McGraw-Hill
UDP length
= IP length IP headers length
%ote
McGraw-Hill
56-6 Transmission Control Protocol
.TCP/
8onnection-oriented
,establish#ent " ter#ination-
1eliable
(ull-duple%
McGraw-Hill
Connection-4riented
7irtual connection since TCP protocol will ma,e sure that segments
are gi#en to the recei#er application in the same order as they were
sent $y the sender e#en i they tra#el through dierent physical paths
2 ser#er application that uses TCP can handle many client requests at
the same time each has its o'n connection.
McGraw-Hill
Connection establis(ment and termination
Connection establis(ment
Connection release
)ombine
d into
one ste!
McGraw-Hill
Figure 23.13 !tream delivery
TCP esta$lishes a #irtual connection
*)P will deliver segments to the a!!lications in
order and without error+ lost+ or du!licates
McGraw-Hill
(ull 'uple%
I the sender does not recei#e 2C9 within a speciied amount o time, the
sender retransmits the data.
Telnet