3. EXPERIMENTS
We are interested in the communication performance of our mes-
sage bottles when using WLAN in terms of communication range,
UDP performance and Round-trip Time (RTT) as a measure for
node discoverability, and achievable TCP throughput representing
Figure 1: Raspberry Pi hardware in a waterproof container messaging over the TCP convergence layer.
3.1 Setup
2.2 Messaging Software We carried out a series of experiments with two message bottles
We use the Java-based SCAMPI router implementation [15] that in July 2013 in two different locations:
is compliant with the delay-tolerant networking architecture devel- 1. Land: As initial feasibility evaluation, we performed “dry
oped in the DTNRG [3] and implements the Bundle Protocol [17] runs” in a residential neighborhood in Espoo, Finland. We place
and the TCP convergence layer [4]. In addition, the SCAMPI router the bottles a) in about 25 cm height (using plastic buckets) and b)
uses a number of mechanisms for neighbor discovery and provides on the fairly plain sandy ground. We place the bottles with the
a key-value structure for extensible application layer messaging on antennae facing each other in increasing distances: for 1–10 m in
top of DTN bundles, suitable for implementing content-centric ad- increments of 1 m and then for 10–30 m in increments of 5 m. This
dressing, publish/subscribe operation, and other mechanisms for outdoor environment sees interference from numerous (about 10)
content sharing. The SCAMPI router also runs on Android devices other WLAN access points in the neighboring homes, but as we do
and can communicate over arbitrary IP networks. Thus, mobile not aim at measurement precision but rather validate the setup for
phones can post messages to or retrieve them from the bottles and the experiments in the water, their presence is not an issue. We do
could provide an uplink to the Internet via a cellular network, if not report quantitative details on these runs.
available, to support simple capillary network scenarios. 2. Sea: We deploy the message bottles in the shallow waters of
Message Bottles can operate in three modes: 1) As drifting liber- a beach (Mellsten, Espoo, Finland) in the Baltic Sea about 5–6 m
outers [9], i.e., WLAN access points with supplementary oppor- from the shore. We chose the open Baltic Sea so that we won’t have
tunistic networking software, and allow mobile devices to connect any interference from other WLANs (we validated the absence of
to them when they come in range; 2) as WLAN clients looking other networks) and that there won’t be any reflections (e.g., from
for access points to connect to; and 3) in ad-hoc mode so that they walls or roofs of swimming halls) that could assist communica-
can actually connect to each other, which isn’t possible for modes tions. We manually keep the bottles “roughly” in their respective
1) and 2). However, ad-hoc mode severely limits interaction with location, allowing them to drift and turn while floating. In this set-
other mobile devices such as mobile phones and WLAN access ting, we carry out measurements in distances of 3–20 m; we stop
points. If we want to enable bottle-to-bottle communication, we at 20 m as this appears to be limit to get connectivity for our mes-
can equip each Message Bottle with two wireless interfaces and run sage bottles. At the time of our measurements in the sea, the sea
one as access point and the other as station adapter (as we have done was very calm with very small waves (rather ripples; amplitude
in our mining system [6]). However, this increases energy con- <10 cm). We also perform reference measurements on the (not
sumption and cost and may increase the form factor too. Another quite plain) sandy beach with the bottles in 1 m and 20 m distance.
alternative is running, e.g., WLAN-Opp to dynamically switch be-
Web
control
tween access point and station adapter mode [18]. For our exper- interface
iments in this paper, we follow the latter idea but use static mode
assignments.
The SCAMPI router relies on on UDP for neighbor discovery
and on TCP for exchanging control information and messages. To
simplify instrumentation, we carry out the following experiments Measurement
server
Measurement
client
A WLAN
Access
Point
B
using existing tools for measuring TCP, UDP, and ICMP perfor- Web
server
150 TCP SIM, both TCP connections used by iperf start out similarly,
but within some five to ten seconds either direction may gain over
100
the other for a period of time, leading to the asymmetric in trans-
50
mission rate and data volume. Which connection performs better
may change during the experiments, but often the first asymmetry
0 lasts until the end of the 30 s measurement. This appears to happen
64 bytes 512 bytes 1024 bytes 1500 bytes
Size of ping packets
more frequently (but not always) for the direction B←A. We note
that this asymmetry may be related to iperf using two independent
TCP connections (which increases the load as ACKs of one direc-
Figure 3: RTTs of individual ping packets for different packets
tion cannot be piggybacked onto data segments in the other). This
sizes (64–1500 bytes) and different distances between the mes-
requires further investigation.
sage bottles in the Baltic Sea with two reference measurements
For UDP, we use the iperf default packet size of 1470 bytes and
on the beach.
Instant (per-second) bit rates (kbit/s) 7000 7000 Sea 3m alt Sea 10m alt Sea 15m alt
0 0 0
S3m S5m S10m S15m S17m S20m B1m B20m S3m S5m S10m S15m S17m S20m B1m B20m 5 10 15 20 25 30
Measurement: Location (S: Sea, B: Beach) and distance Measurement: Location (S: Sea, B: Beach) and distance Time (s)
Figure 4: Instant TCP data rate per one-second interval and mean data rate, for both directions: (a) simultaneous data transmission
A↔B (TCP SIM, left) and (b) sequential data transmission B→A; A→B (TCP SEQ, middle). (c) Data rate variation over time for
TCP SEQ (right).
20000 20000
Sea 3m sim Sea 3m alt
Sea 5m sim Sea 5m alt
Sea 10m sim Sea 10m alt
Sea 15m sim Sea 15m alt
Cumulative goodput (KB)
5000 5000
0 0
5 10 15 20 25 30 5 10 15 20 25 30
Time (s) Time (s)
20000 20000
Sea 3m sim Sea 3m alt
Sea 5m sim Sea 5m alt
Sea 10m sim Sea 10m alt
Sea 15m sim Sea 15m alt
Cumulative goodput (KB)
5000 5000
0 0
5 10 15 20 25 30 5 10 15 20 25 30
Time (s) Time (s)
Figure 5: Cumulative TCP data volume transmitted during 30 s for simultaneous (TCP SIM, left column) and sequential transmission
(TCP SEQ, right colum). The top row shows the transmission direction A→B and the bottom row B→A. Note that some connections
broke during the respective experiment.
fix the data rate at 1 Mbit/s, which is notably lower than we could ferred between bottles in 30 s. Since drift is usually expected to
achieve with TCP, so that the measurements can focus channel- in- be slow, this should suffice for two bottles to exchange a substan-
duced packet loss. Figure 6 shows that this target rate is kept for tial number of messages. With this, running the SCAMPI router
short distances with virtually no packet loss. Again, variations be- in message bottle appears promising, but future experiments are
gin showing at 10 m and performance starts to degrade at 15 m, con- needed to undertand the achievable messaging performance of the
sistent with the ping-based RTT measurements and the TCP mea- complete system.
surements. Receive data rates above 1 Mbit/s simply indicate that
packets got grouped due to link layer retransmissions; rates lower 3.3 Limitations
than 1 Mbit/s stem partly from similar effects, but are also due to
The above measurements provide some insight into the commu-
packet losses, which become significant for distances of 15+ m as
nication performance of our specific message bottle design. The
the figure also shows. The resulting cumulative data volume (not
measurements were taken on three days on land and on two days in
shown) is less diverse than for TCP due to the rate limit (which
the sea, with especially the latter certainly biased towards (sunny)
also limits the data volume to 3.75 MB). Again, the connectivity
weather conditions, particularly wind and waves (or lack thereof).
does not last throughout the experiments for 15 m and above.
The measurements only capture certain data points (TCP and UDP
Overall, in calm waters, our message bottles can communicate
with certain packet sizes) and traffic patterns. To be able to charac-
as soon as they get within 15 m of each other. Communication per-
terize the link performance, we did not use the SCAMPI router but
formance shows that data rates of close to 1 Mbit/s are achievable
rather dedicated measurement tools. All individual measurements
at this distance and that several megabytes of data can be trans-
were of limited duration of up to 30 s; using longer durations in
Instant (per-second) bit rates (kbit/s)
3000 1
Instant rate lated. These parameter maps were kindly shared by the authors of
2500 Mean rate
the study and used as input data for the implementation in the ONE
2000 simulator.
0.6
We also implemented a new simulated wireless network mod-
1500
0.4 ule that supports different transmission speeds based on the dis-
1000
tance between the nodes, which we parameterize based our mea-
0.2 surements, but which can use arbitrary connectivity characteristics.
500
0 0
Since we are modeling reliable transfer, we use the data from the
S 3m S 5m S 10m S 15m S 17m S 20m B 1m B 20m alternating TCP transfer speed measurement at sea as the input for
Measurement: Location (S: Sea, B: Beach) and distance
simulations. A screen capture of a resulting simulation is shown in
Instant (per-second) bit rates (kbit/s)
3000 1 figure 7.
Instant rate
2500 Mean rate
2000
0.6
1500
0.4
1000
0.2
500
0 0
S 3m S 5m S 10m S 15m S 17m S 20m B 1m B 20m
Measurement: Location (S: Sea, B: Beach) and distance