Skip to content

drgogeta86/network-conditioner

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

netcond

This is a simple bash script to help you simulate real network conditions with tc (iproute2). Profiles are based on those from Apple's Network Link Conditioner tool.

It's been tested on Ubuntu 12.x.

Usage

netcond start [interface] [profile]
netcond stop [interface]
netcond stats

Where  [interface] := the network interface to use e.g. lo, eth0 or wlan0
       [profile] := the profile to use (must exist in the profiles directory)

Note   You will probably need to run this with sudo

Example

# simulate a wifi network that is unstable on eth0
sudo ./netcond start eth0 wifi-lossy

# view some tc statistics
sudo ./netcond stats

# stop the simulation and clean up
sudo ./netcond stop eth0

Future enhancements

  • make ingress and egress traffic shaping separately configurable to simulate asymetric upload and download

References

About

Helps you simulate different network characteristics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published