A Leaner and Faster Web: How CBOR Can Improve Dynamic Content Encoding in JSON and DNS over HTTPS

Research output: Contribution to journal › Research article › Contributed › peer-review

Contributors

Abstract

The Internet community has taken major efforts to decrease latency on the World Wide Web with significant improvements in accelerating content transport and in compressing static content. Less attention, however, has been dedicated to compression of dynamic content. Such content is commonly provided by JSON and DNS over HTTPS\@. Dynamic content objects continue to grow in size, which increases latency and fosters the digital inequality. In this paper, we propose to mitigate this increase by utilizing Concise Binary Object Representation~(CBOR), a standard originally designed for the constrained Internet of Things~(IoT) to restrict packet sizes and enable efficient encoding of data objects. We provide protocol design and three new data sets for the evaluation of dynamic content, DNS, and the loading of websites. Our key findings are the following: (i) Switching the data representation from JSON to CBOR reduces data by up to 80%. This size reduction can decrease loading times by up to 13.8% when downloading large objects---even in local setups. (ii) Enabling CBOR for DNS over HTTPS~(DoH) and DNS over CoAP~(DoC) reduces packet sizes significantly. Compressing only names combined with unpacked CBOR achieves maximum gain of 52.2%, using more complex but still lightweight Packed CBOR allows minimizing packets by up to 95.5%. Our lean decoder for name compression can fit into as little as 314 bytes of build~size. Our results clearly show the potential of CBOR outside of IoT~scenarios. Parts of this research have already influenced work within the IETF.

Details

Original languageEnglish
JournalIEEE Transactions on Network and Service Management
Publication statusE-pub ahead of print - 10 Aug 2026
Peer-reviewedYes

External IDs

ORCID /0000-0002-3825-2807/work/223387203
Scopus 105048427437

Keywords

DFG Classification of Subject Areas according to Review Boards

Subject groups, research areas, subject areas according to Destatis

ASJC Scopus subject areas