Chapter 3: Transport layer Flashcards
What do transport services and protocols provide?
Logical communication between application processes running on different hosts
Logical communication
From an application’s perspective, it’s as if the hosts running the processes are directly connected
Where do transport protocols action?
In end systems
What does the sender in a transport protocol do?
- Creates transport layer segments; breaks application layer messages into chunks and adds a transport layer header to each chunk
- Passes them to a network layer
What does the receiver in a transport protocol do?
- Reassembles segments into messages
- Passes the messages to the application layer
What two transport protocols are available to Internet applications?
TCP & UDP
What is the role of the network layer in the relationship between a transport and network layer?
Logical communication between hosts
What is the role of the transport layer in the relationship between a network layer and a transport layer?
Logical communication between processes.
What does the transport layer rely on and possibly enhance?
The network layer
What does the sender in the transport layer do?
- Receives a application-layer message
- Determines segment header field values
- Creates a segment
- Passes the segment to IP
What does the receiver in a transport layer do?
- Receives a segment from IP
- Checks the header values
- Extracts the application-layer message
- Demuxes the message up to the application-layer via socket(s)
What are the two primary responsibilities of the TCP and UDP?
- Extend IP’s delivery service between processes
- Provide error checking
Describe the Transmission Control Protocol (TCP)
- Reliable, in-order delivert
- Connection-oriented service
- Congestion & flow control
- Connection set-up
Describe the User Datagram Protocol (UDP)
- Unreliable, unordered delivery
- Connectionless service
- No-frills extension of the “best-effort” IP
What services are not available with both TCP and UDP?
- Delay guarantees
- Bandwidth guarantees
What does multiplexing at the sender do?
- Handles data from socket(s)
- Adds a transport header
- Passes the segments to the network layer
What does demultiplexing at the receiver do?
- Uses header info to deliver received segments to correct socket
How does demultiplexing work?
- Host receives IP datagrams with a source IP address and a destination IP address
- Transport-layer examines the destination port number and directs the segment to the corresponding socket
- The segment’s data passes through the socket into the attached process
Describe connectionless multiplexing/demultiplexing
- Sender has to specify destination IP address and port number of datagram
- Receiving host receives UDP segment
- Receiving host directs UDP segment to socket with corresponding port number
Where will IP/UDP datagrams with the same destination port number and IP address, but different source IP addresses and/or source port numbers be directed at the receiving host?
To the same socket
Describe connection-oriented multiplexing and demultiplexing
Receiver uses all four values that identify the TCP socket to direct the segment to the appropriate socket
What are the 4 values that make up the 4-tuple that identifies a TCP socket?
Source IP address
Source port number
Destination IP address
Destination port number
What is multiplexing and demultiplexing based on?
Segments and datagram header field values
What is the only value that demultiplexing with UDP depends on?
Destination port number