my question is aimed to those who have already performed some kind of network traffic analysis on Android.
My device is a rooted Nexus One. I've developed a simple C program, using Pcap Libraries, which sniffs packets over its eth0. Then I have a simple Python script, using Scapy, which sends to my device self-made packets (with raw payload of 1000 characters).
What I want to analize is the decay of my device ability to sniff traffic packets out of the packet rate increase. What I expect is that the lower is the packet rate, the more packets my device is able to capture.
What I get is something inconsistent:
Pck/s|Tot_sniffed 100 179 1090 0 2080 161 3070 968 4060 628 5050 562 6040 698 7030 546 8020 391 9010 0
I send 1000 packets with left column rates (packets per second). That's very strange imho and I can't get what's happening.
I already have:
- Checked RAM and CPU usage (they're both under control, CPU doesn't exceed 23-24%)
- Checked Wi-Fi connection (it doesn't turn off)
- Killed / Suspended / Uninstalled every other application not needed from Android system
- Tried to change parameters and packet size but it's always the same.
I'm trying to look for any known report about Nexus One unstable behavior. But I'm not really sure it depends on my device.
Have you any good idea about what's happening and how can it be possible? Thank you in advance!
EDIT: I've done more tests to reply to @Peanut. I've also changed my Wi-Fi network, placing notebook and Android device close to the router.
The usage is this:
Usage: python Main.py < targetIP > < port > < numPackets > < packetSize > < initial speed > < final speed > < step >
I really can't figure out what's going on.