1/7
Looks like no tags are added yet.
What are the main functions of the transport layer?
Provides logical communication between application processes on different hosts
Sender: Breaks application messages into segments → network layer
Receiver: Reassembles segments into messages → application layer
Two Internet transport protocols:
TCP
UDP
Recall: Transport layer = process-to-process communication + segmentation and reassembly.
What is the difference between network and transport layer services?
Network layer: Logical communication between hosts
Transport layer: Logical communication between processes
Relies on and enhances network layer services
Recall – Household analogy:
Hosts = Houses
Processes = Kids
Application messages = Letters in envelopes
What are the main transport layer actions at the sender and receiver?
- Sender:
Receives application message
Determines segment header values
Creates segment → passes to IP
- Receiver:
Receives segment from IP
Checks header values
Extracts application message
Demultiplexes message to application via socket
Recall: Sender = creates segments | Receiver = extracts and delivers messages.
What are the two principal Internet transport protocols and their services?
- TCP (Transmission Control Protocol):
Reliable, in-order delivery
Congestion control
Flow control
Connection setup
- UDP (User Datagram Protocol):
Unreliable, unordered delivery
No-frills extension of best-effort IP
- Neither provides:
Delay guarantees
Bandwidth guarantees
Recall: TCP = reliable + connection-oriented | UDP = unreliable + connectionless.
What are transport layer multiplexing and demultiplexing?
- Multiplexing (sender):
Handles data from multiple sockets
Adds transport header information
- Demultiplexing (receiver):
Uses header information to deliver received segments to the correct socket
Recall: Multiplexing = combines data | Demultiplexing = delivers data to correct socket.
How does transport layer demultiplexing work?
Host receives IP datagrams, each containing:
Source and destination IP addresses
One transport-layer segment
Source and destination port numbers
Uses IP addresses + port numbers to deliver segment to the correct socket
Recall: Demultiplexing = uses IP addresses and port numbers to identify the correct socket.
Happens at all layers.
How does connectionless (UDP) demultiplexing work?
Socket creation: Specify a host-local port number
Sender: Specifies destination IP address + port number
Receiver: Checks destination port number and delivers segment to matching socket
Segments with the same destination port go to the same socket, even if source IPs or ports differ
Recall: UDP demultiplexing = destination port number only.
How does connection-oriented (TCP) demultiplexing work?
Each TCP socket identified by a 4-tuple:
Source IP address + source port
Destination IP address + destination port
Server supports multiple simultaneous TCP sockets
Each socket has a unique 4-tuple
Each associated with a different client
Receiver uses all 4 values to deliver segment to correct socket
Recall: TCP demultiplexing = uses all 4 values (source/destination IP + port).