Web Technology Basics

1.5 MB of text data is compressed with gzip to one third of its size and sent. The bandwidth is 10 Mbps and the RTT is 100 ms, and before the data starts to be sent, the TCP connection, the TLS handshake and the HTTP request take three round trips in total. Assume 1 MB = 10^6 bytes, and ignore compression and decompression time, headers and waiting caused by TCP congestion control. Which of the following is closest to the time until all the data has been received?

  1. AAbout 0.4 s
  2. BAbout 0.7 s
  3. CAbout 1.5 s
Show answer and explanation

Answer: B. About 0.7 s

The compressed size is 1.5 ÷ 3 = 0.5 MB, which is 0.5 × 8 = 4 Mbit. Sending this at 10 Mbps takes 4 ÷ 10 = 0.4 s, and adding the 3 × 0.1 = 0.3 s of the three round trips before sending begins gives about 0.7 s in total. Without compression, transferring 1.5 MB = 12 Mbit takes 12 ÷ 10 = 1.2 s, for a total of about 1.5 s.

  • A. This is only the 0.4 s of data transfer, without adding the 0.3 s of the three round trips before sending begins.
  • B. Correct. 0.4 + 0.3 = 0.7 s.
  • C. This is 1.2 + 0.3 = 1.5 s, for sending the 1.5 MB without compression.
Practice this topic Back to topic

Books on Web Technology Basics Ad

As an Amazon Associate I earn from qualifying purchases.

More Web Technology Basics questions

  1. A CDN receives 2,000 requests per second, and its cache hit ratio rises from 90% to 98%. The response time is 20 ms on a hit, and 200 ms on a miss because the content is fetched from the origin server and returned; only requests that miss reach the origin server. Which of the following is the combination of the number of requests reaching the origin server and the average response time after the ratio reaches 98%?
  2. Among Core Web Vitals, the metrics of a web page's user experience, which of the following does CLS (Cumulative Layout Shift) represent?
  3. Which of the following is an appropriate pairing of an image format for web pages with its typical use?
  4. 3,000 bytes of image data are encoded with Base64 and embedded in HTML. If no line breaks are inserted, which of the following is the number of characters after encoding?
  5. A web system is built in three tiers: a web server, an application server and a database server. Which of the following is the processing that the application server mainly handles?