From owner-freebsd-net@FreeBSD.ORG Mon Jun 20 20:14:36 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E8097106564A for ; Mon, 20 Jun 2011 20:14:36 +0000 (UTC) (envelope-from melifaro@ipfw.ru) Received: from no.spam.no.ddos.ru (no.spam.no.ddos.ru [IPv6:2a02:978:2:1000::3]) by mx1.freebsd.org (Postfix) with ESMTP id 7671B8FC14 for ; Mon, 20 Jun 2011 20:14:36 +0000 (UTC) Received: from ws.su29.net (v6.mpls.in [IPv6:2a02:978:2::5]) by no.spam.no.ddos.ru (Postfix) with ESMTPA id 7666D38387B; Tue, 21 Jun 2011 00:12:47 +0400 (MSD) Message-ID: <4DFFA9C1.1060702@ipfw.ru> Date: Tue, 21 Jun 2011 00:12:49 +0400 From: "Alexander V. Chernikov" User-Agent: Thunderbird 2.0.0.24 (X11/20100515) MIME-Version: 1.0 To: Rafael Ganascim References: In-Reply-To: X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: Carp vhid with vlan id's alignment 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, 20 Jun 2011 20:14:37 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Rafael Ganascim wrote: > Hi list, > > I'm planning and testing a new FreeBSD router, with vlans and carp > interfaces. There are a lot of vlans, with high vlan IDs. We have, for > example: > > dot1q vlan id: 1530 > > Iface igb0 > vlan1530 > carp1530 > vhid 10 > > What do you think in change the carp code to support vhid above 255 (just to > align with vlanid, carp vlan name)? I think that it can ease the > troubleshooting, standardization and documentation (in this scenario). It's > the last piece of the complete 'id' alignment. 1) CARP packet format uses 8bit for VHID (see sys/netinet/ip_carp.h for packet format) 2) Making carp instance for every vlan is (generally) wrong design. Making single carp instance for group of interfaces (and creating/deleting vlans depending carp instance state) is more preferable in most cases. You can get state change events for carp(4) interfaces via devd(8). Moreover, every carp instance sends multicast packets every 1 second + several milliseconds in default scenario. This means a lot of multicast traffic in case of many instances which can confuse other devices (or another carp implementations like ucarp). > > But I don't know the impact of this change in the source codes (and related, > like the ifconfig). > > What do you think? > > > Regards, > > Rafael > _______________________________________________ > 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" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk3/qcEACgkQwcJ4iSZ1q2mtcACeNpQ41hiwDNz8BYfSoMTFvWX6 9dIAn12p6WHaPZ2UdWJz6r5YUEvbLygF =Qdjl -----END PGP SIGNATURE-----