56.5k views
3 votes
you can assume that any other http message not containing an object sent by the client and server has a negligible (zero) transmission time. suppose the client makes 100 requests, one after the other, waiting for a reply to a request before sending the next request. using http 1.1, how much time elapses between the client transmitting the first request, and the receipt of the last requested object?

User ThitSarNL
by
8.2k points

1 Answer

3 votes

The time elapsed between the client transmitting the first HTTP 1.1 request and receiving the last requested object, assuming 100 sequential requests with negligible transmission time for non-object messages, depends on network conditions and processing times.

To calculate the time elapsed between the client transmitting the first request and receiving the last requested object using HTTP 1.1, you need to consider several factors:

1. Round-Trip Time (RTT): The time for a small packet to travel from the client to the server and back. It includes the propagation delay and processing delay.

2. Transmission Time (Tx): The time it takes to send the request or object over the network.

3. Processing Time (P): The time spent processing the request or object at the server.

4. Queuing Delay (Q): The time spent in queues at routers or switches.

Assuming each request and object transmission is independent and the client waits for the reply before sending the next request, the total time (T) can be estimated as:


\[ T = N * (RTT + Tx + P + Q) \]

Where:

- N is the number of requests (100 in this case).

Given that HTTP 1.1 supports multiple requests over a single connection (persistent connection), you can save on connection establishment time for each request.

Note: The actual values for RTT, Tx, P, and Q depend on the network conditions, server response time, and other factors. For a more accurate estimate, you would need to know or measure these values.

This formula gives you a rough estimate of the time elapsed, assuming that the client waits for each response before sending the next request and that other HTTP messages have negligible transmission time.

User Joe Chrysler
by
7.9k points