Messages in this thread |  | | From | (Mike Bristow) | Subject | traffic shaper woes... | Date | 18 Dec 1996 19:06:16 GMT |
| |
Hi,
I've been thinking about trying to write a net driver that would enable me to pretend that I've got limited bandwith over a fake connection - like the dummy driver - so I could test the download times of web pages I've written over a 28kbps modem without having to pay my phone company for the call. It seems that the traffic shaper would do the job instead, but it doesn't seem to work with the dummy module. The following sequence of commands brings my machine down:
shivan~# insmod dummy -o dummy1 # we don't want kerneld to unload them shivan~# insmod shaper -o shaper0 # while I'm typing! shivan~# ifconfig dummy1 192.168.1.1 netmask 255.255.255.0 broadcast \ 192.168.0.255 shivan~# shapecfg attach shaper0 dummy1 shivan~# shapecfg speed shaper0 28800 shivan~# ifconfig shaper0 192.168.1.1 netmask 255.255.255.0 broadcast \ 192.168.0.255 shivan~# route add -net 192.168.1.1 netmask 255.255.255.0 dev shaper0
At this point a ftp trasfer to 192.168.0.1 gives about 300 k/sec (the same as to a unshaped dummy interface) and a ftp trasfer accross dummy0 (ifconfiged to my real IP address of 192.222.11.114 pointopoint) crashes the machine sometimes.
Am I doing something stupid with the setup? Does the trafic shaper only work with real devices? Has anyone done this sucessfully?
Mike
PS thanks for writing it in the first place - it looks very like it'll be fun to play with! :-)
-- Mike Bristow: mike@shivan.demon.co.uk The best UK M:tG tourney page: http://www.shivan.demon.co.uk/tourney/ My public PGP key: http://www.shivan.demon.co.uk/pgp/pgp.txt
|  |