Computer network [MOOC] Job three HTTP1.1 and 1.0 time calculation

Source: Internet
Author: User

Here is my answer. Please correct me if there is anything wrong, thank you.

Course Address http://www.icourse163.org/course/HIT-154005 My course ID:AWEFFR

--------------------------Topics------------------------

Topic

Suppose you clicked a hyperlink when you browsed a webpage, the URL is http://www.kicker.com.cn/index.html, and the IP address for that URL is not cached on your computer The file index.html refers to 8 small images. In the process of domain name resolution, a round trip time of no-wait DNS resolution request and response time as Rttd,http request Transport Web object is recorded as Rtth. Please answer the following questions:

1) What is the shortest time your browser resolves to the URL corresponding to the IP address? What is the maximum time?

2) If the browser does not have a parallel TCP connection configured, how long does it take to get the full contents of the URL Link Web page (including the referenced image, the same below) based on HTTP1.0 (excluding the domain name resolution time)?

3) If the browser is configured with 5 parallel TCP connections, how long does it take to get the full content of the URL link Web page based on HTTP1.0?

4) If the browser does not have a parallel TCP connection configured, how long does it take for the HTTP1.1 to get the full content of the URL link Web page based on non-pipelining mode? How long does it take to get the full content of the URL link Web page based on the HTTP1.1 mode?

1) because there is no cache locally, it requires a minimum of 1 queries. A maximum of 3 recursive queries are required.

Answer: 1 RTTD ~ 3 Rttd.

2) requires an HTML file itself, plus 8 small image connections.

The time includes a round-trip time RTTH that initiates the process of establishing a TCP connection for a RTTH,HTTP request transport Web object.

Answer: 2 * 9 = rtth.

3) First establish TCP connection, get index.html file 2 rtth. Then by the image address information, the 2-wheel parallel processing to complete 8 images of the loading work. 2*2 a rtth.

Answer: 2 + 4 = 6 rtth.

4) without running water, the client sends a new request only after receiving the previous response, and each referenced object takes a RTT.

In the case of running water, the client makes a request as soon as it encounters a reference.

Answer: No flow: 2 + 8 = rtth. With running water: 2 + 1 = 3 rtth.

Computer network [MOOC] Job three HTTP1.1 and 1.0 time calculation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.