Interview Prep/Networking/Network Models, TCP, UDP & Ports

What is the difference between a hub, a switch and a router?

BeginnerConceptNetwork Models, TCP, UDP & Ports
Answer

A hub repeats every frame to all ports (dead hardware today). A switch learns MAC addresses and forwards frames only to the right port within a LAN. A router forwards packets between different IP networks based on its routing table.

Modern L3 switches do both; in AWS the VPC router and virtual switching are handled by the Nitro hypervisor and you only configure route tables.

All Networking questions Roadmap: Networking for DevOps

More on Network Models, TCP, UDP & Ports