Hub
Nerd Cafe | نرد کافه
Context:
Four PCs are connected via a hub.
The PC with IP 192.168.1.1 pings 192.168.1.4 (ICMP Echo Request).
A hub is a Layer 1 device: it broadcasts any incoming frame out all other ports.
1. Initial Topology

All devices are connected to the hub.
Devices and IPs:
PC1: 192.168.1.1/24
PC2: 192.168.1.2/24
PC3: 192.168.1.324
PC4: 192.168.1.4/24
At this point, no traffic is being sent yet.
The network is idle and ready.
2. PC1 Sends ICMP Echo Request

PC1 (192.168.1.1) creates an ICMP Echo Request packet.
This packet is encapsulated in an Ethernet frame.
Destination MAC: Broadcast or PC4’s MAC (depending on ARP already resolved or not—but hub doesn’t care).
PC1 sends the frame into the hub.
3. Hub Receives The Frame

The hub receives the signal on the port connected to PC1.
The hub doesn’t inspect the packet at Layer 2 (it doesn’t learn or filter).
The hub’s role is simple repetition/amplification of the signal.
4. Hub Forwards to All Ports

The hub forwards the signal to all other ports except the one it received from.
Here:
Signal goes to PC2.
Signal goes to PC3.
Signal goes to PC4.
This is flooding behavior typical of hubs.
5. All PCs Receive The Frame

All connected PCs receive the Ethernet frame.
But only PC4 (192.168.1.4) will process it:
Checks the destination IP.
Matches its own.
Processes the ICMP request.
PC2 and PC3:
See it’s not for them.
Discard the frame.
6. PC4 Prepares ICMP Echo Reply

PC4 creates an ICMP Echo Reply packet.
Encapsulates it in an Ethernet frame with:
Destination MAC of PC1.
Source MAC of PC4.
PC4 sends the frame into the hub.
7. Hub Forwards Reply to All Other Ports

Hub receives the frame from PC4.
Hub forwards it to all other ports except PC4’s port:
Sends to PC1.
Sends to PC2.
Sends to PC3.
Result:
PC1 receives the ICMP Echo Reply.
PC2 and PC3 see the frame, see it’s not for them, and discard it.

Summary of Hub Operation in This Scenario
The hub always forwards all frames to all ports (except the incoming one).
No learning, no filtering.
Inefficient compared to a switch.
But it ensures connectivity in simple networks.
In your ping scenario:
Both the request and the reply are broadcast (in terms of the hub’s behavior) to all connected devices.
Only the intended recipient processes the packet.
Cisco Packet Tracer Topology (Version 6.2.0.0052)
💖 Support Our Work
If you find this post helpful and would like to support my work, you can send a donation via TRC-20 (USDT). Your contributions help us keep creating and sharing more valuable content.
TRC-20 Address: TAAVVf9ZxUpbyvTa6Gd5SGPmctBdy4PQwf
Thank you for your generosity! 🙏
Keywords
Topology, Bandwidth, Collision Domain, Broadcast Domain, Full Duplex, Half Duplex, Latency, Packet Forwarding, MAC Address, IP Address, Routing Table, Switching Fabric, Hub (Layer 1), Switch (Layer 2/3), Router (Layer 3), Port Density, Data Link Layer, Network Layer, Packet Filtering, Network Segmentation, Nerd Cafe, نرد کافه
Channel Overview
🌐 Website: www.nerd-cafe.ir
📺 YouTube: @nerd-cafe
🎥 Aparat: nerd_cafe
📌 Pinterest: nerd_cafe
📱 Telegram: @nerd_cafe
📝 Blog: Nerd Café on Virgool
💻 GitHub: nerd-cafe
Last updated