Summary

This document contains a multiple-choice quiz on the Transport Layer of computer networking. Questions cover topics such as TCP/IP, port numbers, network protocols, and other relevant concepts in networking.

Full Transcript

**Multiple Choice Quiz - Transport Layer** 1. Which layer of the TCP/IP model is responsible for providing logical communication between applications? a) Network Layer b) Data Link Layer c) Transport Layer * d) Application Layer 2. What is a primary responsibility of the transport layer?...

**Multiple Choice Quiz - Transport Layer** 1. Which layer of the TCP/IP model is responsible for providing logical communication between applications? a) Network Layer b) Data Link Layer c) Transport Layer * d) Application Layer 2. What is a primary responsibility of the transport layer? a) Routing packets across di7erent networks b) Defining network media access methods c) Segmenting data and reassembling segments * d) Providing physical addressing 3. Which transport layer protocol is connection-oriented and provides reliable data delivery? a) IP b) UDP c) TCP * d) ICMP 4. Which transport layer protocol is known as a "best-e7ort" delivery protocol and is connectionless? a) TCP b) IP c) UDP * d) ARP 5. What is the role of port numbers in transport layer protocols? a) To identify the physical address of a device b) To identify the type of network connection c) To identify the application processes on a device * d) To encrypt the data being transmitted 6. Which of these scenarios would likely use TCP as the transport protocol? a) Streaming live video b) Online gaming with real-time updates c) Downloading a large software update * d) A simple DNS query 7. Which of these scenarios would likely use UDP as the transport protocol? a) Sending an email b) Transferring files via FTP c) A Voice over IP (VoIP) phone call * d) Browsing a website 8. What is the purpose of the TCP three-way handshake? a) To request an IP address b) To establish a reliable connection between two devices * c) To send data packets d) To terminate a connection 9. In a TCP header, what does the "sequence number" field indicate? a) The size of the data packet b) The destination port number c) The order in which the data segments should be reassembled * d) Whether the packet is urgent 10. What does the TCP "acknowledgment number" indicate? a) The number of bytes in a packet. b) The number of hops remaining before the destination c) The next byte expected by the receiver * d) The time to live 11. What is "flow control" in TCP? a) A mechanism for preventing network congestion b) A method for sequencing data packets c) A process for adjusting data rates based on receiving capacity * d) A type of error detection used by TCP 12. What does Maximum Segment Size (MSS) represent? a) Maximum throughput on a network b) The maximum speed of a NIC c) The maximum amount of data a receiving device can handle * d) Maximum size of the header of a segment 13. In a TCP connection, which control flag signals the termination of the connection? a) SYN b) ACK c) FIN * d) PSH 14. What is the role of the UDP "checksum" field? a) To indicate the sequence number of the datagram b) To indicate the length of the datagram c) To check for errors in the datagram header and data * d) To determine the destination IP address 15. Why is TCP considered a "stateful" protocol? a) Because it doesn't need port numbers. b) Because it keeps track of the state of the communication session * c) Because it has a large header size d) Because it's faster than UDP. 16. What are "Well-known ports" primarily used for? a) For application users to assign their own ports. b) For common or popular services and applications * c) For devices to communicate with each other. d) For assigning ephemeral ports. 17. Which of the following is an example of a "well-known port"? a) 49155 b) 1812 c) 80 * d) 50000 18. Which port number is associated with the DNS service? a) 25 b) 80 c) 53 * d) 443 19. If a client is sending a message to a web server, which of the following is true about the source and destination ports? a) The source port is 80 and the destination port is a random high number. b) The source port is a random high number and the destination port is 80 * c) Both source and destination ports are 80. d) Both source and destination ports are random high numbers. 20. What is an "ephemeral port"? a) A port used by servers for common services. b) A port used for internal system communications. c) A dynamically assigned port by the client's OS. * d) A reserved port by IANA. 21. What does the command `netstat` help you to do? a) To configure network interfaces b) To monitor network connections * c) To resolve domain names d) To debug hardware issues 22. A TCP segment arrives at the destination with the correct sequence number, but the data is out of order. What happens? a) The segment is discarded. b) The destination reorders the segments based on the sequence numbers * c) A retransmission request is sent to the source. d) The segment is delivered to the application as it is. 23. You are watching a live video stream. If some video packets are lost, what will likely happen? a) The video will pause completely until the packets are resent. b) The video stream will stop working c) There may be a brief glitch or some missing frames. * d) The video will be re-downloaded from the beginning. 24. A client is sending several requests to a single web server. How does the server di7erentiate between these client requests? a) By the IP address of the clients. b) By the destination port numbers of the clients. c) By the combination of the source IP and the source port numbers * d) By the Ethernet MAC addresses of the clients 25. Which of the following is a function of TCP but not UDP? a) Forwarding datagrams without requiring connection b) Providing a mechanism for data delivery that guarantees arrival and order of the data * c) Providing low overhead for time-sensitive tra7ic d) Providing a connectionless transport service **Explanations** 1. **c) Transport Layer** - The transport layer handles communication between applications. 2. **c) Segmenting data and reassembling segments** - The text mentions, "Segmenting data and reassembling segments" as a key responsibility of the transport layer. 3. **c) TCP** - The document describes TCP as connection-oriented with reliable delivery. 4. **c) UDP** - The document identifies UDP as a connectionless "best-e7ort" protocol. 5. **c) To identify the application processes on a device** - Port numbers are used to identify the application process. 6. **c) Downloading a large software update** - Large downloads require reliable delivery which TCP provides. 7. **c) A Voice over IP (VoIP) phone call** - VoIP needs real-time with low latency so UDP is used. 8. **b) To establish a reliable connection between two devices** - The TCP handshake is used to establish the connection between two devices. 9. **c) The order in which the data segments should be reassembled** - The sequence number is used for reassembly purposes. 10. **c) The next byte expected by the receiver** - The acknowledgment number is used to confirm the receipt of data and signal the next byte expected. 11. **c) A process for adjusting data rates based on receiving capacity** - TCP flow control adjusts the rate of transmission based on what the receiving device can manage. 12. **c) The maximum amount of data a receiving device can handle** - MSS is the maximum amount of data that can be received. 13. **c) FIN** - The FIN flag is used to signal the end of the connection. 14. **c) To check for errors in the datagram header and data** - The checksum is used for error checking of the datagram and data. 15. **b) Because it keeps track of the state of the communication session** - TCP keeps track of the session state, while UDP does not. 16. **b) For common or popular services and applications** - Well-known ports are used for common application services. 17. **c) 80** - Port 80 is the standard port for HTTP and it is a well known port. 18. **c) 53** - Port 53 is the standard port for DNS. 19. **b) The source port is a random high number and the destination port is 80** - Clients use a random high number as source port and use the server's well known port (80 for web) as destination. 20. **c) A dynamically assigned port by the client's OS** - Ephemeral ports are dynamically assigned by the client's OS during communication. 21. **b) To monitor network connections** - Netstat is a tool for network monitoring and allows you to observe open connections. 22. **b) The destination reorders the segments based on the sequence numbers** - TCP uses sequence numbers to ensure data is properly assembled. 23. **c) There may be a brief glitch or some missing frames.** - Live video streams use UDP and can tolerate some data loss. 24. **c) By the combination of the source IP and the source port numbers** - The source port combined with the source IP allows the server to keep track of the individual client processes. 25. **b) Providing a mechanism for data delivery that guarantees arrival and order of the data** - TCP provides reliable delivery, while UDP does not.

Use Quizgecko on...
Browser
Browser