4 LOP AND RATELESS CODES
Let us consider an encoder for a file of size n blocks.
Let δ be the average overhead and t
d
total decoding
time of the algorithm. We define Latency-Overhead
Product as:
LOP = LOP(n) = δ
α
t
β
d
(1)
where α and β are weight parameters of the LOP
function. By fixing the weights α and β to specific
values we are choosing whether the LOP minimiza-
tion will be done with a stronger preference for small
overhead (α > β) or small delay (α < β). For exam-
ple if we are more interested in having small overhead
rather than small delay (i.e. we want the delay also to
be small, but this is not as important as having a small
overhead) then we can indicate this by giving a larger
weight value for α and smaller weight value for β e.g.
α = 2, β = 1. The resultant value for the LOP function
is LOP = δ
2
t
d
.
In general, the overhead δ and latency t
d
are func-
tions of several parameters. In realistic environments
they depend on the state of the channel. For a very
general case we can derive a theoretical condition that
needs to be fulfilled in order to obtain optimal value
for the block size n for a given rateless code:
∂LOP
∂n
= αδ
α−1
t
β
d
∂δ
∂n
+ βt
β−1
d
δ
α
∂t
d
∂n
= 0 . (2)
In other words, given the parameters α and β, using
LOP we can find an optimal n such that Eq. (3) holds.
α
δ
∂δ
∂n
= −
β
t
d
∂t
d
∂n
. (3)
Here δ and t
d
depend on the type of rateless code that
is used and on the state of the channel. If Eq. (3) has
a real solution we can achieve an optimal value for n.
We show the effectiveness of the LOP in prac-
tice for a specific class of rateless codes called Online
codes. Before presentingour experimentalresults, we
give a short description of Online codes.
5 ONLINE CODES
Online codes (OC) are a type of rateless codes suit-
able for channels with an unknown or variable loss
rate. OC were introduced by Petar Maymounkov
in (Maymounkov, 2002). They are efficient error-
correction codes, requiring O(1) time to generate
each encoding block and O(n) time to decode an orig-
inal message of length n. Detailed treatment of On-
line codes is given in (Maymounkov,2002)and (May-
mounkov and Mazieres, 2003).
Table 1: Calculating the Optimal Block Size using LOP pa-
rameter - Ideal Channel.
Message size Overhead Latency LOP
n [%] [s] [ms]
667 31.23 0.22 21.46
833 28.36 0.23 18.50
1,333 21.38 0.26 11.88
2,000 16.93 0.30 8.60
4,000 8.21 0.55 3.71
10,000 5.32 1.26 3.57
12,000 5.00 1.82 4.59
20,000 4.76 3.92 8.88
40,000 4.05 12.52 20.54
In our experiments we use LOP to measure the
optimal number of message blocks when message is
encoded with Online codes in two cases: ideal chan-
nel and simulated wireless channel with losses. We
simulate a channel with losses with a Gilbert-Elliot
model. Next we describe our experimental settings
and provide the obtained results.
6 EXPERIMENTS AND RESULTS
In order to show the usefulness of the pro-
posed parameter LOP we have implemented Online
codes (Maymounkov, 2002).
2
. With Online codes we
conduct two sets of experiments: (1) finding an op-
timal block size with LOP; (2) measuring the gen-
eral performance of Online codes in respect to packet
size vs. total overhead. The first experiment is con-
ducted for two cases: (a) ideal channel (b) channel
with losses, simulated according to a Gilbert-Elliot
model.
6.1 Optimal Block Size with Lop
In this set of experimentswe use LOP in order to eval-
uate the optimal blocksize of a message encoded with
OC. We run 10, 000 simulations per measurement.
One simulation consists of encoding and decoding of
a test file, using Online codes. In all simulations we
use a test file of size 1 MB. During experiments we
change the size of the blocks into which the test file is
broken, resp. we change the number of blocks com-
posing the file. In each simulation we measure the
two parameters of the LOP function: (1) Overhead δ
- the difference between the number of original mes-
sage blocks n and the total number of sent message
2
The source code for our Online codes imple-
mentation is licensed under GPL and is available at
http://sourceforge.net/projects/onlinecodes
WINSYS 2008 - International Conference on Wireless Information Networks and Systems
174