DeAI Research
Source · International Conference on Electrical Engineering/Electronics, Computer, Telecommunications and Information Technology (ECTI-CON)

The study of compression algorithms for WebSocket protocol

2014Tanapat Anusas-amornkul; Chanapa Silawong

cid 914bd48e688d924142040fbe172d02828f90f4906a81150f868e3939e1a12213 · original · via openalex

Title: The study of compression algorithms for WebSocket protocol
Authors: Tanapat Anusas-amornkul; Chanapa Silawong
Venue: International Conference on Electrical Engineering/Electronics, Computer, Telecommunications and Information Technology (ECTI-CON)
Year: 2014
Canonical: doi:10.1109/ecticon.2014.6839887
URL: https://doi.org/10.1109/ecticon.2014.6839887
Collector: openalex
OA: false

ABSTRACT
WebSocket protocol is a part of HTML5 standard, which is suitable for real-time and full duplex web applications such as online chat, notification server, and online game systems. A compression algorithm for WebSocket protocol has yet to be defined as a standard. There is a proposal to use Deflate algorithm, a lossless compression algorithm for WebSocket, but other compression algorithms are also available. In this paper, Deflate algorithm is compared with other lossless algorithms, i.e. Huffman, LZ77 and LZW algorithms in order to find a suitable compression algorithm for WebSocket protocol. A compression library is developed using JavaScript for studying and analyzing such compression algorithms for different data formats. In addition, an instant messaging system and an online game are developed and studied as the examples of WebSocket real-time and full duplex web applications. The performance metrics for this study are a compression ratio, compression and decompression speeds and overall time. In our experiments, the deflate compression algorithm gains the best result in terms of overall time and compression ratio for WebSocket protocol.