





























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!






























3: Transport Layer 3a-
understand principles behind transport layer services: multiplexing/demultiplex ing reliable data transfer flow control congestion control
instantiation and implementation in the Internet
transport layer services multiplexing/demultiplexing connectionless transport: UDP principles of reliable data transfer connection-oriented transport: TCP reliable transfer flow control connection management principles of congestion control TCP congestion control
3: Transport Layer 3a-
Transport services and protocols
between app’ processes running on different hosts transport protocols run in end systems transport vs network layer services:
between end systems
transfer between processes relies on, enhances, network layer services
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
3: Transport Layer 3a-
application transport network
M P
application transport network
exchanged between transport layer entities aka TPDU: transport protocol data unit receiver
Ht Hn
Demultiplexing: delivering received segments to correct app layer processes
segment
segment (^) M
application transport network
P M
M M
P3 (^) P
segment header
application-layer data
3: Transport Layer 3a-
Multiplexing/demultiplexing
multiplexing/demultiplexing: based on sender, receiver port numbers, IP addresses source, dest port #s in each segment recall: well-known port numbers for specific applications
gathering data from multiple app processes, enveloping data with header (later used for demultiplexing)
source port # dest port #
32 bits
application data (message)
other header fields
TCP/UDP segment format
Multiplexing:
3: Transport Layer 3a-
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
3: Transport Layer 3a-
UDP: more
often used for streaming multimedia apps loss tolerant rate sensitive
reliable transfer over UDP: add reliability at application layer application-specific error recover!
source port # dest port #
32 bits
Application data (message)
UDP segment format
length checksum
Length, in bytes of UDP segment, including header
3: Transport Layer 3a-
Principles of Reliable data transfer
important in app., transport, link layers
top-10 list of important networking topics!
characteristics of unreliable channel will determine complexity of reliable data transfer protocol (rdt)
3: Transport Layer 3a-
Reliable data transfer: getting started
rdt_send(): called from above, (e.g., by app.). Passed data to deliver to receiver upper layer
udt_send(): called by rdt, to transfer packet over unreliable channel to receiver
rdt_rcv(): called when packet arrives on rcv-side of channel
deliver_data(): called by rdt to deliver data to upper
3: Transport Layer 3a-
Rdt1.0: reliable transfer over a reliable channel
no bit erros no loss of packets
sender sends data into underlying channel receiver read data from underlying channel
3: Transport Layer 3a-
Rdt2.0: channel with bit errors
recall: UDP checksum to detect bit errors the question: how to recover from errors:
that pkt received OK
tells sender that pkt had errors sender retransmits pkt on receipt of NAK human scenarios using ACKs, NAKs?
error detection receiver feedback: control msgs (ACK,NAK) rcvr->sender
3: Transport Layer 3a-
rdt2.0: in action (no errors)
3: Transport Layer 3a-
rdt2.0: in action (error scenario)
3: Transport Layer 3a-
rdt2.1: sender, handles garbled ACK/NAKs
3: Transport Layer 3a-
rdt2.1: receiver, handles garbled ACK/NAKs