iOS WG Battery Life

Lonnie Abelbeck lists at lonnie.abelbeck.com
Sat Mar 2 22:22:51 CET 2019


Kalin,

As a single data point test, I borrowed my wife's iPod Touch
--
iPod Touch (6th gen., A8 processor)
iOS WireGuard v1.0.3
iOS 12.1.4
--
* Charged to 100%
* Enable WiFi only (Bluetooth disabled, no LTE) and WireGuard enabled
* No PersistentKeepalive enabled at either WG endpoint
* Swiped-close all running apps
* Let sit idle
* After 6 hours, battery reads 99% charged

Monitoring WG traffic at the "server" end, over 6 hours the delta traffic is:
--
0.26 MiB received,  0.30 MiB sent
--
It appears iOS generates packets about every 20 minutes or so.

Lonnie


> On Mar 2, 2019, at 1:54 PM, kolargol <kolargol at protonmail.com> wrote:
> 
> 
>> Possibly, is PersistentKeepalive defined at the "server" endpoint for your iOS peer ?
>> 
>> I would expect a measurable additional battery usage if either peer endpoint had PersistentKeepalive defined (non-zero).
> 
> Both server and peer have PersistentKeepalive disabled, there is no fancy apps runnign in backgroud - and i am using exac same WiFi and VPN endpoint (for OpenVPN and WG comparision).
> WiFI connection is stable and have strong signal, same with LTE.
> The battery grap shows sharp down in the night as something continuesly draing battery (here wg)
> How can i debug it ?



More information about the WireGuard mailing list