Bird
Raised Fist0
Computer Networksknowledge~6 mins

Switching and bridging in Computer Networks - Full Explanation

Choose your learning style10 modes available
Introduction
Imagine a busy office where many people need to send messages to each other quickly and without confusion. The problem is how to connect all these people so messages reach the right person without getting lost or sent to everyone unnecessarily.
Explanation
Switching
Switching is a method used in networks to connect devices so data can travel directly between them. It works by creating a temporary path or using a device that knows where to send data based on addresses. This helps data move efficiently without bothering other devices.
Switching directs data only to the intended device, improving network speed and reducing unnecessary traffic.
Types of Switching
There are mainly two types of switching: circuit switching and packet switching. Circuit switching sets up a dedicated path for the entire communication, like a phone call. Packet switching breaks data into small pieces and sends each piece independently, like sending letters through the mail.
Different switching types manage data paths in unique ways to balance speed and resource use.
Bridging
Bridging connects two or more network segments to work as one. A bridge listens to data on each segment and forwards it only if the data is meant for a device on another segment. This reduces traffic and keeps local communication local.
Bridging links network parts while controlling traffic to avoid unnecessary data flow.
How Switching and Bridging Work Together
Switches often include bridging functions to connect devices within a local network. They learn which devices are on which ports and send data only where it needs to go. This combination helps organize network traffic efficiently and keeps communication smooth.
Switches use bridging principles to manage local network traffic smartly.
Real World Analogy

Imagine a post office sorting letters. Instead of sending every letter to every house, the post office sorts them and sends each letter only to the correct address. Sometimes, the post office connects two neighborhoods so letters can move between them without confusion.

Switching → The post office sorting letters and sending them directly to the right house
Types of Switching → Choosing between sending a letter by a dedicated courier (circuit switching) or regular mail where letters travel separately (packet switching)
Bridging → Connecting two neighborhoods so letters can be delivered between them without sending letters to the whole city
How Switching and Bridging Work Together → The post office using sorting and neighborhood connections to deliver mail efficiently
Diagram
Diagram
┌─────────────┐       ┌─────────────┐       ┌─────────────┐
│ Network A   │──────▶│ Bridge/Switch│──────▶│ Network B   │
│ (Segment 1) │       │             │       │ (Segment 2) │
└─────────────┘       └─────────────┘       └─────────────┘
       ▲                                         ▲
       │                                         │
  Device 1                                   Device 2

Switch learns device locations and forwards data only between intended devices.
Diagram showing two network segments connected by a bridge or switch that forwards data only to the correct device.
Key Facts
Switching → A method to send data directly between devices in a network to improve efficiency.
Circuit Switching → A switching type that creates a dedicated path for the entire communication session.
Packet Switching → A switching type that breaks data into packets sent independently through the network.
Bridging → Connecting multiple network segments and forwarding data only when necessary.
MAC Address → A unique identifier for a device used by switches and bridges to direct data.
Common Confusions
Switching means sending data to all devices in the network.
Switching means sending data to all devices in the network. Switching sends data only to the intended device, unlike broadcasting which sends to all.
Bridges and switches are completely different devices.
Bridges and switches are completely different devices. Modern switches include bridging functions, so they often perform similar roles.
Summary
Switching helps send data directly between devices to reduce unnecessary network traffic.
Bridging connects different parts of a network and controls data flow between them.
Switches combine switching and bridging to manage local network communication efficiently.

Practice

(1/5)
1. What is the main purpose of a network switch in a local area network?
easy
A. To block all incoming traffic
B. To send data directly to the intended device
C. To assign IP addresses to devices
D. To connect different networks over the internet

Solution

  1. Step 1: Understand the role of a switch

    A switch connects devices within the same network and forwards data only to the device it is meant for.
  2. Step 2: Compare with other options

    Assigning IP addresses is done by a DHCP server, connecting different networks is done by routers, and blocking all traffic is not a switch's function.
  3. Final Answer:

    To send data directly to the intended device -> Option B
  4. Quick Check:

    Switch forwards data to correct device [OK]
Hint: Switch sends data only to the target device [OK]
Common Mistakes:
  • Confusing switch with router
  • Thinking switch assigns IP addresses
  • Believing switch blocks all traffic
2. Which of the following is the correct function of a network bridge?
easy
A. To connect and filter traffic between two network segments
B. To assign IP addresses to devices
C. To provide wireless access to devices
D. To encrypt data packets

Solution

  1. Step 1: Define the role of a bridge

    A bridge connects two or more network segments and controls the flow of data between them by filtering traffic.
  2. Step 2: Eliminate incorrect options

    Assigning IP addresses is DHCP's job, wireless access is provided by access points, and encryption is done by security protocols, not bridges.
  3. Final Answer:

    To connect and filter traffic between two network segments -> Option A
  4. Quick Check:

    Bridge connects segments and filters traffic [OK]
Hint: Bridge links segments and filters data flow [OK]
Common Mistakes:
  • Confusing bridge with DHCP server
  • Thinking bridge provides wireless access
  • Assuming bridge encrypts data
3. Consider a network with two segments connected by a bridge. If a device on segment A sends data to a device on segment B, what will the bridge do?
medium
A. It will forward the data only if the destination is on segment B
B. It will block the data to prevent traffic
C. It will broadcast the data to all devices on both segments
D. It will assign a new IP address to the data packet

Solution

  1. Step 1: Understand bridge filtering

    The bridge learns which devices are on each segment and forwards data only to the segment where the destination device is located.
  2. Step 2: Analyze options

    Blocking data prevents communication, broadcasting to all devices wastes bandwidth, and assigning IP addresses is not a bridge function.
  3. Final Answer:

    It will forward the data only if the destination is on segment B -> Option A
  4. Quick Check:

    Bridge forwards data only to correct segment [OK]
Hint: Bridge forwards data only to destination segment [OK]
Common Mistakes:
  • Thinking bridge blocks all data
  • Assuming bridge broadcasts to all devices
  • Confusing bridge with DHCP server
4. A network administrator sets up a switch but notices that data is being sent to all devices instead of just the intended one. What is the most likely cause?
medium
A. The switch is assigning IP addresses incorrectly
B. The switch is blocking all traffic due to security settings
C. The switch is operating in hub mode or has a faulty MAC address table
D. The switch is connected to a wireless access point

Solution

  1. Step 1: Identify switch behavior

    If a switch sends data to all devices, it behaves like a hub, often due to a missing or corrupted MAC address table.
  2. Step 2: Rule out other causes

    Blocking all traffic would stop communication, IP assignment is unrelated to forwarding, and wireless access points do not cause this behavior.
  3. Final Answer:

    The switch is operating in hub mode or has a faulty MAC address table -> Option C
  4. Quick Check:

    Switch flooding due to MAC table issue [OK]
Hint: Switch flooding means MAC table problem or hub mode [OK]
Common Mistakes:
  • Confusing IP assignment with forwarding issues
  • Thinking wireless access point causes flooding
  • Assuming security blocks cause flooding
5. In a large office, two separate departments have their own network segments connected by a bridge. The bridge is configured to filter traffic between them. Which of the following is a key benefit of this setup?
hard
A. It automatically assigns IP addresses to all devices in both departments
B. It allows all devices to receive every data packet for better communication
C. It encrypts all data passing between the two segments
D. It reduces unnecessary traffic between departments, improving network performance

Solution

  1. Step 1: Understand bridge filtering benefits

    By filtering traffic, the bridge prevents unnecessary data from crossing between segments, reducing congestion and improving speed.
  2. Step 2: Eliminate incorrect options

    Allowing all devices to receive all packets causes congestion, IP assignment is DHCP's role, and encryption is handled by security protocols, not bridges.
  3. Final Answer:

    It reduces unnecessary traffic between departments, improving network performance -> Option D
  4. Quick Check:

    Bridge filtering reduces traffic [OK]
Hint: Bridge filtering cuts traffic, boosts speed [OK]
Common Mistakes:
  • Thinking bridge broadcasts all data
  • Confusing bridge with DHCP server
  • Assuming bridge encrypts data
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard