From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org C14D640B5E DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org C51A840484 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=XKiJZH6Es83//EagG3nQ5yRqJCt2B3oQ4QwF9MG3yus=; b=bbQKI/dphQ7+nWcC2OCJjIvpiM9iE/MKAli+jjkT/4RKZtCGEESeQ437b1HFbC2rue +gEFKhpAKgWoXVZhgwX9hlNLLczmyEPTrMGJytlcEtWMYMvRgB4V3nCBVkVnfw/tm7pz tPdAnF2unw7drYHKGXw4HEvSOcjCc/9TtHivLvVgOlw+1axHAhDua6wAkYm3kwvjrQmI BozHCgmfCtTOVuEMbiftAZkkUcENCJzaOkWr0C8gbNWBh2ykP4KZaztFVzakP50Voeg/ FtoZ3+F5aeyEECv1yvne/poRjox8xi8K7Z6iEys6Jcv34B83qZcut4JZLI2UbW669jUy BKfg== Date: Wed, 9 Nov 2022 11:55:47 -0800 From: Stephen Hemminger Message-ID: <20221109115547.494d5006@hermes.local> In-Reply-To: References: <20221109085109.6b0f87d3@hermes.local> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Bridge] How to connect more than 200 interfaces to a bridge List-Id: Linux Ethernet Bridging List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ali Shirvani Cc: Ali Shirvani via Bridge On Wed, 09 Nov 2022 19:25:32 +0000 Ali Shirvani wrote: > Sent with Proton Mail secure email. > > ------- Original Message ------- > On Wednesday, November 9th, 2022 at 8:21 PM, Stephen Hemminger wrote: > > > > On Wed, 09 Nov 2022 10:51:27 +0000 > > Ali Shirvani via Bridge bridge@lists.linux-foundation.org wrote: > > > > > Hello everyone, > > > > > > It seems we reach the Linux bridge limitation on the number of interfaces in a single bridge. Currently, we have 210 tap interface in a bridge, and we suffer from more than 50% packet loss when we ping the IP address of the virtual machine that uses one of the tap interfaces in the bridge. > > > Do you know how we can connect more than 200 VMs virtual interfaces to a bridge? > > > > > > Best regards, > > > Ali > > > > > > Sent with Proton Mail secure email. > > > > > > The upper limit on interfaces per bridge should be 1023. > > That limitation comes from spanning tree. > > > > You might bet able to improve performance by disabling flooding to those tap devices. > > Normally, any broadcast/unknown/multicast must be copied and flooded to each interface. > > Thanks a lot for your guidance. I disabled the spanning tree on the bridge with `brctl stp br0 off` but the issue does not resolve. Would you please elaborate more about disabling flooding on tap devices, I don't know how I should disable flooding on tap devices. It is not a spanning tree issue, in fact STP can protect you from bad VM's. It is more about configuring the bridge ports after setup.