transport layer Flashcards
node to node
host to host
process to process
link layer
network layer
transport layer
logical communication between hosts
network layer
logical communication between processes
transport layer
Transport Layer Functionalities
hiding transmission details
Segmentation and reassembly
Addressing
Multiplexing / Demultiplexing
Reliable data transfer
A segment at the transport layer must carry
The destination port to specify remote process
As well as the source port to specify the sender process
A UDP socket is fully identified by
a destination IP address and a destination port number.
header size:
TCP is 20 bytes, UDP only 8 bytes.
sender will not overwhelm receiver
flow controlled:
Reactive
resend lost or corrupted packet (error control)
Proactive
Prevent packet loss at the receiver buffer (flow control) and at the router buffers (congestion control)
ARQ
mechanism that is based on retransmission when detecting an error is called ARQ: Automatic Repeat reQuest
TCP Flow Control: How It Works?
The TCP provides flow control by
having the sender maintain a
variable called the receive window.
* The receive window is used to give
the sender an idea of how much free
buffer space is available at the
receiver.
* Host B tells Host A how much spare
room it has in the connection buffer
by placing its current value of rwnd in
the receive window field of every
segment it sends to A.
* Initially, Host B sets rwnd = RcvBuffer.
Consequences of Congestion Control
Lost packets (buffer overflow at routers)
Long delays (queuing in router buffers)
actual window size
min(cwnd,rwnd)