Comments (24)
I had the same problem, it have literally drain my battery.
(16% in less than a hour)
from antox.
Try disabling UDP in settings and see if that helps. I had it on by default because there were some issues with TCP relays earlier.
from antox.
i can confirm this. 28MB in 24 hours despite I just created an account without actually using it...
from antox.
@subliun We give it a try. Something else, we can do in Tox directly? Compression?
from antox.
TCP uses much less data and battery, but I haven't tested Antox on the new tox4j wrapper.
from antox.
Concerning her tablet traffic consumption we have some numbers to share:
TCP: sending 1 message: 0.05MB, receiving 1 message: 0.01MB
UDP: more and variable
Still much.
(message war reasonable short like 10 words or so, longer messages of course took more traffic).
from antox.
I'm experiencing this too: huge data usage on wifi in the range of 10Mb to 50MB per hour while I'm not using the app at all. I'm running version 0.22 from the nightly builds with "wifi-only" enabled and UDP enabled.
I'll try with UDP disabled to see if it makes a difference. Is there any number/log I can report to help you guys diagnose this?
from antox.
Disabling UDP will help, and there was an update yesterday that may help things further with regards to battery and data usage, but otherwise you will need to open an issue on the toxcore repo as that is the source of the high bandwidth issues
from antox.
Thanks! I've installed the latest build from F-Droid (By the way, you might want to put a build number in the version string, it's a bit confusing now with everything being v0.22). I'll have a look at irungentoo/toxcore#1251.
from antox.
@subliun Can this be closed when push notifications are implemented?
from antox.
@srkunze Push notifications aren't a solution for F-Droid users, at least unless something else than GCM notifications is meant by that term. I do wish that Antox remain fully free software, without linking against proprietary libraries, at least as a working option. I'm sure this could be mitigated in other ways, as many IM clients that have no GCM nofification support (like the XMPP client Conversations for instance) manage to not consume any such amount of bandwidth and battery. The distributed nature of Tox makes it trickier, but I wouldn't say impossible.
from antox.
GCM (Google Cloud Messaging), or push notifications, work by leaving a socket running that is constantly connected to Google's servers. This means that instead of every application through on your phone drawing power by staying constantly connected to a server, it can communicate through Push messages (meaning all applications are sharing one socket, requiring less data/battery). Due to the decentralized nature of Tox (your Tox client does not connect to a single server, instead a bunch of nodes), and that push notifications require the installation of google play services, this platform cannot be used.
from antox.
@wilam That's not entirely true: it COULD be used, by running a server that would basically act as a bridge between Tox and GCM. This would have potentially huge security implications (the server would be the one logged into your Tox profile, not you), though, as well as well as nullifying the decentralized nature of Tox.
from antox.
@LuccoJ: in other words, true.
I wonder if it would be viable to implement push notifications in TCP mode though? I'm pretty sure that the TCP node you're connected to doesn't login to the network on your behalf. What I don't know is whether the TCP node knows about your incoming messages... If it does, it could inform you using the open TCP connection
from antox.
@LuccoJ The reason why I say it is not possible is because doing this would go against the decentralized nature of Tox
from antox.
@wiiam Then you mean to say it is not desirable, which I may agree with, but insofar as being possible, it might be and it is actually what the maintainer currently leans towards doing.
from antox.
It's a P2P protocol. To my raw understanding his means that you (try to) relay also messages that are not meant to you.
If your 3G/4G connection can accept incoming connections (which is usually false), then you can be asked to relay stuff that it is not yours.
This is the "tax" you have to pay if you want to go decentralized.
If you go centralized, then you have the bare minimum traffic at the cost of centralization and SPoFs!
from antox.
@notorand-it True to some extend.
From what I gather here is that there need to be a compromise. So, most people don't have an issue with paying the tax as long as they aren't on mobile.
from antox.
It's a P2P protocol. To my raw understanding his means that you (try to) relay also messages that are not meant to you.
No, that's not what it means. "Peer to peer", in itself, means just what it says on the tin: that the communication happens directly between the peers involved. So in a sense, it's the opposite of what you said. However, the Tor network has a concept of "relays" to help with NAT and to make bandwidth use less intense. But you are not a relay by default.
from antox.
@LuccoJ
To my understanding P2P (implementations) works also when your incoming traffic is blocked.
To do this you need some nodes who has incoming traffic working to "relay" your incoming traffic for you.
If neither you nor your communication partner can accept incoming connections, then a relay is needed in order to allow both you and your partner to connect and it will do "the trick".
from antox.
@notorand-it That's correct about Tox: as I said, it can use relays, in "TCP mode" (its normal mode of operation is UDP).
But that is by no means a general characteristic of P2P systems: in fact, there are a huge number of P2P systems where the inability to receive incoming traffic severely impairs or even makes it completely impossible to use the system.
"Pure" P2P does not have relays; relays are introduced, making P2P less "pure" (it's no longer "peer to peer", it's "peer to relay to peer") to get around NAT limitations.
from antox.
can we expect something better now ?
from antox.
Still no news about changing this?
from antox.
@LuccoJ As there's no guarantee that your (mobile) IP connection can actually and effectively receive incoming traffic (no matter whether it's TCP or UDP), relays are the only things that allow the so called P2P protocols to work all the time. Pure P2P communication can only happen with free (as in freedom) connections on either side. For example, your home wifi router will hardly forward incoming traffic to your device, unless explicitly configured do to so. And your ISP can still be blocking it!
Antox seems to be aimed at mobile devices, the mobile data networks are based upon non-free data links (that read GGSN/SAE) so, I'd say that relays are mandatory for almost any P2P implementation.
Security and privacy are as strong as their weakest link. The relays, very likely, are the weakest links in my opinion as they are (possibly hostile) unknown devices on (possibly hostile) unknown networks.
This is why I personally think that P2P communication networks are interesting and yet useless as far as security and privacy.
So, @Kengur8 , don't expect too much from this project as well as all other P2P projects.
If the software detects it can act as a relay, it will do so and will thus boost you data usage. No matter whether it's Antox or any other P2P communication software.
from antox.
Related Issues (20)
- Antox crash when try to take picture in chatActivity HOT 3
- I lost my account HOT 3
- Crashing when receiving file HOT 1
- clickable commands
- app Lose response HOT 2
- unable to download libsodium-jni-aar:1.0.3-snapshot HOT 2
- Verifying contacts HOT 2
- Voice call implementation HOT 1
- error: target API level '28' is out of range ('11' - '24') HOT 1
- Remove startup logo screen or replace this screen with higher resolution image. HOT 4
- "Password incorrect" when importing profile from uTox HOT 2
- Something strange HOT 1
- [Feature request] Dark theme HOT 1
- not an issue .missing sugestion tab -a port to linux debian ? HOT 1
- Bug report [can't invite people, crashing on pictures, crashing on refocus] HOT 2
- Feature Request: Remote Control For Calls HOT 1
- Source Code? HOT 1
- Inviting Antox Contact to a group does nothing HOT 1
- Can't add friend with QR code HOT 2
- missing APK package
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from antox.