From owner-freebsd-net@FreeBSD.ORG Sat Oct 20 18:08:10 2007 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5D90C16A41A for ; Sat, 20 Oct 2007 18:08:10 +0000 (UTC) (envelope-from sandiegobiker@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.228]) by mx1.freebsd.org (Postfix) with ESMTP id 1BA7B13C455 for ; Sat, 20 Oct 2007 18:08:09 +0000 (UTC) (envelope-from sandiegobiker@gmail.com) Received: by wx-out-0506.google.com with SMTP id i29so765103wxd for ; Sat, 20 Oct 2007 11:08:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=Ucdso7NKFzhTau38KmYkkoWv9h94tBW07X9ANuu2ilU=; b=IGntj9/4MvqMXjYIcjq+l3a3IVp6ZW2PdpD8BSYCTnA5rW0qp0VnkU7IuZnxb2bN33pOnUOy2fYBj73lsfBkoO9ScF9QI+2O144MwFHAI3p9HzilQna8+V/G1GYdLyc9b5HB81kYcpOA9ls98hO3mIp6/vwj0iouppUrWnlLKEg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=XCiA0e3YPYpdxVR5QqdFyOI4/+ofAuxxzCkFAwm2L/N+zWNxYmM+XSRX9wQdG2tSjkgv8LnPxRiezYoHplgWVzBsVXKbFtdytWZJNlg7/8pXjOp/xgbwOqot+eQynG1yQPhlEkerXkqOLeaaMLJBOcPAfFUXaDYJJy3SiaID0ZM= Received: by 10.70.61.3 with SMTP id j3mr5357637wxa.1192903688746; Sat, 20 Oct 2007 11:08:08 -0700 (PDT) Received: by 10.70.19.9 with HTTP; Sat, 20 Oct 2007 11:08:08 -0700 (PDT) Message-ID: <27cb3ada0710201108l5e717fdbhc9fab610cb2a047c@mail.gmail.com> Date: Sat, 20 Oct 2007 11:08:08 -0700 From: "Len Gross" To: "Harti Brandt" In-Reply-To: <20071020183000.E8153@knop-beagle.kn.op.dlr.de> MIME-Version: 1.0 References: <27cb3ada0710172051t536a4d11pfdfdb079ebd98932@mail.gmail.com> <20071019224155.GI20308@server.vk2pj.dyndns.org> <20071020183000.E8153@knop-beagle.kn.op.dlr.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-net@freebsd.org Subject: Re: Disable Exponential Backoff (retry) on Ethernet? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Oct 2007 18:08:10 -0000 If I have to, I will employ some form of simulation of collisions, but that will have to be done carefully in order to get the effect of collsions beteen multiple stations without messing up timing. I REALLY wanted to have the PHY handle it. Usng half duplex and some old hubs (if I can find one) would get collisions, but the retry would create other problems. So, looks like "simulated" collisions will be the way to go. BTW: I'm using Netgraph - very cool stuff. --Len On 10/20/07, Harti Brandt wrote: > > On Sat, 20 Oct 2007, Peter Jeremy wrote: > > PJ>On Wed, Oct 17, 2007 at 08:51:34PM -0700, Len Gross wrote: > PJ>>I'm doing some protocol development and it is convenient to start it > on > PJ>>Ethernet. I will need to send a packet to the Ethernet device and > only have > PJ>>it be sent once, even if there is a colision. > PJ> > PJ>I know we've still got some hubs lying around in a backroom at work > PJ>but I don't know of anything that will let you disable the retry-on-CD. > PJ> > PJ>Have you considered simulating the network at a slightly higher lever: > PJ>Use ipfw pipes or similar to simulate packet loss (either set a queue > PJ>length of 1 or probabilistically). This could be done either as a > PJ>bridge or by tunneling your protocol over IP or UDP. > > Some years ago I wrote a netgraph node that connected to ethernet nodes > and simulated a wireless broadcast channel including collisions, > timevariable delay, loss and shaping. Can be done in a couple of hundreds > of lines and easily allows >100MBit/sec with gigabit ethernet. The > ethernet is just the physical transport medium for the packets and does > not take part in the emulation. All that was controlled by bsnmpd and a > remote command line tool and/or Java-GUI. Unfortunately I cannot release > this (yet) due to licensing... > > harti >