0
0
Computer Networksknowledge~20 mins

Switching and bridging in Computer Networks - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Switching and Bridging Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
How does a network switch learn device locations?

In a local area network, how does a switch know which device is connected to which port?

AIt uses a MAC address table built by observing source addresses of incoming frames.
BIt assigns IP addresses to devices and maps them to ports.
CIt broadcasts all incoming frames to every port to find the device.
DIt uses DNS to resolve device names to ports.
Attempts:
2 left
💡 Hint

Think about how switches learn from the traffic they receive.

📋 Factual
intermediate
2:00remaining
What is the main purpose of a network bridge?

What does a network bridge do in a LAN?

AIt assigns IP addresses to devices on the network.
BIt connects two or more network segments and filters traffic based on MAC addresses.
CIt converts digital signals to analog signals for transmission.
DIt encrypts data to secure communication between devices.
Attempts:
2 left
💡 Hint

Think about how bridges help reduce traffic between network parts.

🔍 Analysis
advanced
2:00remaining
Why might a switch cause a broadcast storm in a network?

Consider a network with multiple switches connected in a loop without any special protocol. What problem can occur and why?

ABroadcast frames can circulate endlessly causing a broadcast storm because loops create multiple paths without control.
BBroadcast storms happen only if devices have duplicate IP addresses, unrelated to switches.
CSwitches will automatically convert broadcast frames to unicast frames to avoid storms.
DSwitches will block all traffic to prevent loops, causing network downtime.
Attempts:
2 left
💡 Hint

Think about what happens when frames keep circulating without a stop.

Comparison
advanced
2:00remaining
Difference between a switch and a hub in handling traffic

How does a switch differ from a hub when forwarding data in a network?

ABoth switch and hub forward data only to the destination port but use different speeds.
BA switch broadcasts data to all ports, while a hub forwards data only to the destination port.
CBoth switch and hub broadcast data to all ports but switches encrypt the data.
DA switch forwards data only to the destination port, while a hub broadcasts data to all ports.
Attempts:
2 left
💡 Hint

Consider how each device treats incoming data frames.

Reasoning
expert
2:00remaining
How does Spanning Tree Protocol (STP) prevent network loops?

In a network with multiple switches connected in loops, how does STP prevent broadcast storms?

ASTP encrypts broadcast frames to prevent them from looping.
BSTP increases the speed of all ports to handle loops efficiently.
CSTP detects loops and blocks some switch ports to create a loop-free logical topology.
DSTP assigns unique IP addresses to each switch to avoid loops.
Attempts:
2 left
💡 Hint

Think about how STP controls which paths are active.