1 / 11

Delta Encoding for HTTP/1.1

Delta Encoding for HTTP/1.1. Sloutsky Alexander Fink Dmitry Supervised by Lavy Libman. d. Project Goals. Reduce network bandwidth Be transparent to users Server side: module for Apache Web Server Client side: modification of Squid Proxy. Description.

Download Presentation

Delta Encoding for HTTP/1.1

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Delta Encoding for HTTP/1.1 Sloutsky Alexander Fink Dmitry Supervised by Lavy Libman d

  2. Project Goals • Reduce network bandwidth • Be transparent to users • Server side: • module for Apache Web Server • Client side: • modification of Squid Proxy

  3. Description • Web Server stores several versions of the same document. • Server updates DB as document changes. • Client indicates what version of document it has. • Only change between versions is sent (delta encoding) Project Home Page: http://comnet.technion.ac.il/~cn33s00 FOR MORE INFO...

  4. Details: Apache Delta module • Highly configurable module: • types of delta encoding per HTTP type • storing method of files in database • depth of database • modularity for future enchanting: Delta Main Module Delta database manager text image binary Sub-Delta modules

  5. Database: Apache Delta module • Main Database structure: • Latest version (LV) of document • Differences of previous versions (PV) to LV • Only differences are stored to save space • Storing method can be configured • Deltas Database: • For each version: • difference between LV and PV

  6. Algorithm: Apache Delta module • Receive HTTP request • If (document was changed since last time) • unpack versions of document • update main database • signal to Sub-Delta module to recalculate all deltas for this document • pack the database • Signal to Sub-delta module to select an appropriate delta

  7. Summary: Apache Delta module • Achievements: • Significantly decreases networking load on server • Reduces the time user waits for document • Payment: • Disk space (depends on database depth) • CPU cycles on document update (rare)

  8. Details: Squid Proxy • Modifying existing product • The change includes: • New field (eTag) is added to every cache entry • Support of new fields and parameters both in request and reply HTTP headers • New HTTP status (226 Delta) and its handler

  9. Algorithm: Squid Proxy • If the requested document resides in cache but needs revalidation, then: • Include Delta information in the outgoing request • If the reply is a Delta (status: 227), then: • Apply the Delta to the cached version • Save the new version and discard the old • Send the latest version to the client

  10. Technologies used • Extension to existing HTTP protocol • Transparent to non-compatible parties • Based on IETF internet draft • draft-mogul-http-delta-04.txt • Makes use of Apache module API • Client’s cache is based on squid caching mechanisms

  11. Other resources • Delta encoding IETF Internet draft • http://www.ietf.org/internet-drafts/draft-mogul-http-delta-04.txt • Delta-encoding research at COMPAQ (Digital) • http://www.research.digital.com/wrl/techreports/abstracts/97.4.html • HTTP 1.1 standard (RFC 2616) • ftp://ftp.isi.edu/in-notes/rfc2616.txt • Apache server and Squid proxy • http://www.apache.orghttp://www.squid-cache.org

More Related