tylertreat / comcast

Simulating shitty network connections so you can build better systems.
Apache License 2.0
10.31k stars 384 forks source link

Could this be used for mobile devices? #53

Open PierBover opened 8 years ago

PierBover commented 8 years ago

Any idea on how I could use Comcast to provide a shitty connection to a mobile device via Wifi?

ghost commented 7 years ago

Don't mobile devices already have shitty connections? ;P

As for a real answer... it would be entirely dependent on if your mobile device has iproute2 with NetEm capability. So long as you have root access and iptables/traffic control/netem works on android kernel, then this application should work.

Comcast does not interact with the packets directly. Comcast is simply a wrapper around more easily configuring the various packet manipulation facilities built into the operating system. Really, all it does is generate and execute commands. So assuming your device has support for those facilities and a shell it can put the commands into, theoretically it should work.

Not sure if android shells have "sudo" however, which might be the first limitation out-of-the-box if compiling this for use on Android's linux.

1kastner commented 5 years ago

Depending on the use case maybe you could also throttle another part of the connection. The mobile device could e.g. connect to a proxy which shows the desired content. This proxy could run on a linux and use this project for throttling. That might be easier and less intrusive...