(1) create a pipe which limits the speed to 56kbit/s
sudo ipfw pipe 1 config bw 56Kbit/s
(2) add the pipe to ipfw list with simple option:
sudo ipfw add 1 pipe 1 ip from any to any
(3) delete the pipe:
udo ipfw delete 1
Reference links: (note some of them already been expired, but worth a reading)
http://cs.baylor.edu/~donahoo/tools/dummy/tutorial.htm
http://titaniumninja.com/simulating-slow-network-links-on-os-x/
http://backup.noiseandheat.com/blog/2012/02/throttling-bandwidth-on-os-x/
http://benlakey.com/2012/10/14/throttle-bandwidth-on-mac-os-x/