Chapter 3
Chapter 3
Question 2
What action does the transport layer perform on the sender side?
Question 3
Which two transport protocols are available to Internet applications?
A) IP and ICMP
Question 4
In the household analogy on Page 5, what do the "letters in envelopes"
represent?
A) Hosts
B) Processes
C) Application messages
D) Transport headers
Question 5
How does the transport layer enhance network-layer services?
Question 6
What does the sender’s transport layer do with an application-layer
message?
Question 7
What is the role of the receiver’s transport layer when it receives a
segment?
Question 8
Which feature is NOT provided by UDP?
A) Unreliable delivery
B) Unordered delivery
C) Congestion control
D) Connectionless transport
Question 9
What service does TCP provide that UDP does not?
A) Connectionless transport
B) Reliable, in-order delivery
C) Best-effort delivery
D) No setup requirement
Question 10
What is multiplexing in the context of the transport layer?
Question 11
How does demultiplexing work at the receiver?
Question 12
Why might multimedia applications prefer UDP over TCP?
Explanation: Page 139 (Transport Layer: 3-139) notes that multimedia apps
use UDP to send data at a constant rate, avoiding TCP’s congestion
control, which may throttle rates. UDP does not guarantee bandwidth or
reliability.
Question 13
In the context of fairness, what advantage does an application gain by
opening multiple parallel TCP connections?
Question 14
What is a key characteristic of UDP’s delivery model?
Question 15
What happens when a TCP sender receives an ACK with a value greater than
SendBase?
Explanation: Page 150 (Transport Layer: 3-150) describes the TCP sender’s
action: if an ACK’s value (y) is greater than SendBase, it updates
SendBase to y and restarts the timer if there are unacked segments,
otherwise stops it.
Question 16
In the TCP 3-way handshake, what does the server send after receiving a
SYN segment?
A) A FIN segment
B) A SYNACK segment
C) An ACK segment
D) A RST segment
Explanation: Page 151 (Transport Layer: 3-151) shows the TCP 3-way
handshake FSM: after receiving a SYN (seq=x), the server sends a SYNACK
(seq=y, ACKnum=x+1) to acknowledge the client’s SYN and propose its
sequence number.
Question 17
What is the purpose of the TCP 3-way handshake?
D) To allocate bandwidth
Question 18
How does TCP close a connection?
A) With a single FIN segment
Correct Answer: C) With a 4-way handshake involving FIN and ACK segments
Question 19
What is the average TCP throughput formula, assuming no slow start and
constant data?
A) W / RTT
B) (3/4) * (W / RTT)
C) RTT / W
D) W * RTT
Explanation: Page 153 (Transport Layer: 3-153) provides the formula for
average TCP throughput: (3/4) * (W / RTT) bytes/sec, where W is the
window size at loss and RTT is the round-trip time, with an average
window size of (3/4)W.
Question 20
For a TCP connection with 1500-byte segments, 100ms RTT, and a desired 10
Gbps throughput, what is the required window size?
A) 833 segments
B) 8,333 segments
C) 83,333 segments
D) 833,333 segments
Explanation: Page 154 (Transport Layer: 3-154) states that for 10 Gbps
throughput with 1500-byte segments and 100ms RTT, the required window
size is 83,333 segments, calculated to keep enough segments in flight.
Question 21
What is the required segment loss probability to achieve 10 Gbps TCP
throughput over a long, fat pipe?
A) 2 * 10^-2
B) 2 * 10^-5
C) 2 * 10^-8
D) 2 * 10^-10
Explanation: Page 154 (Transport Layer: 3-154) cites the Mathis formula,
stating that a loss probability of L = 2 * 10^-10 is needed for 10 Gbps
throughput, indicating a very small loss rate for high-speed links.
Question 22
In the Go-Back-N (GBN) protocol, what happens if the sender’s nextseqnum
reaches base+N?
Explanation: Page 148 (Transport Layer: 3-148) shows the GBN sender FSM:
if nextseqnum >= base+N, the sender refuses new data, as the window is
full (limited to N unacked packets).
Question 23
What does the GBN receiver do if it receives a corrupt packet?
Correct Answer: A) Discards it and sends an ACK for the last correct
packet
Explanation: Page 149 (Transport Layer: 3-149) shows the GBN receiver
FSM: for a corrupt packet, it discards it and sends an ACK for the last
correctly received packet, triggering sender retransmission.
Question 24
What is a key limitation of the Go-Back-N protocol?
A) It requires connection setup
Question 25
What is the role of the timer in the GBN sender?
A) To measure RTT
Explanation: Page 148 (Transport Layer: 3-148) shows the GBN sender
starts a timer when sending the first unacked packet; if it expires, it
retransmits packets, detecting loss.
Question 26
In TCP, what does the SendBase variable represent?
Question 27
What happens if the TCP sender’s timer expires?
Question 28
Why does TCP use a 3-way handshake instead of a 2-way handshake?
C) To compress data
D) To allocate bandwidth
Explanation: Page 151 (Transport Layer: 3-151) shows the 3-way handshake
ensures both client and server synchronize initial sequence numbers and
ACKs, establishing a reliable connection.
Question 29
What is the purpose of flow control in TCP?
Question 30
What is congestion control designed to address?
Question 31
How does TCP’s congestion control differ from UDP’s approach?
Question 32
In TCP, what triggers the sender to start a timer?
A) Receiving an ACK
Explanation: Page 150 (Transport Layer: 3-150) states that the TCP sender
starts a timer when sending a segment if no timer is currently running,
to detect potential loss.
Question 33
What is a cumulative ACK in TCP?
Explanation: Page 150 (Transport Layer: 3-150) implies that TCP uses
cumulative ACKs, where an ACK (e.g., y) confirms all bytes up to y-1 have
been received correctly.
Question 34
What happens during the TCP connection closure if the client sends a FIN
segment?
B) The server sends an ACK and may send its own FIN later
Correct Answer: B) The server sends an ACK and may send its own FIN later
Explanation: Page 152 (Transport Layer: 3-152) shows that when the client
sends a FIN, the server responds with an ACK and later sends its own FIN,
completing the 4-way handshake.
Question 35
Why is a very small loss rate critical for TCP over long, fat pipes?
C) To reduce RTT
Explanation: Page 154 (Transport Layer: 3-154) explains that a small loss
rate (e.g., 2 * 10^-10) is needed for 10 Gbps throughput, as losses
reduce the window size, impacting many in-flight segments.
Question 36
In the GBN sender FSM, what does the base variable represent?
Explanation: Page 148 (Transport Layer: 3-148) shows that base is updated
to getacknum(rcvpkt)+1, representing the sequence number of the oldest
unacked packet.
Question 37
What is a disadvantage of TCP’s reliable delivery for real-time
applications?
D) It lacks multiplexing
Question 38
What does the TCP sender do if it receives a corrupt ACK?
Explanation: Page 150 (Transport Layer: 3-150) implies that a corrupt ACK
is not processed (similar to GBN on Page 148), and the sender waits for a
timeout to retransmit unacked segments.
Question 39
In TCP, what is the significance of the NextSeqNum variable?
Question 40
What is the primary goal of reliable data transfer principles?
Question 41
Why does TCP use a window size in its congestion control?
Explanation: Page 153 (Transport Layer: 3-153) discusses the window size
(W) as controlling the number of in-flight segments, adjusted by
congestion control to manage network load.
Question 42
What is a key difference between TCP and GBN?
Explanation: Page 148 (Transport Layer: 3-148) shows GBN retransmits all
packets after a loss, while TCP (Page 150) uses selective ACKs (implied)
to retransmit only lost segments.
Question 43
What does the TCP receiver do with out-of-order segments?
A) Discards them
C) Sends a NAK
D) Retransmits them
Explanation: Page 150 (Transport Layer: 3-150) implies TCP buffers out-
of-order segments (unlike GBN, which discards them), delivering them in
order to the application.
Question 44
What is the impact of a high RTT on TCP throughput?
A) It increases throughput
Question 45
In the GBN protocol, what triggers the sender to retransmit packets?
Question 46
What is the role of sequence numbers in reliable data transfer?
A) To encrypt data
C) To allocate bandwidth
D) To measure RTT
Question 47
Why might TCP’s congestion control reduce performance for multimedia
apps?
D) It lacks multiplexing
Question 48
What does the TCP sender do when there are no unacked segments after an
ACK?
Question 49
What is a key principle of congestion control?
Question 50
What is the significance of the 4-way handshake in TCP connection
closure?
B) It reallocates bandwidth
Explanation: Page 152 (Transport Layer: 3-152) shows the 4-way handshake
(FIN, ACK, FIN, ACK) ensures both client and server agree to close the
connection, preventing data loss.