Docsity

Transport Layer - Computer Networks - Lecture Slides, Slides of Computer Science

Toggle sidebar
bg1
3: Transport Layer 3a-1
Chapter 3: Transport Layer
Chapter goals:
understand principles
behind transport layer
services:
multiplexing/demultiplex
ing
reliable data transfer
flow control
congestion control
instantiation and
implementation in the
Internet
Chapter Overview:
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
Docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25

Partial preview of the text

Download Transport Layer - Computer Networks - Lecture Slides and more Slides Computer Science in PDF only on Docsity!

3: Transport Layer 3a-

Chapter 3: Transport Layer

Chapter goals:

 understand principles behind transport layer services:  multiplexing/demultiplex ing  reliable data transfer  flow control  congestion control

 instantiation and implementation in the Internet

Chapter Overview:

 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

 provide logical communication

between app’ processes running on different hosts  transport protocols run in end systems  transport vs network layer services:

 network layer: data transfer

between end systems

 transport layer: data

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

Multiplexing/demultiplexing

Recall: segment - unit of data

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

 connectionless:

 no handshaking between UDP sender, receiver  each UDP segment handled independently of others

Why is there a UDP?

 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

 other UDP uses

(why?):

 DNS

 SNMP

 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

send

side

receive

side

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

 underlying channel perfectly reliable

 no bit erros  no loss of packets

 separate FSMs for sender, receiver:

 sender sends data into underlying channel  receiver read data from underlying channel

3: Transport Layer 3a-

Rdt2.0: channel with bit errors

 underlying channel may flip bits in packet

 recall: UDP checksum to detect bit errors  the question: how to recover from errors:

 acknowledgements (ACKs): receiver explicitly tells sender

that pkt received OK

 negative acknowledgements (NAKs): receiver explicitly

tells sender that pkt had errors  sender retransmits pkt on receipt of NAK  human scenarios using ACKs, NAKs?

 new mechanisms in rdt2.0 (beyond rdt1.0 ):

 error detection  receiver feedback: control msgs (ACK,NAK) rcvr->sender

3: Transport Layer 3a-

rdt2.0: in action (no errors)

sender FSM receiver FSM

3: Transport Layer 3a-

rdt2.0: in action (error scenario)

sender FSM receiver FSM

3: Transport Layer 3a-

rdt2.1: sender, handles garbled ACK/NAKs

3: Transport Layer 3a-

rdt2.1: receiver, handles garbled ACK/NAKs