From owner-freebsd-net@FreeBSD.ORG Sun Apr 29 09:15:27 2007 Return-Path: X-Original-To: freebsd-net@hub.freebsd.org Delivered-To: freebsd-net@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 065F616A401; Sun, 29 Apr 2007 09:15:27 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id CFA1213C455; Sun, 29 Apr 2007 09:15:26 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l3T9FQpZ006804; Sun, 29 Apr 2007 09:15:26 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l3T9FQRE006800; Sun, 29 Apr 2007 09:15:26 GMT (envelope-from linimon) Date: Sun, 29 Apr 2007 09:15:26 GMT From: Mark Linimon Message-Id: <200704290915.l3T9FQRE006800@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-net@FreeBSD.org Cc: Subject: Re: kern/105943: Network stack may modify read-only mbuf chain copies 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: Sun, 29 Apr 2007 09:15:27 -0000 Synopsis: Network stack may modify read-only mbuf chain copies Responsible-Changed-From-To: freebsd-bugs->freebsd-net Responsible-Changed-By: linimon Responsible-Changed-When: Sun Apr 29 09:15:10 UTC 2007 Responsible-Changed-Why: This should probably be assigned to -net. http://www.freebsd.org/cgi/query-pr.cgi?pr=105943 From owner-freebsd-net@FreeBSD.ORG Sun Apr 29 11:28:40 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4E6B416A401 for ; Sun, 29 Apr 2007 11:28:40 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-3-125.belrs4.nsw.optusnet.com.au [220.239.3.125]) by mx1.freebsd.org (Postfix) with ESMTP id D362B13C458 for ; Sun, 29 Apr 2007 11:28:39 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.13.8/8.13.8) with ESMTP id l3TBScXh062196; Sun, 29 Apr 2007 21:28:38 +1000 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.13.8/8.13.8/Submit) id l3TBScHM062195; Sun, 29 Apr 2007 21:28:38 +1000 (EST) (envelope-from peter) Date: Sun, 29 Apr 2007 21:28:38 +1000 From: Peter Jeremy To: Jack Barnett Message-ID: <20070429112838.GH848@turion.vk2pj.dyndns.org> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="YToU2i3Vx8H2dn7O" Content-Disposition: inline In-Reply-To: X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.14 (2007-02-12) Cc: freebsd-net@freebsd.org Subject: Re: Firewall 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: Sun, 29 Apr 2007 11:28:40 -0000 --YToU2i3Vx8H2dn7O Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2007-Apr-28 07:08:18 -0500, Jack Barnett wrote: >I plan on using NAT so both internal networks can get to the internets. > >In the FreeBSD documentation I see there are 3 firewalls, IPFIREWALL, >IPFILTER and PF (BF?). I just need to do basic filtering and just a few >port forwards. Nothing to fancy. Which one would be recommended? Basically any of them will do what you want. The major differences are: - IPFW (IPFIREWALL) is FreeBSD only. Note that the NAT is in userland. - IPfilter is the most portable. - PF runs on *BSD. Note that (AFAIK) all proxies (eg FTP) are in userland. Userland NAT or proxies incur significantly higher overheads than in-kernel equivalents (because the packets have to cross the kernel/userland barrier twice). This may be an issue if you have a very fast Internet connection and an underpowered firewall. --=20 Peter Jeremy --YToU2i3Vx8H2dn7O Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGNIFm/opHv/APuIcRAmUSAJ9LSTwOrd6UgUkt/6T22z5rzWyxhQCePnZz XxjiSLlImoIKGgkoqEa1A3o= =eKIG -----END PGP SIGNATURE----- --YToU2i3Vx8H2dn7O-- From owner-freebsd-net@FreeBSD.ORG Sun Apr 29 19:23:29 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BBCC616A400 for ; Sun, 29 Apr 2007 19:23:29 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outD.internet-mail-service.net (outD.internet-mail-service.net [216.240.47.227]) by mx1.freebsd.org (Postfix) with ESMTP id A653E13C45E for ; Sun, 29 Apr 2007 19:23:29 +0000 (UTC) (envelope-from julian@elischer.org) Received: from mx0.idiom.com (HELO idiom.com) (216.240.32.160) by out.internet-mail-service.net (qpsmtpd/0.32) with ESMTP; Sun, 29 Apr 2007 11:50:15 -0700 Received: from julian-mac.elischer.org (home.elischer.org [216.240.48.38]) by idiom.com (Postfix) with ESMTP id BF79B125B4C; Sun, 29 Apr 2007 12:23:28 -0700 (PDT) Message-ID: <4634F0B0.5060007@elischer.org> Date: Sun, 29 Apr 2007 12:23:28 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.0 (Macintosh/20070326) MIME-Version: 1.0 To: Peter Jeremy References: <20070429112838.GH848@turion.vk2pj.dyndns.org> In-Reply-To: <20070429112838.GH848@turion.vk2pj.dyndns.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Jack Barnett , freebsd-net@freebsd.org Subject: Re: Firewall 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: Sun, 29 Apr 2007 19:23:29 -0000 Peter Jeremy wrote: > On 2007-Apr-28 07:08:18 -0500, Jack Barnett wrote: >> I plan on using NAT so both internal networks can get to the internets. >> >> In the FreeBSD documentation I see there are 3 firewalls, IPFIREWALL, >> IPFILTER and PF (BF?). I just need to do basic filtering and just a few >> port forwards. Nothing to fancy. Which one would be recommended? > > Basically any of them will do what you want. The major differences are: > - IPFW (IPFIREWALL) is FreeBSD only. Note that the NAT is in userland. though that is just fine for your average DSL link.. it is in kernel in 7.0 > - IPfilter is the most portable. > - PF runs on *BSD. Note that (AFAIK) all proxies (eg FTP) are in userland. > > Userland NAT or proxies incur significantly higher overheads than > in-kernel equivalents (because the packets have to cross the > kernel/userland barrier twice). This may be an issue if you have a > very fast Internet connection and an underpowered firewall. > From owner-freebsd-net@FreeBSD.ORG Sun Apr 29 20:14:39 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7134C16A404 for ; Sun, 29 Apr 2007 20:14:39 +0000 (UTC) (envelope-from gcorcoran@rcn.com) Received: from smtp02.lnh.mail.rcn.net (smtp02.lnh.mail.rcn.net [207.172.157.102]) by mx1.freebsd.org (Postfix) with ESMTP id 1B0F513C457 for ; Sun, 29 Apr 2007 20:14:38 +0000 (UTC) (envelope-from gcorcoran@rcn.com) Received: from mr02.lnh.mail.rcn.net ([207.172.157.22]) by smtp02.lnh.mail.rcn.net with ESMTP; 29 Apr 2007 15:45:39 -0400 Received: from smtp01.lnh.mail.rcn.net (smtp01.lnh.mail.rcn.net [207.172.4.11]) by mr02.lnh.mail.rcn.net (MOS 3.8.3-GA) with ESMTP id NGA08009; Sun, 29 Apr 2007 15:45:38 -0400 (EDT) Received: from 207-172-55-230.c3-0.tlg-ubr5.atw-tlg.pa.cable.rcn.com (HELO [10.56.78.161]) ([207.172.55.230]) by smtp01.lnh.mail.rcn.net with ESMTP; 29 Apr 2007 15:45:35 -0400 Message-ID: <4634F6DF.40701@rcn.com> Date: Sun, 29 Apr 2007 15:49:51 -0400 From: Gary Corcoran User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: Julian Elischer References: <20070429112838.GH848@turion.vk2pj.dyndns.org> <4634F0B0.5060007@elischer.org> In-Reply-To: <4634F0B0.5060007@elischer.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Junkmail-Whitelist: YES (by domain whitelist at mr02.lnh.mail.rcn.net) Cc: Peter Jeremy , freebsd-net@freebsd.org, Jack Barnett Subject: Re: Firewall 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: Sun, 29 Apr 2007 20:14:39 -0000 Julian Elischer wrote: > Peter Jeremy wrote: >> On 2007-Apr-28 07:08:18 -0500, Jack Barnett >> wrote: >>> I plan on using NAT so both internal networks can get to the internets. >>> >>> In the FreeBSD documentation I see there are 3 firewalls, IPFIREWALL, >>> IPFILTER and PF (BF?). I just need to do basic filtering and just a >>> few >>> port forwards. Nothing to fancy. Which one would be recommended? >> >> Basically any of them will do what you want. The major differences are: >> - IPFW (IPFIREWALL) is FreeBSD only. Note that the NAT is in userland. > > though that is just fine for your average DSL link.. it is in kernel in 7.0 It is also just fine on a fast cable modem. I ran for several years with a low speed cable modem, around 1.5 - 2 Mbps, using nothing more than a 90MHz Pentium, with IPFW and NAT. Gary > >> - IPfilter is the most portable. >> - PF runs on *BSD. Note that (AFAIK) all proxies (eg FTP) are in >> userland. >> >> Userland NAT or proxies incur significantly higher overheads than >> in-kernel equivalents (because the packets have to cross the >> kernel/userland barrier twice). This may be an issue if you have a >> very fast Internet connection and an underpowered firewall. >> > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > From owner-freebsd-net@FreeBSD.ORG Mon Apr 30 09:58:19 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AF37116A400 for ; Mon, 30 Apr 2007 09:58:19 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.freebsd.org (Postfix) with ESMTP id 8977013C448 for ; Mon, 30 Apr 2007 09:58:19 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id C0C76470E0; Mon, 30 Apr 2007 05:58:18 -0400 (EDT) Date: Mon, 30 Apr 2007 10:58:18 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Peter Jeremy In-Reply-To: <20070429112838.GH848@turion.vk2pj.dyndns.org> Message-ID: <20070430105659.C37507@fledge.watson.org> References: <20070429112838.GH848@turion.vk2pj.dyndns.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Jack Barnett , freebsd-net@freebsd.org Subject: Re: Firewall 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: Mon, 30 Apr 2007 09:58:19 -0000 On Sun, 29 Apr 2007, Peter Jeremy wrote: > On 2007-Apr-28 07:08:18 -0500, Jack Barnett wrote: >> I plan on using NAT so both internal networks can get to the internets. >> >> In the FreeBSD documentation I see there are 3 firewalls, IPFIREWALL, >> IPFILTER and PF (BF?). I just need to do basic filtering and just a few >> port forwards. Nothing to fancy. Which one would be recommended? > > Basically any of them will do what you want. The major differences are: > - IPFW (IPFIREWALL) is FreeBSD only. Note that the NAT is in userland. One of the big selling points of IPFW is integration with DUMMYNET, which offers bandwidth management facilities not present in the other systems. I understand there may be efforts afoot to add DUMMYNET support to other firewall packages, but don't have any details. I have to say that DUMMYNET is the main selling point for ipfw on my servers -- being able to rate limit arbitrary IP addresses, port numbers, etc, both in terms of inbound and outbound traffic is invaluable. Robert N M Watson Computer Laboratory University of Cambridge > - IPfilter is the most portable. > - PF runs on *BSD. Note that (AFAIK) all proxies (eg FTP) are in userland. > > Userland NAT or proxies incur significantly higher overheads than > in-kernel equivalents (because the packets have to cross the > kernel/userland barrier twice). This may be an issue if you have a > very fast Internet connection and an underpowered firewall. > > -- > Peter Jeremy > From owner-freebsd-net@FreeBSD.ORG Mon Apr 30 10:12:27 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5F69E16A403 for ; Mon, 30 Apr 2007 10:12:27 +0000 (UTC) (envelope-from akmathen@hotmail.com) Received: from bay0-omc1-s14.bay0.hotmail.com (bay0-omc1-s14.bay0.hotmail.com [65.54.246.86]) by mx1.freebsd.org (Postfix) with ESMTP id 4E20913C4B9 for ; Mon, 30 Apr 2007 10:12:27 +0000 (UTC) (envelope-from akmathen@hotmail.com) Received: from hotmail.com ([207.46.10.97]) by bay0-omc1-s14.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Mon, 30 Apr 2007 03:00:27 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 30 Apr 2007 03:00:27 -0700 Message-ID: Received: from 207.46.10.123 by by121fd.bay121.hotmail.msn.com with HTTP; Mon, 30 Apr 2007 10:00:26 GMT X-Originating-IP: [15.219.201.70] X-Originating-Email: [akmathen@hotmail.com] X-Sender: akmathen@hotmail.com From: "Abraham K. Mathen" To: freebsd-net@freebsd.org Date: Mon, 30 Apr 2007 10:00:26 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 30 Apr 2007 10:00:27.0015 (UTC) FILETIME=[609E7970:01C78B0E] Subject: Why can't I sendto() to 127.255.255.255 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: Mon, 30 Apr 2007 10:12:27 -0000 NOTE : A copy of this message was sent to freebsd-hackers also. Apologies for the separate mails. Hello freebsd-net, I wrote a short program (on FreeBSD 6.0), that attempts to call sendto() on a UDP socket, with 127.255.255.255 as the destination address. It failed - with errno 49 (EADDRNOTAVAIL). Setting SO_BROADCAST and IP_ONESBCAST did not help. After examining - various RFC's, - source code under /usr/src/sys/netinet/ and - archives of freebsd-hackers & freebsd-net, I have not been able to determine the reason. Is it possible to successfully sendto() on a UDP socket with 127.255.255.255 as the destination address? If yes, how can that be done. Specific questions : ---------------------------------------------------------- - Is it correct to understand that 127.255.255.255 is the directed network broadcast address for net 127? If yes, which RFC specifies that? - If not, is 127.255.255.255 considered to be a host address? If yes, which RFC specifies that? ---------------------------------------------------------- Could you please help me understand this? sincerely Mathen (Abraham K. Mathen) _________________________________________________________________ Mega Airfare Sale. Click here Now. http://ss1.richmedia.in/recurl.asp?pid=18 From owner-freebsd-net@FreeBSD.ORG Mon Apr 30 11:08:20 2007 Return-Path: X-Original-To: freebsd-net@FreeBSD.org Delivered-To: freebsd-net@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6066116A408 for ; Mon, 30 Apr 2007 11:08:20 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 33BFB13C45A for ; Mon, 30 Apr 2007 11:08:20 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l3UB8KG7007000 for ; Mon, 30 Apr 2007 11:08:20 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l3UB8I2x006996 for freebsd-net@FreeBSD.org; Mon, 30 Apr 2007 11:08:18 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 30 Apr 2007 11:08:18 GMT Message-Id: <200704301108.l3UB8I2x006996@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: linimon set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-net@FreeBSD.org Cc: Subject: Current problem reports assigned to you 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: Mon, 30 Apr 2007 11:08:20 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- a kern/38554 net changing interface ipaddress doesn't seem to work s kern/39937 net ipstealth issue o kern/92552 net A serious bug in most network drivers from 5.X to 6.X s kern/95665 net [if_tun] "ping: sendto: No buffer space available" wit s kern/105943 net Network stack may modify read-only mbuf chain copies o kern/106316 net [dummynet] dummynet with multipass ipfw drops packets o kern/108197 net [ipv6] IPv6-related crash if if_delmulti o kern/108542 net [bce]: Huge network latencies with 6.2-RELEASE / STABL o kern/108670 net [tcp] TCP connection ETIMEDOUT o kern/109406 net [ndis] Broadcom WLAN driver 4.100.15.5 doesn't work wi o kern/110959 net [ipsec] Filtering incoming packets with enc0 does not 11 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o conf/23063 net [PATCH] for static ARP tables in rc.network s bin/41647 net ifconfig(8) doesn't accept lladdr along with inet addr o kern/54383 net [nfs] [patch] NFS root configurations without dynamic s kern/60293 net FreeBSD arp poison patch o kern/95267 net packet drops periodically appear f kern/95277 net [netinet] IP Encapsulation mask_match() returns wrong o kern/100519 net [netisr] suggestion to fix suboptimal network polling o kern/102035 net [plip] plip networking disables parallel port printing o conf/102502 net [patch] ifconfig name does't rename netgraph node in n o conf/107035 net [patch] bridge interface given in rc.conf not taking a o kern/108211 net [netinet] potentially a bug for inet_aton in sys/netin o kern/110720 net [net] [patch] support for interface descriptions 12 problems total. From owner-freebsd-net@FreeBSD.ORG Mon Apr 30 11:37:17 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EC70916A401; Mon, 30 Apr 2007 11:37:17 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-3-125.belrs4.nsw.optusnet.com.au [220.239.3.125]) by mx1.freebsd.org (Postfix) with ESMTP id 5FAC313C45E; Mon, 30 Apr 2007 11:37:17 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.14.1/8.14.1) with ESMTP id l3UBbFDh001752; Mon, 30 Apr 2007 21:37:15 +1000 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.14.1/8.14.1/Submit) id l3UBbFGl001751; Mon, 30 Apr 2007 21:37:15 +1000 (EST) (envelope-from peter) Date: Mon, 30 Apr 2007 21:37:15 +1000 From: Peter Jeremy To: Robert Watson Message-ID: <20070430113715.GD838@turion.vk2pj.dyndns.org> References: <20070429112838.GH848@turion.vk2pj.dyndns.org> <20070430105659.C37507@fledge.watson.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="VbJkn9YxBvnuCH5J" Content-Disposition: inline In-Reply-To: <20070430105659.C37507@fledge.watson.org> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.14 (2007-02-12) Cc: Jack Barnett , freebsd-net@freebsd.org Subject: Re: Firewall 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: Mon, 30 Apr 2007 11:37:18 -0000 --VbJkn9YxBvnuCH5J Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2007-Apr-30 10:58:18 +0100, Robert Watson wrote: >One of the big selling points of IPFW is integration with DUMMYNET, which= =20 >offers bandwidth management facilities not present in the other systems. I thought altq(4) could also do most of what dummynet(4) does but based on a closer look, it seems that it can't do the packet delay stuff, though it seems to have fairly similar bandwidth management facilities. >is the main selling point for ipfw on my servers -- being able to rate=20 >limit arbitrary IP addresses, port numbers, etc, both in terms of inbound= =20 >and outbound traffic is invaluable. I extensively use dummynet at work to simulate WANs (bandwidth limited and significant delays) between different servers in our models. It has proved invaluable for relicating field problems. --=20 Peter Jeremy --VbJkn9YxBvnuCH5J Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGNdTr/opHv/APuIcRAklGAJ943tw20evFrgxDlhb4xgYhTueH1ACfXaaH wvO0+1f/pxAZHaQpQXYVRnM= =9Vk8 -----END PGP SIGNATURE----- --VbJkn9YxBvnuCH5J-- From owner-freebsd-net@FreeBSD.ORG Mon Apr 30 12:17:48 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 849A916A400 for ; Mon, 30 Apr 2007 12:17:48 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.freebsd.org (Postfix) with ESMTP id 18E9413C43E for ; Mon, 30 Apr 2007 12:17:47 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id 64181475C4; Mon, 30 Apr 2007 08:17:46 -0400 (EDT) Date: Mon, 30 Apr 2007 13:17:46 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Peter Jeremy In-Reply-To: <20070430113715.GD838@turion.vk2pj.dyndns.org> Message-ID: <20070430131317.B9647@fledge.watson.org> References: <20070429112838.GH848@turion.vk2pj.dyndns.org> <20070430105659.C37507@fledge.watson.org> <20070430113715.GD838@turion.vk2pj.dyndns.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Jack Barnett , freebsd-net@freebsd.org Subject: Re: Firewall 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: Mon, 30 Apr 2007 12:17:48 -0000 On Mon, 30 Apr 2007, Peter Jeremy wrote: > On 2007-Apr-30 10:58:18 +0100, Robert Watson wrote: > >> One of the big selling points of IPFW is integration with DUMMYNET, which >> offers bandwidth management facilities not present in the other systems. > > I thought altq(4) could also do most of what dummynet(4) does but based on a > closer look, it seems that it can't do the packet delay stuff, though it > seems to have fairly similar bandwidth management facilities. altq(4) as implemented on FreeBSD operates on outbound network interface queues. This limits its utility significantly: (1) It does not affect inbound network traffic at all, so for non-routers, you can't control the way inbound traffic appears to the stack, only replies. (2) Most modern network hardware effectively places these queues in hardware, especially if not running completely saturated. Robert N M Watson Computer Laboratory University of Cambridge From owner-freebsd-net@FreeBSD.ORG Mon Apr 30 12:29:11 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 125A216A407 for ; Mon, 30 Apr 2007 12:29:11 +0000 (UTC) (envelope-from jhary@unsane.co.uk) Received: from unsane.co.uk (www.unsane.co.uk [85.233.185.162]) by mx1.freebsd.org (Postfix) with ESMTP id 7BEAA13C469 for ; Mon, 30 Apr 2007 12:29:10 +0000 (UTC) (envelope-from jhary@unsane.co.uk) Received: from [192.168.10.217] (150.117-84-212.staticip.namesco.net [212.84.117.150]) (authenticated bits=0) by unsane.co.uk (8.14.0/8.14.0) with ESMTP id l3UBxWC0057865 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 30 Apr 2007 12:59:33 +0100 (BST) (envelope-from jhary@unsane.co.uk) Message-ID: <4635DA11.7080401@unsane.co.uk> Date: Mon, 30 Apr 2007 12:59:13 +0100 From: Vince User-Agent: Thunderbird 1.5.0.10 (X11/20070327) MIME-Version: 1.0 To: "Abraham K. Mathen" References: In-Reply-To: X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: Why can't I sendto() to 127.255.255.255 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: Mon, 30 Apr 2007 12:29:11 -0000 Abraham K. Mathen wrote: > NOTE : A copy of this message was sent to freebsd-hackers also. > Apologies for the separate mails. > > Hello freebsd-net, > I wrote a short program (on FreeBSD 6.0), that attempts > to call sendto() on a UDP socket, with 127.255.255.255 as > the destination address. It failed - with errno 49 (EADDRNOTAVAIL). > Setting SO_BROADCAST and IP_ONESBCAST did not help. > > After examining > - various RFC's, > - source code under /usr/src/sys/netinet/ and > - archives of freebsd-hackers & freebsd-net, > I have not been able to determine the reason. > > Is it possible to successfully sendto() on a UDP socket > with 127.255.255.255 as the destination address? If yes, > how can that be done. > > Specific questions : > ---------------------------------------------------------- > - Is it correct to understand that 127.255.255.255 is the > directed network broadcast address for net 127? If yes, > which RFC specifies that? > > - If not, is 127.255.255.255 considered to be a host > address? If yes, which RFC specifies that? > ---------------------------------------------------------- > As far as I am aware the only RFC's that define the 127.0.0.0/8 block are rfc3330 which states, 127.0.0.0/8 - This block is assigned for use as the Internet host loopback address. A datagram sent by a higher level protocol to an address anywhere within this block should loop back inside the host. This is ordinarily implemented using only 127.0.0.1/32 for loopback, but no addresses within this block should ever appear on any network anywhere and rfc1122 which says: { 127, } Internal host loopback address. Addresses of this form MUST NOT appear outside a host. I would interpret this as 127.0.0.0/8 are all loopback host addresses, but I'd be happy to be corrected. Vince > Could you please help me understand this? > > > sincerely > > Mathen > (Abraham K. Mathen) > > _________________________________________________________________ > Mega Airfare Sale. Click here Now. > http://ss1.richmedia.in/recurl.asp?pid=18 > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" From owner-freebsd-net@FreeBSD.ORG Mon Apr 30 13:09:38 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3C43016A400 for ; Mon, 30 Apr 2007 13:09:38 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.freebsd.org (Postfix) with ESMTP id 0475913C44B for ; Mon, 30 Apr 2007 13:09:37 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 9D08521AAE7; Mon, 30 Apr 2007 09:09:39 -0400 (EDT) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute1.internal (MEProxy); Mon, 30 Apr 2007 09:09:38 -0400 X-Sasl-enc: TgcYxhCg4xPiGHQ8pCb4RuZ/NXPT9jXNbrX0jaNwwlSd 1177938577 Received: from [192.168.123.18] (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTP id 84B743250E; Mon, 30 Apr 2007 09:09:37 -0400 (EDT) Message-ID: <4635EA8C.1090404@incunabulum.net> Date: Mon, 30 Apr 2007 14:09:32 +0100 From: "Bruce M. Simpson" User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: "Abraham K. Mathen" References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: Why can't I sendto() to 127.255.255.255 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: Mon, 30 Apr 2007 13:09:38 -0000 Abraham K. Mathen wrote: > > Is it possible to successfully sendto() on a UDP socket > with 127.255.255.255 as the destination address? If yes, > how can that be done. No, because in FreeBSD, lo(4) is not implemented as a broadcast interface. It is a multicast capable software loopback interface. It has no concept of a broadcast domain. Unicast traffic, as well as multicast traffic, is looped back on this interface. You can see that in the output of 'ifconfig lo0', the BROADCAST flag is not set. RFC 3330 says: "A datagram sent by a higher level protocol to an address anywhere within this block should loop back inside the host." A few quick tests suggests this does not happen by default on FreeBSD. I suspect that this is because although lo0 is configured with 127.0.0.1/8 by default, a cloning interface route is not added as ARP does not run on such an interface. Therefore only a host route for 127.0.0.1 appears in the table. To tell the stack to transmit datagrams destined for 127/8 via lo0 you'd do the following: route -n add 127.0.0.0/8 -net -iface lo0 Nothing will reply as nothing is listening on that address (127.255.255.255). You can configure multiple lo interfaces, they just don't participate in a broadcast domain, as they are not broadcast interfaces. However, how lo(4) is implemented has the peculiar side-effect that all loopback interfaces are in the same 'transmission domain'... tcpdumping on lo0 will show you traffic on lo1. All loopback ifnet instances see each other's traffic, it's just up to the stack to reject it if it's not destined for a configured address on that instance. To try that, you'd 'ifconfig lo1 create' and 'ifconfig lo1 127.0.0.2/32' as FreeBSD's network stack does not really allow you to have more than one interface configured on the same subnet. Regards, BMS From owner-freebsd-net@FreeBSD.ORG Mon Apr 30 20:22:54 2007 Return-Path: X-Original-To: freebsd-net@hub.freebsd.org Delivered-To: freebsd-net@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DE3A916A402; Mon, 30 Apr 2007 20:22:54 +0000 (UTC) (envelope-from maxim@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id B509813C457; Mon, 30 Apr 2007 20:22:54 +0000 (UTC) (envelope-from maxim@FreeBSD.org) Received: from freefall.freebsd.org (maxim@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l3UKMs6c044743; Mon, 30 Apr 2007 20:22:54 GMT (envelope-from maxim@freefall.freebsd.org) Received: (from maxim@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l3UKMsLP044739; Mon, 30 Apr 2007 20:22:54 GMT (envelope-from maxim) Date: Mon, 30 Apr 2007 20:22:54 GMT From: Maxim Konovalov Message-Id: <200704302022.l3UKMsLP044739@freefall.freebsd.org> To: yong.599@gmail.com, maxim@FreeBSD.org, freebsd-net@FreeBSD.org, maxim@FreeBSD.org Cc: Subject: Re: kern/108211: [netinet] potentially a bug for inet_aton in sys/netinet/libalias/alias_proxy.c 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: Mon, 30 Apr 2007 20:22:55 -0000 Synopsis: [netinet] potentially a bug for inet_aton in sys/netinet/libalias/alias_proxy.c State-Changed-From-To: open->patched State-Changed-By: maxim State-Changed-When: Mon Apr 30 20:22:26 UTC 2007 State-Changed-Why: Fixed in HEAD. Thanks! Responsible-Changed-From-To: freebsd-net->maxim Responsible-Changed-By: maxim Responsible-Changed-When: Mon Apr 30 20:22:26 UTC 2007 Responsible-Changed-Why: MFC reminder. http://www.freebsd.org/cgi/query-pr.cgi?pr=108211 From owner-freebsd-net@FreeBSD.ORG Tue May 1 03:47:41 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BCF1F16A402 for ; Tue, 1 May 2007 03:47:41 +0000 (UTC) (envelope-from wilkinsa@obelix.dsto.defence.gov.au) Received: from digger1.defence.gov.au (digger1.defence.gov.au [203.5.217.4]) by mx1.freebsd.org (Postfix) with ESMTP id 05D8E13C455 for ; Tue, 1 May 2007 03:47:40 +0000 (UTC) (envelope-from wilkinsa@obelix.dsto.defence.gov.au) Received: from ednmsw510.dsto.defence.gov.au (ednmsw510.dsto.defence.gov.au [131.185.68.11]) by digger1.defence.gov.au (8.13.8/8.13.8) with ESMTP id l413MpXt000067 for ; Tue, 1 May 2007 12:52:51 +0930 (CST) Received: from ednex510.dsto.defence.gov.au (ednex510.dsto.defence.gov.au) by ednmsw510.dsto.defence.gov.au (Clearswift SMTPRS 5.2.5) with ESMTP id ; Tue, 1 May 2007 13:02:05 +0930 Received: from obelix.dsto.defence.gov.au ([203.6.60.208]) by ednex510.dsto.defence.gov.au with Microsoft SMTPSVC(6.0.3790.1830); Tue, 1 May 2007 13:02:04 +0930 Received: from obelix.dsto.defence.gov.au (localhost [127.0.0.1]) by obelix.dsto.defence.gov.au (8.13.8/8.13.8) with ESMTP id l413W0oO009621; Tue, 1 May 2007 11:32:00 +0800 (WST) (envelope-from wilkinsa@obelix.dsto.defence.gov.au) Received: (from wilkinsa@localhost) by obelix.dsto.defence.gov.au (8.13.8/8.13.8/Submit) id l413Vx0R009620; Tue, 1 May 2007 11:31:59 +0800 (WST) (envelope-from wilkinsa) Date: Tue, 1 May 2007 11:31:58 +0800 From: "Wilkinson, Alex" To: freebsd-net@freebsd.org, Jack Barnett Message-ID: <20070501033158.GQ6097@obelix.dsto.defence.gov.au> Mail-Followup-To: freebsd-net@freebsd.org, Jack Barnett References: <20070429112838.GH848@turion.vk2pj.dyndns.org> <20070430105659.C37507@fledge.watson.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20070430105659.C37507@fledge.watson.org> User-Agent: Mutt/1.5.14 (2007-02-12) X-OriginalArrivalTime: 01 May 2007 03:32:04.0897 (UTC) FILETIME=[49E33110:01C78BA1] X-TM-AS-Product-Ver: SMEX-7.0.0.1526-3.6.1039-15148.000 X-TM-AS-Result: No--1.983300-8.000000-31 Content-Transfer-Encoding: 7bit Cc: Subject: Re: Firewall 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: Tue, 01 May 2007 03:47:41 -0000 0n Mon, Apr 30, 2007 at 10:58:18AM +0100, Robert Watson wrote: >One of the big selling points of IPFW is integration with DUMMYNET, which >offers bandwidth management facilities not present in the other systems. I >understand there may be efforts afoot to add DUMMYNET support to other >firewall packages, but don't have any details. I have to say that DUMMYNET >is the main selling point for ipfw on my servers -- being able to rate >limit arbitrary IP addresses, port numbers, etc, both in terms of inbound >and outbound traffic is invaluable. eh ? PF has ALTQ built in. -aW IMPORTANT: This email remains the property of the Australian Defence Organisation and is subject to the jurisdiction of section 70 of the CRIMES ACT 1914. If you have received this email in error, you are requested to contact the sender and delete the email. From owner-freebsd-net@FreeBSD.ORG Tue May 1 04:12:30 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0090D16A402 for ; Tue, 1 May 2007 04:12:30 +0000 (UTC) (envelope-from wilkinsa@obelix.dsto.defence.gov.au) Received: from digger1.defence.gov.au (digger1.defence.gov.au [203.5.217.4]) by mx1.freebsd.org (Postfix) with ESMTP id 5CFBB13C457 for ; Tue, 1 May 2007 04:12:29 +0000 (UTC) (envelope-from wilkinsa@obelix.dsto.defence.gov.au) Received: from ednmsw510.dsto.defence.gov.au (ednmsw510.dsto.defence.gov.au [131.185.68.11]) by digger1.defence.gov.au (8.13.8/8.13.8) with ESMTP id l41439xm004951 for ; Tue, 1 May 2007 13:33:09 +0930 (CST) Received: from ednex510.dsto.defence.gov.au (ednex510.dsto.defence.gov.au) by ednmsw510.dsto.defence.gov.au (Clearswift SMTPRS 5.2.5) with ESMTP id ; Tue, 1 May 2007 13:42:22 +0930 Received: from obelix.dsto.defence.gov.au ([203.6.60.208]) by ednex510.dsto.defence.gov.au with Microsoft SMTPSVC(6.0.3790.1830); Tue, 1 May 2007 13:42:22 +0930 Received: from obelix.dsto.defence.gov.au (localhost [127.0.0.1]) by obelix.dsto.defence.gov.au (8.13.8/8.13.8) with ESMTP id l414CJfi009931; Tue, 1 May 2007 12:12:19 +0800 (WST) (envelope-from wilkinsa@obelix.dsto.defence.gov.au) Received: (from wilkinsa@localhost) by obelix.dsto.defence.gov.au (8.13.8/8.13.8/Submit) id l414CJDh009930; Tue, 1 May 2007 12:12:19 +0800 (WST) (envelope-from wilkinsa) Date: Tue, 1 May 2007 12:12:18 +0800 From: "Wilkinson, Alex" To: freebsd-net@freebsd.org, Jack Barnett Message-ID: <20070501041218.GS6097@obelix.dsto.defence.gov.au> Mail-Followup-To: freebsd-net@freebsd.org, Jack Barnett References: <20070429112838.GH848@turion.vk2pj.dyndns.org> <20070430105659.C37507@fledge.watson.org> <20070501033158.GQ6097@obelix.dsto.defence.gov.au> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20070501033158.GQ6097@obelix.dsto.defence.gov.au> User-Agent: Mutt/1.5.14 (2007-02-12) X-OriginalArrivalTime: 01 May 2007 04:12:22.0766 (UTC) FILETIME=[EB0CB8E0:01C78BA6] X-TM-AS-Product-Ver: SMEX-7.0.0.1526-3.6.1039-15148.000 X-TM-AS-Result: No--2.524400-8.000000-31 Content-Transfer-Encoding: 7bit Cc: Subject: Re: Firewall 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: Tue, 01 May 2007 04:12:30 -0000 0n Tue, May 01, 2007 at 11:31:58AM +0800, Wilkinson, Alex wrote: > 0n Mon, Apr 30, 2007 at 10:58:18AM +0100, Robert Watson wrote: > > >One of the big selling points of IPFW is integration with DUMMYNET, which > >offers bandwidth management facilities not present in the other systems. I > >understand there may be efforts afoot to add DUMMYNET support to other > >firewall packages, but don't have any details. I have to say that DUMMYNET > >is the main selling point for ipfw on my servers -- being able to rate > >limit arbitrary IP addresses, port numbers, etc, both in terms of inbound > >and outbound traffic is invaluable. > >eh ? PF has ALTQ built in. Read the next msg from Robert.Watson. -aW IMPORTANT: This email remains the property of the Australian Defence Organisation and is subject to the jurisdiction of section 70 of the CRIMES ACT 1914. If you have received this email in error, you are requested to contact the sender and delete the email. From owner-freebsd-net@FreeBSD.ORG Tue May 1 23:42:23 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 147AB16A400 for ; Tue, 1 May 2007 23:42:23 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.229]) by mx1.freebsd.org (Postfix) with ESMTP id C537313C4B7 for ; Tue, 1 May 2007 23:42:22 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: by wr-out-0506.google.com with SMTP id 70so1911877wra for ; Tue, 01 May 2007 16:42:22 -0700 (PDT) DKIM-Signature: a=rsa-sha1; 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:content-transfer-encoding:content-disposition:references; b=K8hFPxdOHpn1tOqKRpxueVfdqT1v+ZfcX6jnnK0TFgNpvdA6tQ6KCWixEsiYPQMTo66bxqvP6WkGIKupX4j0fqThvc/jK5pDYonIQTjeIHo24cc454NTiyKS4rtsu39FpHiqnNSkMd7bJaaD9TjY9d+nKnO9+UIw6+NAkjCs5Ss= 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:content-transfer-encoding:content-disposition:references; b=cGTDm4wymud81PRM6K+xN+GQ/xlUal8iFs61oUQfp8qqeua+1VFImgJn3y5f4eNpwzWYCEDcgmXdJ4vlXOa5Ozvr5iDSsvMpIPSWK85Hqk8JRofQoN6W1cRRQc4M+xhYiVXZm+ZF5OAiFXxddr1X4wBAXdkGWnoS3NCIw07XkEs= Received: by 10.78.200.3 with SMTP id x3mr9158huf.1178061459735; Tue, 01 May 2007 16:17:39 -0700 (PDT) Received: by 10.78.162.15 with HTTP; Tue, 1 May 2007 16:17:39 -0700 (PDT) Message-ID: Date: Tue, 1 May 2007 16:17:39 -0700 From: "Kip Macy" To: "Mukosi Mukwevho" In-Reply-To: <2eb767d30705011546q7ada786eh425ed3e01e5f2c01@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <2eb767d30705011546q7ada786eh425ed3e01e5f2c01@mail.gmail.com> Cc: freebsd-net , kmacy@freebsd.org Subject: Re: FreeBSD 7.0 Xen DomU kernel support for DUMMYNET 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: Tue, 01 May 2007 23:42:23 -0000 On 5/1/07, Mukosi Mukwevho wrote: > Hi Kip, > > I managed to get the FreedBSD domU booted under Xen. I am having problem > getting IPFW and DUMMYNET working, does the DomU kernel support DUMMYNET? > The IPFW firewall does not seem to start. > Please help. Congratulations. Given that no work has gone into it in the past year, that is no mean feat. DUMMYNET and IPFW should not have any dependence on the MD code. However, it is entirely possible that the virtual networking driver is doing something wrong. I'm cc'ing -net in the hope that someone might know what is preventing it from working. -Kip From owner-freebsd-net@FreeBSD.ORG Wed May 2 11:51:27 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 607FC16A400 for ; Wed, 2 May 2007 11:51:27 +0000 (UTC) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97]) by mx1.freebsd.org (Postfix) with ESMTP id B150A13C469 for ; Wed, 2 May 2007 11:51:26 +0000 (UTC) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.13.4/8.13.4) with ESMTP id l42BpJxU064621 for ; Wed, 2 May 2007 15:51:19 +0400 (MSD) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.13.4/8.13.4/Submit) id l42BpISZ064616 for freebsd-net@freebsd.org; Wed, 2 May 2007 15:51:18 +0400 (MSD) (envelope-from yar) Date: Wed, 2 May 2007 15:51:18 +0400 From: Yar Tikhiy To: freebsd-net@freebsd.org Message-ID: <20070502115118.GG51428@comp.chem.msu.su> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.9i Subject: Anybody running VLANs over tl(4) or nve(4)? 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: Wed, 02 May 2007 11:51:27 -0000 Hi folks, There two network interface drivers that have uncertain VLAN_MTU support status, namely nve(4) and tl(4). The nve(4) driver has a sign of unfinished VLAN_MTU support in it as it forgets to set the respective bit in if_capenable; and tl(4) was told to support long frames, but its driver doesn't indicate that capability at all. Therefore I'd appreciate reports of successfully running VLANs over nve(4) or tl(4) with an MTU of 1500 bytes on the vlan(4) interfaces. Attached are trivial patches that add correct and complete indication of VLAN_MTU support to the two drivers. With those patches applied, vlan(4) interfaces attached to tl(4) or nve(4) will automatically get the full MTU of 1500 bytes. What needs testing is the ability of the NICs to handle overlong frames resulting from VLAN encapsulation of full-sized frames. The simplest test is ping using 1500-byte IP packets with Don't Fragment bit set: # ping -D -s1472 A.B.C.D where A.B.C.D is the name or IP of a host reachable via the vlan. Doing FTP or SSH transfers of files larger than the MTU over the vlan link can exercise the capability, too. Thanks in advance! -- Yar Index: pci/if_tl.c =================================================================== RCS file: /home/ncvs/src/sys/pci/if_tl.c,v retrieving revision 1.110 diff -u -p -r1.110 if_tl.c --- pci/if_tl.c 23 Feb 2007 12:19:03 -0000 1.110 +++ pci/if_tl.c 2 May 2007 11:19:42 -0000 @@ -1267,6 +1267,8 @@ tl_attach(dev) ifp->if_init = tl_init; ifp->if_mtu = ETHERMTU; ifp->if_snd.ifq_maxlen = TL_TX_LIST_CNT - 1; + ifp->if_capabilities |= IFCAP_VLAN_MTU; + ifp->if_capenable |= IFCAP_VLAN_MTU; callout_init_mtx(&sc->tl_stat_callout, &sc->tl_mtx, 0); /* Reset the adapter again. */ Index: dev/nve/if_nve.c =================================================================== RCS file: /home/ncvs/src/sys/dev/nve/if_nve.c,v retrieving revision 1.25 diff -u -p -r1.25 if_nve.c --- dev/nve/if_nve.c 23 Feb 2007 12:18:48 -0000 1.25 +++ dev/nve/if_nve.c 2 May 2007 11:19:42 -0000 @@ -530,6 +530,7 @@ nve_attach(device_t dev) ifp->if_snd.ifq_drv_maxlen = TX_RING_SIZE - 1; IFQ_SET_READY(&ifp->if_snd); ifp->if_capabilities |= IFCAP_VLAN_MTU; + ifp->if_capenable |= IFCAP_VLAN_MTU; /* Attach to OS's managers. */ ether_ifattach(ifp, eaddr); From owner-freebsd-net@FreeBSD.ORG Wed May 2 16:48:53 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1DBDC16A402 for ; Wed, 2 May 2007 16:48:53 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout2.cac.washington.edu (mxout2.cac.washington.edu [140.142.33.4]) by mx1.freebsd.org (Postfix) with ESMTP id F2AB513C468 for ; Wed, 2 May 2007 16:48:52 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from hymn01.u.washington.edu (hymn01.u.washington.edu [140.142.8.55]) by mxout2.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l42Gmqg3029968 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 2 May 2007 09:48:52 -0700 Received: from localhost (localhost [127.0.0.1]) by hymn01.u.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l42Gmq2o007036 for ; Wed, 2 May 2007 09:48:52 -0700 X-Auth-Received: from [192.55.52.2] by hymn01.u.washington.edu via HTTP; Wed, 02 May 2007 09:48:52 PDT Date: Wed, 2 May 2007 09:48:52 -0700 (PDT) From: youshi10@u.washington.edu To: freebsd-net@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-PMX-Version: 5.3.1.294258, Antispam-Engine: 2.5.1.298604, Antispam-Data: 2007.5.2.93433 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='SUPERLONG_LINE 0.05, NO_REAL_NAME 0, __CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0' Subject: Unix friendly network testbench for FreeBSD? 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: Wed, 02 May 2007 16:48:53 -0000 Hi, I'm looking for a network testbench / simulator to stimulate known networking conditions to test out a component for a product at work. I was wondering if there was a network simulator available (preferably open source) that's FreeBSD / Linux compatible which I can simulate as real of a network as possible on a virtual machine / network. Thanks, -Garrett From owner-freebsd-net@FreeBSD.ORG Wed May 2 17:13:51 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 20C7F16A6B7 for ; Wed, 2 May 2007 17:13:51 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from pi.codefab.com (pi.codefab.com [199.103.21.227]) by mx1.freebsd.org (Postfix) with ESMTP id 8AD6B13C849 for ; Wed, 2 May 2007 17:13:29 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from localhost (localhost [127.0.0.1]) by pi.codefab.com (Postfix) with ESMTP id 352235C5A; Wed, 2 May 2007 13:13:29 -0400 (EDT) X-Virus-Scanned: amavisd-new at codefab.com Received: from pi.codefab.com ([127.0.0.1]) by localhost (pi.codefab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gNrqYF2VX-w1; Wed, 2 May 2007 13:13:27 -0400 (EDT) Received: from [192.168.1.3] (pool-96-224-43-99.nycmny.east.verizon.net [96.224.43.99]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pi.codefab.com (Postfix) with ESMTP id B89F05C47; Wed, 2 May 2007 13:13:27 -0400 (EDT) Message-ID: <4638C6B6.4050503@mac.com> Date: Wed, 02 May 2007 13:13:26 -0400 From: Chuck Swiger User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: youshi10@u.washington.edu References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: Unix friendly network testbench for FreeBSD? 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: Wed, 02 May 2007 17:13:51 -0000 youshi10@u.washington.edu wrote: > Hi, > I'm looking for a network testbench / simulator to stimulate known > networking conditions to test out a component for a product at work. > I was wondering if there was a network simulator available > (preferably open source) that's FreeBSD / Linux compatible which I can > simulate as real of a network as possible on a virtual machine / network. Dummynet or ALTQ might be good starting points, as is netgraph, depending on just what you're trying to do. There are also userland benchmark/analysis tools like flood pinging, netperf, & ab ("apache bench"). -- -Chuck From owner-freebsd-net@FreeBSD.ORG Wed May 2 17:22:39 2007 Return-Path: X-Original-To: freebsd-net@FreeBSD.org Delivered-To: freebsd-net@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8B42616A403 for ; Wed, 2 May 2007 17:22:39 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.freebsd.org (Postfix) with ESMTP id 1618213C4B8 for ; Wed, 2 May 2007 17:22:38 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from niksun.com (anuket [10.70.0.5]) by anuket.mj.niksun.com (8.13.6/8.13.6) with ESMTP id l42H9UXL038001 for ; Wed, 2 May 2007 13:09:31 -0400 (EDT) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: freebsd-net@FreeBSD.org Date: Wed, 2 May 2007 13:09:27 -0400 User-Agent: KMail/1.6.2 MIME-Version: 1.0 Content-Disposition: inline Content-Type: Multipart/Mixed; boundary="Boundary-00=_IXMOG4d55hR5jke" Message-Id: <200705021309.28908.jkim@FreeBSD.org> X-Virus-Scanned: ClamAV 0.90.2/3195/Wed May 2 05:34:51 2007 on anuket.mj.niksun.com X-Virus-Status: Clean Cc: Subject: [PATCH] hw.bge.fake_autoneg removal for bge(4) 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: Wed, 02 May 2007 17:22:39 -0000 --Boundary-00=_IXMOG4d55hR5jke Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline I think I have found a way to get rid of infamous 'hw.bge.fake_autoneg' tunable for BCM5704S. The patch works for me but I'd like to see more test results in various environments. If you have one of those BCM5704S (fiber) and set 'hw.bge.fake_autoneg="1"' in your /boot/loader.conf, please test and let me know. Thanks, Jung-uk Kim --Boundary-00=_IXMOG4d55hR5jke Content-Type: text/x-diff; charset="iso-8859-1"; name="bge_fake_an.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="bge_fake_an.diff" Index: sys/dev/bge/if_bge.c =================================================================== RCS file: /home/ncvs/src/sys/dev/bge/if_bge.c,v retrieving revision 1.189 diff -u -r1.189 if_bge.c --- sys/dev/bge/if_bge.c 1 May 2007 19:18:12 -0000 1.189 +++ sys/dev/bge/if_bge.c 2 May 2007 16:58:29 -0000 @@ -424,15 +424,11 @@ DRIVER_MODULE(bge, pci, bge_driver, bge_devclass, 0, 0); DRIVER_MODULE(miibus, bge, miibus_driver, miibus_devclass, 0, 0); -static int bge_fake_autoneg = 0; static int bge_allow_asf = 1; -TUNABLE_INT("hw.bge.fake_autoneg", &bge_fake_autoneg); TUNABLE_INT("hw.bge.allow_asf", &bge_allow_asf); SYSCTL_NODE(_hw, OID_AUTO, bge, CTLFLAG_RD, 0, "BGE driver parameters"); -SYSCTL_INT(_hw_bge, OID_AUTO, fake_autoneg, CTLFLAG_RD, &bge_fake_autoneg, 0, - "Enable fake autonegotiation for certain blade systems"); SYSCTL_INT(_hw_bge, OID_AUTO, allow_asf, CTLFLAG_RD, &bge_allow_asf, 0, "Allow ASF mode if available"); @@ -3732,18 +3728,20 @@ * mechanism for programming the autoneg * advertisement registers in TBI mode. */ - if (bge_fake_autoneg == 0 && - sc->bge_asicrev == BGE_ASICREV_BCM5704) { + if (sc->bge_asicrev == BGE_ASICREV_BCM5704) { uint32_t sgdig; - CSR_WRITE_4(sc, BGE_TX_TBI_AUTONEG, 0); - sgdig = CSR_READ_4(sc, BGE_SGDIG_CFG); - sgdig |= BGE_SGDIGCFG_AUTO | - BGE_SGDIGCFG_PAUSE_CAP | - BGE_SGDIGCFG_ASYM_PAUSE; - CSR_WRITE_4(sc, BGE_SGDIG_CFG, - sgdig | BGE_SGDIGCFG_SEND); - DELAY(5); - CSR_WRITE_4(sc, BGE_SGDIG_CFG, sgdig); + sgdig = CSR_READ_4(sc, BGE_SGDIG_STS); + if (sgdig & BGE_SGDIGSTS_DONE) { + CSR_WRITE_4(sc, BGE_TX_TBI_AUTONEG, 0); + sgdig = CSR_READ_4(sc, BGE_SGDIG_CFG); + sgdig |= BGE_SGDIGCFG_AUTO | + BGE_SGDIGCFG_PAUSE_CAP | + BGE_SGDIGCFG_ASYM_PAUSE; + CSR_WRITE_4(sc, BGE_SGDIG_CFG, + sgdig | BGE_SGDIGCFG_SEND); + DELAY(5); + CSR_WRITE_4(sc, BGE_SGDIG_CFG, sgdig); + } } break; case IFM_1000_SX: --Boundary-00=_IXMOG4d55hR5jke-- From owner-freebsd-net@FreeBSD.ORG Wed May 2 17:29:06 2007 Return-Path: X-Original-To: freebsd-net@FreeBSD.org Delivered-To: freebsd-net@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7D73816A40A for ; Wed, 2 May 2007 17:29:06 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.freebsd.org (Postfix) with ESMTP id 0490513C4C1 for ; Wed, 2 May 2007 17:29:05 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from niksun.com (anuket [10.70.0.5]) by anuket.mj.niksun.com (8.13.6/8.13.6) with ESMTP id l42HT4cH039556 for ; Wed, 2 May 2007 13:29:04 -0400 (EDT) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: freebsd-net@FreeBSD.org Date: Wed, 2 May 2007 13:28:55 -0400 User-Agent: KMail/1.6.2 MIME-Version: 1.0 Content-Disposition: inline Content-Type: Multipart/Mixed; boundary="Boundary-00=_epMOGzyckSwJO5Z" Message-Id: <200705021329.02520.jkim@FreeBSD.org> X-Virus-Scanned: ClamAV 0.90.2/3195/Wed May 2 05:34:51 2007 on anuket.mj.niksun.com X-Virus-Status: Clean Cc: Subject: [PATCH] DMA R/W control for bge(4) 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: Wed, 02 May 2007 17:29:06 -0000 --Boundary-00=_epMOGzyckSwJO5Z Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline This is a patch to correct DMA rwad/write control register settings. Actually it is all started from kern/96806: http://www.freebsd.org/cgi/query-pr.cgi?pr=96806 BCM5714C works now but we have some remaining patch in the PR. Please test the patch and let me know if it breaks anything. Thanks, Jung-uk Kim --Boundary-00=_epMOGzyckSwJO5Z Content-Type: text/x-diff; charset="iso-8859-1"; name="bge_dmarwctl.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="bge_dmarwctl.diff" Index: sys/dev/bge/if_bge.c =================================================================== RCS file: /home/ncvs/src/sys/dev/bge/if_bge.c,v retrieving revision 1.91.2.22 diff -u -r1.91.2.22 if_bge.c --- sys/dev/bge/if_bge.c 13 Apr 2007 18:25:03 -0000 1.91.2.22 +++ sys/dev/bge/if_bge.c 2 May 2007 16:42:00 -0000 @@ -1121,60 +1121,60 @@ i < BGE_STATUS_BLOCK_END + 1; i += sizeof(uint32_t)) BGE_MEMWIN_WRITE(sc, i, 0); - /* Set up the PCI DMA control register. */ + /* + * Set up the PCI DMA control register. + */ + dma_rw_ctl = BGE_PCIDMARWCTL_RD_CMD_SHIFT(6) | + BGE_PCIDMARWCTL_WR_CMD_SHIFT(7); if (sc->bge_flags & BGE_FLAG_PCIE) { - /* PCI Express bus */ - dma_rw_ctl = BGE_PCI_READ_CMD | BGE_PCI_WRITE_CMD | - BGE_PCIDMARWCTL_RD_WAT_SHIFT(0xF) | - BGE_PCIDMARWCTL_WR_WAT_SHIFT(0x2); + /* Read watermark not used, 128 bytes for write. */ + dma_rw_ctl |= BGE_PCIDMARWCTL_WR_WAT_SHIFT(3); } else if (sc->bge_flags & BGE_FLAG_PCIX) { - /* PCI-X bus */ if (BGE_IS_5714_FAMILY(sc)) { - dma_rw_ctl = BGE_PCI_READ_CMD | BGE_PCI_WRITE_CMD; - dma_rw_ctl &= ~BGE_PCIDMARWCTL_ONEDMA_ATONCE; /* XXX */ - /* XXX magic values, Broadcom-supplied Linux driver */ - dma_rw_ctl |= (1 << 20) | (1 << 18); - if (sc->bge_asicrev == BGE_ASICREV_BCM5780) - dma_rw_ctl |= BGE_PCIDMARWCTL_ONEDMA_ATONCE; - else - dma_rw_ctl |= 1 << 15; - - } else if (sc->bge_asicrev == BGE_ASICREV_BCM5704) - /* - * The 5704 uses a different encoding of read/write - * watermarks. - */ - dma_rw_ctl = BGE_PCI_READ_CMD | BGE_PCI_WRITE_CMD | - BGE_PCIDMARWCTL_RD_WAT_SHIFT(0x7) | - BGE_PCIDMARWCTL_WR_WAT_SHIFT(0x3); - else - dma_rw_ctl = BGE_PCI_READ_CMD | BGE_PCI_WRITE_CMD | - BGE_PCIDMARWCTL_RD_WAT_SHIFT(0x3) | - BGE_PCIDMARWCTL_WR_WAT_SHIFT(0x3) | + /* 256 bytes for read and write. */ + dma_rw_ctl |= BGE_PCIDMARWCTL_RD_WAT_SHIFT(2) | + BGE_PCIDMARWCTL_WR_WAT_SHIFT(2); + dma_rw_ctl |= (sc->bge_asicrev == BGE_ASICREV_BCM5780) ? + BGE_PCIDMARWCTL_ONEDMA_ATONCE_GLOBAL : + BGE_PCIDMARWCTL_ONEDMA_ATONCE_LOCAL; + } else if (sc->bge_asicrev == BGE_ASICREV_BCM5704) { + /* 1536 bytes for read, 384 bytes for write. */ + dma_rw_ctl |= BGE_PCIDMARWCTL_RD_WAT_SHIFT(7) | + BGE_PCIDMARWCTL_WR_WAT_SHIFT(3); + } else { + /* 384 bytes for read and write. */ + dma_rw_ctl |= BGE_PCIDMARWCTL_RD_WAT_SHIFT(3) | + BGE_PCIDMARWCTL_WR_WAT_SHIFT(3) | 0x0F; - - /* - * 5703 and 5704 need ONEDMA_AT_ONCE as a workaround - * for hardware bugs. - */ + } if (sc->bge_asicrev == BGE_ASICREV_BCM5703 || sc->bge_asicrev == BGE_ASICREV_BCM5704) { uint32_t tmp; + /* Set ONE_DMA_AT_ONCE for hardware workaround. */ tmp = CSR_READ_4(sc, BGE_PCI_CLKCTL) & 0x1F; - if (tmp == 0x6 || tmp == 0x7) - dma_rw_ctl |= BGE_PCIDMARWCTL_ONEDMA_ATONCE; - } - } else - /* Conventional PCI bus */ - dma_rw_ctl = BGE_PCI_READ_CMD | BGE_PCI_WRITE_CMD | - BGE_PCIDMARWCTL_RD_WAT_SHIFT(0x7) | - BGE_PCIDMARWCTL_WR_WAT_SHIFT(0x7) | - 0x0F; + if (tmp == 6 || tmp == 7) + dma_rw_ctl |= + BGE_PCIDMARWCTL_ONEDMA_ATONCE_GLOBAL; + /* Set PCI-X DMA write workaround. */ + dma_rw_ctl |= BGE_PCIDMARWCTL_ASRT_ALL_BE; + } + } else { + /* Conventional PCI bus: 256 bytes for read and write. */ + dma_rw_ctl |= BGE_PCIDMARWCTL_RD_WAT_SHIFT(7) | + BGE_PCIDMARWCTL_WR_WAT_SHIFT(7); + + if (sc->bge_asicrev != BGE_ASICREV_BCM5705 && + sc->bge_asicrev != BGE_ASICREV_BCM5750) + dma_rw_ctl |= 0x0F; + } + if (sc->bge_asicrev == BGE_ASICREV_BCM5700 || + sc->bge_asicrev == BGE_ASICREV_BCM5701) + dma_rw_ctl |= BGE_PCIDMARWCTL_USE_MRM | + BGE_PCIDMARWCTL_ASRT_ALL_BE; if (sc->bge_asicrev == BGE_ASICREV_BCM5703 || - sc->bge_asicrev == BGE_ASICREV_BCM5704 || - sc->bge_asicrev == BGE_ASICREV_BCM5705) + sc->bge_asicrev == BGE_ASICREV_BCM5704) dma_rw_ctl &= ~BGE_PCIDMARWCTL_MINDMA; pci_write_config(sc->bge_dev, BGE_PCI_DMA_RW_CTL, dma_rw_ctl, 4); Index: sys/dev/bge/if_bgereg.h =================================================================== RCS file: /home/ncvs/src/sys/dev/bge/if_bgereg.h,v retrieving revision 1.36.2.10 diff -u -r1.36.2.10 if_bgereg.h --- sys/dev/bge/if_bgereg.h 21 Mar 2007 22:53:22 -0000 1.36.2.10 +++ sys/dev/bge/if_bgereg.h 2 May 2007 16:42:01 -0000 @@ -316,7 +316,9 @@ #define BGE_PCIDMARWCTL_MINDMA 0x000000FF #define BGE_PCIDMARWCTL_RDADRR_BNDRY 0x00000700 #define BGE_PCIDMARWCTL_WRADDR_BNDRY 0x00003800 -#define BGE_PCIDMARWCTL_ONEDMA_ATONCE 0x00004000 +#define BGE_PCIDMARWCTL_ONEDMA_ATONCE 0x0000C000 +#define BGE_PCIDMARWCTL_ONEDMA_ATONCE_GLOBAL 0x00004000 +#define BGE_PCIDMARWCTL_ONEDMA_ATONCE_LOCAL 0x00008000 #define BGE_PCIDMARWCTL_RD_WAT 0x00070000 #define BGE_PCIDMARWCTL_WR_WAT 0x00380000 #define BGE_PCIDMARWCTL_USE_MRM 0x00400000 @@ -2101,9 +2103,6 @@ #define BGE_MEDIA_COPPER 0x00000010 #define BGE_MEDIA_FIBER 0x00000020 -#define BGE_PCI_READ_CMD 0x06000000 -#define BGE_PCI_WRITE_CMD 0x70000000 - #define BGE_TICKS_PER_SEC 1000000 /* --Boundary-00=_epMOGzyckSwJO5Z-- From owner-freebsd-net@FreeBSD.ORG Wed May 2 18:24:55 2007 Return-Path: X-Original-To: net@FreeBSD.org Delivered-To: freebsd-net@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C515416A404 for ; Wed, 2 May 2007 18:24:55 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id B443013C44B for ; Wed, 2 May 2007 18:24:55 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id A435F1A4D86 for ; Wed, 2 May 2007 11:25:29 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 0959051406; Wed, 2 May 2007 14:24:54 -0400 (EDT) Date: Wed, 2 May 2007 14:24:54 -0400 From: Kris Kennaway To: net@FreeBSD.org Message-ID: <20070502182454.GA41598@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gBBFr7Ir9EOA20Yy" Content-Disposition: inline User-Agent: Mutt/1.4.2.2i Cc: Subject: panic: mtx_lock() of destroyed mutex @ ../../../net/route.c:1306 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: Wed, 02 May 2007 18:24:55 -0000 --gBBFr7Ir9EOA20Yy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline One of my 7.0 systems has a flaky gateway, and when it goes down the node often goes down with this panic: panic: mtx_lock() of destroyed mutex @ ../../../net/route.c:1306 cpuid = 0 KDB: enter: panic [thread pid 28619 tid 100074 ] Stopped at kdb_enter+0x68: ta %xcc, 1 db> wh Tracing pid 28619 tid 100074 td 0xfffff800140e87e0 panic() at panic+0x248 _mtx_lock_flags() at _mtx_lock_flags+0x8c rt_check() at rt_check+0x128 arpresolve() at arpresolve+0x98 ether_output() at ether_output+0x94 ip_output() at ip_output+0xc64 udp_output() at udp_output+0x680 udp_send() at udp_send+0x38 sosend_dgram() at sosend_dgram+0x3e0 sosend() at sosend+0x74 kern_sendit() at kern_sendit+0x14c sendit() at sendit+0x1d4 sendto() at sendto+0x48 syscall() at syscall+0x2f8 -- syscall (133, FreeBSD ELF64, sendto) %o7=0x40aa68ac -- I suspect locking is broken in an error case. net/route.c:1306 is in the senderr() macro in rt_check(): /* XXX BSD/OS checks dst->sa_family != AF_NS */ if (rt->rt_flags & RTF_GATEWAY) { if (rt->rt_gwroute == NULL) goto lookup; rt = rt->rt_gwroute; bewm --> RT_LOCK(rt); /* NB: gwroute */ if ((rt->rt_flags & RTF_UP) == 0) { rtfree(rt); /* unlock gwroute */ rt = rt0; Kris --gBBFr7Ir9EOA20Yy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGONd2Wry0BWjoQKURAkZgAJ9Rr6aYxPdsdsqYoLe1Z/V+xr0wJwCgpAI5 qj8wrx9rTPqhEx5ZcimjBcU= =BrhP -----END PGP SIGNATURE----- --gBBFr7Ir9EOA20Yy-- From owner-freebsd-net@FreeBSD.ORG Wed May 2 21:40:36 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BB1F416A40A for ; Wed, 2 May 2007 21:40:36 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout4.cac.washington.edu (mxout4.cac.washington.edu [140.142.33.19]) by mx1.freebsd.org (Postfix) with ESMTP id 9A97C13C4B8 for ; Wed, 2 May 2007 21:40:36 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from hymn01.u.washington.edu (hymn01.u.washington.edu [140.142.8.55]) by mxout4.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l42LeaVv003743 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 2 May 2007 14:40:36 -0700 Received: from localhost (localhost [127.0.0.1]) by hymn01.u.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l42LeZvG030198 for ; Wed, 2 May 2007 14:40:35 -0700 X-Auth-Received: from [192.55.52.2] by hymn01.u.washington.edu via HTTP; Wed, 02 May 2007 14:40:35 PDT Date: Wed, 2 May 2007 14:40:35 -0700 (PDT) From: youshi10@u.washington.edu To: freebsd-net@freebsd.org In-Reply-To: <4638C6B6.4050503@mac.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-PMX-Version: 5.3.1.294258, Antispam-Engine: 2.5.1.298604, Antispam-Data: 2007.5.2.142034 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='SUPERLONG_LINE 0.05, NO_REAL_NAME 0, __CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0' Subject: Re: Unix friendly network testbench for FreeBSD? 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: Wed, 02 May 2007 21:40:36 -0000 On Wed, 2 May 2007, Chuck Swiger wrote: > youshi10@u.washington.edu wrote: >> Hi, >> I'm looking for a network testbench / simulator to stimulate known >> networking conditions to test out a component for a product at work. >> I was wondering if there was a network simulator available (preferably >> open source) that's FreeBSD / Linux compatible which I can simulate as real >> of a network as possible on a virtual machine / network. > > Dummynet or ALTQ might be good starting points, as is netgraph, depending on > just what you're trying to do. There are also userland benchmark/analysis > tools like flood pinging, netperf, & ab ("apache bench"). > > -- > -Chuck Hmmm... ok, expanding on that what I was looking for was a means to simulate semi-realtime delays across a virtual network with 4+ virtual machines. Is it possible to use Dummynet in this case, or do I need to look into something else? Other conditions I planned on imposing are non-locking NFS (causes a lot of issues here with files at work), and have SUSE 32-bit clients (host OS of choice at work) if possible connect to the host machine and with one another, executing make jobs. Any further suggestions on how to do this? Thanks, -Garrett From owner-freebsd-net@FreeBSD.ORG Wed May 2 22:39:44 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 74CBC16A402 for ; Wed, 2 May 2007 22:39:44 +0000 (UTC) (envelope-from zec@icir.org) Received: from xaqua.tel.fer.hr (xaqua.tel.fer.hr [161.53.19.25]) by mx1.freebsd.org (Postfix) with ESMTP id 071AA13C448 for ; Wed, 2 May 2007 22:39:43 +0000 (UTC) (envelope-from zec@icir.org) Received: by xaqua.tel.fer.hr (Postfix, from userid 20006) id D81B19B649; Thu, 3 May 2007 00:08:30 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on xaqua.tel.fer.hr X-Spam-Level: X-Spam-Status: No, score=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.7 Received: from [192.168.200.106] (zec2.tel.fer.hr [161.53.19.79]) by xaqua.tel.fer.hr (Postfix) with ESMTP id C12119B646; Thu, 3 May 2007 00:08:29 +0200 (CEST) From: Marko Zec To: freebsd-net@freebsd.org Date: Thu, 3 May 2007 00:08:26 +0200 User-Agent: KMail/1.9.6 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200705030008.26978.zec@icir.org> Cc: youshi10@u.washington.edu Subject: Re: Unix friendly network testbench for FreeBSD? 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: Wed, 02 May 2007 22:39:44 -0000 On Wednesday 02 May 2007 23:40:35 youshi10@u.washington.edu wrote: > On Wed, 2 May 2007, Chuck Swiger wrote: > > youshi10@u.washington.edu wrote: > >> Hi, > >> I'm looking for a network testbench / simulator to stimulate > >> known networking conditions to test out a component for a product > >> at work. I was wondering if there was a network simulator > >> available (preferably open source) that's FreeBSD / Linux > >> compatible which I can simulate as real of a network as possible > >> on a virtual machine / network. > > > > Dummynet or ALTQ might be good starting points, as is netgraph, > > depending on just what you're trying to do. There are also > > userland benchmark/analysis tools like flood pinging, netperf, & ab > > ("apache bench"). > > > > -- > > -Chuck > > Hmmm... ok, expanding on that what I was looking for was a means to > simulate semi-realtime delays across a virtual network with 4+ > virtual machines. Is it possible to use Dummynet in this case, or do > I need to look into something else? You can use IMUNES for emulating arbitrarily complex network topologies with hundreds of nodes, with each virtual node beheaving like an independent FreeBSD box, if that's what you are after. www.imunes.net -> it's still based on an aging but rock solid 4.11 kernel, with a version that will run on 7.0-CURRENT expected to become available in the next month or so. Marko > Other conditions I planned on imposing are non-locking NFS (causes a > lot of issues here with files at work), and have SUSE 32-bit clients > (host OS of choice at work) if possible connect to the host machine > and with one another, executing make jobs. > > Any further suggestions on how to do this? > > Thanks, > -Garrett > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to > "freebsd-net-unsubscribe@freebsd.org" From owner-freebsd-net@FreeBSD.ORG Wed May 2 23:53:20 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1F02A16A407 for ; Wed, 2 May 2007 23:53:20 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout4.cac.washington.edu (mxout4.cac.washington.edu [140.142.33.19]) by mx1.freebsd.org (Postfix) with ESMTP id F2FDE13C45B for ; Wed, 2 May 2007 23:53:19 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from hymn01.u.washington.edu (hymn01.u.washington.edu [140.142.8.55]) by mxout4.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l42NrJbK017593 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 2 May 2007 16:53:19 -0700 Received: from localhost (localhost [127.0.0.1]) by hymn01.u.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l42NrJAf031003; Wed, 2 May 2007 16:53:19 -0700 X-Auth-Received: from [192.55.52.2] by hymn01.u.washington.edu via HTTP; Wed, 02 May 2007 16:53:19 PDT Date: Wed, 2 May 2007 16:53:19 -0700 (PDT) From: youshi10@u.washington.edu To: Marko Zec In-Reply-To: <200705030008.26978.zec@icir.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-PMX-Version: 5.3.1.294258, Antispam-Engine: 2.5.1.298604, Antispam-Data: 2007.5.2.163934 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='NO_REAL_NAME 0, __CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0' Cc: freebsd-net@freebsd.org Subject: Re: Unix friendly network testbench for FreeBSD? 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: Wed, 02 May 2007 23:53:20 -0000 On Thu, 3 May 2007, Marko Zec wrote: > On Wednesday 02 May 2007 23:40:35 youshi10@u.washington.edu wrote: >> On Wed, 2 May 2007, Chuck Swiger wrote: >>> youshi10@u.washington.edu wrote: >>>> Hi, >>>> I'm looking for a network testbench / simulator to stimulate >>>> known networking conditions to test out a component for a product >>>> at work. I was wondering if there was a network simulator >>>> available (preferably open source) that's FreeBSD / Linux >>>> compatible which I can simulate as real of a network as possible >>>> on a virtual machine / network. >>> >>> Dummynet or ALTQ might be good starting points, as is netgraph, >>> depending on just what you're trying to do. There are also >>> userland benchmark/analysis tools like flood pinging, netperf, & ab >>> ("apache bench"). >>> >>> -- >>> -Chuck >> >> Hmmm... ok, expanding on that what I was looking for was a means to >> simulate semi-realtime delays across a virtual network with 4+ >> virtual machines. Is it possible to use Dummynet in this case, or do >> I need to look into something else? > > You can use IMUNES for emulating arbitrarily complex network topologies > with hundreds of nodes, with each virtual node beheaving like an > independent FreeBSD box, if that's what you are after. > www.imunes.net -> it's still based on an aging but rock solid 4.11 > kernel, with a version that will run on 7.0-CURRENT expected to become > available in the next month or so. > > Marko Marko, What roadblocks are you coming across porting IMUNES to a possibly earlier version (5.5, 6.2) of FreeBSD than 7 though? Maybe I can try and help, depending on the required tasks. Anything possible to help speed up my work and our regressions at my work is more than appreciated. -Garrett >> Other conditions I planned on imposing are non-locking NFS (causes a >> lot of issues here with files at work), and have SUSE 32-bit clients >> (host OS of choice at work) if possible connect to the host machine >> and with one another, executing make jobs. >> >> Any further suggestions on how to do this? >> >> Thanks, >> -Garrett From owner-freebsd-net@FreeBSD.ORG Thu May 3 00:06:53 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 07A7B16A409 for ; Thu, 3 May 2007 00:06:53 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outA.internet-mail-service.net (outA.internet-mail-service.net [216.240.47.224]) by mx1.freebsd.org (Postfix) with ESMTP id D326413C457 for ; Thu, 3 May 2007 00:05:24 +0000 (UTC) (envelope-from julian@elischer.org) Received: from mx0.idiom.com (HELO idiom.com) (216.240.32.160) by out.internet-mail-service.net (qpsmtpd/0.32) with ESMTP; Wed, 02 May 2007 16:31:45 -0700 Received: from julian-mac.elischer.org (nat.ironport.com [63.251.108.100]) by idiom.com (Postfix) with ESMTP id 96B6E125A26; Wed, 2 May 2007 17:05:23 -0700 (PDT) Message-ID: <46392743.1070200@elischer.org> Date: Wed, 02 May 2007 17:05:23 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.0 (Macintosh/20070326) MIME-Version: 1.0 To: youshi10@u.washington.edu References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org, Marko Zec Subject: Re: Unix friendly network testbench for FreeBSD? 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: Thu, 03 May 2007 00:06:53 -0000 youshi10@u.washington.edu wrote: > On Thu, 3 May 2007, Marko Zec wrote: > >> On Wednesday 02 May 2007 23:40:35 youshi10@u.washington.edu wrote: >>> On Wed, 2 May 2007, Chuck Swiger wrote: >>>> youshi10@u.washington.edu wrote: >>>>> Hi, >>>>> I'm looking for a network testbench / simulator to stimulate >>>>> known networking conditions to test out a component for a product >>>>> at work. I was wondering if there was a network simulator >>>>> available (preferably open source) that's FreeBSD / Linux >>>>> compatible which I can simulate as real of a network as possible >>>>> on a virtual machine / network. >>>> >>>> Dummynet or ALTQ might be good starting points, as is netgraph, >>>> depending on just what you're trying to do. There are also >>>> userland benchmark/analysis tools like flood pinging, netperf, & ab >>>> ("apache bench"). >>>> >>>> -- >>>> -Chuck >>> >>> Hmmm... ok, expanding on that what I was looking for was a means to >>> simulate semi-realtime delays across a virtual network with 4+ >>> virtual machines. Is it possible to use Dummynet in this case, or do >>> I need to look into something else? >> >> You can use IMUNES for emulating arbitrarily complex network topologies >> with hundreds of nodes, with each virtual node beheaving like an >> independent FreeBSD box, if that's what you are after. >> www.imunes.net -> it's still based on an aging but rock solid 4.11 >> kernel, with a version that will run on 7.0-CURRENT expected to become >> available in the next month or so. >> >> Marko > > Marko, > What roadblocks are you coming across porting IMUNES to a possibly > earlier version (5.5, 6.2) of FreeBSD than 7 though? Maybe I can try and > help, depending on the required tasks. > Anything possible to help speed up my work and our regressions at > my work is more than appreciated. > -Garrett When you look at the scope of the changes you'll realise what you are asking.. I'd go with 4.11 or wait the extra month or so.. > >>> Other conditions I planned on imposing are non-locking NFS (causes a >>> lot of issues here with files at work), and have SUSE 32-bit clients >>> (host OS of choice at work) if possible connect to the host machine >>> and with one another, executing make jobs. >>> >>> Any further suggestions on how to do this? >>> >>> Thanks, >>> -Garrett > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" From owner-freebsd-net@FreeBSD.ORG Thu May 3 00:10:57 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id ED8D516A406 for ; Thu, 3 May 2007 00:10:56 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout5.cac.washington.edu (mxout5.cac.washington.edu [140.142.32.135]) by mx1.freebsd.org (Postfix) with ESMTP id CE2FE13C480 for ; Thu, 3 May 2007 00:10:56 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from hymn01.u.washington.edu (hymn01.u.washington.edu [140.142.8.55]) by mxout5.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l430AsiX014980 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 2 May 2007 17:10:54 -0700 Received: from localhost (localhost [127.0.0.1]) by hymn01.u.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l430AsCF024404; Wed, 2 May 2007 17:10:54 -0700 X-Auth-Received: from [192.55.52.2] by hymn01.u.washington.edu via HTTP; Wed, 02 May 2007 17:10:54 PDT Date: Wed, 2 May 2007 17:10:54 -0700 (PDT) From: youshi10@u.washington.edu To: Julian Elischer In-Reply-To: <46392743.1070200@elischer.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-PMX-Version: 5.3.1.294258, Antispam-Engine: 2.5.1.298604, Antispam-Data: 2007.5.2.165234 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='NO_REAL_NAME 0, __CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0' Cc: freebsd-net@freebsd.org Subject: Re: Unix friendly network testbench for FreeBSD? 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: Thu, 03 May 2007 00:10:57 -0000 On Wed, 2 May 2007, Julian Elischer wrote: > youshi10@u.washington.edu wrote: >> On Thu, 3 May 2007, Marko Zec wrote: >> >>> On Wednesday 02 May 2007 23:40:35 youshi10@u.washington.edu wrote: >>>> On Wed, 2 May 2007, Chuck Swiger wrote: >>>>> youshi10@u.washington.edu wrote: >>>>>> Hi, >>>>>> I'm looking for a network testbench / simulator to stimulate >>>>>> known networking conditions to test out a component for a product >>>>>> at work. I was wondering if there was a network simulator >>>>>> available (preferably open source) that's FreeBSD / Linux >>>>>> compatible which I can simulate as real of a network as possible >>>>>> on a virtual machine / network. >>>>> >>>>> Dummynet or ALTQ might be good starting points, as is netgraph, >>>>> depending on just what you're trying to do. There are also >>>>> userland benchmark/analysis tools like flood pinging, netperf, & ab >>>>> ("apache bench"). >>>>> >>>>> -- >>>>> -Chuck >>>> >>>> Hmmm... ok, expanding on that what I was looking for was a means to >>>> simulate semi-realtime delays across a virtual network with 4+ >>>> virtual machines. Is it possible to use Dummynet in this case, or do >>>> I need to look into something else? >>> >>> You can use IMUNES for emulating arbitrarily complex network topologies >>> with hundreds of nodes, with each virtual node beheaving like an >>> independent FreeBSD box, if that's what you are after. >>> www.imunes.net -> it's still based on an aging but rock solid 4.11 >>> kernel, with a version that will run on 7.0-CURRENT expected to become >>> available in the next month or so. >>> >>> Marko >> >> Marko, >> What roadblocks are you coming across porting IMUNES to a possibly >> earlier version (5.5, 6.2) of FreeBSD than 7 though? Maybe I can try and >> help, depending on the required tasks. >> Anything possible to help speed up my work and our regressions at my >> work is more than appreciated. >> -Garrett > > When you look at the scope of the changes you'll realise what you are asking.. > > I'd go with 4.11 or wait the extra month or so.. That's true, but unfortunately... a) 7-CURRENT isn't production quality, but it's getting closer all the time. b) I need to start work soon, sometime within the next few weeks at the latest. I should have thought about this earlier, but it was just posed as a thought to me friday. >> >>>> Other conditions I planned on imposing are non-locking NFS (causes a >>>> lot of issues here with files at work), and have SUSE 32-bit clients >>>> (host OS of choice at work) if possible connect to the host machine >>>> and with one another, executing make jobs. >>>> >>>> Any further suggestions on how to do this? >>>> >>>> Thanks, >>>> -Garrett From owner-freebsd-net@FreeBSD.ORG Thu May 3 00:55:02 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A051516A401 for ; Thu, 3 May 2007 00:55:02 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outR.internet-mail-service.net (outR.internet-mail-service.net [216.240.47.241]) by mx1.freebsd.org (Postfix) with ESMTP id 89EEB13C447 for ; Thu, 3 May 2007 00:55:02 +0000 (UTC) (envelope-from julian@elischer.org) Received: from mx0.idiom.com (HELO idiom.com) (216.240.32.160) by out.internet-mail-service.net (qpsmtpd/0.32) with ESMTP; Wed, 02 May 2007 17:21:22 -0700 Received: from julian-mac.elischer.org (nat.ironport.com [63.251.108.100]) by idiom.com (Postfix) with ESMTP id B2903125B34; Wed, 2 May 2007 17:55:01 -0700 (PDT) Message-ID: <463932E4.7090707@elischer.org> Date: Wed, 02 May 2007 17:55:00 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.0 (Macintosh/20070326) MIME-Version: 1.0 To: youshi10@u.washington.edu References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: Unix friendly network testbench for FreeBSD? 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: Thu, 03 May 2007 00:55:02 -0000 youshi10@u.washington.edu wrote: >> I'd go with 4.11 or wait the extra month or so.. > > That's true, but unfortunately... > > a) 7-CURRENT isn't production quality, but it's getting closer all the > time. > b) I need to start work soon, sometime within the next few weeks at the > latest. I should have thought about this earlier, but it was just posed > as a thought to me friday. 4.11 is definitly production quality.. It won't make it into 7.0. I'm pretty sure. WHen 7-x branches this may go into head.. that puts it a feature in 8.0 Why do you want to use 7.0? of course there is always multiple Xen/vmware/whatever machines. From owner-freebsd-net@FreeBSD.ORG Thu May 3 01:21:03 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B788316A400 for ; Thu, 3 May 2007 01:21:03 +0000 (UTC) (envelope-from wilkinsa@obelix.dsto.defence.gov.au) Received: from digger1.defence.gov.au (digger1.defence.gov.au [203.5.217.4]) by mx1.freebsd.org (Postfix) with ESMTP id 26CDA13C457 for ; Thu, 3 May 2007 01:21:02 +0000 (UTC) (envelope-from wilkinsa@obelix.dsto.defence.gov.au) Received: from ednmsw510.dsto.defence.gov.au (ednmsw510.dsto.defence.gov.au [131.185.68.11]) by digger1.defence.gov.au (8.13.8/8.13.8) with ESMTP id l431BgnF023909 for ; Thu, 3 May 2007 10:41:42 +0930 (CST) Received: from ednex510.dsto.defence.gov.au (ednex510.dsto.defence.gov.au) by ednmsw510.dsto.defence.gov.au (Clearswift SMTPRS 5.2.5) with ESMTP id for ; Thu, 3 May 2007 10:50:56 +0930 Received: from obelix.dsto.defence.gov.au ([203.6.60.208]) by ednex510.dsto.defence.gov.au with Microsoft SMTPSVC(6.0.3790.1830); Thu, 3 May 2007 10:50:55 +0930 Received: from obelix.dsto.defence.gov.au (localhost [127.0.0.1]) by obelix.dsto.defence.gov.au (8.13.8/8.13.8) with ESMTP id l431KqEF013123 for ; Thu, 3 May 2007 09:20:52 +0800 (WST) (envelope-from wilkinsa@obelix.dsto.defence.gov.au) Received: (from wilkinsa@localhost) by obelix.dsto.defence.gov.au (8.13.8/8.13.8/Submit) id l431Kqup013122 for freebsd-net@freebsd.org; Thu, 3 May 2007 09:20:52 +0800 (WST) (envelope-from wilkinsa) Date: Thu, 3 May 2007 09:20:50 +0800 From: "Wilkinson, Alex" To: freebsd-net@freebsd.org Message-ID: <20070503012049.GA13094@obelix.dsto.defence.gov.au> Mail-Followup-To: freebsd-net@freebsd.org References: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.14 (2007-02-12) X-OriginalArrivalTime: 03 May 2007 01:20:56.0470 (UTC) FILETIME=[4CC40360:01C78D21] X-TM-AS-Product-Ver: SMEX-7.0.0.1526-3.6.1039-15152.000 X-TM-AS-Result: No--6.758000-8.000000-31 Content-Transfer-Encoding: 7bit Subject: Re: Unix friendly network testbench for FreeBSD? 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: Thu, 03 May 2007 01:21:03 -0000 0n Wed, May 02, 2007 at 09:48:52AM -0700, youshi10@u.washington.edu wrote: >Hi, > I'm looking for a network testbench / simulator to stimulate known > networking conditions to test out a component for a product at work. > I was wondering if there was a network simulator available (preferably > open source) that's FreeBSD / Linux compatible which I can simulate as > real of a network as possible on a virtual machine / network. I asked this same question a while back: [http://www.linuxsa.org.au/pipermail/linuxsa/2005-January/076909.html] -aW IMPORTANT: This email remains the property of the Australian Defence Organisation and is subject to the jurisdiction of section 70 of the CRIMES ACT 1914. If you have received this email in error, you are requested to contact the sender and delete the email. From owner-freebsd-net@FreeBSD.ORG Thu May 3 02:18:58 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D44B116A402 for ; Thu, 3 May 2007 02:18:58 +0000 (UTC) (envelope-from mluckie@cs.waikato.ac.nz) Received: from zombie.scms.waikato.ac.nz (mail.scms.waikato.ac.nz [130.217.241.36]) by mx1.freebsd.org (Postfix) with ESMTP id 6DE9813C45B for ; Thu, 3 May 2007 02:18:58 +0000 (UTC) (envelope-from mluckie@cs.waikato.ac.nz) Received: from sorcerer.cs.waikato.ac.nz ([130.217.251.39]) by zombie.scms.waikato.ac.nz with esmtps (TLSv1:AES256-SHA:256) (Exim 4.52) id 1HjQdf-0004cT-OL for freebsd-net@freebsd.org; Thu, 03 May 2007 14:01:47 +1200 Received: from mluckie by sorcerer.cs.waikato.ac.nz with local (Exim 4.67 (FreeBSD)) (envelope-from ) id 1HjQde-000P8i-Sd for freebsd-net@freebsd.org; Thu, 03 May 2007 14:01:46 +1200 Date: Thu, 3 May 2007 14:01:46 +1200 From: Matthew Luckie To: freebsd-net@freebsd.org Message-ID: <20070503020146.GA96616@sorcerer.cs.waikato.ac.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i Sender: Matthew Luckie Subject: UDP checksums in ICMP quotes 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: Thu, 03 May 2007 02:18:58 -0000 At the moment, freebsd checks a UDP checksum in place, overwriting whatever is there. This has a side effect of the ICMP code sending back the first eight bytes of the UDP payload with 2 bytes different to what that system sent. For example: listening on lo0, link-type NULL (BSD loopback), capture size 1500 bytes 13:41:24.382239 IP localhost.40858 > localhost.33435: UDP, length 12 0x0000: 0200 0000 4500 0028 9f9b 0000 0111 1c28 0x0010: 7f00 0001 7f00 0001 9f9a 829b 0014 df8d 0x0020: 0000 0000 0000 0000 0000 0000 13:41:24.382250 IP localhost > localhost: ICMP localhost udp port 33435 unreachable, length 36 0x0000: 0200 0000 4500 0038 00cc 0000 4001 7bf7 0x0010: 7f00 0001 7f00 0001 0303 dab2 0000 0000 0x0020: 4500 0028 9f9b 0000 0111 1c28 7f00 0001 0x0030: 7f00 0001 9f9a 829b 0014 0000 With the patch below, the checksum is not checked in place -- i.e. 13:54:47.371646 IP localhost.33826 > localhost.33435: UDP, length 12 0x0000: 0200 0000 4500 0028 8423 0000 0111 37a0 0x0010: 7f00 0001 7f00 0001 8422 829b 0014 fb05 0x0020: 0000 0000 0000 0000 0000 0000 13:54:47.371658 IP localhost > localhost: ICMP localhost udp port 33435 unreachable, length 36 0x0000: 0200 0000 4500 0038 001b 0000 4001 7ca8 0x0010: 7f00 0001 7f00 0001 0303 fb24 0000 0000 0x0020: 4500 0028 8423 0000 0111 37a0 7f00 0001 0x0030: 7f00 0001 8422 829b 0014 fb05 Patch is against -current, but applies just fine to FreeBSD 6.2 as well. --- udp_usrreq.c.orig Thu May 3 12:24:55 2007 +++ udp_usrreq.c Thu May 3 12:26:47 2007 @@ -248,23 +248,24 @@ * Checksum extended UDP header and data. */ if (uh->uh_sum) { + u_short uh_sum; if (m->m_pkthdr.csum_flags & CSUM_DATA_VALID) { if (m->m_pkthdr.csum_flags & CSUM_PSEUDO_HDR) - uh->uh_sum = m->m_pkthdr.csum_data; + uh_sum = m->m_pkthdr.csum_data; else - uh->uh_sum = in_pseudo(ip->ip_src.s_addr, + uh_sum = in_pseudo(ip->ip_src.s_addr, ip->ip_dst.s_addr, htonl((u_short)len + m->m_pkthdr.csum_data + IPPROTO_UDP)); - uh->uh_sum ^= 0xffff; + uh_sum ^= 0xffff; } else { char b[9]; bcopy(((struct ipovly *)ip)->ih_x1, b, 9); bzero(((struct ipovly *)ip)->ih_x1, 9); ((struct ipovly *)ip)->ih_len = uh->uh_ulen; - uh->uh_sum = in_cksum(m, len + sizeof (struct ip)); + uh_sum = in_cksum(m, len + sizeof (struct ip)); bcopy(b, ((struct ipovly *)ip)->ih_x1, 9); } - if (uh->uh_sum) { + if (uh_sum) { udpstat.udps_badsum++; m_freem(m); return; From owner-freebsd-net@FreeBSD.ORG Thu May 3 05:51:49 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C91DA16A412 for ; Thu, 3 May 2007 05:51:49 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout7.cac.washington.edu (mxout7.cac.washington.edu [140.142.32.178]) by mx1.freebsd.org (Postfix) with ESMTP id A553E13C4B0 for ; Thu, 3 May 2007 05:51:49 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.9] (may be forged)) by mxout7.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l435pleU027098 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 2 May 2007 22:51:47 -0700 X-Auth-Received: from [192.168.10.45] (c-67-187-164-17.hsd1.ca.comcast.net [67.187.164.17]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l435pkMH028149 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 2 May 2007 22:51:47 -0700 Message-ID: <46397897.4090907@u.washington.edu> Date: Wed, 02 May 2007 22:52:23 -0700 From: Garrett Cooper User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: Julian Elischer References: <463932E4.7090707@elischer.org> In-Reply-To: <463932E4.7090707@elischer.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.3.1.294258, Antispam-Engine: 2.5.1.298604, Antispam-Data: 2007.5.2.223536 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Cc: freebsd-net@freebsd.org Subject: Re: Unix friendly network testbench for FreeBSD? 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: Thu, 03 May 2007 05:51:49 -0000 Julian Elischer wrote: > youshi10@u.washington.edu wrote: > >>> I'd go with 4.11 or wait the extra month or so.. >> >> That's true, but unfortunately... >> >> a) 7-CURRENT isn't production quality, but it's getting closer all the >> time. >> b) I need to start work soon, sometime within the next few weeks at >> the latest. I should have thought about this earlier, but it was just >> posed as a thought to me friday. > > > 4.11 is definitly production quality.. > > It won't make it into 7.0. I'm pretty sure. > > WHen 7-x branches this may go into head.. that puts it a feature in 8.0 > > Why do you want to use 7.0? > > of course there is always multiple Xen/vmware/whatever machines. I didn't suggest that I wanted to use 7-CURRENT for production releases. That's entirely based on the devs responses. I'll give the 4.11 release a shot, but I don't like using 4.x because the SMP quality and 64-bit capability is lower than of 5.x and 6.x, and the majority of these tests need to be done with 64-bit capability since all of the machines will be Core2Duo+ capable (and thinking ahead), Quad core+ enabled. -Garrett From owner-freebsd-net@FreeBSD.ORG Thu May 3 12:19:35 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7FF8C16A400 for ; Thu, 3 May 2007 12:19:35 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-3-125.belrs4.nsw.optusnet.com.au [220.239.3.125]) by mx1.freebsd.org (Postfix) with ESMTP id 099C413C44C for ; Thu, 3 May 2007 12:19:34 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.14.1/8.14.1) with ESMTP id l43CJYXY007315; Thu, 3 May 2007 22:19:34 +1000 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.14.1/8.14.1/Submit) id l43CJXRK007314; Thu, 3 May 2007 22:19:33 +1000 (EST) (envelope-from peter) Date: Thu, 3 May 2007 22:19:33 +1000 From: Peter Jeremy To: youshi10@u.washington.edu Message-ID: <20070503121933.GP818@turion.vk2pj.dyndns.org> References: <4638C6B6.4050503@mac.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="JYK4vJDZwFMowpUq" Content-Disposition: inline In-Reply-To: X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.14 (2007-02-12) Cc: freebsd-net@freebsd.org Subject: Re: Unix friendly network testbench for FreeBSD? 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: Thu, 03 May 2007 12:19:35 -0000 --JYK4vJDZwFMowpUq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2007-May-02 14:40:35 -0700, youshi10@u.washington.edu wrote: >Hmmm... ok, expanding on that what I was looking for was a means to=20 >simulate semi-realtime delays across a virtual network with 4+ virtual=20 >machines. Is it possible to use Dummynet in this case, or do I need to loo= k=20 >into something else? Dummynet can provide bandwidth restriction as well as msec-granularity delays on packets being pushed through a pipe. You can glue together multiple pipes (packets go through several pipes with different characteristics). I'm not sure what your virtual machines need to do so I can't comment whether FreeBSD would be useable. >Other conditions I planned on imposing are non-locking NFS (causes a lot o= f=20 >issues here with files at work), Should be OK > and have SUSE 32-bit clients (host OS of choice at work) FreeBSD doesn't have SuSE clients but should be able to run them in its Linux emulation layer. --=20 Peter Jeremy --JYK4vJDZwFMowpUq Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGOdNV/opHv/APuIcRAnJuAJ4nyeUUtuxqKocve2i4iuFSvfrzhACcD/Hr flCBVVzdte4t31oJkjz13vc= =ZGnx -----END PGP SIGNATURE----- --JYK4vJDZwFMowpUq-- From owner-freebsd-net@FreeBSD.ORG Thu May 3 18:35:40 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7E50F16A400 for ; Thu, 3 May 2007 18:35:40 +0000 (UTC) (envelope-from zec@icir.org) Received: from xaqua.tel.fer.hr (xaqua.tel.fer.hr [161.53.19.25]) by mx1.freebsd.org (Postfix) with ESMTP id 0DB4213C448 for ; Thu, 3 May 2007 18:35:39 +0000 (UTC) (envelope-from zec@icir.org) Received: by xaqua.tel.fer.hr (Postfix, from userid 20006) id 154F49B648; Thu, 3 May 2007 20:35:38 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on xaqua.tel.fer.hr X-Spam-Level: X-Spam-Status: No, score=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.7 Received: from [192.168.200.106] (zec2.tel.fer.hr [161.53.19.79]) by xaqua.tel.fer.hr (Postfix) with ESMTP id E19529B646; Thu, 3 May 2007 20:35:36 +0200 (CEST) From: Marko Zec To: freebsd-net@freebsd.org Date: Thu, 3 May 2007 20:35:33 +0200 User-Agent: KMail/1.9.6 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200705032035.33513.zec@icir.org> Cc: youshi10@u.washington.edu Subject: Re: Unix friendly network testbench for FreeBSD? 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: Thu, 03 May 2007 18:35:40 -0000 On Thursday 03 May 2007 01:53:19 youshi10@u.washington.edu wrote: > On Thu, 3 May 2007, Marko Zec wrote: > > On Wednesday 02 May 2007 23:40:35 youshi10@u.washington.edu wrote: > >> On Wed, 2 May 2007, Chuck Swiger wrote: > >>> youshi10@u.washington.edu wrote: > >>>> Hi, > >>>> I'm looking for a network testbench / simulator to > >>>> stimulate known networking conditions to test out a component > >>>> for a product at work. I was wondering if there was a network > >>>> simulator available (preferably open source) that's FreeBSD / > >>>> Linux compatible which I can simulate as real of a network as > >>>> possible on a virtual machine / network. > >>> > >>> Dummynet or ALTQ might be good starting points, as is netgraph, > >>> depending on just what you're trying to do. There are also > >>> userland benchmark/analysis tools like flood pinging, netperf, & > >>> ab ("apache bench"). > >>> > >>> -- > >>> -Chuck > >> > >> Hmmm... ok, expanding on that what I was looking for was a means > >> to simulate semi-realtime delays across a virtual network with 4+ > >> virtual machines. Is it possible to use Dummynet in this case, or > >> do I need to look into something else? > > > > You can use IMUNES for emulating arbitrarily complex network > > topologies with hundreds of nodes, with each virtual node beheaving > > like an independent FreeBSD box, if that's what you are after. > > www.imunes.net -> it's still based on an aging but rock solid 4.11 > > kernel, with a version that will run on 7.0-CURRENT expected to > > become available in the next month or so. > > > > Marko > > Marko, > What roadblocks are you coming across porting IMUNES to a > possibly earlier version (5.5, 6.2) of FreeBSD than 7 though? Maybe I > can try and help, depending on the required tasks. The chances for any backporting of the virtualization framework to 6.x or even 5.x are quite slim. As Julian mentioned, if stability and performance arw your priorities, try the old version (based on 4.11). Otherwise, grab the -CURRENT sources from imunes.tel.fer.hr/virtnet and help us hunt out the bugs... Cheers, Marko > Anything possible > to help speed up my work and our regressions at my work is more than > appreciated. -Garrett > > >> Other conditions I planned on imposing are non-locking NFS (causes > >> a lot of issues here with files at work), and have SUSE 32-bit > >> clients (host OS of choice at work) if possible connect to the > >> host machine and with one another, executing make jobs. > >> > >> Any further suggestions on how to do this? > >> > >> Thanks, > >> -Garrett > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to > "freebsd-net-unsubscribe@freebsd.org" From owner-freebsd-net@FreeBSD.ORG Fri May 4 17:13:47 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E112416A400 for ; Fri, 4 May 2007 17:13:47 +0000 (UTC) (envelope-from erik@cepheid.org) Received: from mail.cepheid.org (wintermute.cepheid.org [64.92.165.98]) by mx1.freebsd.org (Postfix) with ESMTP id C980A13C447 for ; Fri, 4 May 2007 17:13:47 +0000 (UTC) (envelope-from erik@cepheid.org) Received: by mail.cepheid.org (Postfix, from userid 1006) id 609C517109; Fri, 4 May 2007 11:49:37 -0500 (CDT) Date: Fri, 4 May 2007 11:49:37 -0500 From: Erik To: freebsd-net@freebsd.org Message-ID: <20070504164937.GA37699@idoru.cepheid.org> Mail-Followup-To: Erik , freebsd-net@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i Subject: 100 mbps fiber card for FreeBSD 6? 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: Fri, 04 May 2007 17:13:48 -0000 Anyone have any good experiences with 100mbps fiber cards for FreeBSD? There don't seem to be many people trying to use this (admittedly slightly dated) technology. The 3CR990B-FX-97 from 3Com works with the txp driver (with a patch so that the card is recognized), however that driver itself is broken, even with copper cards. Can anyone recommend a card that will function well under FreeBSD? Thanks, Erik From owner-freebsd-net@FreeBSD.ORG Fri May 4 17:54:01 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AB43616A401 for ; Fri, 4 May 2007 17:54:01 +0000 (UTC) (envelope-from neo@gothic-chat.de) Received: from gothnet.eu (srv1.gothnet.eu [83.133.111.128]) by mx1.freebsd.org (Postfix) with ESMTP id 6C50913C45B for ; Fri, 4 May 2007 17:54:01 +0000 (UTC) (envelope-from neo@gothic-chat.de) Received: from localhost (localhost [127.0.0.1]) by gothnet.eu (Postfix) with ESMTP id 8727E33C1B; Fri, 4 May 2007 19:27:41 +0200 (CEST) X-Virus-Scanned: amavisd-new at gothnet.eu Received: from gothnet.eu ([127.0.0.1]) by localhost (gothnet.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XC2-zPDuaAny; Fri, 4 May 2007 19:27:38 +0200 (CEST) Received: from [192.168.2.4] (ppp-62-245-211-208.dynamic.mnet-online.de [62.245.211.208]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: neo) by gothnet.eu (Postfix) with ESMTP id 9CC3F33C19; Fri, 4 May 2007 19:27:38 +0200 (CEST) Message-ID: <463B6CF8.50005@gothic-chat.de> Date: Fri, 04 May 2007 19:27:20 +0200 From: "Neo [GC]" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; de; rv:1.8.0.10) Gecko/20070221 Thunderbird/1.5.0.10 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: freebsd-net@freebsd.org, freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Routing between subnets 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: Fri, 04 May 2007 17:54:01 -0000 Hi, i try to use a FreeBSD 6-STABLE machine as VPN-gateway for my home network. For VPN I use OpenVPN, wich connects to an outside OpenVPN-server. The connection itself works, but i need to get routing working for my LAN. I have searched in Google and group archives, but i can't find an easy howto wich works for me. Hope, someone of you can help me. I have set gateway_enable="yes" in my rc.conf, but it seems not to be working. (Question: Must this be enabled on the outside VPN-server too?) Config at home (deleted all unnessesary): Output of ifconfig: fxp0: flags=8843 mtu 1500 options=8 inet 192.168.2.2 netmask 0xffffff00 broadcast 192.168.2.255 tun0: flags=8051 mtu 1500 inet 10.10.0.6 --> 10.10.0.5 netmask 0xffffffff Output of netstat -r: Destination Gateway Flags Refs Use Netif Expire default skynet.gothic-chat UGS 0 226 fxp0 10.10.0.1/32 10.10.0.5 UGS 0 0 tun0 10.10.0.5 10.10.0.6 UH 1 0 tun0 192.168.2 link#1 UC 0 0 fxp0 192.168.2.255 ff:ff:ff:ff:ff:ff UHLWb 1 29 fxp0 Config at the VPN-server: Output of ifconfig: tun0: flags=8051 mtu 1500 inet 10.10.0.1 --> 10.10.0.2 netmask 0xffffffff Output of netstat -r: Destination Gateway Flags Refs Use Netif Expire default 83.133.111.1 UGS 0 57308679 em0 10.10/24 10.10.0.2 UGS 1 239 tun0 10.10.0.2 10.10.0.1 UH 1 0 tun0 192.168.2 10.10.0.6 UGS 0 2 tun0 I can ping in either direction between the two PCs with OpenVPN. So far so good... I've set a route on another PC in the LAN (XP), wich shows up in route print as 10.10.0.0 255.255.255.0 192.168.2.2 192.168.2.4 1 A tracert to 10.10.0.1 (the outside VPN-server) goes to 192.168.2.2 (wich is correct i think) and the goes no further... As firewall at home i use ipfilter, wich is set to be completely open: root@wintermute:~# ipfstat -i empty list for ipfilter(in) root@wintermute:~# ipfstat -o empty list for ipfilter(out) The firewall at the VPN-server has: pass out quick on tun0 all pass in quick on tun0 all Thanks for all your help! Greetings, -- Neo [GC] / Thomas Weber Webmaster @ GothNet.eu / Gothic-Chat.de EMail: neo@gothic-chat.de WWW: http://neo.gothic-chat.de/ Location: Earth::Germany::Munich From owner-freebsd-net@FreeBSD.ORG Fri May 4 18:03:45 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BCE6716A402 for ; Fri, 4 May 2007 18:03:45 +0000 (UTC) (envelope-from richardtector@thekeelecentre.com) Received: from mx0.thekeelecentre.com (mx0.thekeelecentre.com [217.206.238.167]) by mx1.freebsd.org (Postfix) with ESMTP id 2BC9B13C45B for ; Fri, 4 May 2007 18:03:45 +0000 (UTC) (envelope-from richardtector@thekeelecentre.com) Received: from localhost (mailfil.mx0.thekeelecentre.com [217.206.238.165]) by mx0.thekeelecentre.com (Postfix) with ESMTP id CB99741D7; Fri, 4 May 2007 18:46:49 +0100 (BST) X-Virus-Scanned: by amavisd-new at mx0.thekeelecentre.com Received: from mx0.thekeelecentre.com ([217.206.238.167]) by localhost (mailfil.mx0.thekeelecentre.com [217.206.238.165]) (amavisd-new, port 10024) with ESMTP id 99uRjLyBtjvV; Fri, 4 May 2007 18:46:47 +0100 (BST) Received: from [10.0.2.11] (82-71-32-9.dsl.in-addr.zen.co.uk [82.71.32.9]) by mx0.thekeelecentre.com (Postfix) with ESMTP id DD65D417C; Fri, 4 May 2007 18:46:46 +0100 (BST) Message-ID: <463B717C.40305@thekeelecentre.com> Date: Fri, 04 May 2007 18:46:36 +0100 From: Richard Tector User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: Erik , freebsd-net@freebsd.org References: <20070504164937.GA37699@idoru.cepheid.org> In-Reply-To: <20070504164937.GA37699@idoru.cepheid.org> Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=sha1; boundary="------------ms050304000904010903000801" Cc: Subject: Re: 100 mbps fiber card for FreeBSD 6? 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: Fri, 04 May 2007 18:03:45 -0000 This is a cryptographically signed message in MIME format. --------------ms050304000904010903000801 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Erik wrote: > Anyone have any good experiences with 100mbps fiber cards for FreeBSD? > There don't seem to be many people trying to use this (admittedly > slightly dated) technology. The 3CR990B-FX-97 from 3Com works with > the txp driver (with a patch so that the card is recognized), however > that driver itself is broken, even with copper cards. > > Can anyone recommend a card that will function well under FreeBSD? In my opinion you'd be better of getting a 100baseFX <-> 100baseTX media converter and then a well supported 100/1000baseT card if the application allows. Alternatively, I've used the 100baseFX Intel cards in the past which use the well looked after fxp driver. Regards, Richard --------------ms050304000904010903000801 Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIHPDCC A5owggMDoAMCAQICAQcwDQYJKoZIhvcNAQEEBQAwgYExCzAJBgNVBAYTAlVLMRYwFAYDVQQI Ew1TdGFmZm9yZHNoaXJlMQ4wDAYDVQQHEwVLZWVsZTEZMBcGA1UEChMQVGhlIEtlZWxlIENl bnRyZTEvMC0GA1UEAxMmVGhlIEtlZWxlIENlbnRyZSBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkw HhcNMDYwOTI5MTQyNTM4WhcNMTAwOTI5MTQyNTM4WjCBijELMAkGA1UEBhMCVUsxFjAUBgNV BAgTDVN0YWZmb3Jkc2hpcmUxGTAXBgNVBAoTEFRoZSBLZWVsZSBDZW50cmUxFzAVBgNVBAMT DlJpY2hhcmQgVGVjdG9yMS8wLQYJKoZIhvcNAQkBFiByaWNoYXJkdGVjdG9yQHRoZWtlZWxl Y2VudHJlLmNvbTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAxAE7t9Z0xg5iVOnqE2q7 UhaRoPrygXPXnZ4bHM8P2E4VKfpCP9tmU5rqP/zDwOKwUAFZsv1yHvzMj2d4S8nTP3eC75YY pztd1tiGIUyi2O1vtQuVrcogCC0Xe8TovubsjeosoEN6kujkTLhgWKj+/jDtb0ELiSwh7NnN CoStDvcCAwEAAaOCARUwggERMAkGA1UdEwQCMAAwLAYJYIZIAYb4QgENBB8WHU9wZW5TU0wg R2VuZXJhdGVkIENlcnRpZmljYXRlMB0GA1UdDgQWBBR5NRc2TrF8Qfj9ZMKvq5m5Lh9IFTCB tgYDVR0jBIGuMIGrgBSNCaM0QC1N5Hiyb/MPAVd/ouQEEqGBh6SBhDCBgTELMAkGA1UEBhMC VUsxFjAUBgNVBAgTDVN0YWZmb3Jkc2hpcmUxDjAMBgNVBAcTBUtlZWxlMRkwFwYDVQQKExBU aGUgS2VlbGUgQ2VudHJlMS8wLQYDVQQDEyZUaGUgS2VlbGUgQ2VudHJlIENlcnRpZmljYXRl IEF1dGhvcml0eYIJAJZYbH4e6XXnMA0GCSqGSIb3DQEBBAUAA4GBABy7Pq1hPDwR2vUs9Jlh LHXE1xLe/COWwTjmZ95mnvsX6XL6eVEzuc0xE66Mf1pyFxDKXxTCBj+G/ialE9AYiXTJAAVJ uvhvkm/u1vXdlNlfQJDRnZKFxrZsIT03LIysq+Hb4qZDpQvgWUUyGib4Ze7pNXPp8HOtlTgB ICafws5LMIIDmjCCAwOgAwIBAgIBBzANBgkqhkiG9w0BAQQFADCBgTELMAkGA1UEBhMCVUsx FjAUBgNVBAgTDVN0YWZmb3Jkc2hpcmUxDjAMBgNVBAcTBUtlZWxlMRkwFwYDVQQKExBUaGUg S2VlbGUgQ2VudHJlMS8wLQYDVQQDEyZUaGUgS2VlbGUgQ2VudHJlIENlcnRpZmljYXRlIEF1 dGhvcml0eTAeFw0wNjA5MjkxNDI1MzhaFw0xMDA5MjkxNDI1MzhaMIGKMQswCQYDVQQGEwJV SzEWMBQGA1UECBMNU3RhZmZvcmRzaGlyZTEZMBcGA1UEChMQVGhlIEtlZWxlIENlbnRyZTEX MBUGA1UEAxMOUmljaGFyZCBUZWN0b3IxLzAtBgkqhkiG9w0BCQEWIHJpY2hhcmR0ZWN0b3JA dGhla2VlbGVjZW50cmUuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDEATu31nTG DmJU6eoTartSFpGg+vKBc9ednhsczw/YThUp+kI/22ZTmuo//MPA4rBQAVmy/XIe/MyPZ3hL ydM/d4LvlhinO13W2IYhTKLY7W+1C5WtyiAILRd7xOi+5uyN6iygQ3qS6ORMuGBYqP7+MO1v QQuJLCHs2c0KhK0O9wIDAQABo4IBFTCCAREwCQYDVR0TBAIwADAsBglghkgBhvhCAQ0EHxYd T3BlblNTTCBHZW5lcmF0ZWQgQ2VydGlmaWNhdGUwHQYDVR0OBBYEFHk1FzZOsXxB+P1kwq+r mbkuH0gVMIG2BgNVHSMEga4wgauAFI0JozRALU3keLJv8w8BV3+i5AQSoYGHpIGEMIGBMQsw CQYDVQQGEwJVSzEWMBQGA1UECBMNU3RhZmZvcmRzaGlyZTEOMAwGA1UEBxMFS2VlbGUxGTAX BgNVBAoTEFRoZSBLZWVsZSBDZW50cmUxLzAtBgNVBAMTJlRoZSBLZWVsZSBDZW50cmUgQ2Vy dGlmaWNhdGUgQXV0aG9yaXR5ggkAllhsfh7pdecwDQYJKoZIhvcNAQEEBQADgYEAHLs+rWE8 PBHa9Sz0mWEsdcTXEt78I5bBOOZn3mae+xfpcvp5UTO5zTETrox/WnIXEMpfFMIGP4b+JqUT 0BiJdMkABUm6+G+Sb+7W9d2U2V9AkNGdkoXGtmwhPTcsjKyr4dvipkOlC+BZRTIaJvhl7uk1 c+nwc62VOAEgJp/CzksxggMbMIIDFwIBATCBhzCBgTELMAkGA1UEBhMCVUsxFjAUBgNVBAgT DVN0YWZmb3Jkc2hpcmUxDjAMBgNVBAcTBUtlZWxlMRkwFwYDVQQKExBUaGUgS2VlbGUgQ2Vu dHJlMS8wLQYDVQQDEyZUaGUgS2VlbGUgQ2VudHJlIENlcnRpZmljYXRlIEF1dGhvcml0eQIB BzAJBgUrDgMCGgUAoIIB6TAYBgkqhkiG9w0BCQMxCwYJKoZIhvcNAQcBMBwGCSqGSIb3DQEJ BTEPFw0wNzA1MDQxNzQ2MzZaMCMGCSqGSIb3DQEJBDEWBBQOStmS9uYbuLT7yG9hNcte3zvj sTBSBgkqhkiG9w0BCQ8xRTBDMAoGCCqGSIb3DQMHMA4GCCqGSIb3DQMCAgIAgDANBggqhkiG 9w0DAgIBQDAHBgUrDgMCBzANBggqhkiG9w0DAgIBKDCBmAYJKwYBBAGCNxAEMYGKMIGHMIGB MQswCQYDVQQGEwJVSzEWMBQGA1UECBMNU3RhZmZvcmRzaGlyZTEOMAwGA1UEBxMFS2VlbGUx GTAXBgNVBAoTEFRoZSBLZWVsZSBDZW50cmUxLzAtBgNVBAMTJlRoZSBLZWVsZSBDZW50cmUg Q2VydGlmaWNhdGUgQXV0aG9yaXR5AgEHMIGaBgsqhkiG9w0BCRACCzGBiqCBhzCBgTELMAkG A1UEBhMCVUsxFjAUBgNVBAgTDVN0YWZmb3Jkc2hpcmUxDjAMBgNVBAcTBUtlZWxlMRkwFwYD VQQKExBUaGUgS2VlbGUgQ2VudHJlMS8wLQYDVQQDEyZUaGUgS2VlbGUgQ2VudHJlIENlcnRp ZmljYXRlIEF1dGhvcml0eQIBBzANBgkqhkiG9w0BAQEFAASBgMOuNIe924hkusddLEPHWr2O UmrRrqZ5Y1iuWdhSziabhxroZQTF3gXnliQ0EUs08iMh8GiylZ9fJ75KPSd5l49Ok5xl7B10 F2y8LloR3yAjTar/xvxMkGQKT0uoaQiQEW1ZXVgb8dab8cfrN23NImA2EhENVigGAjou91bO IDygAAAAAAAA --------------ms050304000904010903000801-- From owner-freebsd-net@FreeBSD.ORG Fri May 4 18:35:12 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3CDAD16A401 for ; Fri, 4 May 2007 18:35:12 +0000 (UTC) (envelope-from erik@cepheid.org) Received: from mail.cepheid.org (wintermute.cepheid.org [64.92.165.98]) by mx1.freebsd.org (Postfix) with ESMTP id 219CA13C448 for ; Fri, 4 May 2007 18:35:12 +0000 (UTC) (envelope-from erik@cepheid.org) Received: by mail.cepheid.org (Postfix, from userid 1006) id C91F017107; Fri, 4 May 2007 13:35:11 -0500 (CDT) Date: Fri, 4 May 2007 13:35:11 -0500 From: Erik To: Richard Tector Message-ID: <20070504183511.GA39893@idoru.cepheid.org> Mail-Followup-To: Erik , Richard Tector , freebsd-net@freebsd.org References: <20070504164937.GA37699@idoru.cepheid.org> <463B717C.40305@thekeelecentre.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <463B717C.40305@thekeelecentre.com> User-Agent: Mutt/1.4.2.2i Cc: freebsd-net@freebsd.org Subject: Re: 100 mbps fiber card for FreeBSD 6? 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: Fri, 04 May 2007 18:35:12 -0000 On Fri, May 04, 2007 at 06:46:36PM +0100, Richard Tector wrote: > Erik wrote: > >Anyone have any good experiences with 100mbps fiber cards for FreeBSD? > >There don't seem to be many people trying to use this (admittedly > >slightly dated) technology. The 3CR990B-FX-97 from 3Com works with > >the txp driver (with a patch so that the card is recognized), however > >that driver itself is broken, even with copper cards. > > > >Can anyone recommend a card that will function well under FreeBSD? > > In my opinion you'd be better of getting a 100baseFX <-> 100baseTX media > converter and then a well supported 100/1000baseT card if the > application allows. > Alternatively, I've used the 100baseFX Intel cards in the past which use > the well looked after fxp driver. We've had pretty bad luck with media converters. When possible, it's our preference to use a card. Do you happen to have a model number on the Intel cards? I have a feeling that they may not be readily available, but it's worth a shot. Thanks for the feedback! Erik From owner-freebsd-net@FreeBSD.ORG Fri May 4 18:46:19 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6AA1216A400 for ; Fri, 4 May 2007 18:46:19 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.238]) by mx1.freebsd.org (Postfix) with ESMTP id 289C413C457 for ; Fri, 4 May 2007 18:46:18 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: by nz-out-0506.google.com with SMTP id s1so993434nze for ; Fri, 04 May 2007 11:46:18 -0700 (PDT) DKIM-Signature: a=rsa-sha1; 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:content-transfer-encoding:content-disposition:references; b=rldrAa+IfCkGFc3dBEha7EuFDcga+CyQ2d1FrqJqSSMiUaijXlsuMcyQdowbbTFed82u1eLu40bo6bRSX4SRFOpwnmagB/4Qe3kNouQqRoKNLlGjF/MW0sEG21gRHYWBDfWBVNysE4+YqI8xcf0Pkwfj0RFWzwtTLO0ZnD2zO3I= 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:content-transfer-encoding:content-disposition:references; b=JKFDLWLRHnGohdvGapRfnF+uNlhsXk2L5ZhnRG5cv0Zs/YAHw8uDqncjFFgbNr3gdSpejlvOVzgXW/O+3cF1vocsvpAfsv80vH+UKZRXvpujhCCFOGSZaXo/xKAz0SPn9j6eS9EP3ieNEJT3FMMKHJfltzAUxmQMUbATcBZnrAg= Received: by 10.114.175.16 with SMTP id x16mr337654wae.1178304377958; Fri, 04 May 2007 11:46:17 -0700 (PDT) Received: by 10.114.103.18 with HTTP; Fri, 4 May 2007 11:46:17 -0700 (PDT) Message-ID: <2a41acea0705041146m1af756fpeede38c7e01985b@mail.gmail.com> Date: Fri, 4 May 2007 11:46:17 -0700 From: "Jack Vogel" To: "Richard Tector" In-Reply-To: <463B717C.40305@thekeelecentre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070504164937.GA37699@idoru.cepheid.org> <463B717C.40305@thekeelecentre.com> Cc: freebsd-net@freebsd.org, Erik Subject: Re: 100 mbps fiber card for FreeBSD 6? 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: Fri, 04 May 2007 18:46:19 -0000 On 5/4/07, Richard Tector wrote: > Erik wrote: > > Anyone have any good experiences with 100mbps fiber cards for FreeBSD? > > There don't seem to be many people trying to use this (admittedly > > slightly dated) technology. The 3CR990B-FX-97 from 3Com works with > > the txp driver (with a patch so that the card is recognized), however > > that driver itself is broken, even with copper cards. > > > > Can anyone recommend a card that will function well under FreeBSD? > > In my opinion you'd be better of getting a 100baseFX <-> 100baseTX media > converter and then a well supported 100/1000baseT card if the > application allows. > Alternatively, I've used the 100baseFX Intel cards in the past which use > the well looked after fxp driver. LOL, why would you want 100Mb fiber? If Intel sells such a thing I'm not aware of it. The cables would probably cost more than the NIC :) We sell lots of Gig fiber, modernize would be my recommendation. Cheers, Jack From owner-freebsd-net@FreeBSD.ORG Fri May 4 18:54:26 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 78C8416A402 for ; Fri, 4 May 2007 18:54:26 +0000 (UTC) (envelope-from nataraja@cis.udel.edu) Received: from mail.eecis.udel.edu (louie.udel.edu [128.4.40.12]) by mx1.freebsd.org (Postfix) with ESMTP id 4FCCA13C44B for ; Fri, 4 May 2007 18:54:24 +0000 (UTC) (envelope-from nataraja@cis.udel.edu) Received: by mail.eecis.udel.edu (Postfix, from userid 62) id C8C482C09; Fri, 4 May 2007 14:54:22 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on louie.udel.edu X-Spam-Level: X-Spam-Status: No, score=-22.3 required=4.1 tests=ALL_TRUSTED,AWL,BAYES_00, LOCAL_AUTH_RCVD autolearn=ham version=3.1.8 Received: from [128.175.192.45] (roaming-192-45.nss.udel.edu [128.175.192.45]) (Authenticated sender: nataraja@mail.eecis.udel.edu) by mail.eecis.udel.edu (Postfix) with ESMTP id BC2012BFB; Fri, 4 May 2007 14:54:20 -0400 (EDT) Message-ID: <463B8156.8060708@cis.udel.edu> Date: Fri, 04 May 2007 14:54:14 -0400 From: Preethi Natarajan User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) To: freebsd-net@freebsd.org X-Sanitizer: This message has been sanitized! X-Sanitizer-URL: http://mailtools.anomy.net/ X-Sanitizer-Rev: UDEL-ECECIS: Sanitizer.pm, v 1.64 2002/10/22 MIME-Version: 1.0 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Cc: "Paul D. Amer" Subject: Details on TCP implementation 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: Fri, 04 May 2007 18:54:26 -0000 Hello, I am trying to understand the following details about TCP implementation in FreeBSD (6.1). - The sack.enable sysctl turns on SACK options (RFC2018)? - Does the implementation leverage SACK information for retransmissions (RFC3517)? - Is Appropriate Byte Counting (ABC) available (RFC3465) now/in the future? Thanks a ton! Preethi From owner-freebsd-net@FreeBSD.ORG Fri May 4 19:12:04 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6B25616A402 for ; Fri, 4 May 2007 19:12:04 +0000 (UTC) (envelope-from richardtector@thekeelecentre.com) Received: from mx0.thekeelecentre.com (mx0.thekeelecentre.com [217.206.238.167]) by mx1.freebsd.org (Postfix) with ESMTP id D5EE513C45E for ; Fri, 4 May 2007 19:12:03 +0000 (UTC) (envelope-from richardtector@thekeelecentre.com) Received: from localhost (mailfil.mx0.thekeelecentre.com [217.206.238.165]) by mx0.thekeelecentre.com (Postfix) with ESMTP id BA3A9416A; Fri, 4 May 2007 20:12:02 +0100 (BST) X-Virus-Scanned: by amavisd-new at mx0.thekeelecentre.com Received: from mx0.thekeelecentre.com ([217.206.238.167]) by localhost (mailfil.mx0.thekeelecentre.com [217.206.238.165]) (amavisd-new, port 10024) with ESMTP id ipTuC6Veom1C; Fri, 4 May 2007 20:11:59 +0100 (BST) Received: from [10.0.2.11] (82-71-32-9.dsl.in-addr.zen.co.uk [82.71.32.9]) by mx0.thekeelecentre.com (Postfix) with ESMTP id 7A7DF4169; Fri, 4 May 2007 20:11:59 +0100 (BST) Message-ID: <463B8572.90800@thekeelecentre.com> Date: Fri, 04 May 2007 20:11:46 +0100 From: Richard Tector User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: Jack Vogel References: <20070504164937.GA37699@idoru.cepheid.org> <463B717C.40305@thekeelecentre.com> <2a41acea0705041146m1af756fpeede38c7e01985b@mail.gmail.com> In-Reply-To: <2a41acea0705041146m1af756fpeede38c7e01985b@mail.gmail.com> Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=sha1; boundary="------------ms000809000700020508080108" Cc: freebsd-net@freebsd.org, Erik Subject: Re: 100 mbps fiber card for FreeBSD 6? 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: Fri, 04 May 2007 19:12:04 -0000 This is a cryptographically signed message in MIME format. --------------ms000809000700020508080108 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Jack Vogel wrote: > On 5/4/07, Richard Tector wrote: >> Erik wrote: >> > Anyone have any good experiences with 100mbps fiber cards for FreeBSD? >> > There don't seem to be many people trying to use this (admittedly >> > slightly dated) technology. The 3CR990B-FX-97 from 3Com works with >> > the txp driver (with a patch so that the card is recognized), however >> > that driver itself is broken, even with copper cards. >> > >> > Can anyone recommend a card that will function well under FreeBSD? >> >> In my opinion you'd be better of getting a 100baseFX <-> 100baseTX media >> converter and then a well supported 100/1000baseT card if the >> application allows. >> Alternatively, I've used the 100baseFX Intel cards in the past which use >> the well looked after fxp driver. > > LOL, why would you want 100Mb fiber? If Intel sells such a thing I'm > not aware of it. The cables would probably cost more than the NIC :) We have a lot of 100mbit fiber equipment. Upgrading to gigabit would be unneccessary and costly. It's probably 3-4 years since I got rid of our last 100baseFX fiber NICs. I'm fairly sure they were Intel. Could be mistaken however, it was a while back. > We sell lots of Gig fiber, modernize would be my recommendation. If Erik is connecting to an existing 100base infrastructure and all that is required is a £10 card off eBay, how can you recommend such an expensive course of action? It could cost thousands. Erik, A quick google suggests that the Allied Telesyn 100baseFX cards are supported by the pcn driver. Not sure if that is of any use to you. A look on the UK eBay lists 3 currently for sale at about £5. We've got maybe 20-25 of the Allied Telesyn 100baseFX->TX media converters round the buildings. Never had any trouble in years of use. It's a shame you've had issues. Would certainly simplify choosing a suitable network card. Regards, Richard --------------ms000809000700020508080108 Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIHPDCC A5owggMDoAMCAQICAQcwDQYJKoZIhvcNAQEEBQAwgYExCzAJBgNVBAYTAlVLMRYwFAYDVQQI Ew1TdGFmZm9yZHNoaXJlMQ4wDAYDVQQHEwVLZWVsZTEZMBcGA1UEChMQVGhlIEtlZWxlIENl bnRyZTEvMC0GA1UEAxMmVGhlIEtlZWxlIENlbnRyZSBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkw HhcNMDYwOTI5MTQyNTM4WhcNMTAwOTI5MTQyNTM4WjCBijELMAkGA1UEBhMCVUsxFjAUBgNV BAgTDVN0YWZmb3Jkc2hpcmUxGTAXBgNVBAoTEFRoZSBLZWVsZSBDZW50cmUxFzAVBgNVBAMT DlJpY2hhcmQgVGVjdG9yMS8wLQYJKoZIhvcNAQkBFiByaWNoYXJkdGVjdG9yQHRoZWtlZWxl Y2VudHJlLmNvbTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAxAE7t9Z0xg5iVOnqE2q7 UhaRoPrygXPXnZ4bHM8P2E4VKfpCP9tmU5rqP/zDwOKwUAFZsv1yHvzMj2d4S8nTP3eC75YY pztd1tiGIUyi2O1vtQuVrcogCC0Xe8TovubsjeosoEN6kujkTLhgWKj+/jDtb0ELiSwh7NnN CoStDvcCAwEAAaOCARUwggERMAkGA1UdEwQCMAAwLAYJYIZIAYb4QgENBB8WHU9wZW5TU0wg R2VuZXJhdGVkIENlcnRpZmljYXRlMB0GA1UdDgQWBBR5NRc2TrF8Qfj9ZMKvq5m5Lh9IFTCB tgYDVR0jBIGuMIGrgBSNCaM0QC1N5Hiyb/MPAVd/ouQEEqGBh6SBhDCBgTELMAkGA1UEBhMC VUsxFjAUBgNVBAgTDVN0YWZmb3Jkc2hpcmUxDjAMBgNVBAcTBUtlZWxlMRkwFwYDVQQKExBU aGUgS2VlbGUgQ2VudHJlMS8wLQYDVQQDEyZUaGUgS2VlbGUgQ2VudHJlIENlcnRpZmljYXRl IEF1dGhvcml0eYIJAJZYbH4e6XXnMA0GCSqGSIb3DQEBBAUAA4GBABy7Pq1hPDwR2vUs9Jlh LHXE1xLe/COWwTjmZ95mnvsX6XL6eVEzuc0xE66Mf1pyFxDKXxTCBj+G/ialE9AYiXTJAAVJ uvhvkm/u1vXdlNlfQJDRnZKFxrZsIT03LIysq+Hb4qZDpQvgWUUyGib4Ze7pNXPp8HOtlTgB ICafws5LMIIDmjCCAwOgAwIBAgIBBzANBgkqhkiG9w0BAQQFADCBgTELMAkGA1UEBhMCVUsx FjAUBgNVBAgTDVN0YWZmb3Jkc2hpcmUxDjAMBgNVBAcTBUtlZWxlMRkwFwYDVQQKExBUaGUg S2VlbGUgQ2VudHJlMS8wLQYDVQQDEyZUaGUgS2VlbGUgQ2VudHJlIENlcnRpZmljYXRlIEF1 dGhvcml0eTAeFw0wNjA5MjkxNDI1MzhaFw0xMDA5MjkxNDI1MzhaMIGKMQswCQYDVQQGEwJV SzEWMBQGA1UECBMNU3RhZmZvcmRzaGlyZTEZMBcGA1UEChMQVGhlIEtlZWxlIENlbnRyZTEX MBUGA1UEAxMOUmljaGFyZCBUZWN0b3IxLzAtBgkqhkiG9w0BCQEWIHJpY2hhcmR0ZWN0b3JA dGhla2VlbGVjZW50cmUuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDEATu31nTG DmJU6eoTartSFpGg+vKBc9ednhsczw/YThUp+kI/22ZTmuo//MPA4rBQAVmy/XIe/MyPZ3hL ydM/d4LvlhinO13W2IYhTKLY7W+1C5WtyiAILRd7xOi+5uyN6iygQ3qS6ORMuGBYqP7+MO1v QQuJLCHs2c0KhK0O9wIDAQABo4IBFTCCAREwCQYDVR0TBAIwADAsBglghkgBhvhCAQ0EHxYd T3BlblNTTCBHZW5lcmF0ZWQgQ2VydGlmaWNhdGUwHQYDVR0OBBYEFHk1FzZOsXxB+P1kwq+r mbkuH0gVMIG2BgNVHSMEga4wgauAFI0JozRALU3keLJv8w8BV3+i5AQSoYGHpIGEMIGBMQsw CQYDVQQGEwJVSzEWMBQGA1UECBMNU3RhZmZvcmRzaGlyZTEOMAwGA1UEBxMFS2VlbGUxGTAX BgNVBAoTEFRoZSBLZWVsZSBDZW50cmUxLzAtBgNVBAMTJlRoZSBLZWVsZSBDZW50cmUgQ2Vy dGlmaWNhdGUgQXV0aG9yaXR5ggkAllhsfh7pdecwDQYJKoZIhvcNAQEEBQADgYEAHLs+rWE8 PBHa9Sz0mWEsdcTXEt78I5bBOOZn3mae+xfpcvp5UTO5zTETrox/WnIXEMpfFMIGP4b+JqUT 0BiJdMkABUm6+G+Sb+7W9d2U2V9AkNGdkoXGtmwhPTcsjKyr4dvipkOlC+BZRTIaJvhl7uk1 c+nwc62VOAEgJp/CzksxggMbMIIDFwIBATCBhzCBgTELMAkGA1UEBhMCVUsxFjAUBgNVBAgT DVN0YWZmb3Jkc2hpcmUxDjAMBgNVBAcTBUtlZWxlMRkwFwYDVQQKExBUaGUgS2VlbGUgQ2Vu dHJlMS8wLQYDVQQDEyZUaGUgS2VlbGUgQ2VudHJlIENlcnRpZmljYXRlIEF1dGhvcml0eQIB BzAJBgUrDgMCGgUAoIIB6TAYBgkqhkiG9w0BCQMxCwYJKoZIhvcNAQcBMBwGCSqGSIb3DQEJ BTEPFw0wNzA1MDQxOTExNDZaMCMGCSqGSIb3DQEJBDEWBBT4fFklfv0gqKSVC26jD5O2dujv bjBSBgkqhkiG9w0BCQ8xRTBDMAoGCCqGSIb3DQMHMA4GCCqGSIb3DQMCAgIAgDANBggqhkiG 9w0DAgIBQDAHBgUrDgMCBzANBggqhkiG9w0DAgIBKDCBmAYJKwYBBAGCNxAEMYGKMIGHMIGB MQswCQYDVQQGEwJVSzEWMBQGA1UECBMNU3RhZmZvcmRzaGlyZTEOMAwGA1UEBxMFS2VlbGUx GTAXBgNVBAoTEFRoZSBLZWVsZSBDZW50cmUxLzAtBgNVBAMTJlRoZSBLZWVsZSBDZW50cmUg Q2VydGlmaWNhdGUgQXV0aG9yaXR5AgEHMIGaBgsqhkiG9w0BCRACCzGBiqCBhzCBgTELMAkG A1UEBhMCVUsxFjAUBgNVBAgTDVN0YWZmb3Jkc2hpcmUxDjAMBgNVBAcTBUtlZWxlMRkwFwYD VQQKExBUaGUgS2VlbGUgQ2VudHJlMS8wLQYDVQQDEyZUaGUgS2VlbGUgQ2VudHJlIENlcnRp ZmljYXRlIEF1dGhvcml0eQIBBzANBgkqhkiG9w0BAQEFAASBgJYnaIxrUcWm1PJUov40p9g5 nCJYY1lPlozuP7WoOqN+T91T9vjZLf0Q3MsqT9sFtS2nvtnB5rz0vaoDvNvHRMIQuV5zO4C0 LOD7o47YIVfTrNqbAULaOfB3GIVWqNruKOQvbdvk4HEBiYknObRGJ6ZACcbWIOZ0IlItuSUz 1JdeAAAAAAAA --------------ms000809000700020508080108-- From owner-freebsd-net@FreeBSD.ORG Fri May 4 19:15:31 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 579FD16A400 for ; Fri, 4 May 2007 19:15:31 +0000 (UTC) (envelope-from andre@freebsd.org) Received: from c00l3r.networx.ch (c00l3r.networx.ch [62.48.2.2]) by mx1.freebsd.org (Postfix) with ESMTP id EA62A13C465 for ; Fri, 4 May 2007 19:15:30 +0000 (UTC) (envelope-from andre@freebsd.org) Received: (qmail 79289 invoked from network); 4 May 2007 18:36:14 -0000 Received: from c00l3r.networx.ch (HELO [127.0.0.1]) ([62.48.2.2]) (envelope-sender ) by c00l3r.networx.ch (qmail-ldap-1.03) with SMTP for ; 4 May 2007 18:36:14 -0000 Message-ID: <463B8655.6020401@freebsd.org> Date: Fri, 04 May 2007 21:15:33 +0200 From: Andre Oppermann User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: Preethi Natarajan References: <463B8156.8060708@cis.udel.edu> In-Reply-To: <463B8156.8060708@cis.udel.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org, "Paul D. Amer" Subject: Re: Details on TCP implementation 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: Fri, 04 May 2007 19:15:31 -0000 Preethi Natarajan wrote: > Hello, > > I am trying to understand the following details about TCP implementation > in FreeBSD (6.1). > > - The sack.enable sysctl turns on SACK options (RFC2018)? Yes. It allows SACK to be negotiated during the SYN/SYN-ACK session setup. > - Does the implementation leverage SACK information for retransmissions > (RFC3517)? Yes. > - Is Appropriate Byte Counting (ABC) available (RFC3465) now/in the future? Not yet but in the future. It is currently being implemented along with a 'pluggable' congestion control framework for TCP. -- Andre From owner-freebsd-net@FreeBSD.ORG Fri May 4 19:34:06 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3545516A418 for ; Fri, 4 May 2007 19:34:06 +0000 (UTC) (envelope-from SRS0=ec044b6ad32711cb5bd3b3b17e0e8ea4e7167219=325=es.net=dart@es.net) Received: from postal1.es.net (postal1.es.net [198.128.3.205]) by mx1.freebsd.org (Postfix) with ESMTP id CAD1413C447 for ; Fri, 4 May 2007 19:34:05 +0000 (UTC) (envelope-from SRS0=ec044b6ad32711cb5bd3b3b17e0e8ea4e7167219=325=es.net=dart@es.net) Received: from melange.es.net (c-24-4-182-157.hsd1.ca.comcast.net [24.4.182.157]) by postal1.es.net (Postal Node 1) with ASMTP (SSL) id JYW23940 for ; Fri, 04 May 2007 12:18:40 -0700 Message-ID: <463B8703.10208@es.net> Date: Fri, 04 May 2007 12:18:27 -0700 From: Eli Dart Organization: Energy Sciences Network User-Agent: Thunderbird 2.0.0.0 (X11/20070424) MIME-Version: 1.0 To: freebsd-net@freebsd.org References: <20070504164937.GA37699@idoru.cepheid.org> <463B717C.40305@thekeelecentre.com> <2a41acea0705041146m1af756fpeede38c7e01985b@mail.gmail.com> <463B8572.90800@thekeelecentre.com> In-Reply-To: <463B8572.90800@thekeelecentre.com> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Subject: Re: 100 mbps fiber card for FreeBSD 6? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dart@es.net List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 May 2007 19:34:06 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Richard Tector wrote: [snip] > > Erik, > A quick google suggests that the Allied Telesyn 100baseFX cards are > supported by the pcn driver. Not sure if that is of any use to you. A > look on the UK eBay lists 3 currently for sale at about £5. > > We've got maybe 20-25 of the Allied Telesyn 100baseFX->TX media > converters round the buildings. Never had any trouble in years of use. > It's a shame you've had issues. Would certainly simplify choosing a > suitable network card. All media converters are certainly not created equal :) We've had good luck with Allied Telesyn 100base fiber to copper converters, but YMMV. I understand that there are times when FastE over fiber is necessary for some reason - in networking one must be a pragmatist :) That said, I try to avoid media converters wherever possible. Sometimes it is not possible. --eli - -- Eli Dart Office: (510) 486-5629 ESnet Network Engineering Group Fax: (510) 486-6712 Lawrence Berkeley National Laboratory PGP Key fingerprint = C970 F8D3 CFDD 8FFF 5486 343A 2D31 4478 5F82 B2B3 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGO4cDLTFEeF+CsrMRAsxIAJ9JI4MiHN9jkztMUi0MpVI8PBRBsQCfSlZR TWaVIYGFb774mkuS4B2gMIo= =p92M -----END PGP SIGNATURE----- From owner-freebsd-net@FreeBSD.ORG Fri May 4 20:49:03 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 14D1116A406 for ; Fri, 4 May 2007 20:49:03 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.235]) by mx1.freebsd.org (Postfix) with ESMTP id C5EF313C448 for ; Fri, 4 May 2007 20:49:02 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: by wr-out-0506.google.com with SMTP id 70so988997wra for ; Fri, 04 May 2007 13:49:02 -0700 (PDT) DKIM-Signature: a=rsa-sha1; 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:content-transfer-encoding:content-disposition:references; b=NC37O+uWV63gmM768bKi0xihUWKlvxthMkZJLd4oXSoHOQNo/ebsOSxWZLDWqyD5Ev8UFW05BKpz9bNtG5D8krkxUBcaqydcrU9SEPWkkIHSB7bmtrwfM1Ix9RkmaXKefiXMT3HAHuN59icB2UDthKU7h42f1Sa63MmK8nKawzc= 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:content-transfer-encoding:content-disposition:references; b=SnRcQRaxWtl1ewBRPT7x+y7RA1o4P8bY78xVlcfF4RlnYEOlIqH4wEWW51kdAZV2zJVaZuFCuxrBIdotrRiqC3qG3oVAK/EDEVjD3S0Y5v5eMJwEROp5cpJZC7AUoSM96FzHD/fEmn5rw19L4pF3LGgWT/c4dwH1N0WyWp1eU9I= Received: by 10.115.89.1 with SMTP id r1mr1273379wal.1178311741722; Fri, 04 May 2007 13:49:01 -0700 (PDT) Received: by 10.114.103.18 with HTTP; Fri, 4 May 2007 13:49:01 -0700 (PDT) Message-ID: <2a41acea0705041349o7bce9e1eh63ef1a036f80d1b6@mail.gmail.com> Date: Fri, 4 May 2007 13:49:01 -0700 From: "Jack Vogel" To: "Stefan Lambrev" In-Reply-To: <2a41acea0704250936l46ed31a3w930ac8fba04df810@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <462E3B4A.5030307@sun-fish.com> <2a41acea0704241103r59a1fa8di7e7747e191eea787@mail.gmail.com> <462F0CBF.6020507@sun-fish.com> <2a41acea0704250936l46ed31a3w930ac8fba04df810@mail.gmail.com> Cc: freebsd-net@freebsd.org Subject: Re: em0 - bge0 failed to work at 1000baseTX 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: Fri, 04 May 2007 20:49:03 -0000 On 4/25/07, Jack Vogel wrote: > On 4/25/07, Stefan Lambrev wrote: > > Hello, > > > > Jack Vogel wrote: > > > On 4/24/07, Stefan Lambrev wrote: > > >> Hello, > > >> > > >> I'm trying to get two gigabit network cards to work together. > > >> > > >> em0: port > > >> 0x1000-0x101f mem 0xf0500000-0xf051ffff,0xf0524000-0xf0524fff irq 19 at > > >> device 25.0 on pci0 > > >> > > >> em0@pci0:25:0: class=0x020000 card=0x2800103c chip=0x104a8086 rev=0x02 > > >> hdr=0x00 > > >> vendor = 'Intel Corporation' > > >> class = network > > >> subclass = ethernet > > >> > > >> and broadcom on the other end: > > >> > > >> bge0: mem 0xf4100000-0xf410ffff > > >> irq 16 at device 0.0 on pci8 > > >> > > >> bge0@pci8:0:0: class=0x020000 card=0x30a3103c chip=0x16fd14e4 rev=0x21 > > >> hdr=0x00 > > >> vendor = 'Broadcom Corporation' > > >> device = 'BCM5753M NetXtreme Gigabit Ethernet PCI Express' > > >> class = network > > >> subclass = ethernet > > >> > > >> > > >> When I connect both networks without switch e.g. directly they auto > > >> negotiate to: > > >> media: Ethernet autoselect (100baseTX ) > > >> but I want 1000baseTX :( > > >> > > >> First thing that I tried was to force both network card with: > > >> ifconfig bge0/em0 media 1000baseTX mediaopt full-duplex > > >> but this lead to status: no carrier > > >> > > >> Second step was to set bge link0 and em0 link1, but still "no carrier" > > >> (from bge manual) > > >> > > >> On the machine with em card I have linux installed so I boot under linux > > >> and then everything works > > >> with autoselect, and I'm able to transfer with speed +50MB/s. > > >> > > >> When I forced both network cards to 1000baseTX I notice this: > > >> > > >> em0 media: Ethernet 1000baseTX (autoselect) > > >> > > >> ^^^^^^^^ > > >> bge0 media: Ethernet 1000baseTX (none) > > >> > > >> ^^^^ > > >> > > >> Something else that is quite strange is that when I change em media from > > >> autoselec to 1000baseTX, > > >> I see that for 2-3 seconds there is a connection between cards (e.g. > > >> status: active), but just for 2-3 seconds > > >> and then it disconnects again. (ping between hosts works for 2 seconds) > > >> At this time ifconfig shows: > > >> em0 > > >> media: Ethernet 1000baseTX > > >> > > >> ^^^^^^ no autoselect here ? > > >> status: active > > >> > > >> and bge0: > > >> media: Ethernet autoselect (1000baseTX ) ( I left bge to > > >> autoselect at some point as I saw it does not change a thing..) > > >> status: active > > >> > > >> I compiled new kernel with > > >> #define EM_MASTER_SLAVE 2 (and then 3) > > >> in if_em.h (as I'm suspecting em driver ..) > > >> but still no success. > > >> > > >> Last thing that I notice while (re)booting freebsd server with em0 is > > >> that > > >> during starting program and rc scripts the status of the network changed > > >> from 100mbps -> 1000mbps -> no carrier -> 100mbps. > > >> > > >> So any ideas how to get my network working at gigabit speeds? :) > > >> > > >> P.S. both machines are running freebsd 6.2 stable - em0 is i386 and bge0 > > >> is on amd64. > > >> em0 was tested with 6.2-release too. > > >> > > >> Thanks in advance. > > > > > > Do me a favor please, go to downloadfinder.intel.com and get my latest > > > driver, its version 6.3.9, since ICH8 is fairly recent and has had some > > > late-breaking fixes in shared code its possible that will solve things. > > > You will want to use this driver as a module, its a hassle to build into > > > the kernel (although there is a patch to allow you to do that if you > > > wish). > > > > > > Please report back EITHER if it works or fails, if it does still fail > > > I will > > > have our test/validation group get hardware set up to look into this. > > > > > > Jack > > > _______________________________________________ > > > freebsd-net@freebsd.org mailing list > > > http://lists.freebsd.org/mailman/listinfo/freebsd-net > > > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > > Unfortunately 6.3.9 have the same behavior as 6.2.9 and I can't get both > > network cards to work at gigabit speed. > > Any other ideas ? :) > > Actually yes, I talked with the Linux engineer in our group that oversaw > the release of ICH8 and there is a problem with OS vs Management > use of the NIC that was discovered and fixed in Linux recently, and > my driver does not yet have this. > > Let me come up with a patch for you to test, it may take me a day, > things get busy here at times :) The new driver I just checked into CURRENT has this fix, I hope its going to be in the May snapshot, Stefan, can you try CURRENT to see if it solves your problem? Jack From owner-freebsd-net@FreeBSD.ORG Sat May 5 05:54:45 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A981016A400; Sat, 5 May 2007 05:54:45 +0000 (UTC) (envelope-from root@saltmine.radix.net) Received: from saltmine.radix.net (saltmine.radix.net [207.192.128.40]) by mx1.freebsd.org (Postfix) with ESMTP id 5FC4213C43E; Sat, 5 May 2007 05:54:45 +0000 (UTC) (envelope-from root@saltmine.radix.net) Received: from saltmine.radix.net (localhost [127.0.0.1]) by saltmine.radix.net (8.12.2/8.12.2) with ESMTP id l454XRlj025297; Sat, 5 May 2007 00:33:27 -0400 (EDT) Received: (from root@localhost) by saltmine.radix.net (8.12.2/8.12.2/Submit) id l454XRPH025296; Sat, 5 May 2007 00:33:27 -0400 (EDT) Received: from mail1.radix.net (mail1.radix.net [207.192.128.31]) by saltmine.radix.net (8.12.2/8.12.2) with ESMTP id l44HTElj019740 for ; Fri, 4 May 2007 13:29:14 -0400 (EDT) Received: from mx2.freebsd.org (mx2.freebsd.org [69.147.83.53]) by mail1.radix.net (8.13.4/8.13.4) with ESMTP id l44HTEaO002712 for ; Fri, 4 May 2007 13:29:14 -0400 (EDT) Received: from hub.freebsd.org (hub.freebsd.org [69.147.83.54]) by mx2.freebsd.org (Postfix) with ESMTP id 33E065C9BD; Fri, 4 May 2007 17:27:48 +0000 (UTC) (envelope-from owner-freebsd-questions@freebsd.org) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 28EF616A47C; Fri, 4 May 2007 17:27:48 +0000 (UTC) (envelope-from owner-freebsd-questions@freebsd.org) X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A732316A409 for ; Fri, 4 May 2007 17:27:43 +0000 (UTC) (envelope-from neo@gothic-chat.de) Received: from gothnet.eu (srv1.gothnet.eu [83.133.111.128]) by mx1.freebsd.org (Postfix) with ESMTP id 657B313C459 for ; Fri, 4 May 2007 17:27:42 +0000 (UTC) (envelope-from neo@gothic-chat.de) Received: from localhost (localhost [127.0.0.1]) by gothnet.eu (Postfix) with ESMTP id 8727E33C1B; Fri, 4 May 2007 19:27:41 +0200 (CEST) X-Virus-Scanned: amavisd-new at gothnet.eu Received: from gothnet.eu ([127.0.0.1]) by localhost (gothnet.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XC2-zPDuaAny; Fri, 4 May 2007 19:27:38 +0200 (CEST) Received: from [192.168.2.4] (ppp-62-245-211-208.dynamic.mnet-online.de [62.245.211.208]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: neo) by gothnet.eu (Postfix) with ESMTP id 9CC3F33C19; Fri, 4 May 2007 19:27:38 +0200 (CEST) Message-ID: <463B6CF8.50005@gothic-chat.de> Date: Fri, 04 May 2007 19:27:20 +0200 From: "Neo [GC]" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; de; rv:1.8.0.10) Gecko/20070221 Thunderbird/1.5.0.10 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: freebsd-net@freebsd.org, freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Sender: owner-freebsd-questions@freebsd.org Errors-To: owner-freebsd-questions@freebsd.org Status: O X-Status: X-Keywords: X-UID: 49 Cc: Subject: Routing between subnets X-BeenThere: freebsd-net@freebsd.org List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 May 2007 05:54:45 -0000 Hi, i try to use a FreeBSD 6-STABLE machine as VPN-gateway for my home network. For VPN I use OpenVPN, wich connects to an outside OpenVPN-server. The connection itself works, but i need to get routing working for my LAN. I have searched in Google and group archives, but i can't find an easy howto wich works for me. Hope, someone of you can help me. I have set gateway_enable="yes" in my rc.conf, but it seems not to be working. (Question: Must this be enabled on the outside VPN-server too?) Config at home (deleted all unnessesary): Output of ifconfig: fxp0: flags=8843 mtu 1500 options=8 inet 192.168.2.2 netmask 0xffffff00 broadcast 192.168.2.255 tun0: flags=8051 mtu 1500 inet 10.10.0.6 --> 10.10.0.5 netmask 0xffffffff Output of netstat -r: Destination Gateway Flags Refs Use Netif Expire default skynet.gothic-chat UGS 0 226 fxp0 10.10.0.1/32 10.10.0.5 UGS 0 0 tun0 10.10.0.5 10.10.0.6 UH 1 0 tun0 192.168.2 link#1 UC 0 0 fxp0 192.168.2.255 ff:ff:ff:ff:ff:ff UHLWb 1 29 fxp0 Config at the VPN-server: Output of ifconfig: tun0: flags=8051 mtu 1500 inet 10.10.0.1 --> 10.10.0.2 netmask 0xffffffff Output of netstat -r: Destination Gateway Flags Refs Use Netif Expire default 83.133.111.1 UGS 0 57308679 em0 10.10/24 10.10.0.2 UGS 1 239 tun0 10.10.0.2 10.10.0.1 UH 1 0 tun0 192.168.2 10.10.0.6 UGS 0 2 tun0 I can ping in either direction between the two PCs with OpenVPN. So far so good... I've set a route on another PC in the LAN (XP), wich shows up in route print as 10.10.0.0 255.255.255.0 192.168.2.2 192.168.2.4 1 A tracert to 10.10.0.1 (the outside VPN-server) goes to 192.168.2.2 (wich is correct i think) and the goes no further... As firewall at home i use ipfilter, wich is set to be completely open: root@wintermute:~# ipfstat -i empty list for ipfilter(in) root@wintermute:~# ipfstat -o empty list for ipfilter(out) The firewall at the VPN-server has: pass out quick on tun0 all pass in quick on tun0 all Thanks for all your help! Greetings, -- Neo [GC] / Thomas Weber Webmaster @ GothNet.eu / Gothic-Chat.de EMail: neo@gothic-chat.de WWW: http://neo.gothic-chat.de/ Location: Earth::Germany::Munich _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" From owner-freebsd-net@FreeBSD.ORG Sat May 5 12:02:06 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2949516A400; Sat, 5 May 2007 12:02:06 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) Received: from pobox.codelabs.ru (pobox.codelabs.ru [144.206.177.45]) by mx1.freebsd.org (Postfix) with ESMTP id D4BD913C45D; Sat, 5 May 2007 12:02:05 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) DomainKey-Signature: a=rsa-sha1; q=dns; c=simple; s=one; d=codelabs.ru; h=Received:Date:From:To:Cc:Message-ID:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:Sender:X-Spam-Status:Subject; b=aw9JsKUttfWvGXpjopZsGdo2qs+wF5CURdSzjnUvObp5ChZCenQ8TpARYYJ2eB+MMWBBC5FErq/gkG/FKvuhRZbDnoX/q8gRDzxleJVdkr9PWaOdEDm1iErlf0CtCZSpQZh1TCV1q94VFHnww2z34UfIg4/PrrBANEE90BNOb/8=; Received: from codelabs.ru (pobox.codelabs.ru [144.206.177.45]) by pobox.codelabs.ru with esmtpsa (TLSv1:AES256-SHA:256) id 1HkIjD-0004EB-HA; Sat, 05 May 2007 15:47:07 +0400 Date: Sat, 5 May 2007 15:47:02 +0400 From: Eygene Ryabinkin To: "Neo [GC]" Message-ID: <20070505114702.GB15506@codelabs.ru> References: <463B6CF8.50005@gothic-chat.de> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <463B6CF8.50005@gothic-chat.de> Sender: rea-fbsd@codelabs.ru X-Spam-Status: No, score=-2.1 required=4.0 tests=ALL_TRUSTED,AWL,BAYES_50 Cc: freebsd-net@freebsd.org, freebsd-questions@freebsd.org Subject: Re: Routing between subnets 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, 05 May 2007 12:02:06 -0000 Neo, good day. Fri, May 04, 2007 at 07:27:20PM +0200, Neo [GC] wrote: > Config at home (deleted all unnessesary): > > Output of ifconfig: > fxp0: flags=8843 mtu 1500 > options=8 > inet 192.168.2.2 netmask 0xffffff00 broadcast 192.168.2.255 > tun0: flags=8051 mtu 1500 > inet 10.10.0.6 --> 10.10.0.5 netmask 0xffffffff > > > Config at the VPN-server: > > Output of ifconfig: > tun0: flags=8051 mtu 1500 > inet 10.10.0.1 --> 10.10.0.2 netmask 0xffffffff It will be good if you will provide the picture of the network: I see two tunnels here (10.10.0.6:10.10.0.5 and 10.10.0.1:10.10.0.2) and no signs of how these are connected to each other and where the endpoints of tunnels are situated. -- Eygene From owner-freebsd-net@FreeBSD.ORG Sat May 5 16:25:52 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E950716A401 for ; Sat, 5 May 2007 16:25:52 +0000 (UTC) (envelope-from erik@cepheid.org) Received: from mail.cepheid.org (wintermute.cepheid.org [64.92.165.98]) by mx1.freebsd.org (Postfix) with ESMTP id CDF0313C457 for ; Sat, 5 May 2007 16:25:52 +0000 (UTC) (envelope-from erik@cepheid.org) Received: by mail.cepheid.org (Postfix, from userid 1006) id 33993170EC; Sat, 5 May 2007 11:25:52 -0500 (CDT) Date: Sat, 5 May 2007 11:25:52 -0500 From: Erik To: Richard Tector Message-ID: <20070505162552.GA73611@idoru.cepheid.org> Mail-Followup-To: Erik , Richard Tector , freebsd-net@freebsd.org References: <20070504164937.GA37699@idoru.cepheid.org> <463B717C.40305@thekeelecentre.com> <2a41acea0705041146m1af756fpeede38c7e01985b@mail.gmail.com> <463B8572.90800@thekeelecentre.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <463B8572.90800@thekeelecentre.com> User-Agent: Mutt/1.4.2.2i Cc: freebsd-net@freebsd.org Subject: Re: 100 mbps fiber card for FreeBSD 6? 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, 05 May 2007 16:25:53 -0000 On Fri, May 04, 2007 at 08:11:46PM +0100, Richard Tector wrote: > Erik, > A quick google suggests that the Allied Telesyn 100baseFX cards are > supported by the pcn driver. Not sure if that is of any use to you. A > look on the UK eBay lists 3 currently for sale at about £5. > > We've got maybe 20-25 of the Allied Telesyn 100baseFX->TX media > converters round the buildings. Never had any trouble in years of use. > It's a shame you've had issues. Would certainly simplify choosing a > suitable network card. I'll give that card a shot, thanks for the suggestion! I agree that using media converters would simplify the choice of NICs, but out past experience with them (I don't know the manufacturer offhand) makes me a little hesitant to go that route. Erik