From owner-freebsd-questions@FreeBSD.ORG Fri Jun 24 10:25:53 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7DEE716A41C for ; Fri, 24 Jun 2005 10:25:53 +0000 (GMT) (envelope-from ulfma629@student.liu.se) Received: from xanadu.unit.liu.se (xanadu.unit.liu.se [130.236.230.147]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3809A43D48 for ; Fri, 24 Jun 2005 10:25:52 +0000 (GMT) (envelope-from ulfma629@student.liu.se) Received: by xanadu.unit.liu.se (Postfix, from userid 102) id D67B74D681; Fri, 24 Jun 2005 12:25:51 +0200 (MEST) Received: from liu.se (avalon.unit.liu.se [130.236.230.138]) by xanadu.unit.liu.se (Postfix) with ESMTP id A4BD84D64E for ; Fri, 24 Jun 2005 12:25:49 +0200 (MEST) Received: from [81.94.82.239] by qom.unit.liu.se (mshttpd); Fri, 24 Jun 2005 12:25:49 +0200 From: Ulf Magnusson To: freebsd-questions@freebsd.org Message-ID: <5675255661ae.5661ae567525@liu.se> Date: Fri, 24 Jun 2005 12:25:49 +0200 X-Mailer: iPlanet Messenger Express 5.2 HotFix 2.05 (built Mar 3 2005) MIME-Version: 1.0 Content-Language: en X-Accept-Language: en Priority: normal Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.0.4-liu_20050621_1634 (2005-06-05) on themis.unit.liu.se X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=FROM_ENDS_IN_NUMS, LIU_FROM_MATCHES_LIUSTUDENT autolearn=disabled version=3.0.4-liu_20050621_1634 Subject: Re: NAT router confusion X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Jun 2005 10:25:53 -0000 ----- Original Message ----- From: "Michael H. Semcheski" Date: Friday, June 24, 2005 1:46 am Subject: Re: NAT router confusion > On Thursday 23 June 2005 07:43 pm, Ulf Magnusson wrote: > > Is this router really some switch/router hybrid? Or..? Bleh, someone > > please sort this out for me. I realize this isn't strictly > > FreeBSD-related, but I simply couldn't think of a better place to > pick> brains, so I hope I'll be excused :) > > It is a switch / router hybrid. If the traffic is going to an > address on the > same network, its a switch. If the traffic is going to an address > on a > different network, its a router. > > If you understand that concept, then you should have a pretty good > idea of how > the system works. > > I do not have a complete enough understanding of IP networks to > explain this > in specific detail. I think the key is that the computer > generating the > traffic looks at the netmask for the sending interface (eg, > 255.255.255.0) > and uses this to determine if the endpoint of the traffic is on the > same > network or not. If it is, it sends the traffic directly to the > host. If it > is on a different network, it forwards the traffic to the gateway > address. > Mike Thanks, I think I understand how it works now. I guess it's basically like an ordinary router that pretends it's a switch for all addresses that appear on the same local network. It looks at the destination address in IP packets and the address of the sending system and goes into switch mode if they both appear on the same subnet (which is pretty much verbatim what you said, when I think about it). I'll throw another short question in the mix while I'm at it.. perhaps I should rename the thread "Switching/routing questions from a curious networking newbie" :-) Do switches gain anything by having full-duplex connections to hubs? I understand there must be a performance benefit when you connect a host directly to a switch, but won't the half-duplex connections of the hosts to the hub become a bottleneck? Ulf