- Hub (layer 1) → switch (layer 2) → router (layer 3), then loops and spanning tree, then VLANs.
- Connecting devices join hosts into a network, or networks into an internet.
- Hub = layer 1 · link-layer switch = layers 1–2 · router = layers 1–3.
🎯 How this can come up · 2 questions
A link-layer switch operates in which layers?
Correct: Physical and data link.
Which device works at the network layer?
Correct: Router.
- Hub = layer 1: works on BITS, copies every bit to every other port, no filtering, no access method.
- Physically a star, logically a bus.
- Cable host ↔ hub max 100 m, so two hosts can be at most 200 m apart.
🎯 How this can come up · 3 questions
A hub forwards a received bit to:
Correct: All other ports.
Topology of hosts connected to a hub:
Correct: Physically star, logically bus.
A hub performs filtering using MAC addresses.
False.
- Everyone gets the frame. Each NIC checks the destination MAC: B keeps it, C and D discard it.
- Collision domain: the set of devices whose simultaneous SENDING collides.
- Broadcast domain: the set of devices that RECEIVE each other’s broadcasts.
- A whole hub = 1 collision domain + 1 broadcast domain.
🎯 How this can come up · 2 questions
Five PCs are connected to one hub. How many collision domains?
Correct: 1.
Define collision domain and broadcast domain.
A collision domain is the part of a network where two devices sending at the same time collide. A broadcast domain is the part where every device receives the others’ broadcast messages.
- Hubs joined by a hub: longer reach, but ALL the segments become one big collision domain → worse performance.
- A switch does physical-layer work (regenerates the signal) AND data-link work (reads MAC addresses).
- Switch = layer 2, works on FRAMES. Each port is a separate collision domain.
- Filtering: send the frame only out of the port that leads to the destination MAC, using the forwarding (MAC) table.
- The table starts EMPTY and fills itself by learning. Entry = MAC address + interface + time.
🎯 How this can come up · 2 questions
A switch’s forwarding table is initially:
Correct: Empty, then filled automatically by learning.
A switch table entry contains:
Correct: MAC address, interface and creation time.
- Hub: F → everyone. Switch: F → only C.
- Switching table: MAC address → port.
- LEARN from the SOURCE address. FORWARD using the DESTINATION address.
- Destination known → forward out of that port (or drop if it’s the same port it came in on). Unknown → flood. Broadcast/multicast → all ports.
🎯 How this can come up · 3 questions
A switch learns a new table entry from a frame’s:
Correct: Source MAC address.
A switch receives a frame whose destination MAC is not in its table. It:
Correct: Floods it out of all ports except the incoming one.
If the destination is on the same port the frame arrived on, the switch drops the frame.
True.
- a. Empty. b. A → D: learn A on port 1; D unknown → flood. c. D → B: learn D on port 4; flood. d. B → A: learn B; A known → port 1. e. C → D: learn C; D known → port 4.
🎯 How this can come up · 1 question
An empty switch has A on port 1, B on port 2, C on port 3, D on port 4. A sends to D, then D sends to A. What does the switch do each time?
A → D: it learns “A is on port 1”; D is unknown, so it floods the frame to ports 2, 3 and 4. D → A: it learns “D is on port 4”; A is known, so it forwards only out of port 1.
- Redundant links = reliability, but they create LOOPS (two paths between hosts).
- Broadcast, multicast and unknown-unicast frames get flooded; with a loop they go round forever and multiply → broadcast storm → the network dies.
- Fix: the spanning tree protocol (STP).
🎯 How this can come up · 2 questions
Loops in a switched network cause:
Correct: Broadcast storms.
Which protocol removes loops from a switched network?
Correct: Spanning tree protocol.
- The same broadcast keeps circling the triangle of switches.
- STP keeps every switch reachable but BLOCKS some ports so no loop is left.
- Blocked ports still pass STP’s own frames, and wake up if the topology changes (backup paths).
🎯 How this can come up · 2 questions
Ports blocked by spanning tree forward no frames at all.
False. They still carry the spanning tree’s own frames.
A blocked port can become a forwarding port again if the network changes.
True.
- Pick a root bridge (S1), then keep the shortest path from every switch to the root.
- Blocked: S3 ports 2 and 3, S5 port 1. No frame goes out of them.
- Switch: isolates collision domains, but the whole switched network is still ONE broadcast domain.
- Better performance and security (traffic only goes where needed), no size limit, transparent and plug-and-play.
🎯 How this can come up · 2 questions
A network of switches with no VLANs forms how many broadcast domains?
Correct: One.
A switch isolates broadcast domains.
False. Only collision domains. Routers (or VLANs) isolate broadcast domains.
- Every port = its own collision domain; with full duplex there are no collisions at all.
- Hubs only: 1 collision domain, 1 broadcast domain. 4 hosts share 100 Mbps → 25 Mbps each.
- Count the LINKS between switch ports and devices: 6 links → 6 collision domains. No router → 1 broadcast domain.
- Each host gets the full 100 Mbps each way (200 Mbps full duplex).
🎯 How this can come up · 2 questions
A hub-based LAN of 4 hosts on 100 Mbps gives each host about:
Correct: 25 Mbps.
The same 4 hosts on full-duplex switches each get up to:
Correct: 200 Mbps.
- Store-and-forward: receive the whole frame, check errors, then send → reliable but adds delay.
- Cut-through: start sending as soon as the destination address is read → fast, but no error checking.
🎯 How this can come up · 2 questions
Which switching type checks the frame for errors before forwarding?
Correct: Store-and-forward.
Cut-through switching starts forwarding after reading the:
Correct: Destination address.
- Router = layer 3, works on PACKETS, each interface has a MAC AND an IP address.
- Isolates collision AND broadcast domains: each interface = its own broadcast domain.
- Unknown destination → DISCARD (a switch would flood).
🎯 How this can come up · 2 questions
Which device isolates both collision and broadcast domains?
Correct: Router.
A router floods a packet whose destination is not in its routing table.
False. It discards it; flooding is what a switch does.
- Broadcast domains = router interfaces in use (2). Collision domains = every switch/router link (9).
- Count router interfaces with something behind them: 4 → 4 broadcast domains.
🎯 How this can come up · 1 question
A router has 3 interfaces. Interface 1 goes to a switch with 5 PCs, interface 2 to a hub with 4 PCs, interface 3 to the Internet. Count the broadcast and collision domains (ignore the Internet side).
Broadcast domains: 2 (one per LAN interface). Collision domains: the switch side has 5 (one per PC link) + 1 (switch–router link) = 6; the hub side is 1 (hub and all its PCs plus the router link). Total 7.
- Learn this table: it is the most likely written comparison in the chapter.
🎯 How this can come up · 1 question
Give four differences between a switch and a router.
Layer: switch layer 2 (frames), router layer 3 (packets). Addresses: switch ports have MACs; router interfaces have IP and MAC. Domains: switch isolates collision domains only, router isolates collision and broadcast domains. Unknown destination: switch floods, router drops. Setup: switch is plug-and-play, router needs configuration. Switches can cut through; routers don’t.
- Problem: moving a user to another subnet means new wiring.
- VLAN: make broadcast domains (subnets) in SOFTWARE instead of by wiring.
🎯 How this can come up · 1 question
A VLAN creates subnets (broadcast domains) by:
Correct: Software configuration.
- One physical switch, three logical LANs. Each VLAN = its own broadcast domain = its own network.
🎯 How this can come up · 1 question
One switch is split into 3 VLANs. How many broadcast domains does it have?
Correct: 3.
- VLANs can span several switches: members of VLAN 1 can sit on switch A and switch B.
- VLANs = broadcast domains. That one line answers many MCQs.
🎯 How this can come up · 1 question
VLANs create separate broadcast domains on the same switch.
True.
- VLAN advantages: cheaper moves (software, not wiring), security (broadcasts stay inside the VLAN), virtual workgroups across locations.
🎯 How this can come up · 1 question
Give three advantages of VLANs.
Lower cost and installation time, because moving a station is done in software; more security, since a group can be isolated and its broadcasts are not seen by other VLANs; and virtual workgroups, where people in different places (for example a cross-department project team) share one broadcast domain.
No slides match this filter.






















