From owner-freebsd-net@FreeBSD.ORG Mon Jun 20 20:35:25 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 5E62A106564A for ; Mon, 20 Jun 2011 20:35:25 +0000 (UTC) (envelope-from rganascim@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id C205E8FC17 for ; Mon, 20 Jun 2011 20:35:24 +0000 (UTC) Received: by bwz12 with SMTP id 12so2802838bwz.13 for ; Mon, 20 Jun 2011 13:35:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=u5QiXgkNbA7gkvLwaN5nmE+Ajoq3tWkUGdxdItrv+sg=; b=FxZyqJTfRrgWSS/LhVvCWLzQFKKbc2gMJ4WGaRGIILVniX0sIFw1VHhY76xnuRxg5C t02OAFJUlijNCBBuJGknyq6fSrL6DlAp3fWW2UmMtQR8Ut5M8Ka9TbpNLJ/eiU/J6Zmo Dw1NClQxts+59EzriFYbviPW0JQpmqGRhGnek= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=ETGByzJ/RAoid18erXvD6h4Bz82s1ismmbFlvmccv85AUfL3Qxo1/SrA6cog5U1plr m5OnWENwqtQx8a6ry+529sCAU3lduHoAWO8EymZeUTZHIj86CXNYka21J4Mfb1NSRHRc 2vNry7+7VGxVv+JAUrDtwZEEDuXDt0jcGFt+s= MIME-Version: 1.0 Received: by 10.204.36.129 with SMTP id t1mr4386584bkd.97.1308602122374; Mon, 20 Jun 2011 13:35:22 -0700 (PDT) Received: by 10.205.64.196 with HTTP; Mon, 20 Jun 2011 13:35:22 -0700 (PDT) In-Reply-To: <4DFFA9C1.1060702@ipfw.ru> References: <4DFFA9C1.1060702@ipfw.ru> Date: Mon, 20 Jun 2011 17:35:22 -0300 Message-ID: From: Rafael Ganascim To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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:35:25 -0000 1) I had seen the source code, and the doubt was about modifying it to support 4096 vlans (12 bits) 2) I don't understand this type of implementation. May you explain? How obtain the fault-tolerance and HA with this? Or load balancing? Thanks! 2011/6/20 Alexander V. Chernikov > -----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----- >