Efficient Management of Data Models in Constrained Systems by Using Templates and Context Based Compression
Data communication is at the heart of any distributed system. The adoption of generic data formats such as XML or JSON eases the exchange of information and interoperability among heterogeneous systems. However, the verbosity of those generic data formats usually requires system resources that might not be available in resource-constrained systems, e.g., embedded systems and those devices which are being integrated into the so-called IoT. In this work we present a method to reduce the cost of managing data models like XML or JSON by using templates and context based compression. We also provide a brief evaluation and comparison as a benchmark with current implementations of W3C’s Efficient XML Interchange (EXI) processor. Although the method described in this paper is still at its initial stage, it outperforms the EXI implementations in terms of memory usage and speed, while keeping similar compression rates. As a consequence, we believe that our approach fits better for constrained systems.
KeywordsIoT XML JSON Template Context Compression EXI
Research partially supported by the European Union Horizon 2020 Programme under grant 680708/HIT2GAP, by the Spanish Research Council, grant TIN2013-41123-P, and the University of the Basque Country UPV/EHU, grant UFI11/45.
- 1.Embeddable EXI processor in C (2016). http://exip.sourceforge.net/. Accessed June 2016
- 2.Exificient (EXI procesor) (2016). http://exificient.github.io/. Accessed June 2016
- 3.Berzosa, J., Cortiñas, R., Gardeazabal, L.: Efficient management of data models in constrained systems by using templates and context based compression. Technical report, University of the Basque Country UPV/EHU, Computer Science Faculty (Donostia, San-Sebastian) (2016). http://go.ehu.eus/BerzosaGC16-TR-05-16.pdf
- 4.Bournez, C.: Efficient XML interchange evaluation. Technical report, W3C (2009). http://www.w3.org/TR/exi-evaluations/. Accessed June 2016
- 5.Gudgin, M., Hadley, M., Mendelsohn, N., Moreau, J.J., Frystyk Nielsen, H.: SOAP version 1.2 part 1: messaging framework. Recommendation, W3C, June 2003. http://www.w3.org/TR/2003/REC-soap12-part1-20030624
- 6.Gutierrez, J.A., Callaway, E.H., Barrett, R.: IEEE 802.15.4 Low-rate wireless personal area networks: enabling wireless sensor networks. IEEE Standards Office, New York, NY, USA (2003)Google Scholar
- 8.Peintner, D., Pericas-Geertsen, S.: Efficient XML interchange (EXI) primer (2014). https://www.w3.org/TR/exi-primer/. Accessed June 2016
- 9.Schneider, J., Kamiya, T., Peintner, D., Kyusakov, R.: Efficient XML interchange (EXI) Format 1.0 (2nd edn.). Technical report, W3C (2014). http://www.w3.org/XML/EXI. Accessed June 2016
- 10.Shelby, Z., Bormann, C.: 6LoWPAN: The Wireless Embedded Internet. Wiley Publishing, Hoboken (2010)Google Scholar
- 11.Shelby, Z., Hartke, K., Bormann, C.: The constrained application protocol (CoAP). Technical report 7252, RFC Editor, Fremont, CA, USA, June 2014. http://www.rfc-editor.org/rfc/rfc7252.txt
- 12.White, G., Kangasharju, J., Brutzman, D., Williams., S.: Efficient XML interchange measurements note. Technical report, W3C (2007). http://www.w3.org/TR/exi-measurements/. Accessed June 2016