how much traffic does an android generate, if it sends its location to a server every minute...
TRANSCRIPT
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 {
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.
At 14:47 – 10K.
At 14:49 – 11.18 K.
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