HTTP pipelining

HTTP pipelining

HTTP pipelining is a technique in which multiple HTTP requests are written out to a single socket without waiting for the corresponding responses. Pipelining is only supported in HTTP/1.1, not in 1.0.

The pipelining of requests results in a dramatic improvement in page loading times, especially over high latency connections such as satellite Internet connections.

Since it is usually possible to fit several HTTP requests in the same TCP packet, HTTP pipelining allows fewer TCP packets to be sent over the network, reducing network load.

Non-idempotent methods like POST should not be pipelined. Sequence of GET and HEAD requests can be always pipelined. A sequence of other idempotent requests like GET, HEAD, PUT and DELETE can be idempotent or not depending on whether requests in the sequence depend on the effect of others. [ [http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.1.2 Idempotent HTTP Methods] ]

HTTP pipelining requires both the client and the server to support it. HTTP/1.1 conforming servers are required to support pipelining. This does not mean that servers are required to pipeline responses, but that they are required not to fail if a client chooses to pipeline requests.

Implementation status

Implementation in web servers

Implementing pipelining in web servers is a relatively simple matter of making sure that network buffers are not discarded between requests. For that reason, most modern web servers handle pipelining without any problem.

Exceptions include IIS 4 and reportedly 5.

Implementation in web browsers

Internet Explorer as of version 7 doesn't support pipelining.

Mozilla Firefox 3.0 supports pipelining, but it's disabled by default. It uses some heuristics, especially to turn pipelining off for IIS servers. Instructions for enabling pipelining can be found at [http://www.mozilla.org/support/firefox/tips#oth_pipelining Firefox Help: Tips & Tricks] . Camino does the same thing as Firefox.

Konqueror 2.0 supports pipelining, but it's disabled by default. Instructions for enabling it can be found at [http://gentoo-wiki.com/TIP_Konqueror Konqueror: Tips & Tricks] .

Opera has pipelining enabled by default. It uses heuristics to control the level of pipelining employed depending on the connected server. [http://operawiki.info/HttpProtocol]

Google Chrome doesn't support pipelining (defective by design). [ [http://newestindustry.org/2008/09/02/google-chrome-one-thing-we-do-know-http-pipelining/ Google Chrome: One thing we do know… (HTTP Pipelining)] ]

Implementation in web proxies

Most HTTP proxies do not pipeline outgoing requests. [ [http://www.mnot.net/blog/2007/06/20/proxy_caching mnot’s Web log: The State of Proxy Caching ] ]

Some versions of the Squid web proxy will pipeline up to two outgoing requests. This functionality has been disabled in the latest versions. Squid supports multiple requests from clients.

The [http://www.pps.jussieu.fr/~jch/software/polipo/ Polipo] proxy pipelines outgoing requests.

Other implementations

Some other applications currently exploiting pipelining are [http://www.daemonology.net/phttpget/ phttpget] from FreeBSD (a minimalist pipelined HTTP client), portsnap (a FreeBSD ports tree distribution system), lftp (a sophisticated file transfer program) and LWPng (libwww-perl New Generation) library.

References

External links

* [http://www.w3.org/Protocols/rfc2616/rfc2616.html RFC 2616 Hypertext Transfer Protocol -- HTTP/1.1]
* [http://www.mozilla.org/projects/netlib/http/pipelining-faq.html HTTP/1.1 Pipelining FAQ at mozilla.org]
* [http://www.w3.org/Protocols/HTTP/Performance/Pipeline.html "Network Performance Effects of HTTP/1.1, CSS1, and PNG" at w3.org]
* [http://www.die.net/musings/page_load_time/ "Optimizing Page Load Times" article]
* [http://www.daemonology.net/phttpget/ phttpget]
* [http://www.mozilla.org/support/firefox/tips#oth_pipelining "Pipelining optimizations in Firefox" ]
* [http://www.visolve.com/squid/sqguide.php Http accelerator]


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • HTTP pipelining — HTTP Постоянное соединение · Сжатие · HTTPS Методы OPTIONS · GET · HEAD · POST · PUT · DELETE · TRACE · CONNECT · PATCH Заголовки Cookie · ETag · Location · Referer DNT · X Forwarded For …   Википедия

  • HTTP-Pipelining — Schema einer HTTP Verbindung ohne und mit Pipelining HTTP Pipelining ist eine Technik, bei der mehrere HTTP Anfragen einem einzigen Socket übergeben werden, ohne auf eine Antwort zu warten. Pipelining wird ausschließlich von HTTP/1.1 unterstützt …   Deutsch Wikipedia

  • Pipelining — steht für Pipelining als Mikroarchitektur in Prozessoren: Pipeline (Prozessor) HTTP Pipelining, Technik, bei der mehrere HTTP Anfragen einem einzigen Socket übergeben werden Diese Seite ist eine Begriffsklärung zu …   Deutsch Wikipedia

  • HTTP — (Hypertext Transfer Protocol) Familie: Internetprotokollfamilie Einsatzgebiet: Datenübertragung, Hypertext u. a. Port: 80/TCP HTTP im TCP/IP‑Protokollstapel: Anwendung HTTP Transport …   Deutsch Wikipedia

  • HTTP-Anfrage — HTTP (Hypertext Transfer Protocol) Familie: Internetprotokollfamilie Einsatzgebiet: Datenübertragung, Hypertext u. a. Port: 80/TCP HTTP im TCP/IP‑Protokollstapel: Anwendung HTTP Transport …   Deutsch Wikipedia

  • HTTP-Request — HTTP (Hypertext Transfer Protocol) Familie: Internetprotokollfamilie Einsatzgebiet: Datenübertragung, Hypertext u. a. Port: 80/TCP HTTP im TCP/IP‑Protokollstapel: Anwendung HTTP Transport …   Deutsch Wikipedia

  • Http — (Hypertext Transfer Protocol) Familie: Internetprotokollfamilie Einsatzgebiet: Datenübertragung, Hypertext u. a. Port: 80/TCP HTTP im TCP/IP‑Protokollstapel: Anwendung HTTP Transport …   Deutsch Wikipedia

  • HTTP persistent connection — HTTP persistent connections, also called HTTP keep alive, or HTTP connection reuse, is the idea of using the same TCP connection to send and receive multiple HTTP requests/responses, as opposed to opening a new connection for every single… …   Wikipedia

  • Pipelining HTTP — Le pipelining HTTP est une technique consistant à combiner plusieurs requêtes HTTP dans une seule connexion TCP sans attendre les réponses correspondant à chaque requête. Le pipelining présente plusieurs avantages: amélioration importante du… …   Wikipédia en Français

  • HTTP — Hypertext Transfer Protocol Pile de protocoles 7 • Application 6 • Présentation 5 • Session 4 • …   Wikipédia en Français

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”