SlideShare a Scribd company logo
Efficient Data
Transfer in Android
Ralph Pina
Topics
- Radio state machine
- Big vs small cookie model
- Best practices
- Analyze your data transfer
- Resources for those interested
Radio State Machine
Full power: Used when a connection is active, allowing the device to transfer data at its highest possible rate.
Low power: An intermediate state that uses around 50% of the battery power at the full state.
Standby: The minimal energy state during which no network connection is active or required.
- AT&T timing for 3G
Efficient data transfer in Android
Efficient data transfer in Android
And then… show the user
Bundle Data Transfers
More graphs!
Wow power!
Prefetch!
“The single most important
measure: transmit as much data as
possible in a single burst and then
end the connection.”
- AT&T Labs
Parallelize!
- Parallelize requests
Download Patterns!
- Optimize download patterns based on data
connection.
- Prefetch more in 4G since you have higher
speed and it takes more power for the antenna
to come back.
Efficient data transfer in Android
More stuff!
- In Android, use SyncAdapter. Let the OS do
the the sync!
- Variable data transfers depending on usage.
- Sync when device is connected to power.
How GCM Works
- Phone connected via TCP port 5228
- Periodic heartbeat keeps the connection alive.
15 min on Wifi and 28 min on cell
Cotap Device Msging?
- Build our own MQTT server - invented by
IBM, very low power/bandwidth
- Current examples:
Eclipse Paho
Facebook Messenger and main app
Show and tell
- AT&T ARO
- supports second rate OS like
iOS and WP8!
- Android Monitor - <sdk location>/tools/monitor
Resources/Citations
- AT&T: A Call For More Energy Efficient Apps - http://www.research.att.
com/articles/featured_stories/2011_03/201102_Energy_efficient?fbid=Fp7Al9yFu9_
- AT&T ARO: https://github.com/attdevsupport/ARO
- Android Root Push Notification Fixer: https://play.google.com/store/apps/details?id=com.andqlimax.pushfixer&hl=en
- MQTT in Android: http://mqtt.org/wiki/doku.php/mqtt_on_the_android_platform
- Facebook: Building Facebook Messanger - https://www.facebook.com/notes/facebook-engineering/building-facebook-
messenger/10150259350998920
- DevBytes: Efficient Data Transfers - Understanding the Cell Radio (8/21/13): http://www.youtube.com/watch?v=cSIB2pDvH3E
- DevBytes: Efficient Data Transfers - Analyzing Your Transfer Profile (8/28/13): https://www.youtube.com/watch?
v=cLqWYeQcG94
- DevBytes: Efficient Data Transfers - Effective Prefetching (9/4/13): http://www.youtube.com/watch?v=Rk1u7VVmadE
- Using connectivity patterns: http://developer.android.com/training/efficient-downloads/connectivity_patterns.html
- Using Sync Adapters: http://developer.android.com/training/sync-adapters/index.html
Resources/Citations
- DevBytes: Efficient Data Transfers - Batching, Bundling, and SyncAdapters (9/11/13): http://www.youtube.com/watch?
v=5onKZcJyJwI
- DevBytes: Efficient Data Transfers - Eliminating Polling with Google Cloud Messaging (9/20/13): https://www.youtube.
com/watch?v=cJbGK6cVmSM
- DevBytes: Efficient Data Transfers - Variable Update Frequencies (9/25/13): https://www.youtube.com/watch?v=9z1BfyqmsyA
- DevBytes: Efficient Data Transfers - Minimizing Payloads (10/2/13): http://www.youtube.com/watch?v=OfYLG6FXtqE
- AT&T Research - Tail Optimization Protocol: http://www.research.att.com/export/sites/att_labs/techdocs/TD_100036.pdf
- Google I/O 2014 App: https://github.com/google/iosched
- Analyzing ARO Data: https://developer.att.com/static-assets/documents/aro/ATT_ARO_Analysis_Guide_3-2.pdf
- LTE Long and Short DRX Cycles to Save Power: http://mobilesociety.typepad.com/mobile_life/2009/12/lte-long-and-short-drx-
cycles-to-save-power.html

More Related Content

PDF
[@NaukriEngineering] AppTracer
PPT
Energy efficiency of android
PPTX
2 15-12-reisman mitef patents
PPTX
Android Framework
PPTX
Pendrive to pendrive data transfer without pc
PDF
Wifi Direct Based Chat And File Transfer Android Application
PDF
Airbrush Bariatric Surgery Alternative2
[@NaukriEngineering] AppTracer
Energy efficiency of android
2 15-12-reisman mitef patents
Android Framework
Pendrive to pendrive data transfer without pc
Wifi Direct Based Chat And File Transfer Android Application
Airbrush Bariatric Surgery Alternative2

Viewers also liked (20)

PDF
SSE Theory of Change
PDF
会話・ディスカッションができる共有メモ「co-meeting」@MONOフェス
PPTX
Co meeting - 会議・情報共有を革新するテキストベースディスカッションツール
PDF
Aberdeen International Corporate Presentation July 2016
PDF
North American StartUps disrupting Wine&Spirits, Food and Travel
PPTX
10.data transmission
PDF
Inside3DPrinting_johnhornick
PDF
JSONModel Lightning Talk
PDF
Chinese StartUps
PDF
Virginia Smith, Researcher, UC Berkeley at MLconf SF 2016
PDF
Global Insights on Venture Capital in 2014
PPTX
Alex Dimakis, Associate Professor, Dept. of Electrical and Computer Engineeri...
PDF
How Ecosystem Economics™ Predicts the Winners in the Digital Age
PDF
33insights: Investing in WineTech, Global Insights
PPTX
Daniel Shank, Data Scientist, Talla at MLconf SF 2016
PDF
Scott Clark, Co-Founder and CEO, SigOpt at MLconf SF 2016
PDF
Stephanie deWet, Software Engineer, Pinterest at MLconf SF 2016
PDF
TravelTech StartUps Survey: Global insights by 33entrepreneurs
PDF
Elena Grewal, Data Science Manager, Airbnb at MLconf SF 2016
PDF
What is VO2Max
SSE Theory of Change
会話・ディスカッションができる共有メモ「co-meeting」@MONOフェス
Co meeting - 会議・情報共有を革新するテキストベースディスカッションツール
Aberdeen International Corporate Presentation July 2016
North American StartUps disrupting Wine&Spirits, Food and Travel
10.data transmission
Inside3DPrinting_johnhornick
JSONModel Lightning Talk
Chinese StartUps
Virginia Smith, Researcher, UC Berkeley at MLconf SF 2016
Global Insights on Venture Capital in 2014
Alex Dimakis, Associate Professor, Dept. of Electrical and Computer Engineeri...
How Ecosystem Economics™ Predicts the Winners in the Digital Age
33insights: Investing in WineTech, Global Insights
Daniel Shank, Data Scientist, Talla at MLconf SF 2016
Scott Clark, Co-Founder and CEO, SigOpt at MLconf SF 2016
Stephanie deWet, Software Engineer, Pinterest at MLconf SF 2016
TravelTech StartUps Survey: Global insights by 33entrepreneurs
Elena Grewal, Data Science Manager, Airbnb at MLconf SF 2016
What is VO2Max
Ad

Similar to Efficient data transfer in Android (20)

PDF
Understanding Smartphone Traffic - DroidCon 2010
PPT
Synapseindia mobile apps cellular networks and mobile computing part1
PPTX
Communication in android
PPTX
4G LTE Mobile Broadband Overview
PDF
M2M communications
PDF
G046053338
PDF
5 g tech
ODP
Android Pro Tips - IO 13 reloaded Event
PDF
2 g _3g__4g..._omg_what_g_is_right_for_m2m
PDF
5G TECHNOLOGY project report
PPTX
Mobile internet presentation
PPT
Rich, Real-time Mobile User Experiences @Devoxx UK
PDF
23 6030 5902-1-sm (edit a)
PDF
Android pro tips trilogy
PDF
An introduction to Wireless Small Cell Networks
PDF
ATCA's Big Femtocell Opportunity
PDF
M2M Day Two
PDF
Practical Experiences of Multi-Operator Neutral Hosting James Body, TADSummit...
PDF
Making awesome apps
PDF
Lte latam 2016 v2.5a
Understanding Smartphone Traffic - DroidCon 2010
Synapseindia mobile apps cellular networks and mobile computing part1
Communication in android
4G LTE Mobile Broadband Overview
M2M communications
G046053338
5 g tech
Android Pro Tips - IO 13 reloaded Event
2 g _3g__4g..._omg_what_g_is_right_for_m2m
5G TECHNOLOGY project report
Mobile internet presentation
Rich, Real-time Mobile User Experiences @Devoxx UK
23 6030 5902-1-sm (edit a)
Android pro tips trilogy
An introduction to Wireless Small Cell Networks
ATCA's Big Femtocell Opportunity
M2M Day Two
Practical Experiences of Multi-Operator Neutral Hosting James Body, TADSummit...
Making awesome apps
Lte latam 2016 v2.5a
Ad

More from Cotap Engineering (7)

PDF
How to video.
PPTX
Notes on Debugging
PDF
Security best practices.
PDF
Natural language processing in iOS / OSX
PDF
Startup survival lessons
PDF
Architecting for the Cloud: Hoping for the best, prepared for the worst
How to video.
Notes on Debugging
Security best practices.
Natural language processing in iOS / OSX
Startup survival lessons
Architecting for the Cloud: Hoping for the best, prepared for the worst

Recently uploaded (20)

PPT
Total quality management ppt for engineering students
PPT
INTRODUCTION -Data Warehousing and Mining-M.Tech- VTU.ppt
PDF
Categorization of Factors Affecting Classification Algorithms Selection
PPTX
introduction to high performance computing
PPTX
Information Storage and Retrieval Techniques Unit III
PDF
Exploratory_Data_Analysis_Fundamentals.pdf
PDF
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
PPTX
Safety Seminar civil to be ensured for safe working.
PDF
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
PDF
A SYSTEMATIC REVIEW OF APPLICATIONS IN FRAUD DETECTION
PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PDF
Accra-Kumasi Expressway - Prefeasibility Report Volume 1 of 7.11.2018.pdf
PDF
null (2) bgfbg bfgb bfgb fbfg bfbgf b.pdf
PDF
distributed database system" (DDBS) is often used to refer to both the distri...
PDF
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
PDF
UNIT no 1 INTRODUCTION TO DBMS NOTES.pdf
PDF
III.4.1.2_The_Space_Environment.p pdffdf
PPTX
"Array and Linked List in Data Structures with Types, Operations, Implementat...
PPTX
Graph Data Structures with Types, Traversals, Connectivity, and Real-Life App...
PDF
Abrasive, erosive and cavitation wear.pdf
Total quality management ppt for engineering students
INTRODUCTION -Data Warehousing and Mining-M.Tech- VTU.ppt
Categorization of Factors Affecting Classification Algorithms Selection
introduction to high performance computing
Information Storage and Retrieval Techniques Unit III
Exploratory_Data_Analysis_Fundamentals.pdf
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
Safety Seminar civil to be ensured for safe working.
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
A SYSTEMATIC REVIEW OF APPLICATIONS IN FRAUD DETECTION
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
Accra-Kumasi Expressway - Prefeasibility Report Volume 1 of 7.11.2018.pdf
null (2) bgfbg bfgb bfgb fbfg bfbgf b.pdf
distributed database system" (DDBS) is often used to refer to both the distri...
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
UNIT no 1 INTRODUCTION TO DBMS NOTES.pdf
III.4.1.2_The_Space_Environment.p pdffdf
"Array and Linked List in Data Structures with Types, Operations, Implementat...
Graph Data Structures with Types, Traversals, Connectivity, and Real-Life App...
Abrasive, erosive and cavitation wear.pdf

Efficient data transfer in Android

  • 1. Efficient Data Transfer in Android Ralph Pina
  • 2. Topics - Radio state machine - Big vs small cookie model - Best practices - Analyze your data transfer - Resources for those interested
  • 3. Radio State Machine Full power: Used when a connection is active, allowing the device to transfer data at its highest possible rate. Low power: An intermediate state that uses around 50% of the battery power at the full state. Standby: The minimal energy state during which no network connection is active or required. - AT&T timing for 3G
  • 6. And then… show the user
  • 10. Prefetch! “The single most important measure: transmit as much data as possible in a single burst and then end the connection.” - AT&T Labs
  • 12. Download Patterns! - Optimize download patterns based on data connection. - Prefetch more in 4G since you have higher speed and it takes more power for the antenna to come back.
  • 14. More stuff! - In Android, use SyncAdapter. Let the OS do the the sync! - Variable data transfers depending on usage. - Sync when device is connected to power.
  • 15. How GCM Works - Phone connected via TCP port 5228 - Periodic heartbeat keeps the connection alive. 15 min on Wifi and 28 min on cell
  • 16. Cotap Device Msging? - Build our own MQTT server - invented by IBM, very low power/bandwidth - Current examples: Eclipse Paho Facebook Messenger and main app
  • 17. Show and tell - AT&T ARO - supports second rate OS like iOS and WP8! - Android Monitor - <sdk location>/tools/monitor
  • 18. Resources/Citations - AT&T: A Call For More Energy Efficient Apps - http://www.research.att. com/articles/featured_stories/2011_03/201102_Energy_efficient?fbid=Fp7Al9yFu9_ - AT&T ARO: https://github.com/attdevsupport/ARO - Android Root Push Notification Fixer: https://play.google.com/store/apps/details?id=com.andqlimax.pushfixer&hl=en - MQTT in Android: http://mqtt.org/wiki/doku.php/mqtt_on_the_android_platform - Facebook: Building Facebook Messanger - https://www.facebook.com/notes/facebook-engineering/building-facebook- messenger/10150259350998920 - DevBytes: Efficient Data Transfers - Understanding the Cell Radio (8/21/13): http://www.youtube.com/watch?v=cSIB2pDvH3E - DevBytes: Efficient Data Transfers - Analyzing Your Transfer Profile (8/28/13): https://www.youtube.com/watch? v=cLqWYeQcG94 - DevBytes: Efficient Data Transfers - Effective Prefetching (9/4/13): http://www.youtube.com/watch?v=Rk1u7VVmadE - Using connectivity patterns: http://developer.android.com/training/efficient-downloads/connectivity_patterns.html - Using Sync Adapters: http://developer.android.com/training/sync-adapters/index.html
  • 19. Resources/Citations - DevBytes: Efficient Data Transfers - Batching, Bundling, and SyncAdapters (9/11/13): http://www.youtube.com/watch? v=5onKZcJyJwI - DevBytes: Efficient Data Transfers - Eliminating Polling with Google Cloud Messaging (9/20/13): https://www.youtube. com/watch?v=cJbGK6cVmSM - DevBytes: Efficient Data Transfers - Variable Update Frequencies (9/25/13): https://www.youtube.com/watch?v=9z1BfyqmsyA - DevBytes: Efficient Data Transfers - Minimizing Payloads (10/2/13): http://www.youtube.com/watch?v=OfYLG6FXtqE - AT&T Research - Tail Optimization Protocol: http://www.research.att.com/export/sites/att_labs/techdocs/TD_100036.pdf - Google I/O 2014 App: https://github.com/google/iosched - Analyzing ARO Data: https://developer.att.com/static-assets/documents/aro/ATT_ARO_Analysis_Guide_3-2.pdf - LTE Long and Short DRX Cycles to Save Power: http://mobilesociety.typepad.com/mobile_life/2009/12/lte-long-and-short-drx- cycles-to-save-power.html