how much traffic does an android generate, if it sends its location to a server every minute...

6
Protocol of experiment Purpose of the experiment To get a first estimate of how much traffic is generated on a mobile phone, if location data are sent to a server (without encryption) every minute. Notes 1. The experiment was carried on Alcatel OneTouch 4030D mobile phone. 2. Android version is 4.1.1. 3. The clocks have different times – while the real time is 04.10.2013 23:33 MSK, on the mobile phone clock it is 14:30. 4. To measure the traffic, the free Traffic Monitor application was used (https://play.google.com/store/apps/details?id=com.radioopt.widget&hl=en ). 5. Mobile phone used a WiFi connection for data transfer. 6. The application transferred location data every single minute. 7. Location data were sent from the network provider only, because I was at home and GPS didn't work. If I went outdoors, GPS location data would be sent in addition to the network provider data. The traffic would increase accordingly. 8. I didn't imitate losses of connection in scope of this experiment. 9. Here are the data that were sent to the server (code of the Java message request class): public class SaveLocationRequest extends CbRequest {

Upload: dmitri-pisarenko

Post on 28-Jul-2015

60 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: How much traffic does an Android generate, if it sends its location to a server every minute (estimate) ?

Protocol of experiment

Purpose of the experiment

To get a first estimate of how much traffic is generated on a mobile phone, if location data are sent to a server (without encryption) every minute.

Notes

1. The experiment was carried on Alcatel OneTouch 4030D mobile phone.2. Android version is 4.1.1.

3. The clocks have different times – while the real time is 04.10.2013 23:33 MSK, on the mobile phone clock it is 14:30.

4. To measure the traffic, the free Traffic Monitor application was used (https://play.google.com/store/apps/details?id=com.radioopt.widget&hl=en ).

5. Mobile phone used a WiFi connection for data transfer.6. The application transferred location data every single minute.7. Location data were sent from the network provider only, because I was at home and GPS

didn't work. If I went outdoors, GPS location data would be sent in addition to the network provider data. The traffic would increase accordingly.

8. I didn't imitate losses of connection in scope of this experiment.9. Here are the data that were sent to the server (code of the Java message request class):

public class SaveLocationRequest extends CbRequest {

Page 2: How much traffic does an Android generate, if it sends its location to a server every minute (estimate) ?

private long timeOfCreation;private long timeOfProcessing;private long userId;private double latitude;private double longitude;private double altitude;private String provider;private int accuracyInMeters;private boolean altitudePresent;

[...] // Getters, setters, toString, equals and hashCode methods}

Course of the experiment

Started to measure traffic at 04.10.2013 23:33 MSK, which appears as 14:30 on the mobile phone.

At 14:35 mobile phone time, Traffic Monitor reported that the application generated 2.94 K of traffic.

At 14:37 it was 4.12 K.

Page 3: How much traffic does an Android generate, if it sends its location to a server every minute (estimate) ?

At 14:47 – 10K.

Page 4: How much traffic does an Android generate, if it sends its location to a server every minute (estimate) ?

At 14:49 – 11.18 K.

Page 5: How much traffic does an Android generate, if it sends its location to a server every minute (estimate) ?
Page 6: How much traffic does an Android generate, if it sends its location to a server every minute (estimate) ?

Conclusions

Monthly usage of this application in these conditions would generate between 7 and 32 megabytes of traffic per month.

Justification: In the attached spreadsheet estimation.ods you can find (and verify) my calculations for 2 scenarios.

Scenario Daily traffic Monthly trafficThe application sends location data only during normal office hours (8 hours per day) and only on business days.

357 KB 7 MB

The application sends the location data 24 hours a day, 7 days, 30 days per month.

1070 KB 32 MB