Re[2]: Is it possible to slow down the network interface?

2013-04-03 Thread wishmaster


 --- Original message ---
From: Jason Hellenthal jhellent...@dataix.net
Date: 3 April 2013, 03:16:11

 
 Bandwidth limiting via pf or ipfw ?
  IPFW for this task is the best choice since PF has ALTQ which is 1990s 
technology.
 For the experimental/testing tasks IPFW has another advantage: this is 
possibility use as bandwidth limitation as well as delay.
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org


Is it possible to slow down the network interface?

2013-04-02 Thread Yuri
For the testing purposes, I would like to be able to control the maximum 
speed of the interface.
There is this command 'ifconfig re0 media 10baseT/UTP' that is supposed 
to lower the speed to 10Mbps. However, it makes interface unusable on my 
system. All connections are broken, even the router had to be rebooted. 
Maybe this is the router issue.


Is there any other, soft way to change maximum interface speed to a 
particular value?
When somebody sends data too fast, OS sends back ICMP notifications that 
connection is jammed. My question is, is it possible to impose such 
condition artificially?
Is 'ifconfig re0 media 10baseT/UTP' actually supposed to work 
transparently, or disconnects are to be expected?


Yuri
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org


Re: Is it possible to slow down the network interface?

2013-04-02 Thread Alfred Perlstein

On 4/2/13 4:25 PM, Yuri wrote:
For the testing purposes, I would like to be able to control the 
maximum speed of the interface.
There is this command 'ifconfig re0 media 10baseT/UTP' that is 
supposed to lower the speed to 10Mbps. However, it makes interface 
unusable on my system. All connections are broken, even the router had 
to be rebooted. Maybe this is the router issue.


Is there any other, soft way to change maximum interface speed to a 
particular value?
When somebody sends data too fast, OS sends back ICMP notifications 
that connection is jammed. My question is, is it possible to impose 
such condition artificially?
Is 'ifconfig re0 media 10baseT/UTP' actually supposed to work 
transparently, or disconnects are to be expected?




try dummynet, it lets you simulate slow or otherwise special networks.

man 4 dummynet

-Alfred
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org


Re: Is it possible to slow down the network interface?

2013-04-02 Thread Paul A. Procacci

On Tue, Apr 02, 2013 at 04:25:58PM -0700, Yuri wrote:
 For the testing purposes, I would like to be able to control the maximum
 speed of the interface.

ipfw (pf too?) can artifically control speeds via dummynet.
There are man pages describing all of the above and should be a good
starting place for you.

~Paul



This message may contain confidential or privileged information. If you are not 
the intended recipient, please advise us immediately and delete this message. 
See http://www.datapipe.com/legal/email_disclaimer/ for further information on 
confidentiality and the risks of non-secure electronic communication. If you 
cannot access these links, please notify us by reply message and we will send 
the contents to you.
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org


Re: Is it possible to slow down the network interface?

2013-04-02 Thread Jason Hellenthal
Bandwidth limiting via pf or ipfw ?

ipfw may be more forward to use since its usually easier to comprehend the 
syntax and type it directly on the command line.

-- 

 Jason Hellenthal
 JJH448-ARIN
 - (2^(N-1))


On Apr 2, 2013, at 19:25, Yuri y...@rawbw.com wrote:

 For the testing purposes, I would like to be able to control the maximum 
 speed of the interface.
 There is this command 'ifconfig re0 media 10baseT/UTP' that is supposed to 
 lower the speed to 10Mbps. However, it makes interface unusable on my system. 
 All connections are broken, even the router had to be rebooted. Maybe this is 
 the router issue.
 
 Is there any other, soft way to change maximum interface speed to a 
 particular value?
 When somebody sends data too fast, OS sends back ICMP notifications that 
 connection is jammed. My question is, is it possible to impose such condition 
 artificially?
 Is 'ifconfig re0 media 10baseT/UTP' actually supposed to work transparently, 
 or disconnects are to be expected?
 
 Yuri
 ___
 freebsd-net@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-net
 To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org