Unit 5: Transport layer - Practice Quiz

CAP7001 — Data Communication And Networking 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 What does a port address identify at the transport layer?

Port addresses Easy
A. A network routing path
B. A device manufacturer
C. A specific application process
D. A physical network cable

2 How many bits are used for a port number in TCP and UDP?

Port addresses Easy
A. 64 bits
B. 32 bits
C. 8 bits
D. 16 bits

3 Which range contains the well-known port numbers?

Port addresses Easy
A. 1024 to 49151
B. 0 to 1023
C. 1024 to 65535
D. 49152 to 65535

4 Which two components form a socket address?

Socket address Easy
A. IP address and port number
B. Port number and sequence number
C. IP address and subnet mask
D. MAC address and frame number

5 What does the socket address 192.168.1.10:80 represent?

Socket address Easy
A. A host and application endpoint
B. A cable and channel number
C. A router and routing protocol
D. A frame and error code

6 Which type of transport protocol is UDP?

User Datagram Protocol (UDP) Easy
A. Circuit-switched
B. Path-dependent
C. Connectionless
D. Connection-oriented

7 Which feature is normally associated with UDP?

User Datagram Protocol (UDP) Easy
A. Guaranteed packet delivery
B. Ordered byte delivery
C. Connection establishment
D. Low protocol overhead

8 Which application commonly uses UDP because timely delivery is important?

User Datagram Protocol (UDP) Easy
A. Remote file backup
B. Live audio streaming
C. Email message retrieval
D. Reliable file transfer

9 Which type of transport protocol is TCP?

Transmission Control Protocol (TCP) Easy
A. Broadcast-only
B. Stateless
C. Connection-oriented
D. Connectionless

10 Which TCP feature helps place received data in the correct order?

Transmission Control Protocol (TCP) Easy
A. Subnet masks
B. Sequence numbers
C. Port ranges
D. MAC addresses

11 What does TCP do when data is lost during transmission?

Transmission Control Protocol (TCP) Easy
A. Disables error detection
B. Retransmits the missing data
C. Changes the destination port
D. Broadcasts the entire message

12 What is the main purpose of TCP's 3-way handshake?

3-way handshaking Easy
A. To establish a connection
B. To assign an IP address
C. To encrypt application data
D. To select a routing path

13 What is the correct order of messages in TCP's 3-way handshake?

3-way handshaking Easy
A. SYN-ACK, ACK, SYN
B. SYN, SYN-ACK, ACK
C. ACK, SYN, SYN-ACK
D. SYN, ACK, SYN-ACK

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

3-way handshaking Easy
A. SYN
B. FIN
C. RST
D. ACK

15 What is network congestion?

Congestion control Easy
A. Excess traffic overloading the network
B. A cable using full-duplex mode
C. Insufficient users accessing the network
D. A host receiving a new address

16 Which TCP mechanism begins transmission with a small congestion window?

Congestion control Easy
A. Packet filtering
B. Fast forwarding
C. Port scanning
D. Slow start

17 What is a common effect of severe network congestion?

Congestion control Easy
A. Reduced header size
B. Increased cable length
C. Increased packet loss
D. Reduced port range

18 What does QoS stand for in computer networking?

Quality of service Easy
A. Query of Servers
B. Quantity of Signals
C. Quality of Service
D. Queue of Systems

19 Which QoS characteristic measures the variation in packet delay?

Quality of service Easy
A. Bandwidth
B. Throughput
C. Reliability
D. Jitter

20 Which technique improves QoS by giving important traffic earlier access to transmission?

Techniques to improve QoS Easy
A. Priority scheduling
B. Address resolution
C. Domain name lookup
D. Packet fragmentation

21 A client sends an HTTP request from ephemeral port 49160 to a web server. Which source and destination port pair will normally appear in the request segment?

Port addresses Medium
A. Source 53, destination 49160
B. Source 80, destination 49160
C. Source 49160, destination 53
D. Source 49160, destination 80

22 Two browser tabs on one computer connect to the same web server and destination port. How can the transport layer distinguish their connections?

Port addresses Medium
A. By changing the server IP address
B. By changing the transport protocol
C. By assigning different destination ports
D. By assigning different source ports

23 A server has IP address 192.0.2.15 and listens for HTTPS traffic on port 443. Which value represents its socket address?

Socket address Medium
A. 443:192.0.2.15
B. 192.0.2.443:15
C. 192.0.2.15:443
D. 192.0.2.15:80

24 Which set of values uniquely identifies a TCP connection between two hosts?

Socket address Medium
A. Source and destination MAC addresses
B. Source IP and destination port only
C. Source port and destination IP only
D. Source and destination socket addresses

25 A live voice application prefers timely delivery and can tolerate occasional packet loss. Why is UDP often selected?

User Datagram Protocol (UDP) Medium
A. It establishes a reliable byte-stream connection
B. It adjusts its sending window after every loss
C. It avoids connection setup and retransmission delays
D. It guarantees delivery using cumulative acknowledgments

26 A UDP datagram has a total length of 508 bytes. How many bytes belong to application data?

User Datagram Protocol (UDP) Medium
A. 508 bytes
B. 504 bytes
C. 500 bytes
D. 488 bytes

27 A UDP receiver detects a checksum mismatch in an arriving datagram. What is the normal transport-layer response?

User Datagram Protocol (UDP) Medium
A. Discard the corrupted datagram
B. Request selective retransmission
C. Reset the UDP connection
D. Correct the corrupted payload

28 A TCP sender transmits 600 bytes beginning with sequence number 2400. If all bytes arrive correctly, what acknowledgment number should the receiver send?

Transmission Control Protocol (TCP) Medium
A. 2999
B. 3000
C. 3001
D. 2401

29 A TCP receiver advertises a window of 4000 bytes, and 1500 transmitted bytes remain unacknowledged. How much additional data may the sender transmit?

Transmission Control Protocol (TCP) Medium
A. 1500 bytes
B. 2500 bytes
C. 4000 bytes
D. 5500 bytes

30 A TCP segment is lost, but later segments reach the receiver. Which TCP behavior most directly helps the sender infer this loss before a timeout?

Transmission Control Protocol (TCP) Medium
A. Repeated connection requests
B. Changing destination port numbers
C. Increasing the advertised window
D. Repeated duplicate acknowledgments

31 A client begins a TCP connection with sequence number 700 and sends SYN. The server chooses sequence number 3000. What should the server send next?

3-way handshaking Medium
A. SYN, sequence 3001, acknowledgment 701
B. SYN + ACK, sequence 3000, acknowledgment 701
C. FIN + ACK, sequence 3000, acknowledgment 700
D. ACK, sequence 3000, acknowledgment 700

32 After receiving a server's SYN + ACK with sequence number 500 and acknowledgment number 101, what final handshake segment should the client send?

3-way handshaking Medium
A. SYN with acknowledgment number 500
B. FIN with acknowledgment number 501
C. ACK with acknowledgment number 501
D. ACK with acknowledgment number 101

33 Why does TCP use a three-way handshake rather than only exchanging a client request and a server acknowledgment?

3-way handshaking Medium
A. To reserve a fixed route through every router
B. To guarantee that congestion will not occur
C. To negotiate the application-layer message format
D. To confirm both directions and synchronize sequence numbers

34 A TCP sender has a congestion window of 2 MSS at the start of slow start. Assuming every segment is acknowledged and no loss occurs, what is the window after two RTTs?

Congestion control Medium
A. 4 MSS
B. 6 MSS
C. 10 MSS
D. 8 MSS

35 A TCP sender detects segment loss through three duplicate acknowledgments rather than a timeout. Which action is most appropriate?

Congestion control Medium
A. Increase the window and resend all segments
B. Perform fast retransmit and reduce the congestion window
C. Keep the same window and ignore the loss
D. Close the connection and restart the handshake

36 A TCP flow has a receiver window of 12 KB and a congestion window of 8 KB. What is the maximum amount of unacknowledged data the sender may have in transit?

Congestion control Medium
A. 20 KB
B. 4 KB
C. 8 KB
D. 12 KB

37 A video conference has enough average bandwidth but experiences irregular packet arrival times, causing choppy playback. Which QoS characteristic is the main problem?

Quality of service Medium
A. Throughput
B. Reliability
C. Jitter
D. Routing

38 Which application generally has the strictest requirement for low end-to-end delay?

Quality of service Medium
A. Software download
B. Email synchronization
C. Nightly file backup
D. Interactive voice call

39 A router must give voice packets faster service than bulk file-transfer packets during congestion. Which technique best supports this goal?

Techniques to improve QoS Medium
A. Priority queuing
B. Address resolution
C. Error correction
D. Packet fragmentation

40 A network operator wants to limit a customer's traffic to an agreed rate while allowing short bursts to use accumulated credits. Which mechanism is most suitable?

Techniques to improve QoS Medium
A. Token bucket
B. Stop-and-wait
C. Fast retransmit
D. Leaky bucket

41 A host has a TCP server bound to port 5000 and a UDP application bound to port 5000 on the same local IP address. Which statement best describes this configuration?

Port addresses Hard
A. It is valid only when both applications use different remote addresses
B. It is valid because TCP and UDP maintain separate port-number spaces
C. It is invalid because a port number must be unique across all protocols
D. It is invalid unless one application binds to the wildcard address

42 A TCP server accepts connections from three clients. All established connections use the server's IP address and port 443. Why can the operating system still demultiplex their segments correctly?

Socket address Hard
A. Each accepted connection is assigned a different server port automatically
B. Each connection uses a distinct TCP protocol number in the IP header
C. Each client places a globally unique identifier in the TCP options
D. Each connection has a distinct combination of local and remote socket addresses

43 An IPv4 UDP sender computes a checksum whose one's-complement result is numerically zero. What value is placed in the UDP checksum field?

User Datagram Protocol (UDP) Hard
A. The checksum of the UDP header without the payload
B. All zero bits, because that is the computed checksum
C. The one's-complement sum before the final complement
D. All one bits, to distinguish it from an omitted checksum

44 An IPv4 packet carries a UDP datagram whose UDP Length field is smaller than the IP payload length but is at least 8 bytes. Assuming the datagram is otherwise valid, how is the excess IP payload treated by UDP?

User Datagram Protocol (UDP) Hard
A. It is interpreted as a second UDP datagram with an implicit header
B. It is ignored because the UDP Length field defines the datagram boundary
C. It is delivered because the IP payload length overrides the UDP Length field
D. It is appended to the payload after UDP checksum verification

45 A TCP endpoint chooses initial sequence number 4000, sends a SYN, transmits 1200 data bytes, and then sends a FIN. No other data is sent. What acknowledgment number should confirm receipt of everything?

Transmission Control Protocol (TCP) Hard
A. 5201
B. 5203
C. 5200
D. 5202

46 A TCP receiver advertises acknowledgment number 7001 and a receive window of zero. Which sender behavior remains permitted by TCP persist processing?

Transmission Control Protocol (TCP) Hard
A. Periodically transmitting a zero-window probe to obtain an updated window
B. Sending one full congestion window because acknowledgment 7001 is cumulative
C. Continuing normal transmission until the receiver drops an arriving segment
D. Closing the connection immediately because a zero window signals termination

47 A server receives an old duplicate SYN for a connection that no longer exists and replies with a SYN-ACK. The original client currently has no matching connection state. Under normal TCP behavior, what prevents the obsolete connection from becoming established?

3-way handshaking Hard
A. The server enters TIME-WAIT before the client can acknowledge the SYN-ACK
B. The client returns a reset because the SYN-ACK matches no active connection
C. The server discards the SYN-ACK after detecting its own duplicate sequence number
D. The client acknowledges the SYN-ACK but immediately advertises a zero window

48 Two TCP hosts simultaneously perform active opens to each other using matching endpoint pairs. Each is initially in SYN-SENT. Which transition correctly describes a valid simultaneous open?

3-way handshaking Hard
A. Each receives a SYN, remains in SYN-SENT, and waits for the peer to time out
B. Each receives a SYN, sends SYN-ACK, enters SYN-RECEIVED, and later enters ESTABLISHED
C. Each receives a SYN, sends ACK only, and immediately enters ESTABLISHED
D. Each receives a SYN, sends RST, enters CLOSED, and retries with a passive open

49 Why does the endpoint performing the active TCP close normally remain in TIME-WAIT for approximately twice the maximum segment lifetime?

Transmission Control Protocol (TCP) Hard
A. To keep the receive window open for data sent after the peer's FIN
B. To reserve congestion-window state for a later connection to the peer
C. To guarantee that all application data has reached persistent storage
D. To retransmit the final ACK and let delayed duplicate segments expire

50 TCP Reno detects loss through three duplicate ACKs while , with 20 MSS outstanding. Immediately after entering fast recovery, what are the usual values of and ?

Congestion control Hard
A. and
B. and
C. and
D. and

51 During TCP NewReno fast recovery, an ACK acknowledges some but not all data that was outstanding when recovery began. How is this partial ACK normally handled?

Congestion control Hard
A. Set the congestion window to one MSS and restart slow start
B. Exit fast recovery and continue ordinary congestion avoidance immediately
C. Ignore the ACK until it cumulatively acknowledges every outstanding segment
D. Retransmit the next unacknowledged segment and remain in fast recovery

52 A TCP sender has and receives an advertised window of . It currently has of unacknowledged data in flight. Ignoring segmentation limits, how much additional data may it send?

Congestion control Hard
A.
B.
C.
D.

53 A 12,000-bit packet crosses three store-and-forward links, each operating at 6 Mbps with 4 ms propagation delay. The two routers each add 3 ms of queueing delay. Ignoring processing time, what is the end-to-end delay?

Quality of service Hard
A. 26 ms
B. 20 ms
C. 22 ms
D. 24 ms

54 A token bucket initially contains 12 KB of tokens and replenishes at 2 KB/s. A source transmits continuously at 10 KB/s whenever tokens permit. What is the maximum initial duration for which 10 KB/s can be sustained?

Techniques to improve QoS Hard
A. 2.0 s
B. 6.0 s
C. 1.5 s
D. 1.2 s

55 A byte-oriented leaky-bucket shaper has a constant output rate of 3 Mbps and is initially empty. Bursts totaling 12 Mb arrive instantaneously. Ignoring packetization, when does the final bit leave the shaper?

Techniques to improve QoS Hard
A. 3 s after arrival
B. 9 s after arrival
C. 4 s after arrival
D. 6 s after arrival

56 A 60 Mbps link uses work-conserving weighted fair scheduling for three flows with weights . All are backlogged, but the third flow can use at most 18 Mbps. What rate is allocated to the second flow?

Techniques to improve QoS Hard
A. 24 Mbps
B. 30 Mbps
C. 20 Mbps
D. 28 Mbps

57 An Integrated Services flow requests a strict end-to-end delay bound using RSVP. Which additional condition is essential for the bound to be credible?

Techniques to improve QoS Hard
A. The sender marks packets with a high-priority Differentiated Services code point
B. Every router disables queueing and forwards packets immediately upon arrival
C. Only the destination reserves a buffer large enough for the complete flow
D. Every relevant hop performs admission control and reserves sufficient resources

58 In a Differentiated Services domain, which statement most accurately describes how scalable QoS treatment is provided?

Techniques to improve QoS Hard
A. Edge devices classify traffic, while core routers apply per-hop behavior to aggregates
B. Core routers maintain signaling state and a separate reservation for every flow
C. Endpoints negotiate a fixed time slot with every router before transmitting
D. Each packet carries the complete scheduling policy required at every hop

59 What is the principal congestion-control advantage of Random Early Detection over tail-drop queue management?

Congestion control Hard
A. It eliminates packet loss by expanding the queue during periods of overload
B. It probabilistically signals congestion before the queue becomes completely full
C. It guarantees equal bandwidth allocation among all active transport connections
D. It reserves a fixed portion of every link for each newly detected TCP flow

60 A real-time application receives all packets with average one-way delay below its limit, yet playback repeatedly stalls because successive packet delays vary widely. Which QoS characteristic is primarily inadequate?

Quality of service Hard
A. Reliability
B. Jitter
C. Bandwidth
D. Availability