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
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.
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

Viewers also liked

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

Viewers also liked (20)

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

Similar to Efficient data transfer in Android

What's New with Windows Phone - FoxCon Talk
What's New with Windows Phone - FoxCon TalkWhat's New with Windows Phone - FoxCon Talk
What's New with Windows Phone - FoxCon Talk
Sam Basu
 
Azure & WP7 at GRDevDay
Azure & WP7 at GRDevDayAzure & WP7 at GRDevDay
Azure & WP7 at GRDevDay
Sam Basu
 
Making awesome apps
Making awesome appsMaking awesome apps
Making awesome apps
DroidConTLV
 
Fanug - Pragmatic Windows Phone Developer
Fanug - Pragmatic Windows Phone DeveloperFanug - Pragmatic Windows Phone Developer
Fanug - Pragmatic Windows Phone Developer
Sam Basu
 
Azure WP7 fire starter
Azure WP7 fire starterAzure WP7 fire starter
Azure WP7 fire starter
Sam Basu
 
Doug Sillars on App Optimization
Doug Sillars on App OptimizationDoug Sillars on App Optimization
Doug Sillars on App Optimization
wipjam
 
How to Lower Android Power Consumption Without Affecting Performance
How to Lower Android Power Consumption Without Affecting PerformanceHow to Lower Android Power Consumption Without Affecting Performance
How to Lower Android Power Consumption Without Affecting Performance
rickschwar
 
Facebook_TIP_Nov
Facebook_TIP_NovFacebook_TIP_Nov
Facebook_TIP_Nov
Marie-Paule Odini
 
Facebook and Telecom
Facebook and TelecomFacebook and Telecom
Facebook and Telecom
Marie-Paule Odini
 
Is your mobile app up to speed softwaresymposium
Is your mobile app up to speed softwaresymposiumIs your mobile app up to speed softwaresymposium
Is your mobile app up to speed softwaresymposium
Doug Sillars
 
QSpiders - Cloud computing(cloud server)
QSpiders - Cloud computing(cloud server)QSpiders - Cloud computing(cloud server)
QSpiders - Cloud computing(cloud server)
Qspiders - Software Testing Training Institute
 
PHP in a mobile ecosystem
PHP in a mobile ecosystem PHP in a mobile ecosystem
PHP in a mobile ecosystem
Ivo Jansch
 
Android Pro Tips - IO 13 reloaded Event
Android Pro Tips - IO 13 reloaded EventAndroid Pro Tips - IO 13 reloaded Event
Android Pro Tips - IO 13 reloaded Event
Ran Nachmany
 
Azure + WP7 - CodePaLOUsa
Azure + WP7 - CodePaLOUsaAzure + WP7 - CodePaLOUsa
Azure + WP7 - CodePaLOUsa
Sam Basu
 
Web Enabling Variable Frequency Drives
Web Enabling Variable Frequency DrivesWeb Enabling Variable Frequency Drives
Web Enabling Variable Frequency Drives
Najam Siddiqui
 
Gaolei cv 2013 til2k
Gaolei cv 2013 til2kGaolei cv 2013 til2k
Gaolei cv 2013 til2k
Lei Gao
 
02/2017 Santa Clara, California: Networks of autonomous devices and their imp...
02/2017 Santa Clara, California: Networks of autonomous devices and their imp...02/2017 Santa Clara, California: Networks of autonomous devices and their imp...
02/2017 Santa Clara, California: Networks of autonomous devices and their imp...
Frank Alexander Reusch
 
Communication in android
Communication in androidCommunication in android
Communication in android
eleksdev
 
Incorporating Web Services in Mobile Applications - Web 2.0 San Fran 2009
Incorporating Web Services in Mobile Applications - Web 2.0 San Fran 2009Incorporating Web Services in Mobile Applications - Web 2.0 San Fran 2009
Incorporating Web Services in Mobile Applications - Web 2.0 San Fran 2009
Aduci
 
Information technology
Information technologyInformation technology
Information technology
Ankit Goyal
 

Similar to Efficient data transfer in Android (20)

What's New with Windows Phone - FoxCon Talk
What's New with Windows Phone - FoxCon TalkWhat's New with Windows Phone - FoxCon Talk
What's New with Windows Phone - FoxCon Talk
 
Azure & WP7 at GRDevDay
Azure & WP7 at GRDevDayAzure & WP7 at GRDevDay
Azure & WP7 at GRDevDay
 
Making awesome apps
Making awesome appsMaking awesome apps
Making awesome apps
 
Fanug - Pragmatic Windows Phone Developer
Fanug - Pragmatic Windows Phone DeveloperFanug - Pragmatic Windows Phone Developer
Fanug - Pragmatic Windows Phone Developer
 
Azure WP7 fire starter
Azure WP7 fire starterAzure WP7 fire starter
Azure WP7 fire starter
 
Doug Sillars on App Optimization
Doug Sillars on App OptimizationDoug Sillars on App Optimization
Doug Sillars on App Optimization
 
How to Lower Android Power Consumption Without Affecting Performance
How to Lower Android Power Consumption Without Affecting PerformanceHow to Lower Android Power Consumption Without Affecting Performance
How to Lower Android Power Consumption Without Affecting Performance
 
Facebook_TIP_Nov
Facebook_TIP_NovFacebook_TIP_Nov
Facebook_TIP_Nov
 
Facebook and Telecom
Facebook and TelecomFacebook and Telecom
Facebook and Telecom
 
Is your mobile app up to speed softwaresymposium
Is your mobile app up to speed softwaresymposiumIs your mobile app up to speed softwaresymposium
Is your mobile app up to speed softwaresymposium
 
QSpiders - Cloud computing(cloud server)
QSpiders - Cloud computing(cloud server)QSpiders - Cloud computing(cloud server)
QSpiders - Cloud computing(cloud server)
 
PHP in a mobile ecosystem
PHP in a mobile ecosystem PHP in a mobile ecosystem
PHP in a mobile ecosystem
 
Android Pro Tips - IO 13 reloaded Event
Android Pro Tips - IO 13 reloaded EventAndroid Pro Tips - IO 13 reloaded Event
Android Pro Tips - IO 13 reloaded Event
 
Azure + WP7 - CodePaLOUsa
Azure + WP7 - CodePaLOUsaAzure + WP7 - CodePaLOUsa
Azure + WP7 - CodePaLOUsa
 
Web Enabling Variable Frequency Drives
Web Enabling Variable Frequency DrivesWeb Enabling Variable Frequency Drives
Web Enabling Variable Frequency Drives
 
Gaolei cv 2013 til2k
Gaolei cv 2013 til2kGaolei cv 2013 til2k
Gaolei cv 2013 til2k
 
02/2017 Santa Clara, California: Networks of autonomous devices and their imp...
02/2017 Santa Clara, California: Networks of autonomous devices and their imp...02/2017 Santa Clara, California: Networks of autonomous devices and their imp...
02/2017 Santa Clara, California: Networks of autonomous devices and their imp...
 
Communication in android
Communication in androidCommunication in android
Communication in android
 
Incorporating Web Services in Mobile Applications - Web 2.0 San Fran 2009
Incorporating Web Services in Mobile Applications - Web 2.0 San Fran 2009Incorporating Web Services in Mobile Applications - Web 2.0 San Fran 2009
Incorporating Web Services in Mobile Applications - Web 2.0 San Fran 2009
 
Information technology
Information technologyInformation technology
Information technology
 

More from Cotap Engineering

How to video.
How to video.How to video.
How to video.
Cotap Engineering
 
Notes on Debugging
Notes on DebuggingNotes on Debugging
Notes on Debugging
Cotap Engineering
 
MQTT
MQTTMQTT
Security best practices.
Security best practices.Security best practices.
Security best practices.
Cotap Engineering
 
Natural language processing in iOS / OSX
Natural language processing in iOS / OSXNatural language processing in iOS / OSX
Natural language processing in iOS / OSX
Cotap Engineering
 
Startup survival lessons
Startup survival lessonsStartup survival lessons
Startup survival lessons
Cotap Engineering
 
Architecting for the Cloud: Hoping for the best, prepared for the worst
Architecting for the Cloud: Hoping for the best, prepared for the worstArchitecting for the Cloud: Hoping for the best, prepared for the worst
Architecting for the Cloud: Hoping for the best, prepared for the worst
Cotap Engineering
 

More from Cotap Engineering (7)

How to video.
How to video.How to video.
How to video.
 
Notes on Debugging
Notes on DebuggingNotes on Debugging
Notes on Debugging
 
MQTT
MQTTMQTT
MQTT
 
Security best practices.
Security best practices.Security best practices.
Security best practices.
 
Natural language processing in iOS / OSX
Natural language processing in iOS / OSXNatural language processing in iOS / OSX
Natural language processing in iOS / OSX
 
Startup survival lessons
Startup survival lessonsStartup survival lessons
Startup survival lessons
 
Architecting for the Cloud: Hoping for the best, prepared for the worst
Architecting for the Cloud: Hoping for the best, prepared for the worstArchitecting for the Cloud: Hoping for the best, prepared for the worst
Architecting for the Cloud: Hoping for the best, prepared for the worst
 

Recently uploaded

6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
ClaraZara1
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Christina Lin
 
International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...
gerogepatton
 
Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
MDSABBIROJJAMANPAYEL
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
thanhdowork
 
Low power architecture of logic gates using adiabatic techniques
Low power architecture of logic gates using adiabatic techniquesLow power architecture of logic gates using adiabatic techniques
Low power architecture of logic gates using adiabatic techniques
nooriasukmaningtyas
 
bank management system in java and mysql report1.pdf
bank management system in java and mysql report1.pdfbank management system in java and mysql report1.pdf
bank management system in java and mysql report1.pdf
Divyam548318
 
sieving analysis and results interpretation
sieving analysis and results interpretationsieving analysis and results interpretation
sieving analysis and results interpretation
ssuser36d3051
 
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdfBPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
MIGUELANGEL966976
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
Dr Ramhari Poudyal
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
Madan Karki
 
Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...
IJECEIAES
 
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdfIron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
RadiNasr
 
ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024
Rahul
 
Technical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prismsTechnical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prisms
heavyhaig
 
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptxML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
JamalHussainArman
 
132/33KV substation case study Presentation
132/33KV substation case study Presentation132/33KV substation case study Presentation
132/33KV substation case study Presentation
kandramariana6
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
SyedAbiiAzazi1
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
gestioneergodomus
 
basic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdfbasic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdf
NidhalKahouli2
 

Recently uploaded (20)

6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
 
International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...
 
Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
 
Low power architecture of logic gates using adiabatic techniques
Low power architecture of logic gates using adiabatic techniquesLow power architecture of logic gates using adiabatic techniques
Low power architecture of logic gates using adiabatic techniques
 
bank management system in java and mysql report1.pdf
bank management system in java and mysql report1.pdfbank management system in java and mysql report1.pdf
bank management system in java and mysql report1.pdf
 
sieving analysis and results interpretation
sieving analysis and results interpretationsieving analysis and results interpretation
sieving analysis and results interpretation
 
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdfBPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
 
Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...
 
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdfIron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
 
ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024
 
Technical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prismsTechnical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prisms
 
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptxML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
 
132/33KV substation case study Presentation
132/33KV substation case study Presentation132/33KV substation case study Presentation
132/33KV substation case study Presentation
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
 
basic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdfbasic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.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
  • 4.
  • 5.
  • 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.
  • 13.
  • 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