2023 computer-networking HW2.pdf
use UDP because it is faster then TCP
When a user requests an object, the cache checks if it has a copy of the object. If it does, the cache returns the object to the user without having to retrieve it from the original server
The applications of HTTP, SMTP, and POP3 require more reliability than throughput, so they use TCP.
total time=setupRTT0+∑i=1nRTTi+return answerRTT0
This is because each DNS server visited create an RTT, and once the IP address is obtained, an additional RTT is incurred to establish a connection with the server containing the object. The total time elapsed is equal to the sum of all these RTTs
totaltime=setup2RTT+requset 3 obj at same time2RTT=4RTT
totaltime=setup2RTT+requset 3 obj one by one3×2RTT=8RTT
totaltime=setup2RTT+requset 3 obj at same time but cut half by Persistent HTTPRTT=3RTT