Article http over transport protocols

28
Modeling the Performance of HTTP Over Several Transport Protocols

Transcript of Article http over transport protocols

Page 1: Article   http over transport protocols

Modeling the Performance of HTTPOver Several Transport Protocols

Page 2: Article   http over transport protocols

Modeling the Performance of HTTPOver Several Transport Protocols

● Persistent-Connection HTTP● Transaction TCP● UDP-Based Request–Response Protocols

Page 3: Article   http over transport protocols

Modeling the Performance of HTTPOver Several Transport Protocols

● Persistent-Connection HTTP● HTTP requests and responses can be pipelined on

a connection.

● Latency on subsequent requests is reduced since there is no time spent in TCP's connection opening handshake.

Page 4: Article   http over transport protocols

Modeling the Performance of HTTPOver Several Transport Protocols

● Persistent-Connection HTTP

Page 5: Article   http over transport protocols

Modeling the Performance of HTTPOver Several Transport Protocols

● T-TCP (RFC 1644)

● The goal of T/TCP is to allow each transaction, i.e., each request/response sequence, to be efficiently performed as a single incarnation of a TCP connection.

● Bypass the 3-way handshake

Page 6: Article   http over transport protocols

Modeling the Performance of HTTPOver Several Transport Protocols

● ARDP

● ARDP’s main design goal is to provide a reliable yet light-weight communication mechanism to transport requests and responses between clients and servers.

● TCP-style flow-control

● Congestion-avoidance

● Retransmission algorithms●

● Avoids TCP’s three-way handshake, instead randomly selecting connection identifiers

Page 7: Article   http over transport protocols

Modeling the Performance of HTTPOver Several Transport Protocols

Network Model

Page 8: Article   http over transport protocols
Page 9: Article   http over transport protocols

Modeling the Performance of HTTPOver Several Transport Protocols

Page 10: Article   http over transport protocols

Modeling the Performance of HTTPOver Several Transport Protocols

● Traffic Model

● Small page: Single 5 kB web page.

● Medium page: Single 25 kB web page.

● Large page: Single 100 kB web page.

● Small cluster: Single 6651 B page with embedded 3883 B and 1866 B images.

● Medium cluster: Single 3220 B page with three embedded images, sizes 57613 B, 2344 B, and 14190 B.8

● Large cluster: Single 100 kB page with 10 embedded 25 kB images.

Page 11: Article   http over transport protocols

Modeling the Performance of HTTPOver Several Transport Protocols

● Protocol Analysis

● TCP: HTTP currently runs over TCP, opening a new connection for each transaction.

● Connection caching protocols: To avoid connection setup overheads, P-HTTP and T/TCP cache connections or connection information across multiple requests.

● UDP-based request–response protocols: ARDP employs UDP to avoid TCP setup costs.

Page 12: Article   http over transport protocols

Modeling the Performance of HTTPOver Several Transport Protocols

● Minimum Transit Times

Page 13: Article   http over transport protocols

Modeling the Performance of HTTPOver Several Transport Protocols

● Minimum Transit Times

A series of independent requests will incur only one roundtrip latency because they are pipelined. The total required time will, therefore, be:

Page 14: Article   http over transport protocols

Modeling the Performance of HTTPOver Several Transport Protocols

Simple Model

Page 15: Article   http over transport protocols
Page 16: Article   http over transport protocols

Modeling the Performance of HTTPOver Several Transport Protocols

● HTTP over TCP

● TCP slow start

● Performance and Discussion

Page 17: Article   http over transport protocols

Modeling the Performance of HTTPOver Several Transport Protocols

TCP slow start

Page 18: Article   http over transport protocols

Modeling the Performance of HTTPOver Several Transport Protocols

http://user.it.uu.se/~carle/Notes/43_TCP.html

Page 19: Article   http over transport protocols

Modeling the Performance of HTTPOver Several Transport Protocols

● Performance & Discussion

Cost of accessing an object via HTTP over TCP

Page 20: Article   http over transport protocols

Modeling the Performance of HTTPOver Several Transport Protocols

● HTTP Over TCP with Connection Caching

11 2211

33

Page 21: Article   http over transport protocols

Modeling the Performance of HTTPOver Several Transport Protocols

● HTTP Over Multiple, Concurrent TCP Connections

Many web browsers open multiple concurrent connections to mitigate TCP start-up costs (HTTP over parallel connec- tions). We can bound their performance by HTTP over TCP with and without connection caching. Our HTTP-over-TCP model overestimates transmission time by not considering parallelism in the concurrent slow-start of each connection. HTTP over connection caching underestimates transmission time by assuming that there is no penalty for slow-starts of later requests in a cluster. A better approximation might be obtained by treating as if it were , for concurrent connections. Completely specifying behavior with multiple parallel connections is an area of continuing work.

Page 22: Article   http over transport protocols

Modeling the Performance of HTTPOver Several Transport Protocols

● HTTP Over UDP-Based Protocols

Time to complete a HTTP transaction over ARDP

Page 23: Article   http over transport protocols

Modeling the Performance of HTTPOver Several Transport Protocols

● HTTP Over UDP-Based Protocols

Total time to complete a series of independent HTTP requests

Overhead

Page 24: Article   http over transport protocols

Modeling the Performance of HTTPOver Several Transport Protocols

● Validation

● Methodology

● Slow Start Validation

● Model Adjustments● Server processing time● Request independence● Inexact Bandwidth

Page 25: Article   http over transport protocols

Modeling the Performance of HTTPOver Several Transport Protocols

● Protocol Discussion

● HTTP over TCP overhead is fairly low under net- working characteristics today.

● TCP overhead becomes significant when the band- width–delay product rises.

● A recent technical note by W3C has suggested that pipelining substantially reduces packet counts for persistent- connection HTTP

Page 26: Article   http over transport protocols

TCP Overhead

Page 27: Article   http over transport protocols

Connection-caching protocols

Page 28: Article   http over transport protocols

End

Modeling the Performance of HTTPOver Several Transport Protocols