Understanding Hubs, Switches, Routers, Gateways, Routing and Bridging in Network Fundamentals
This article explains the basic networking devices and concepts—including hubs, switches, routers, gateways, routing, static vs. dynamic routing, routing tables, and the differences between bridging and routing—illustrated with diagrams and step‑by‑step examples to clarify how data moves across networks.
What is a Hub? A hub connects multiple network devices within a LAN, providing several Ethernet ports. It simply forwards incoming packets to all ports, so when host A sends data to host C, hosts B and D also receive the packet, leading to security risks and unnecessary bandwidth consumption.
What is a Switch? A switch provides Ethernet ports to connect various devices and maintains a MAC address table. When host A wants to communicate with host B, the switch forwards the frame only to the port where host B is connected, reducing unnecessary traffic.
What is a Router? A router receives data packets and forwards them toward their destination address, possibly through other routers, until the packet reaches the target host.
Router Details
Routes based on the packet's destination IP address.
Checks whether the destination is on the same subnet; if not, forwards to another router.
Acts as a gateway between networks.
Has multiple interfaces, each belonging to a different subnet.
All hosts in the same network must share the same network address; communication across subnets requires routing.
Routing selection typically follows the order: static routing → dynamic routing → default routing.
Example communication flow between four networks (A, B, C, D) involves six steps: host A → internal switch → internal router → external router → destination router → destination switch → host C.
Static vs. Dynamic Routing
Static routing is manually configured by an administrator, while dynamic routing is automatically learned by routers through routing protocols.
What is a Gateway? A gateway (often a router) connects different network segments; data between hosts on separate subnets must pass through the gateway.
What is Routing? Routing is the process of forwarding data packets across interconnected networks, selecting the optimal path based on routing tables and protocols.
Routing Selection Process
Routers build routing tables via routing protocols, identifying primary and backup paths; when a packet arrives, the router consults the table to determine the next hop.
What is a Routing Table? A routing table stores routing rules and topology information, enabling a router to choose the best path for each packet.
Bridge vs. Routing
Bridging operates at the data‑link layer (Layer 2), while routing operates at the network layer (Layer 3).
What is a Bridge? A bridge connects different network segments at Layer 2, maintains a MAC address table, and forwards frames between segments, effectively acting as a two‑port switch.
Bridge vs. Switch
Switches support many ports and can interconnect multiple networks, whereas bridges typically have only two ports and are used for smaller segment connections.
FunTester
10k followers, 1k articles | completely useless
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.