Network bridge (Layer 2 device)
A network bridge connects and forwards data between separate LAN segments at the OSI data link layer, selectively passing frames to reduce collisions and extend networks while preserving protocol transparency.
Overview
A network bridge is a device that links two or more network segments at the data link layer of the OSI model. Operating at layer 2, a bridge examines Ethernet frames (or other link-level packets) and forwards them only when the destination lies on a different segment. By doing this selectively, bridges reduce unnecessary traffic between segments and help contain collisions and congestion within smaller domains.
Image gallery
1 ImageHow bridges work
Most bridges implement a learning algorithm: they observe the source addresses of frames that arrive on each port and build a forwarding table that maps MAC addresses to ports. When a frame arrives, the bridge consults the table to decide whether to forward the frame to another segment or to filter it (drop it) if the destination is on the same segment. Unknown destinations are typically flooded to all other ports.
Features and types
- Transparent bridging: commonly used on Ethernet; maintains MAC tables without requiring configuration from end hosts.
- Remote or wireless bridges: connect LANs across a distance, often over a wireless link or dedicated circuit.
- Multiport bridging / switches: modern Ethernet switches are essentially bridges with many ports and higher performance.
- Loop prevention: protocols such as the Spanning Tree Protocol are used to avoid forwarding loops when multiple paths exist.
History and development
Early local area networks used hubs and repeaters that flooded traffic; bridges were introduced to provide smarter forwarding and reduce collisions. As hardware and switching technologies advanced, multiport switches largely subsumed single- and dual-port bridges by offering greater port density and throughput while using the same basic layer-2 principles.
Uses, examples and importance
Bridges remain useful for connecting different physical media, segmenting a LAN for performance, or linking small remote networks. Because they operate below the network layer, bridges are generally transparent to higher-level protocols and do not perform IP routing. Typical examples include connecting two Ethernet segments in an office or using a wireless bridge to join separate building networks.
Distinctions and notable facts
Unlike hubs (physical layer devices) that repeat all signals, bridges selectively forward frames and thus reduce traffic. Unlike routers (layer 3), bridges do not inspect or route IP packets and typically do not perform network address translation. Modern network switches implement the same core functions as bridges but add performance, management, and VLAN capabilities. For more about theoretical layering, see the OSI model.
Bridges vs. Switches
There is no clear classification of technology in the technical literature that defines bridges or switches. Switches work as transparent bridges, but have a higher throughput performance and more ports. In addition, modern switches are also often equipped with a Layer 3 instance, a simple router. In general, bridges were developed and marketed around 1985 for segmenting (reducing the collision domain) networks and connecting different architectures (e.g. Ethernet - TokenRing). Switches were developed much later (1990). They can replace routers in some circumstances, even when they do not contain their own Layer 3 instance. For example, when the use of a switch instead of a bridge became necessary to reduce a collision domain and a bridge did not have enough ports and throughput.
To reduce the collision domain, a switch is given as many ports as possible to which only a few devices - ideally one - are connected at a time. In addition, one or more so-called uplink ports establish connections to the next switch or router. Often, but not necessarily, uplink ports are implemented in a faster or higher-quality (Ethernet) technology than the other ports (e.g. Gigabit Ethernet instead of Fast Ethernet or fiber optic cable instead of twisted-pair copper cable). Non-modular switches typically have a minimum of four ports to a maximum of about 48 ports. Large "modular" switches can be configured into units with several hundred ports, depending on the model. Unlike bridges, switches can transmit multiple packets simultaneously between different pairs of ports. A bridge corresponds most closely to a switch in the operating mode Store and Forward with usually only two ports: a switch is a multiport bridge was still a slogan of Cisco Systems in 1991; since the takeover of Kalpana in 1994, Cisco has taken a more differentiated approach to the topic.
In the early days of switch technology, port switches were also widespread. These were less expensive devices that had a dedicated uplink port and could only store one MAC address per port on the remaining ports. Bridges, on the other hand, can always store many MAC addresses in their internal SAT (Source Address Table). Conversely, bridges often require external distributors, such as hubs, to connect multiple devices.
As a rule, bridges and switches can connect networks with different transmission speeds. Bridges can usually operate on both a MAC and LLC basis, whereas switches operate on a MAC basis. Consequently, switches cannot bridge different architectures (e.g. Ethernet - Token Ring). Since Ethernet dominates the market, bridging different LAN architectures is of little importance. Not least for this reason, bridges are now niche products.
With larger switches, just as with powerful bridges, a certain bandwidth can be defined for each connected network segment, and certain services can also be prioritized (quality of service). In addition, large modern switches support a wide variety of protocols and procedures (e.g. Discovery protocols, VLANs, MANs, QoS, Layer 3 instance with various routing protocols, management protocols (SNMP, RMON, Syslog), infrastructure protocols (DHCP server, BOOTP/TFTP server, FTP server, SSH server), special handling for special protocols (DHCP and BOOTP relay agent), security features (Layer 2 to 4 ACLs, Gratuitous ARP Protection, DHCP Enforcement, MAC Lockdown, Broadcasting Control, Ingress Filter), redundancy protocols (VRRP), etc.). In the process, the differences to routers are also becoming more and more blurred.
Bridges and virtualization
Bridges, which are set up within an operating system, play a major role in virtualization. Here, a so-called bridge device is set up, which extends a real network card with virtual network cards and connects them like a bridge. These interfaces are made available to the virtualized guest system as (virtual) network cards. Only via these network cards is the external network communication of a guest system via the real network interface of the host system also possible to the outside.
Questions and answers
Q: What is a network bridge?
A: A network bridge is a device which connects two parts of a network together at the data link layer (layer 2 of the OSI model).
Q: How does a network bridge work?
A: Network bridges work similarly to network switches, but the traffic is managed differently. A bridge will only send traffic from one side to the other if it is going to a destination on the other side. This is different to a layer 1 switch which sends all traffic from either side.
Q: Is a network bridge also called something else?
A: Sometimes network bridges are called layer 2 switches.
Q: How do they compare to hubs and repeaters?
A: Since they need to look at the contents of the traffic going into them, they are much more complicated than a hub or repeater.
Q: What layer of the OSI model does a network bridge operate on?
A: A network bridge operates on Layer 2 of the OSI model, also known as the Data Link Layer.
Q: What type of traffic does a bridge send?
A: A bridge will only send traffic from one side to another if it is going to an address located on that other side.
Q: Is there any difference between how bridges and switches manage their traffic?
A: Yes, bridges only send traffic from one side if it's going somewhere on that other side whereas switches will send all incoming traffic regardless of its destination address.
Related articles
Author
AlegsaOnline.com Network bridge (Layer 2 device) Leandro Alegsa
URL: https://en.alegsaonline.com/art/69278
