compress network data