p4lang / switch

Consolidated switch repo (API, SAI and Nettlink)
151 stars 72 forks source link

What's the meaning of 'bd' in "switch.p4"? #112

Closed jijinfanhua closed 2 years ago

jijinfanhua commented 2 years ago

Hi, I am reading the source code of "switch.p4", and there are lots of 'bd', e.g., "ingress_metadata.outer_bd", "ingress_metadata.bd", so what's the meaning of 'bd'? Bridge?

Thanks a lot.

vgurevich commented 2 years ago

"bd" stands for "Bridge Domain", which is a generalization of a VLAN concept. Some people also say "Broadcast Domain", which is kind of the same thing.

jijinfanhua commented 2 years ago

"bd" stands for "Bridge Domain", which is a generalization of a VLAN concept. Some people also say "Broadcast Domain", which is kind of the same thing.

Got it! Thanks a lot!