Bridging is the process of connecting two or more separate network segments (often called LANs or subnets) at the Data Link Layer (Layer 2 of the OSI model). A bridge is a network device that facilitates communication between different network segments, ensuring that data packets are transmitted efficiently between them. The primary function of a bridge is to forward traffic based on MAC (Media Access Control) addresses, and it can help reduce network collisions, segment traffic, and improve overall network performance.
Bridges help networks scale by allowing multiple network segments to communicate with each other while maintaining efficient communication within each segment.
Learning MAC Addresses: A bridge maintains a MAC address table (also known as a forwarding table), which contains information about which devices (identified by their MAC addresses) are located on which network segment. The bridge learns these addresses by monitoring traffic on each segment. When a frame is received from one segment, the bridge reads the source MAC address and records which segment it came from.
Forwarding Frames: When the bridge receives a frame, it checks the destination MAC address in the frame:
Filtering Frames:
Broadcast Frames:
Collision Domains:
Transparent Bridge: A transparent bridge operates without any manual configuration. It automatically learns the MAC addresses of the devices on each segment and builds a forwarding table. It is called "transparent" because it does not alter the structure of the frames or disrupt normal network traffic. These are commonly used in Ethernet networks.
Source-Route Bridge: In a source-route bridge, the sender of the data frame specifies the entire route (path) the frame should take to reach its destination. The bridge simply forwards the frame according to the specified route. This type of bridge is used primarily in Token Ring networks, where devices can specify the route for the frame.
Multiport Bridge: A multiport bridge connects multiple network segments, not just two, and can manage traffic between several segments. It works in a similar way to a transparent bridge but can handle more complex topologies, reducing the need for multiple bridges.
Learning Bridge: This is a type of transparent bridge that learns the source MAC addresses of incoming frames and builds a forwarding table. It helps determine which segment a particular device belongs to, and forwards the frames based on that information.
Consider a simple example with two network segments, Segment A and Segment B, connected by a bridge.
Scenario 1: Frame from A to A: A device in Segment A sends a frame to another device within Segment A. The bridge receives the frame but determines that the destination is on the same segment (Segment A), so it does not forward the frame. This prevents unnecessary traffic on Segment B.
Scenario 2: Frame from A to B: A device in Segment A sends a frame to a device in Segment B. The bridge checks its MAC address table, identifies that the destination device is in Segment B, and forwards the frame to Segment B.
Scenario 3: Broadcast Frame: A device in Segment A sends a broadcast frame (e.g., ARP request) to all devices on the network. The bridge forwards the frame to both Segment A and Segment B, as it needs to be received by all devices on the network.
Traffic Segmentation: A bridge divides a large network into smaller, more manageable segments, reducing network congestion by isolating traffic within each segment. By filtering traffic, a bridge helps ensure that devices only receive the frames meant for them.
Collision Domain Reduction: Bridges reduce the size of collision domains. Since each segment connected by a bridge is a separate collision domain, the chances of collisions are reduced, improving the overall network performance.
Transparency: A bridge operates transparently, meaning it does not require any configuration or changes to the network’s topology. Devices on either side of the bridge behave as though they are part of the same network.
Extension of Network: Bridges allow the physical extension of a network by connecting different segments, even if they are geographically distant, such as in different rooms or buildings. This increases the size of the network without adding complexity.
Redundancy: Bridges provide a level of redundancy, which can be useful for network resilience. If one link between network segments goes down, the bridge can choose an alternative route, ensuring uninterrupted communication.
Performance Overhead: Bridges need to inspect every incoming frame and check its MAC address. In large networks with high traffic, this can add some performance overhead, particularly if the bridge's MAC address table is large and requires frequent updates.
Limited Scalability: While bridges can improve network performance by reducing collisions, they don’t scale as well as routers for large, complex networks. As the number of segments grows, the bridge's ability to efficiently forward frames can degrade, especially in networks with a lot of broadcast traffic.
Broadcast Propagation: Bridges forward broadcast traffic to all segments, which can lead to broadcast storms in large networks. If not controlled, this can overwhelm network resources.
Security Concerns: Since a bridge forwards traffic based on MAC addresses, it can’t enforce any kind of routing policy or security filtering. If the bridge is not properly managed, malicious devices in one segment might gain access to all segments.
While both bridges and routers are used to connect network segments, they operate at different layers of the OSI model:
Bridge: Operates at Layer 2 (Data Link Layer), filtering traffic based on MAC addresses. It is used for connecting similar networks (e.g., two Ethernet segments) and operates in a transparent manner.
Router: Operates at Layer 3 (Network Layer) and forwards traffic based on IP addresses. Routers are used to connect different types of networks (e.g., a local network to the Internet), and they can perform complex tasks like routing, addressing, and NAT (Network Address Translation).
Bridging is an essential concept in computer networks that allows for the connection and communication between different network segments. By working at the Data Link Layer, bridges help reduce network collisions, segment traffic, and improve overall network performance. They are particularly useful in smaller or medium-sized networks where devices within the same broadcast domain need to be connected while still maintaining network efficiency. However, bridges are not as scalable as routers and may not be suitable for larger, more complex network topologies. They are best used for simple network extensions and segmentation within localized areas.
Open this section to load past papers