From owner-freebsd-net@FreeBSD.ORG Tue Apr 2 23:27:43 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 53AE8686 for ; Tue, 2 Apr 2013 23:27:43 +0000 (UTC) (envelope-from bright@mu.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 46729361 for ; Tue, 2 Apr 2013 23:27:43 +0000 (UTC) Received: from Alfreds-MacBook-Pro-9.local (c-67-180-208-218.hsd1.ca.comcast.net [67.180.208.218]) by elvis.mu.org (Postfix) with ESMTPSA id 136871A3C30; Tue, 2 Apr 2013 16:27:42 -0700 (PDT) Message-ID: <515B6963.8010400@mu.org> Date: Tue, 02 Apr 2013 16:27:31 -0700 From: Alfred Perlstein User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 MIME-Version: 1.0 To: Yuri Subject: Re: Is it possible to slow down the network interface? References: <515B6906.7000305@rawbw.com> In-Reply-To: <515B6906.7000305@rawbw.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Apr 2013 23:27:43 -0000 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