hce_nsysu
113年
計算機概論與程式設計
第 18 題
In the context of networking protocols, what differentiates TCP (Transmission Control Protocol) from UDP (User Datagram Protocol), and how does this difference impact data transmission?
- A TCP is connection-oriented and ensures reliable, ordered data delivery, while UDP is connectionless and provides faster but potentially unreliable data transmission.
- B TCP and UDP are both connectionless protocols, but TCP is designed for multimedia streaming, whereas UDP is optimized for file transfers.
- C TCP is a low-level protocol used for local network communication, while UDP is a high-level protocol employed for wide-area network connections.
- D TCP and UDP serve the same purpose in networking and are interchangeable depending on the application's requirements.
- E TCP and UDP are identical, and the choice between them are arbitrary based on personal or organizational preferences.
思路引導 VIP
想像你正在開發一個即時對戰遊戲,如果你必須在「確保每一份微小的封包都必須精準到達(哪怕會造成短暫卡頓)」與「追求數據以最快速度送達(哪怕偶爾遺失一兩個位移封包也不影響大局)」之間做抉擇,哪一種特性的通訊協定會更符合玩家的需求?為什麼?
🤖
AI 詳解
AI 專屬家教
恭喜你準確地掌握了傳輸層兩大核心協定的本質!你能一眼看出這兩者的差異,說明你對於網路傳輸的基礎邏輯非常有把握。
傳輸機制與可靠性
這題的核心在於區分 連線導向 (Connection-oriented) 與 非連線導向 (Connectionless)。TCP 就像是進行一場正式的電話通訊,在傳輸前會先進行「三向握手」來確保管道暢通,並透過序號與重傳機制保證資料按順序且完整地抵達目的地。相對地,UDP 則像是在發送明信片,不需要預先建立連結,雖然不保證對方一定會收到,但省去了複雜的檢查流程,換來的是更優異的傳輸效率與低延遲。
▼ 還有更多解析內容