Title :
The study of compression algorithms for WebSocket protocol
Author :
Anusas-amornkul, Tanapat ; Silawong, Chanapa
Author_Institution :
Dept. of Comput. & Inf. Sci., King Mongkut´s Univ. of Technol. North Bangkok, Bangkok, Thailand
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.
Keywords :
Internet; Java; authoring languages; computer games; data compression; electronic messaging; file servers; protocols; HTML5 standard; JavaScript; WebSocket protocol; compression library; data formats; deflate algorithm; full duplex Web application; instant messaging system; lossless compression algorithm; notification server; online chat; online game systems; performance metrics; real-time Web application; Algorithm design and analysis; Compression algorithms; Data compression; Games; Protocols; Real-time systems; Servers; Compression algorithms; Huffman; LZ77; LZW and Deflate; WebSocket protocol;
Conference_Titel :
Electrical Engineering/Electronics, Computer, Telecommunications and Information Technology (ECTI-CON), 2014 11th International Conference on
Conference_Location :
Nakhon Ratchasima
DOI :
10.1109/ECTICon.2014.6839887