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.
More on Network Models, TCP, UDP & Ports
What are the layers of the OSI model, and why does a DevOps engineer care?BeginnerHow does the TCP/IP model map to the OSI model?BeginnerWhat is the difference between TCP and UDP?BeginnerDescribe the TCP three-way handshake.BeginnerHow does TCP close a connection, and what is TIME_WAIT?IntermediateWhat is a port, and what are well-known, registered and ephemeral ranges?Beginner