transparent bridging

term

networking

Kept in this browser · My desk

The way an Ethernet bridge or switch joins segments without any help from the hosts: it learns where each station is from the source addresses it sees, forwards by destination, and floods what it has not learned.

Mark Kempf at Digital had the idea in 1983, as Alan Kirby recalls, and Digital's patent, filed on 19 October 1983, states it: a destination recorded on the sending side is not forwarded, one recorded on the other side is, and an unrecorded one is sent across, while every source address is recorded. Digital shipped it in the LANBridge 100 in 1986 and offered the licence at no cost. Radia Perlman's 1985 paper gave the three cases their classic form and added the spanning tree, because a transparent bridge in a loop circulates frames forever.

What it is. Transparent bridging is the forwarding method of every Ethernet bridge and switch: the device learns where each station is from the source addresses it sees, forwards each frame by its destination address, discards frames whose destination is on the side they came from, and floods frames for destinations it has not learned. Transparent means the stations need no change: a host that worked on one Ethernet works the same across a bridge. The price is that the bridge must listen to everything and guess.

The evening in 1983. Alan Kirby's account in IEEE Spectrum (2024) places the idea at Digital Equipment Corporation (DEC) in 1983: he told Mark Kempf about using store-and-forward switching to raise LAN (local area network) performance, and the next morning Kempf came back with a learning bridge that would join two Ethernets, learn which computer was on which side and forward selectively by destination, invisible to the computers. It had to handle some 30,000 packets a second (15,000 on each Ethernet), close to the limit of the Motorola 68000, so Kempf designed a lookup engine from programmable array logic (PAL) devices and dedicated static RAM (random-access memory) for the 48-bit addresses, and Bob Shelly wrote the rest of the software. Digital's patent, US 4,597,078, filed on 19 October 1983 and granted on 24 June 1986, states the rule in its abstract: a destination recorded on the sending side is not forwarded, one recorded on the other side is, an unrecorded one is sent across, and every source address is recorded in a look-up RAM tagged with its side. Digital shipped it in 1986 as the LANBridge 100 (DEBET-AA), followed by a version for a 3-kilometre fibre span, and offered the patent licence at no cost.

The loop problem. A transparent bridge cannot tell a frame that has gone round a loop from a new one, because the Ethernet header carries no hop count. Kirby recalls that his manager, Tony Lauck, challenged engineers to solve looping in misconfigured networks, and that Radia Perlman's spanning tree was the answer. Her 1985 paper gives the bridge's rules their classic form: an entry is made that the source resides in the direction of the arrival link; with no entry for the destination the packet goes out of all links except the arrival one; with an entry pointing to the arrival link it is not forwarded; with an entry pointing elsewhere it goes there. It warns of "infinitely circulating packets" caused merely by plugging a cable into the wrong place, which is why transparent bridging and spanning tree arrived together.

Standardization. The rules became IEEE (Institute of Electrical and Electronics Engineers) 802.1D: the 1993 edition, superseded in 1998, the 1998 edition, superseded in 2004, and 802.1D-2004 (approved 9 February 2004, published 9 June 2004). The working group then merged 802.1D into 802.1Q, so that one standard covers bridging and VLANs (virtual local area networks); the working group planned the administrative withdrawal of 802.1D-2004 for the end of 2021, the IEEE's page now lists it as superseded by 802.1Q-2014, and 802.1Q-2022 is the active text. The standard's own name for the learned table is the Filtering Database.

In practice. Every switch still does this, per VLAN, in hardware, and vendors describe the same steps: H3C checks the source, updates the entry if found or adds one for the source and incoming port if not; Juniper floods unknown destinations so that the reply teaches the switch; Cisco filters a frame whose destination is on the arrival port. Worked by hand on a two-port bridge between segments X and Y: station A on X sends to D, also on X; the bridge records A on X, has no entry for D and copies the frame to Y. D answers A; the bridge records D on X and sees that A is on X, the arrival side, so it filters the reply and Y never sees it. From then on traffic between A and D stays on X, which is the whole performance case Kirby made for the bridge. The same logic now runs over IP (Internet Protocol) networks: VXLAN (Virtual eXtensible Local Area Network, Request for Comments 7348, 2014) describes data-plane learning in which a remote tunnel endpoint learns the mapping from an inner source MAC (media access control) address to an outer source IP address, flooding unknown destinations over IP multicast.

What it costs and what replaced parts of it. The weaknesses are built in: learning believes any source address, so a forged source moves an address's traffic (H3C and Aruba describe the attack in nearly identical words and recommend a static entry), and flooding plus the missing hop count in the Ethernet header makes loops fatal. Overflowing the table makes the bridge flood unicast, which is the basis of MAC flooding. Three later designs changed the bargain. Spanning tree, and its rapid and multiple successors, keeps learning but disables redundant paths. Routing bridges (RBridges, RFC 6325, 2011, with Perlman among the authors) terminate the spanning tree and carry a hop count in their own header. EVPN (Ethernet virtual private network, RFC 7432, 2015) moves learning between provider edges out of the data plane into the control plane, advertised with BGP (Border Gateway Protocol), so that remote addresses are announced rather than guessed.

Misreadings. Transparent does not mean invisible to an attacker: a bridge filters, but flooding shows unknown-destination traffic to every port in the VLAN. A bridge does not forward according to IP addresses, so ARP (Address Resolution Protocol) problems and MAC table problems are separate failures with similar symptoms. And "switch" is a marketing name for a multiport transparent bridge, not a different device. Neighbours: the MAC address table, unknown unicast flooding, spanning tree, Radia Perlman, IEEE 802.1D and the bridging loop.

Also known as: learning bridge, mac learning, mac address learning, bridge transparente, aprendizado de mac

Sources

← Back to T Back to the glossary