WebSocket Per-message Compression
draft-ietf-hybi-permessage-compression-03
The information below is for an old version of the document |
Document |
Type |
|
Active Internet-Draft (hybi WG)
|
|
Last updated |
|
2012-10-15
|
|
Stream |
|
IETF
|
|
Intended RFC status |
|
(None)
|
|
Formats |
|
plain text
pdf
html
bibtex
|
Stream |
WG state
|
|
WG Document
|
|
Document shepherd |
|
None
|
IESG |
IESG state |
|
I-D Exists
|
|
Consensus Boilerplate |
|
Unknown
|
|
Telechat date |
|
|
|
Responsible AD |
|
(None)
|
|
Send notices to |
|
(None)
|
HyBi Working Group T. Yoshino
Internet-Draft Google, Inc.
Intended status: Standards Track October 16, 2012
Expires: April 19, 2013
WebSocket Per-message Compression
draft-ietf-hybi-permessage-compression-03
Abstract
This specification defines a WebSocket extension that adds
compression functionality to the WebSocket Protocol. It compresses
the payload of non-control WebSocket messages using specified
compression algorithm. One reserved bit RSV1 in the WebSocket frame
header is allocated to control application of compression for each
message. This specification provides one compression method
available for the extension using DEFLATE.
Please send feedback to the hybi@ietf.org mailing list.
Status of this Memo
This Internet-Draft is submitted to IETF in full conformance with the
provisions of BCP 78 and BCP 79.
Internet-Drafts are working documents of the Internet Engineering
Task Force (IETF). Note that other groups may also distribute
working documents as Internet-Drafts. The list of current Internet-
Drafts is at http://datatracker.ietf.org/drafts/current.
Internet-Drafts are draft documents valid for a maximum of six months
and may be updated, replaced, or obsoleted by other documents at any
time. It is inappropriate to use Internet-Drafts as reference
material or to cite them other than as "work in progress."
This Internet-Draft will expire on April 19, 2013.
Copyright Notice
Copyright (c) 2012 IETF Trust and the persons identified as the
document authors. All rights reserved.
This document is subject to BCP 78 and the IETF Trust's Legal
Provisions Relating to IETF Documents
(http://trustee.ietf.org/license-info) in effect on the date of
publication of this document. Please review these documents
carefully, as they describe your rights and restrictions with respect
Yoshino Expires April 19, 2013 [Page 1]
Internet-Draft WebSocket Per-message Compression October 2012
to this document. Code Components extracted from this document must
include Simplified BSD License text as described in Section 4.e of
the Trust Legal Provisions and are provided without warranty as
described in the Simplified BSD License.
Table of Contents
1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . 3
2. Conformance Requirements . . . . . . . . . . . . . . . . . . . 4
3. Extension Negotiation . . . . . . . . . . . . . . . . . . . . 5
3.1. Negotiation Example . . . . . . . . . . . . . . . . . . . 6
4. Framing . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
4.1. Sending . . . . . . . . . . . . . . . . . . . . . . . . . 7
4.2. Receiving . . . . . . . . . . . . . . . . . . . . . . . . 7
5. DEFLATE method . . . . . . . . . . . . . . . . . . . . . . . . 8
5.1. Method Parameters . . . . . . . . . . . . . . . . . . . . 8
5.1.1. Disallow compression context takeover . . . . . . . . 8
5.1.2. Limit maximum LZ77 sliding window size . . . . . . . . 9
5.2. Application Data Transformation . . . . . . . . . . . . . 9
5.2.1. Compression . . . . . . . . . . . . . . . . . . . . . 9
5.2.2. Decompression . . . . . . . . . . . . . . . . . . . . 11
5.2.3. Examples . . . . . . . . . . . . . . . . . . . . . . . 11
5.3. Intermediaries . . . . . . . . . . . . . . . . . . . . . . 14
5.4. Implementation Notes . . . . . . . . . . . . . . . . . . . 14
6. Security Considerations . . . . . . . . . . . . . . . . . . . 15
7. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 16
7.1. Registration of the "permessage-compress" WebSocket
Extension Name . . . . . . . . . . . . . . . . . . . . . . 16
7.2. Registration of the "Per-message Compressed" WebSocket
Framing Header Bit . . . . . . . . . . . . . . . . . . . . 16
7.3. WebSocket Per-message Compression Method Name Registry . . 17
8. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . 18
9. References . . . . . . . . . . . . . . . . . . . . . . . . . . 19
9.1. Normative References . . . . . . . . . . . . . . . . . . . 19
9.2. Informative References . . . . . . . . . . . . . . . . . . 19
Author's Address . . . . . . . . . . . . . . . . . . . . . . . . . 20
Yoshino Expires April 19, 2013 [Page 2]
Internet-Draft WebSocket Per-message Compression October 2012
1. Introduction
_This section is non-normative._
As well as other communication protocols, the WebSocket Protocol
[RFC6455] can benefit from compression technology. This
specification defines a WebSocket extension that applies a
compression algorithm to octets exchanged over the WebSocket Protocol
Show full document text