




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































Transport Layer 3-
Transport Layer 3-
multiplexing/demultipl exing reliable data transfer flow control congestion control
UDP: connectionless transport TCP: connection-oriented transport TCP congestion control
Transport Layer 3-
between app processes running on different hosts transport protocols run in end systems send side: breaks app messages into segments, passes to network layer rcv side: reassembles segments into messages, passes to app layer more than one transport protocol available to apps Internet: TCP and UDP
application transport network data link physical
application transport network data link physical
network data link physical
network data link physical
network data link physical
network data link data linknetwork^ physical physical
Transport Layer 3-
network layer: logical
transport layer: logical
relies on, enhances, network layer services
12 kids sending letters to 12 kids
Transport Layer 3-
segment structure reliable data transfer flow control connection management
Transport Layer 3-
application
transport
network
link
physical
P1 application transport
network
link
physical
application
transport
network
link
physical
P3 (^) P1^ P2 P
host 1 host 2^ host 3
= socket = process
delivering received segments to correct socket
Demultiplexing at rcv host: gathering data from multiple sockets, enveloping data with header (later used for demultiplexing)
Multiplexing at send host:
Transport Layer 3-
DatagramSocket mySocket1 = new DatagramSocket(99111);
DatagramSocket mySocket2 = new DatagramSocket(99222);
checks destination port number in segment directs UDP segment to socket with that port number
Transport Layer 3-
DatagramSocket serverSocket = new DatagramSocket(6428);
Client IP:B
P
client IP: A
P3^ P1P
server IP: C
SP: 6428 DP: 9157
SP: 9157 DP: 6428
SP: 6428 DP: 5775
SP: 5775 DP: 6428
SP provides “return address”
Transport Layer 3-
Client IP:B
P
client IP: A
P4 P2^ P
server IP: C
SP: 9157 DP: 80
SP: 9157 DP: 80
P5 P6^ P
D-IP:C
S-IP: A D-IP:C
S-IP: B
SP: 5775 DP: 80
D-IP:C
S-IP: B
Transport Layer 3-
Client IP:B
P
client IP: A
P2^ P
server IP: C
SP: 9157 DP: 80
SP: 9157 DP: 80
P4 P
D-IP:C
S-IP: A D-IP:C
S-IP: B
SP: 5775 DP: 80
D-IP:C
S-IP: B
Transport Layer 3-
UDP: User Datagram Protocol [RFC 768]
“no frills,” “bare bones” Internet transport protocol
“best effort” service, UDP segments may be: lost delivered out of order to app
no handshaking between UDP sender, receiver each UDP segment handled independently of others
no connection establishment (which can add delay) simple: no connection state at sender, receiver small segment header no congestion control: UDP can blast away as fast as desired
Transport Layer 3-
UDP: more
often used for streaming multimedia apps loss tolerant rate sensitive
reliable transfer over UDP: add reliability at application layer application-specific error recovery!
source port # dest port #
32 bits
Application data (message)
UDP segment format
length checksum
Length, in bytes of UDP segment, including header
Transport Layer 3-
wraparound
sum checksum
Transport Layer 3-
segment structure reliable data transfer flow control connection management