From owner-freebsd-net Fri Oct 27 13:41:55 2000 Delivered-To: freebsd-net@freebsd.org Received: from mail.interware.hu (mail.interware.hu [195.70.32.130]) by hub.freebsd.org (Postfix) with ESMTP id 28AE737B479 for ; Fri, 27 Oct 2000 13:41:51 -0700 (PDT) Received: from monrovia-54.budapest.interware.hu ([195.70.53.246] helo=elischer.org) by mail.interware.hu with esmtp (Exim 3.16 #1 (Debian)) id 13pGJx-0007fU-00; Fri, 27 Oct 2000 22:41:49 +0200 Message-ID: <39F9E883.2EE90B44@elischer.org> Date: Fri, 27 Oct 2000 13:41:39 -0700 From: Julian Elischer X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 5.0-CURRENT i386) X-Accept-Language: en MIME-Version: 1.0 To: Greg Fausak , net@freebsd.org Subject: Re: BPF usage questions References: Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Greg Fausak wrote: > > I am writing my first netgraph nodes. > > I need a mux node and a demux node. > > For simplicity, the mux node will combine 2 independant > channels and round robin the packets. The demux node > will simply receive packets on multiple channels and > serialize them. Archie already wrote this I think.. If you want to play with it, here is the current version: ftp://ftp.whistle.com/pub/archie/netgraph/ng_one2many.tgz > > The purpose is to bond multiple ethernet connections between > two points. I envision creating 2 udp tunnels and using the > mux node to feed and demux to bring back together. Archies does N arbitray links. (and it has a man page etc....) > > I haven't built any netgraph code yet. Can someone give me some > pointers? I've examined many different sources, some are fairly > complex and some are real simple. I regard this as a fairly simply node. > Perhaps 3 hooks (upstream, link1, link2). > > Once I get it to work in a primitive fashion I would like to > add control features, like: > * only use link2 if packets can't get through link1 > * force load balancing based upon theoretical link rates like > speed, latency. > * calculate load balancing, so dialup, isdn, dsl and t1 can be > bonded. > > I'm looking for a real easy way to get started. > Any practical hints would be appreciated. Start with archies code and add the stuff you want (control etc.) :-) > > Thanks, > ---greg > Greg Fausak > August.Net Services, LLC -- __--_|\ Julian Elischer / \ julian@elischer.org ( OZ ) World tour 2000 ---> X_.---._/ presently in: Budapest v To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message