ROHC compression/decompression library
ROHC compression/decompression library Documentation


The ROHC library provides an easy and robust way for applications to reduce their bandwidth usage on network links with limited capacity. Headers of network packets are compressed with the ROHC protocol and algorithms.

RObust Header Compression (ROHC) is a set of standards defined by the IETF. The ROHC library is a free, opensource and efficient implementation of them. Many featuresare implemented.


The project is licensed under LGPL2.1+. See the COPYING and files for more details.


The sources are in the src subdirectory. The sources are separated into three sub-directories:

See the file to learn to build the libraries. See also the Wiki of the project.

API documentation, tutorials and examples

The APIs for ROHC common, compression and decompression parts are available on separate pages:

Some tutorials are available on the website and wiki.

Some examples are available in the examples/ sub-directory in the sources.


Several tests may be run to check the library behaviour. See the file to learn how to use these tools.


RFC 3095
ROHC: Framework and four profiles: RTP, UDP, ESP, and uncompressed.
RFC 3096
Requirements for robust IP/UDP/RTP header compression.
RFC 3843
ROHC: A Compression Profile for IP.
RFC 4019
ROHC: Profiles for User Datagram Protocol (UDP) Lite.
RFC 6846
ROHC: A Profile for TCP/IP (ROHC-TCP)
RFC 5225
ROHCv2: Profiles for RTP, UDP, IP, ESP and UDP-Lite
ROHC library
The Open Source ROHC library described by the documentation you are currently reading.
ROHC Linux
A GPL-licensed implementation of ROHC over PPP for the 2.4 Linux kernel. The ROHC library started as a fork of this project.