Hi,
I have been using NetSentry to monitor my monthly data usage and it always shows three network interfaces:
eth0 - this is WiFi (stupid name, should probably have been wlan0, but on the other hand - who am I to question the wisdom of Sammy)
pdp0 - this seems to be some kind of mobile data
svnet0 - this also seems to be some kind of mobile data
I've always assumed that the reason for both svnet0 and pdp0 to exist was that one was used for 3G traffic and the other one for 2G traffic or something like that. At the end of a month I would normally have had roughly two times as much traffic on pdp0 as on svnet0.
I then installed DroidStats since it has a lot more features that I wanted to try. However, when comparing the two apps I could see that the mobile data counter shown by DroidStats only takes pdp0 into account and this made me start wondering if DroidStats was missing something or if svnet0 interface is actually something else.
I was looking a bit in the NetSentry bug tracker and some people there seem to suggest that one of the interfaces are related to tethering but that makes no sense for me since I don't use the phone for any kind of tethering.
So here's the question: Can somebody shed some light on what these two interfaces are?
Thank you
Hi,
I am the developer of DroidStats and the questition is very good and brought my also a lot of headache (saw the NetSentry issue also a long time ago) . Only pdp0 is used. But a qualified answer would be interesting, especially from people doing some low level stuff. I am also interested in concrete answers to that problem. Maybe to email (Because I don't check here too often) [email protected]
Regards,
Michael
Nitromouse said:
Hi,
I am the developer of DroidStats and the questition is very good and brought my also a lot of headache (saw the NetSentry issue also a long time ago) . Only pdp0 is used. But a qualified answer would be interesting, especially from people doing some low level stuff. I am also interested in concrete answers to that problem. Maybe to email (Because I don't check here too often) [email protected]
Regards,
Michael
Click to expand...
Click to collapse
Hi both of you.
I have done a few small tests here I used the BT5 chroot solution and I tried various configurations of the various connectivity solutions to see what cause the tx and rx packet numbers to change significantly
switched off wifi and data, tried bluetooth nothing, gps a couple of packets, then finally made a call packets went up significantly
since mobile calls are all VoIP based (loosely at least) this is the answer
This interface is used for call traffic and therefore does not need monitoring by your app
At least thats my guess based on five minutes playing around.
Hope this helps
pdp0 is an interface to packet data APN using GERAN/UTRAN connections on the device.
bash-3.2# ls -l /sys/class/net/svnet0/pdp/
-rw-rw-r-- 1 root root 4096 Nov 4 13:40 activate
-rw-rw-r-- 1 root root 4096 Nov 4 13:40 deactivate
-rw-rw-r-- 1 root root 4096 Nov 4 13:40 resume
-rw-rw-r-- 1 root root 4096 Nov 4 13:40 suspend
pdp0 is connected and disconnected using special interface svnet0 (cdc_svnet module). I'm diggin' into it right now and will post with further details.
Related
Just a reminder to get it on top of the list again
It is becoming rather difficult to compare all the different statements about Wifi performance and the speed results determined with Speedtest.Net
Don't use the bars at the bottom of the screen.
These are just a graphical image representing that something is going on with Wifi. If the parameters in the firmware are changed you can get as much bars as you want.
Furthermore the bars don't say anything about the quality of the Wifi connection.
Don't use Speedtest.Net
Speedtest.Net doesn't measure Wifi speed but the speed of the connection you are having with a remote Speedtest.Net server on the internet. The speed it indicates is the speed of the weakest link in the routing. So congestion on the internet (not your Wifi) is represented in a slower speed.
When your family or housemates are streaming Youtube the speed it indicates is the speed for the remainder of the bandwith that is left over for you.
Use only Iperf!!! (it's free)
With Iperf you set up a server and a client in your home network . By executing Iperf with different parameters you can get a lot of different info about your Wifi like bandwith, lost packets, jitter, sent and recieved data, etcetera.
For the noob it seems complicated but it isn't. There is a good tutorial on http://openmaniak.com/iperf.php
Please do me, the community and yourself a favor.
Use Iperf.
That way we can get data we can compare.
And maybe someday it will get us somewhere
Thank you very much in advance
PS: Don't just do one test. Do multiple tests. This is something you can automate with Iperf. Set it to do 20 (or more) tests and get some coffee.
using -c<ip> -d I get the following in the same room of my 300mbps wireless n router:
Client connecting to 192.168.1.100, TCP port 5001
TCP window size: 8.00 KByte (default)
------------------------------------------------------------
[256] local 192.168.1.102 port 49792 connected with 192.168.1.100 port 5001
[ ID] Interval Transfer Bandwidth
[256] 0.0-10.0 sec 8.52 MBytes 7.13 Mbits/sec
[280] 0.0-10.1 sec 36.1 MBytes 30.1 Mbits/sec
[288] local 192.168.1.102 port 5001 connected with 192.168.1.100 port 58706
i'm going to assume that this is bad...
Edit: Another test doing -t 25 -i 1:
I get an average transfer of about 4.4 MBytes and Bandwidth of an average of about 38MBits/sec
dingdonggggg said:
Just a reminder to get it on top of the list again
It is becoming rather difficult to compare all the different statements about Wifi performance and the speed results determined with Speedtest.Net
Don't use the bars at the bottom of the screen.
These are just a graphical image representing that something is going on with Wifi. If the parameters in the firmware are changed you can get as much bars as you want.
Furthermore the bars don't say anything about the quality of the Wifi connection.
Don't use Speedtest.Net
Speedtest.Net doesn't measure Wifi speed but the speed of the connection you are having with a remote Speedtest.Net server on the internet. The speed it indicates is the speed of the weakest link in the routing. So congestion on the internet (not your Wifi) is represented in a slower speed.
When your family or housemates are streaming Youtube the speed it indicates is the speed for the remainder of the bandwith that is left over for you.
Use only Iperf!!! (it's free)
With Iperf you set up a server and a client in your home network . By executing Iperf with different parameters you can get a lot of different info about your Wifi like bandwith, lost packets, jitter, sent and recieved data, etcetera.
For the noob it seems complicated but it isn't. There is a good tutorial on http://openmaniak.com/iperf.php
Please do me, the community and yourself a favor.
Use Iperf.
That way we can get data we can compare.
And maybe someday it will get us somewhere
Thank you very much in advance
PS: Don't just do one test. Do multiple tests. This is something you can automate with Iperf. Set it to do 20 (or more) tests and get some coffee.
Click to expand...
Click to collapse
Just a reminder to get the thread a liitle bit higher on the list again.
Lot's of people asking the same question
please understand that i used google translate to translate this post that i originally made for my native language(italian). So, be patient for the lessical error.
Network Connections
https://play.google.com/store/apps/d...ll.connmonitor
explanation taken from another site :
allows you to monitor the traffic inbound and outbound to and from the phone.
It keeps track of all the connections used by internet services and applications running, and allow you to track IP addresses to which they connect .
Its simple interface provides an historical overview of the data collected and the ability to capture information in real time, showing who is using the internet on your phone.
For each app says how many bytes were sent and received by each connection , which is useful for discovering suspicious activity or simply applications that continuously transmit data and should be disabled with connections to consumption .
The second app is this ............ (the one that gives me the fear !)
INTERNET SPEED METER LITE
https://play.google.com/store/apps/d...eed.meter.lite
you can see a table in the consumption of network bandwidth made Android smartphone every day for a month , with free Wifi and 3G data from that .
The status bar indicates the transfer of data in real time and you can then see if there is network traffic on the screen without having to touch anything .
First I downloaded speed meter .... and I saw that I'm always in between the download 100b/se also peaks 500b/so even half kb / s
is terrifying ! the first app it should help you figure out which app (or what ) are the alleged infringers.
pity that I just can not bring myself to figure out which app I suck bandwidth , it certainly is a problem of my incapacitò read the app . A NOSE .... I was able to see that the first two places there are google service frameworks and factory test. but do not give you the certainty of what I say.
PLEASE installed these two apps and you also find , especially with the SECOND APP .... if phone idle , without touching anything you have a data download ( to separate the revenue from the up down in the options of the app shows the speed and flagged upload / download)
Usint Internet Speed Meter Lite for a long time, no issue like you mentioned. Infact no issue at all.
On my j700t (2 separate phones now, both the same problem, multiple factory resets, no root) , when I view the network connections using sockstat, there is always ports listening, usually 5060 ( SIP ) . Also, 6200, 6201, 59473, 40802, 40802, and more usually UDP listeners. Also, there is always an established connection with 0.0.0.1 on port 65529 via TCP ( the remote address is 0.0.0.1 , the local address is a routable ipv4 address) , with a random IP address every time I reboot the phone, yet the last octet in the ip is always 1 (*.*.*.1). Usually it would say the app initiating this connection is software update, with UID 1000, but sometimes it will list random system apps such as camera test, hwmodule, etc. After a recent complete factory reset, the connections are still there, except this time its no app and just a lock icon ( Still UID 1000). The phone is not rooted, I am not going to root it. I suspect the phone has repeatedly been hacked ( within 1 hour of the phone first being taken out of the box) . I have searched for months now and there are zero resources online for this type of activity. If I use the app Network Connections, it says the same app has an established connection, except it gives a Unique l local IPV6 address (starting with FD00) instead of an ipv4. Also, the ip in the app sockstat is always in the "local" field, and the remote field is 0.0.0.1. This is my last resort before I go to a flip phone. It also is the exact same with max updates.
After reboot it switches to another app.
local: 253.224.206.1:6101
Remote: 0.0.0.1:65529
State: TCP_ESTABLISHED
uid: 1000
[Copied to clipboard]
local: 0.0.0.0:6100
Remote: 0.0.0.0:0
State: UDP_LISTEN
uid: 1000
[Copied to clipboard]
Having same problem. Can you furnish a list of apps you have installed? Have you figured this out yet?
uid 1000 is the user id assigned to "system" in android.
The network logs looks fine since the addresses are not connectable.
Factory reset only resets the data partition.
If you want to do a full reset of your phone, look up on Samsung Odin in this forum and flash the entire firmware.
Flashing with Odin did not do the job. Ports are still open.
How can you tell the addresses are not connectable? My phone (a Note 8) has many of the same open ports as the original poster, and the IPs these ports are open to are geographically distributed around the world. Many of the open ports have to do with bogon IPs, and the fact that the local and remote addresses are swapped makes it seem like malware might be using a reverse proxy and bogons to hide traffic. The ports always correspond to the system UID 1000, so I have reason to believe there is malware in the OS kernel.
null223, if you have any new information on this, please chime in.
null223, are you there?
I am wondering where you bought your phone(s) from. Did you happen to get them from an Amazon seller?
Also, what carrier are these phones on? Are they GSM? What country are you in?
My phone only exhibits the open ports when a SIM card is inserted and the phone is not in airplane mode (just disabling wifi and mobile data does not work). I tried two different SIMs on a single US-based GSM carrier.
Anyone?
Originally posted in device specific forum, but no answers there. I'll edit that post as soon as this has a URL.
OK - I use LOS 14 which has been more or less fine ( a few documented niggles on the thread, but OK up to now)
About two weeks ago, without any obvious changes my WiFi locks the entire router - resulting in a router reset. Router is a "TP Linke AC750 Wireless Dual Band Gigabit Router"
I did initially think this was triggered by the IP lease expiry, but set IP addresses or maxing out the lease time didn't seem to work. But it does seem to occur when the phone reconnects
Edit - the more I look at this the more I think it is triggered by lease renewal, but fixed IP address fails to resolve!
I have increased the log settings - see screen shot - with "network_selection_disabled_association_rejection= 3"
Also, in the Logs there is WiFiQualifiedNetowrkSelector: <ssid>: <mac of router> is on blacklist
Looking around the net this error seems to be down to the phone blacklisting the router due to poor connections - but I didn't even leave the house today and it hit
I've tried lots of tweaks to WiFi, keeping it on, keeping it off. I have now just moved my Routers channel to a less busy one - but I have no idea what is causing it.
Edit - channel move and width reduction didn't do anything.
I have removed all the apps that I can recall installing just before this happened.
I have "forgotten" connection and made it again
ROM is as it is and was stable for months before this happened - Router firmware is up to date and went through factory reset - can't do that for phone for a week as it is my key generator for 2 factor authentication to work network and if I zap phone you can bet work will need remote access before next week!
Ideas anyone?
Cheers
Eserim
OK this report on Chromecasts killing Routers - is so similar to what I see, plus the timing of others with the issue match my timing, I am thinkiong this was the cause
My v60 is connected, but I loose the ability to browse... If I drop WiFi, then reconnect, it's fine, but if it's idle for a few mins, it gets choked with no internet ability.
I even went as far as static IP settings, etc... Never had this issue with my V30.
So far I am disappointed... my wifi icon sometimes has a ! in the icon...but that went away when I put in static IP and static DNS... didn't help though.
please see my next post for the fix to this issue!!!
fixed the problem. Google inexplicably removed the "Keep WiFi on during sleep" setting from Android 10
to fix the problem you can do the following:
To set it:
adb shell settings put global wifi_sleep_policy 2
To find out what it is now:
adb shell settings list global
Keep WiFi on during sleep: Always = 2
Keep WiFi on during sleep: Only When Plugged In = 1
Keep WiFi on during sleep: Never = 0
found the fix here, says for Pixel2, but works on the LG V60 too!
https://www.androidpolice.com/2017/10/24/google-inexplicably-removed-keep-wifi-sleep-toggle-pixel-2/
Problem resolved!! WiFi Sleep issue in Android 10!
please see my previous post for the fix to this issue!!!
you need USB debugging turned on and ADB to fix the problem!
Update on my fix for v60 with WIFI that disconnects after sleep on 802.11N only
Update: My success with this was short lived. Worked for about a week and then back to the same 'ol. Checked the ADB nothing changed. Ended up installing "automate" by llama and creating a flow to check internet via ping and then turn on and turn off the wifi. Few things with that. 1: WiFi Enabled - Yes->Ping 8.8.8.8 - No ->Disable WIFI->Delay 2 sec-> Enable Wifi -> Delay 15 sec->Loop to 1.
Few points:
If Wifi Enabled = No, then loop to 15 sec delay
If Ping = Success, loop to 15 sec delay
After WIFI Enable = Loop to 15 sec delay
15-Sec Delay to "Is Wifi Enabled"
---
Wanted to update my experience on this. I have discovered my v60 fails to work after the phone goes to sleep. This can be reproduced by simply hitting the power button and waiting 15-30 seconds. At the point of wake-up, the phone is connected to wifi, the AP sees the client but the client fails to work. Analysis of the sniffer data shows the phone "SENDS" traffic but fails to receive. This issue was found on FORTIAP units that support the 802.11N protocol and when using A/B/G the issue did not present itself. I also noticed that while the phone was either charging or "awake" that pinging the phone was sub-10ms responses, once the phone went to sleep, pings went well over 100ms (See my theory at the bottom). As noted, if you simply disconnected and reconnected the wifi, the phone would work on WIFI "N" until it went to sleep again.
This post led me into a direction that seems to have resolved the issue. I was able to verify this does not happen on cheaper ISP AP's with "N" only enabled but happens on "smarter" "N" access points in multiple locations and on different APs. The behavior was consistent and after several hours of troubleshooting I have some settings that have 100% stabilized my phone after going to sleep. This issue did not present itself while the phone was charging via USB to the ADB connection or using a standalone charger.
Using ADB and connecting to my phone via USB, I ran the following commands:
adb shell settings put global wifi_on 1
adb shell settings put global wifi_automatically_on_off_wifi_enabled 0
adb shell settings put global wifi_watchdog_poor_network_test_enabled 1
adb shell settings put system power_save_wifi 0
adb shell settings put system power_save_wifi_restore 1
With this post, it was suggested to set the following, however in my phone it was already the case:
adb shell settings get global wifi_sleep_policy = 2
As noted by this posts author, you can change that if needed via:
adb shell settings put global wifi_sleep_policy 2
The original settings were as follows:
global wifi_on=2
global wifi_automatically_on_off_wifi_enabled=2
global wifi_watchdog_poor_network_test_enabled = 0
system power_save_wifi = 1
system power_save_wifi_restore = 0
I sure hope this helps others out there, LG didn't want to own up to this issue that is widely reported but at this point, I think I have settings that are stable and my phone is now usable.
Verizon sent me a new v60 phone and it also had the issue, this allowed me to test and troubleshoot to come up with this solution. This issue happened with both the March 2020 update (as shipped) as well as the June 2020 update.
My theory is the enhancement of the "N" protocol in the IEEE 802.11N enhancements where beam forming is able to reduce power. When the phone goes to sleep, it seems to lose track of the "beam" and the power reduction on the AP may cause this issue. I'm not really sure, but here's where I gathered that from:
Beam forming
As 802.11n systems emerges in the market as an important feature for enterprise Wi-Fi infrastructure. Beam forming is an important companion to 4×4 Multiple Input Multiple Output (MIMO) technologies for Wi-Fi wireless networking. When it is included, it enables dramatic improvement in Wi-Fi 802.11ac/n performance, reliability, range and coverage. Beam forming is an optional feature of 802.11n. In its simplest terms, beam forming allows an access point to effectively concentrate its signal at the clients location. This results in a better signal, SNR and potentially a great throughput. It is a natural extension of the physical layer that has multiple radios and antennas in each station. By controlling the transmit power and phase of the collection of transmission antennas, it is possible to shape the effective gain of the antennas to create a pattern that points towards the receiving station a beam.
Same issue here using Google Wifi
Unfortunately I tried your settings but it is still happening. Not sure if I need to do anything else. I don't have a lot of experience with adb, but I was able to make sure that the settings were set. Is there a way to print out the list of current settings to verify that all is set. I did verify through the commands.
Anyway thanks!! Any other info would be great. I do have the latest July update. Thanks
So I tried slyguy2000's method (the ADB commands) and it worked perfectly. However, now I am getting really poor battery performance. My phone lasts 1 day with moderate use (4-5hrs of SOT) while before I used to get 10hrs of SOT. Is anyone else experiencing this issue.
My V60 seams to be working better. I had one of the settings that were not enabled "watchdog_poor_network_test" once I enabled it seams to work better. It will connect now even after a overnight period.
Yes I confirm that it drains a lot of battery overnight after setting change. Getting 24 hrs per charge, was getting a day and a half before.
I decided to go back in my settings to avoid the battery drain. I put everything back to stock but my battery was still draining. So I did a factory reset and brought back my last backup. Now it's all working fine. Even my wifi and no battery drain either. So not sure why, but it's all good now!
Strange!
I do have issues as well, on some SSIDs. Specifically it has issues with my home mesh network. Not sure if it is the mesh or the beamforming that it has issues with more.