Topic 9

Network Hardware Devices (Hub, Switch, Router, Gateway, NIC)

2 min read1 question to test yourself

1Definition

Network Devices are physical hardware appliances used to connect nodes, manage traffic, enforce security policies, and interface across heterogeneous networks. Key devices include Hubs, Switches, Routers, Gateways, and Network Interface Cards (NICs).

2Simple Explanation

  • Hub: A megaphone that yells every incoming message to everyone in the room (dumb device).
  • Switch: A smart mailroom manager who reads recipient names and hands mail directly to their desk only (intelligent layer-2 device).
  • Router: A highway interchange connecting two similar state roads.
  • Gateway: A translator connecting two completely different language zones.

3Real-Life Example / Analogy

  • NIC: The Wi-Fi / Ethernet chip inside your laptop giving it a MAC address.
  • Hub vs. Switch: In a room with 5 people, a Hub shouts your message to all 5 people. A Switch whispers the message directly to the one targeted person.

4Diagram / Visual Representation

Network devices

Hub
Layer 1 · Broadcasts to all ports

Switch
Layer 2 · MAC address table

Router
Layer 3 · Connects networks

Gateway
Layer 3+ · Connects dissimilar networks

NIC
Layer 1 & 2 · MAC address

5Working / How It Works

  • Hub: Receives signal on one port and retransmits (broadcasts) it to all other ports (except the receiving port). No packet filtering.
    • Active Hub: Amplifies/regenerates signal before retransmitting.
    • Passive Hub: Relays signal without amplification.
  • Switch: Operates in full-duplex mode. Inspects incoming frame MAC address, maintains a MAC address table, and forwards frame selectively to target port (packet filtering enabled). Acts as an efficient bridge.
  • Router vs. Gateway:
    • Router: Sends data between two similar networks using logical IP routing.
    • Gateway: Sends data between two dissimilar networks (translates protocol formats).

6Types / Components / Characteristics

  • Hub: Operates at Physical Layer; no packet filtering; half-duplex.
  • Switch: Operates at Data Link Layer; supports packet filtering; full-duplex; efficient bridge.
  • NIC (Network Interface Card): Hardware peripheral attached to PC featuring a unique factory-burned MAC address.
  • Gateway / Router: Node connected to two or more networks to regulate traffic.

7Solved Examples / Problems

Problem: A network administrator needs to eliminate collision domains in a 20-workstation office network. Should they install a 24-port Hub or a 24-port Switch?

Solution:

  1. A Hub shares a single collision domain across all ports (half-duplex). Simultaneous transmissions cause collisions.
  2. A Switch creates dedicated micro-segmented collision domains per port (full-duplex).
  3. Therefore, the administrator must install a 24-port Switch.

8Advantages, Disadvantages & Applications

  • Switch Over Hub: Eliminates collisions, increases throughput, improves security by sending frames only to target MAC.
  • Gateway: Crucial for translating proprietary corporate network traffic into standard TCP/IP internet traffic.

9Important Points to Remember

  • Hub = Physical Layer (Layer 1); No packet filtering.
  • Switch = Data Link Layer (Layer 2); Full-duplex; MAC-based packet filtering.
  • Router connects similar networks; Gateway connects dissimilar networks.

10Test Your Understanding

  1. Multiple Choice: Which device operates at the Data Link layer and filters network traffic based on destination MAC addresses?
    • a) Hub
    • b) Repeater
    • c) Switch
    • d) Gateway
    Show answer
    c) Switch.
  2. Short Answer: Differentiate clearly between a Router and a Gateway.

Finished this topic?

0 of 10 topics read in Computer Networks & Security

Handwritten notes for the exam

Unit-wise SPPU notes and PYQs for this subject.

Helpful? Share it with your class

Free for everyone, no login needed.

Share topic