From owner-freebsd-hackers Thu Jan 23 00:20:39 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id AAA06736 for hackers-outgoing; Thu, 23 Jan 1997 00:20:39 -0800 (PST) Received: from metaplex-ss10.cisco.com (metaplex-ss10.cisco.com [171.69.176.7]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id AAA06727 for ; Thu, 23 Jan 1997 00:20:36 -0800 (PST) Received: (amcrae@localhost) by metaplex-ss10.cisco.com (8.6.8+c/8.6.5) id TAA16703; Thu, 23 Jan 1997 19:19:35 +1100 Date: Thu, 23 Jan 1997 19:19:35 +1100 From: Andrew McRae Message-Id: <199701230819.TAA16703@metaplex-ss10.cisco.com> To: luigi@labinfo.iet.unipi.it Subject: Re: Fault-tolerant network with 2 ethernets Cc: hackers@freebsd.org, jdp@polstra.com Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >A problem with BSD networking is that once a connection is opened, the >socket is bound to a specific interface and so it does not help to >have multiple paths starting from the same host. I forget the details, >but have been told that there is a very minor modification (a few >lines) that fixes this problem. > >Another trick (inefficient) you might use is to make all your >traffic through tun0 and then write your own forwarder for outgoing >traffic. Yes, an interesting idea, and one that I actually used in an embedded system that contained the BSD stack. The problem is pushed off into the forwarder, and it has to deal with all the routing issues. This can work, but I would have thought that any applications requiring 100BT bandwidth would not want the data to traverse across kernel/user space a couple of times :-) Presumably tun0 has its net interface on the application side, so what does it do with the pkts it reads? Look at the IP address inside the packet and then send it down a raw socket to one of a couple of interfaces? How does it receive the packets destined for the applications? Hmm, I guess it can be done, but I doubt whether it would be real easy (in my embedded environment, the forwarder could access the net devices directly). > Luigi >-----------------------------+-------------------------------------- >Luigi Rizzo | Dip. di Ingegneria dell'Informazione >email: luigi@iet.unipi.it | Universita' di Pisa >tel: +39-50-568533 | via Diotisalvi 2, 56126 PISA (Italy) >fax: +39-50-568522 | http://www.iet.unipi.it/~luigi/ >_____________________________|______________________________________ Cheers, Andrew McRae