Code Monkey home page Code Monkey logo

trafficcop's Introduction

trafficcop

###Basic Idea/Motivation

  • The idea is to allow people to connect to a wifi hotspot and then immediately be able to simulate shitty mobile network connections.
  • Lets developers easily test application performance with on slow connection in mind
  • Relates to “mobile first” thinking by acknowledging “mobile first” means connections that are not always as reliable/speedy/generally good (i.e. 💩).

Demo

Official Supported Device:

###Specification

  • Ability to introduce extra:
  • Latency (delay)
  • Packet loss
  • Bandwidth limitations
  • Per device address throttling → i.e. web interface such that you can go and adjust the setting for your client only.

Accessible at http://<router ip>:8080

Installation

Although I've only tested this on a TL-WR703N, this should work on any device that uses br-lan as its LAN interface.

To install this, download the ipk package from releases into your /tmp and then run:

# opkg update
# opkg install trafficcop-*.ipk

This should install and start trafficcop on 8080 with uhttpd on the ip address for the interface br-lan. If you're unsure what IP this is, you can run the following to find out:

# ifconfig br-lan | grep 'inet addr' | cut -d ":" -f 2 | cut -d " " -f 1

This means you can access traffic cop at http://<router ip>:8080.

trafficcop's People

Contributors

shuhaowu avatar amecila avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.