Unit 5: Transport Layer and Congestion Control - Practice Quiz

CSE306 — Computer Networks 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 What is the main relationship between the transport layer and the network layer?

Relationship between Transport and Network Layer Easy
A. The network layer uses application-layer services
B. The transport layer replaces the network layer
C. The transport layer uses network-layer services
D. The network layer controls user applications

2 Which type of communication is primarily provided by the network layer?

Relationship between Transport and Network Layer Easy
A. Process-to-process communication
B. User-to-user communication
C. File-to-file communication
D. Host-to-host communication

3 Which transport-layer feature identifies the sending and receiving applications?

Transport Layer Services Easy
A. MAC addresses
B. Port numbers
C. Frame flags
D. Sequence routes

4 Which transport-layer protocol provides reliable, connection-oriented service?

Transport Layer Services Easy
A. ARP
B. IP
C. TCP
D. UDP

5 What is multiplexing at the transport layer?

Transport Layer Services Easy
A. Combining data from multiple applications
B. Assigning addresses to multiple routers
C. Converting packets into electrical signals
D. Selecting routes between multiple networks

6 What does throughput measure in a computer network?

Performance issues Easy
A. The size of a network address
B. The count of transport protocols
C. The rate of successful data delivery
D. The number of connected routers

7 What is network latency?

Performance issues Easy
A. The number of open ports
B. The size of a TCP header
C. The rate of creating addresses
D. The delay in delivering data

8 Which condition commonly causes packet loss and increased delay?

Performance issues Easy
A. Port numbering
B. Process multiplexing
C. Network congestion
D. Header compression

9 Which TCP header field is used to place received data in the correct order?

TCP header format Easy
A. Window size
B. Sequence number
C. Header checksum
D. Destination port

10 What is the minimum size of a TCP header without options?

TCP header format Easy
A. 20 bytes
B. 16 bytes
C. 32 bytes
D. 8 bytes

11 Which TCP header field helps detect corrupted segments?

TCP header format Easy
A. Source port
B. Sequence number
C. Window size
D. Checksum

12 How many main steps are used in the TCP connection-establishment handshake?

TCP handshaking operation Easy
A. Five steps
B. Three steps
C. Four steps
D. Two steps

13 Which TCP flag is sent first when a client starts a connection?

TCP handshaking operation Easy
A. FIN
B. SYN
C. RST
D. ACK

14 What does a server normally send in the second step of the TCP three-way handshake?

TCP handshaking operation Easy
A. RST-ACK
B. FIN
C. SYN-ACK
D. PSH

15 What is the fixed size of a UDP header?

UDP header format Easy
A. 8 bytes
B. 4 bytes
C. 20 bytes
D. 16 bytes

16 Which field is present in a UDP header?

UDP header format Easy
A. Sequence number
B. Congestion window
C. Acknowledgment number
D. Destination port

17 In network-assisted congestion control, which devices provide congestion information?

Network-assisted Congestion Control Algorithms Easy
A. File servers
B. Network routers
C. Domain names
D. Application users

18 What is the purpose of a choke packet?

Network-assisted Congestion Control Algorithms Easy
A. To verify a domain name
B. To report network congestion
C. To assign a port number
D. To establish a TCP connection

19 Which TCP congestion-control phase begins with a small congestion window?

TCP Congestion Control Easy
A. Connection closing
B. Slow start
C. Fast recovery
D. Flow control

20 What does TCP usually do when a retransmission timeout indicates congestion?

TCP Congestion Control Easy
A. Increases the segment header
B. Reduces the congestion window
C. Changes the destination port
D. Disables acknowledgments

21 A web browser sends data to a web server on another host. Which statement correctly describes the responsibilities of the network and transport layers?

Relationship between Transport and Network Layer Medium
A. The network layer provides host-to-host delivery, while the transport layer provides process-to-process delivery
B. The network layer provides process-to-process delivery, while the transport layer selects routes
C. The network layer manages application ports, while the transport layer assigns IP addresses
D. The network layer guarantees reliability, while the transport layer forwards packets between routers

22 Several IP packets carrying one TCP stream arrive at the destination out of order. Which layer is primarily responsible for restoring the original byte order?

Relationship between Transport and Network Layer Medium
A. The transport layer at the receiving host
B. The application layer at the sending host
C. The network layer at the final router
D. The data-link layer at the receiving host

23 A TCP server uses destination port 443 and simultaneously communicates with several clients. How does TCP distinguish these connections?

Transport Layer Services Medium
A. By using only the destination port number
B. By using the source IP, source port, destination IP, and destination port
C. By using the source and destination MAC addresses
D. By using only the source IP address

24 A live voice application prefers low delay and can tolerate occasional packet loss. Which transport service is most appropriate?

Transport Layer Services Medium
A. TCP, because it preserves message boundaries automatically
B. UDP, because it avoids connection setup and retransmission delays
C. TCP, because it retransmits every missing segment immediately
D. UDP, because it guarantees ordered delivery without acknowledgments

25 A path has a bandwidth of Mbps and a round-trip time of ms. What minimum amount of unacknowledged data is needed to approximately fill the path?

Performance issues Medium
A. bytes
B. bytes
C. bytes
D. bytes

26 A TCP sender is limited to a -byte window, and the RTT is ms. Ignoring overhead and loss, what is the approximate maximum throughput?

Performance issues Medium
A. bytes/s
B. bytes/s
C. bytes/s
D. bytes/s

27 A TCP segment has a Data Offset field value of . How many bytes long is its TCP header?

TCP header format Medium
A. bytes
B. bytes
C. bytes
D. bytes

28 A TCP receiver has correctly received bytes numbered through . Assuming no gaps exist, what acknowledgment number should it send?

TCP header format Medium
A.
B.
C.
D.

29 A TCP sender has a congestion window of bytes and receives an advertised receive window of bytes. If bytes are already unacknowledged, how much additional data may it send?

TCP header format Medium
A. bytes
B. bytes
C. bytes
D. bytes

30 A TCP client sends a SYN segment with sequence number . What acknowledgment number should appear in the server's SYN-ACK?

TCP handshaking operation Medium
A.
B.
C.
D.

31 A client sends SYN with sequence number , and the server responds with SYN-ACK using sequence number . Which values should the client's final ACK contain?

TCP handshaking operation Medium
A. Sequence number and acknowledgment number
B. Sequence number and acknowledgment number
C. Sequence number and acknowledgment number
D. Sequence number and acknowledgment number

32 The final ACK of a TCP three-way handshake is lost. The server later retransmits its SYN-ACK. What should the client normally do?

TCP handshaking operation Medium
A. Retransmit an ACK for the duplicate SYN-ACK
B. Send a reset and immediately close the connection
C. Wait for the server to transmit application data
D. Start a new connection using another destination port

33 The UDP Length field contains the value . How many bytes of application data are present in the datagram?

UDP header format Medium
A. bytes
B. bytes
C. bytes
D. bytes

34 Why does the UDP checksum calculation include an IP pseudoheader containing source and destination IP addresses?

UDP header format Medium
A. To calculate the route followed by the datagram
B. To provide reliable retransmission of lost datagrams
C. To replace the IPv4 header checksum at each router
D. To detect delivery to an incorrect network-layer endpoint

35 A router experiences incipient congestion and sets an ECN mark instead of dropping a packet. What is the expected end-to-end response?

Network-assisted Congestion Control Algorithms Medium
A. The receiver retransmits the marked packet using a different route
B. The router increases the receiver's advertised transport window
C. The router reserves bandwidth for all later packets in the flow
D. The receiver reports the mark, and the sender reduces its sending rate

36 In a choke-packet congestion-control scheme, what occurs when a router detects serious congestion?

Network-assisted Congestion Control Algorithms Medium
A. The router acknowledges all queued packets on behalf of the receiver
B. The router converts the transport connection from TCP to UDP
C. The router enlarges the receiver's window to drain queued packets
D. The router sends control feedback requesting the source to reduce traffic

37 A TCP sender begins slow start with a congestion window of MSS. Assuming no loss and no threshold is reached, what will the congestion window be after two complete RTTs?

TCP Congestion Control Medium
A. MSS
B. MSS
C. MSS
D. MSS

38 A TCP connection is in congestion avoidance with a congestion window of MSS. After one RTT in which all segments are acknowledged, what is the approximate new window?

TCP Congestion Control Medium
A. MSS
B. MSS
C. MSS
D. MSS

39 Using classic TCP behavior, a retransmission timeout occurs when the congestion window is MSS. What values are normally assigned to ssthresh and cwnd?

TCP Congestion Control Medium
A. ssthresh = MSS and cwnd = MSS
B. ssthresh = MSS and cwnd = MSS
C. ssthresh = MSS and cwnd = MSS
D. ssthresh = MSS and cwnd = MSS

40 TCP Reno receives a third duplicate ACK when cwnd is MSS. Immediately after entering fast recovery, what are the usual values of ssthresh and cwnd?

TCP Congestion Control Medium
A. ssthresh = MSS and cwnd = MSS
B. ssthresh = MSS and cwnd = MSS
C. ssthresh = MSS and cwnd = MSS
D. ssthresh = MSS and cwnd = MSS

41 A TCP server receives two IP packets with identical destination IP addresses and destination ports. Their source ports are also identical, but their source IP addresses differ. Assuming both packets belong to established connections, how does the transport layer demultiplex them?

Relationship between Transport and Network Layer Hard
A. It uses the IP identification and destination port fields
B. It uses only the destination port and protocol number
C. It uses the TCP sequence and acknowledgment numbers
D. It uses the source and destination socket-address pairs

42 A transport protocol runs over a network layer that may lose, duplicate, reorder, or indefinitely delay packets. Which service cannot be guaranteed solely by adding acknowledgments, sequence numbers, and retransmissions at the transport layer?

Transport Layer Services Hard
A. In-order delivery when communication eventually succeeds
B. Duplicate suppression using transport sequence numbers
C. Corruption detection using an end-to-end checksum
D. Delivery within a fixed finite deadline under all conditions

43 A bulk TCP flow uses a Mb/s path with an RTT of ms and an MSS of bytes. Its congestion window is at least the bandwidth-delay product, but its receive window is fixed at MSS. Ignoring headers and loss, what is its maximum throughput?

Performance issues Hard
A. Mb/s
B. Mb/s
C. Mb/s
D. Mb/s

44 An interactive TCP application performs two small writes. After transmitting the first segment, the sender's Nagle algorithm buffers the second write because unacknowledged data exists. The receiver uses delayed ACKs and waits briefly for another segment. What is the most likely performance effect?

Performance issues Hard
A. A latency spike lasting approximately one delayed-ACK interval
B. A throughput increase caused by larger advertised receive windows
C. A congestion collapse caused by repeated fast retransmissions
D. A connection reset caused by an invalid acknowledgment number

45 An IPv4 packet has total length bytes and IHL . Its enclosed TCP segment has Data Offset . Assuming no lower-layer padding, how many bytes of application data does the packet contain?

TCP header format Hard
A. bytes
B. bytes
C. bytes
D. bytes

46 A NAT changes both the source IPv4 address and source TCP port of a segment without modifying its payload. Why must the TCP checksum normally be updated?

TCP header format Hard
A. Only the source address participates in the TCP checksum calculation
B. Only the source port participates in the TCP checksum calculation
C. Neither value participates unless TCP options are present
D. Both modified values participate in the TCP checksum calculation

47 A client chooses ISN and a server chooses ISN . The client's third handshake segment acknowledges the server's SYN and carries bytes of data. What sequence and acknowledgment numbers does that segment contain, and what acknowledgment should the server return after receiving all its data?

TCP handshaking operation Hard
A. Client ; server acknowledgment
B. Client ; server acknowledgment
C. Client ; server acknowledgment
D. Client ; server acknowledgment

48 Two TCP endpoints simultaneously perform active opens and send SYN segments to each other. Under standard TCP state transitions, what happens when each endpoint receives the peer's SYN while in SYN-SENT?

TCP handshaking operation Hard
A. Each sends SYN+ACK and enters SYN-RECEIVED
B. Each sends only ACK and enters ESTABLISHED directly
C. Each retransmits SYN and remains permanently in SYN-SENT
D. Each sends a reset and returns immediately to CLOSED

49 A server enables SYN cookies during a SYN flood. Which trade-off follows directly from avoiding per-connection state between receipt of SYN and receipt of the final ACK?

TCP handshaking operation Hard
A. The client must retransmit every data segment after handshaking
B. Some negotiated options must be encoded with limited precision
C. The server cannot validate the final acknowledgment number
D. The server must disable checksums for half-open connections

50 What is the maximum UDP application payload that can fit in a conventional IPv4 datagram with a -byte IPv4 header and no IPv4 options, assuming the IPv4 total-length limit is bytes?

UDP header format Hard
A. bytes
B. bytes
C. bytes
D. bytes

51 A UDP datagram has a UDP Length value of bytes, so its header and data contain an odd number of octets. How is the Internet checksum computed?

UDP header format Hard
A. A zero octet is transmitted and included in the UDP Length field
B. The final data octet is omitted from the checksum calculation
C. A zero octet is appended for calculation but is not transmitted
D. The final data octet is duplicated before checksum calculation

52 A router experiences incipient congestion and receives an ECN-capable TCP packet. Which sequence correctly describes standard ECN feedback and reaction?

Network-assisted Congestion Control Algorithms Hard
A. Router drops the ACK; receiver marks CE; sender disables congestion control
B. Router marks CE; receiver echoes ECE; sender reduces its window and sends CWR
C. Router marks CWR; receiver clears CE; sender retransmits without reducing its window
D. Router marks ECE; receiver sends CWR; sender increases its congestion window

53 In an explicit-rate congestion-control scheme, a packet starts with an allowed rate of Mb/s. Three switches successively determine allowable rates of , , and Mb/s and may only reduce the rate field. What rate should be returned to the source?

Network-assisted Congestion Control Algorithms Hard
A. Mb/s
B. Mb/s
C. Mb/s
D. Mb/s

54 A TCP Reno sender has MSS when it receives three duplicate ACKs. No SACK is used. What are the congestion window and slow-start threshold immediately after entering fast recovery?

TCP Congestion Control Hard
A. MSS and MSS
B. MSS and MSS
C. MSS and MSS
D. MSS and MSS

55 A TCP sender's congestion window is MSS, but only MSS are outstanding when a retransmission timeout occurs. Using the rule , what values should be selected?

TCP Congestion Control Hard
A. MSS and MSS
B. MSS and MSS
C. MSS and MSS
D. MSS and MSS

56 During TCP NewReno fast recovery, an ACK advances the acknowledgment number but does not cover all data outstanding when fast recovery began. How should the sender interpret this partial ACK?

TCP Congestion Control Hard
A. Exit fast recovery and immediately enter ordinary congestion avoidance
B. Ignore the ACK because it does not acknowledge the recovery point
C. Reset the congestion window to one MSS and invoke slow start
D. Retransmit the next missing segment and remain in fast recovery

57 A receiver performs an ACK-division attack by acknowledging tiny portions of a segment with many separate ACKs. Which sender behavior most directly prevents excessive congestion-window growth during slow start?

TCP Congestion Control Hard
A. Increase the window only after a retransmission timeout expires
B. Increase the window according to newly acknowledged bytes
C. Increase the window according to the advertised receive window
D. Increase the window once for every received ACK packet

58 A sender has MSS, an advertised receive window of MSS, and MSS currently in flight. An ACK then cumulatively acknowledges MSS. If both windows are treated as unchanged for this calculation, how much new data may the sender immediately transmit?

TCP Congestion Control Hard
A. MSS
B. MSS
C. MSS
D. MSS

59 Two long-lived AIMD flows have congestion windows of MSS and MSS. Between shared congestion events, both increase by the same total amount; at each event, both halve their windows. What is the difference between their windows immediately after the third such decrease?

TCP Congestion Control Hard
A. MSS
B. MSS
C. MSS
D. MSS

60 Without TCP timestamps, a segment is retransmitted after timeout and an ACK later arrives that could acknowledge either the original or retransmitted copy. Under Karn's algorithm, how should the sender handle RTT estimation?

Performance issues Hard
A. Average both possible RTT samples and reset the current RTO
B. Measure RTT from the retransmission and halve the current RTO
C. Exclude the ACK from RTT sampling and retain timeout backoff
D. Measure RTT from the original transmission and clear backoff