This repository is no longer maintained. Issue reports and pull requests will not be attended.
Cellular Data Network Simulator is dedicated WiFi network to monitor network usage and simulate network link conditions for mobile applications. It uses well established technologies: OpenWrt, tc, iptables and CloudShark.
Read more at Polidea Blog
- Easy to use web and mobile interface
- Simulate: bandwidth, delay, loss, corruption, occasional loss of signal
- Can capture the traffic and send it to CloudShark
- Apply limits per-device
- Works well in environment with multiple devices and multiple testers
- Works well as virtual machine bridged with separate wireless network
- OpenWrt device running on Barrier Breaker - can be router or virtual machine
- Two network interfaces - one for WAN and one for WIFI/LAN
The are a few simple steps to install Cellular Data Network Simulator:
-
Install cdns:
opkg update opkg install http://polidea.github.io/Cellular-Data-Network-Simulator/cdns_0.5-3_all.ipk
Installation of Cellular Data Network Simulator replaces default Luci webpage. The Luci can be accessed using: http://ip-address/index-old.html
-
Configure:
vim /etc/config/cdns
By default there are 5 profiles: Full, HSDPA, Edge, GPRS and Disabled.
In order to support packet capture uploads to Cloudshark, you must edit the cloudshark_api_token parameter. You must create an account at https://www.cloudshark.org and retrieve your API token from the Preferences / API Tokens drop-down menu.
-
Start the service:
/etc/init.d/cdns enable /etc/init.d/cdns start
That simply enables and starts the service,
-
Start the uhttpd daemon:
/etc/init.d/uhttpd enable /etc/init.d/uhttpd start
If you didn’t do it before you have to enable and start the uhttpd daemon.
-
Start using:
Simply open: http://ip-address/.
/etc/init.d/cdns stop
opkg remove cdns
-
Download sources:
git clone <repo-path>
-
Build the package yourself:
make
-
For more options view help:
make help
BSD 2-Clause License
-
To fix problems with displaying web page execute from router's commandline:
grep -lir "<html>" /tmp/testing/events*.cfg | xargs rm
- v.0.5-0: First public release (25.11.2013)
- v.0.5-1: Bug fixing (12.02.2014)
- v.0.5-2: Fixed Cloudshark URL and added CA bundle (25.03.2014)
- v.0.5-3: Fixed #5 (18.09.2014)