transmission time, and (iv) receiver overhead time. 
To measure the effectiveness of data transfers we 
use the effective throughput rather than the total 
transfer time. The effective upload or download 
throughput, measured in megabytes per second, is 
defined as the ratio between the uncompressed file 
size in megabytes and the time needed to complete 
the file transfer. This metric thus captures the 
system’s ability to perform a file transfer in the 
shortest period of time regardless of a transfer mode.  
Table 1: Compression Utilities. 
Utility 
Levels (Default)  
[L, M, H] 
Version Notes 
gzip  1-9 (6) [1,6,9]  1.6 
DEFLATE (Ziv-
Lempel, Huffman) 
lzop  1-9 (6) [1,6,9]  1.03 
LZO (Lempel-Ziv-
Oberhumer) 
bzip2  1-9 (6) [1,6,9]  1.0.6 
RLE+BWT+MTF+RL
E+Huffman 
xz  1-9 (6) [1,6,9]  5.1.0a  LZMA2 
pigz  1-9 (6) [1,6,9]  2.3  Parallel gzip 
pbzip2  1-9 (9) [1,6,9]  1.1.6  Parallel bzip2 
 
Another metric of interest for networked file 
transfers initiated on mobile devices is energy 
efficiency. The energy consumed for compression 
and decompression can be a decisive factor in 
battery-powered mobile devices. Achieving a higher 
compression ratio requires more computation and, 
therefore, more energy, but better compression 
reduces the number of bytes, thus saving energy 
when transmitting the data. The energy efficiency, 
measured in megabytes per Joule, is defined as the 
ratio between the uncompressed file size in 
megabytes and the total energy needed to complete 
the file transfer. This metric thus captures the 
system’s ability to perform a file transfer while 
consuming the least energy.  
The effective upload and download throughputs 
and energy efficiencies depend on many factors, 
including the file size and type, selected 
compression utility, the compression level, network 
characteristics such as latency and throughput, as 
well as the smartphone’s performance and energy-
efficiency. Whereas previous studies showed that 
compressed uploads and downloads can save time 
and energy in many typical file transfers initiated 
from smartphones (Dzhagaryan et al., 2015; 
Dzhagaryan and Milenkovic, 2015; Milenkovic et 
al., 2013b) there is not a single upload or download 
file transfer method that works the best for all data 
types and network conditions. To underscore this 
problem, we conduct a measurement-based study 
that evaluates the effectiveness of various data 
transfer options under different network conditions. 
For the evaluation, we use Google’s Nexus 4 
(Google, 2014c, p. 4) and OnePlus One (OnePlus, 
2015) smartphones and the measurement setup 
described in (Dzhagaryan et al., 2016, 2015). 
2.2  Why Optimize File Transfers? 
In this section, we show the results of a 
measurement-based study that evaluates the 
effectiveness of uncompressed and compressed file 
transfers initiated on a mobile device. We show that 
a compression utility, compression level pair that 
achieves the maximum throughput or energy 
efficiency changes as a function of network 
conditions and file size and type. 
Upload Example. We consider uploading a text file 
that contains a summary of user’s physiological state 
captured every second by a wearable Zephyr 
Technologies BioHarness 3 chest belt. The file 
contains information about user’s heart rate, 
breathing rate, activity level, and body posture. The 
file is periodically uploaded to the cloud for future 
analysis and long-term storage, e.g. in health 
monitoring applications. The file size is 4.69 MB.  
The experiment involves uncompressed and 
compressed file uploads from an OnePlus One 
smartphone to a remote server over the Internet. For 
each type of a transfer, the time to upload the file 
and energy consumed are measured to determine the 
upload throughput and energy efficiency. To 
demonstrate the impact of network connection 
parameters, the measurements are performed when 
the WLAN network throughput is set to 0.5 MB/s 
(low) and 5 MB/s (high).  
Table shows the effective upload throughputs 
and the energy efficiencies for all types of file 
uploads. The two bottom rows show speedups in the 
effective throughput and energy efficiency when 
comparing the best performing compressed upload 
to the uncompressed upload [best/raw] and to the 
compressed upload using gzip -6 [best/gzip-6], 
which is considered a default compression mode. 
The uncompressed upload on a 0.5 MB/s 
network achieves the effective throughput of 
0.51 MB/s and the effective energy efficiency of 
0.88 MB/J. The compressed upload with gzip -6 
achieves the effective throughput and energy 
efficiency of 4.05 MB/s and 3.82 MB/J, 
respectively. The best effective throughput of 
4.83 MB/s is achieved with xz -0, while the best 
energy efficiency of 4.55 MB/J is achieved with 
gzip -1. Selecting the best compression mode 
(utility, level) for throughput achieves 9.43- and 
1.19-fold improvements over the uncompressed and