From owner-freebsd-net@FreeBSD.ORG Tue Apr 2 23:25:59 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 C83245D6 for ; Tue, 2 Apr 2013 23:25:59 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell0.rawbw.com (shell0.rawbw.com [198.144.192.45]) by mx1.freebsd.org (Postfix) with ESMTP id A129B34A for ; Tue, 2 Apr 2013 23:25:59 +0000 (UTC) Received: from eagle.yuri.org (stunnel@localhost [127.0.0.1]) (authenticated bits=0) by shell0.rawbw.com (8.14.4/8.14.4) with ESMTP id r32NPwi2089265 for ; Tue, 2 Apr 2013 16:25:58 -0700 (PDT) (envelope-from yuri@rawbw.com) Message-ID: <515B6906.7000305@rawbw.com> Date: Tue, 02 Apr 2013 16:25:58 -0700 From: Yuri User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130327 Thunderbird/17.0.4 MIME-Version: 1.0 To: freebsd-net@freebsd.org Subject: Is it possible to slow down the network interface? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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:25:59 -0000 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