Question

    Which of the following is a primary difference between TCP and UDP in terms of reliability and connection management? 

    A TCP is connectionless, while UDP is connection-oriented. Correct Answer Incorrect Answer
    B TCP guarantees data delivery, while UDP does not provide such guarantees. Correct Answer Incorrect Answer
    C TCP provides lower overhead than UDP. Correct Answer Incorrect Answer
    D UDP is suitable for applications requiring guaranteed delivery of every packet. Correct Answer Incorrect Answer
    E TCP has faster transmission speeds than UDP in all situations. Correct Answer Incorrect Answer

    Solution

    Transmission Control Protocol (TCP) is a connection-oriented protocol, meaning that it establishes a connection before data transfer and ensures reliable data delivery. It guarantees that data packets will reach their destination in the correct order without errors, using mechanisms like acknowledgments and retransmissions. In contrast, User Datagram Protocol (UDP) is connectionless, and does not guarantee the delivery, order, or integrity of packets. It is faster but less reliable than TCP, making it suitable for applications like streaming where speed is more critical than reliability. Option A (TCP is connectionless): This is incorrect. TCP is a connection-oriented protocol, while UDP is connectionless. Option C (TCP provides lower overhead): This is incorrect. TCP has higher overhead due to its error-checking, acknowledgment, and flow control features, while UDP has lower overhead because it does not implement these features. Option D (UDP guarantees delivery): This is incorrect. UDP does not guarantee delivery or the order of packets, which is one of its main distinctions from TCP. Option E (TCP has faster transmission speeds): This is incorrect. UDP generally has faster transmission speeds because it lacks the connection establishment and error-checking overhead that TCP has.

    Practice Next

    Relevant for Exams: