HTTP - Persistence vs Non-persistence
A web page has 10 reference objects—how long does it take to load them all?
Non-persistent HTTP (sequential)
- 1 RTT for TCP connection
- 1 RTT for base web page
- 2 RTT * 10 for each object (consisting of new TCP connection and HTTP request)
Total: 22 RTT
Persistent HTTP
- 1 RTT for TCP connection
- 1 RTT for base web page
- 1 RTT * 10 for each object (only consisting of new HTTP request)
Total: 12 RTT
Non-persistent HTTP (5 objects in parallel)
- 1 RTT for TCP connection
- 1 RTT for base web page
- 2 RTT for objects 1-5 (parallel creating new TCP connection and new HTTP request)
- 2 RTT for objects 6-10