Networking Fundamentals
Networking Fundamentals: TCP/IP, OSI, Subnets, and Protocols
Computer networking is the practice of connecting devices so they can share data. The foundation is the TCP/IP protocol suite, which governs how packets are addressed, routed, and delivered. Understanding IP addressing, subnetting, routing, and switching gives you the framework to configure, troubleshoot, and secure any network.
The OSI model and why it matters
The Open Systems Interconnection (OSI) model divides network communication into seven layers: Physical, Data Link, Network, Transport, Session, Presentation, and Application. Each layer has a specific job and interacts with the layers directly above and below it. The model is a conceptual framework, not a rigid implementation, but it gives technicians a common language for isolating problems: a physical-layer issue (bad cable, failed port) is entirely different from a transport-layer issue (TCP session not completing).
In practice, most modern networking is described using the TCP/IP four-layer model: Link, Internet, Transport, and Application. IP operates at the Internet layer, TCP and UDP at the Transport layer, and protocols such as HTTP, DNS, and SMTP at the Application layer. Mapping between the two models is straightforward once you understand what each layer is responsible for.
IP addressing and subnetting
Every device on an IP network needs a unique address. IPv4 addresses are 32 bits long, written as four decimal octets separated by dots (for example, 192.168.1.10). A subnet mask determines which portion of the address identifies the network and which identifies the individual host. CIDR notation (such as /24) expresses the same information more concisely by stating how many bits belong to the network prefix.
Subnetting divides a larger address block into smaller, more manageable networks. The calculation requires understanding binary representation of IP addresses, but the logic is consistent: borrow bits from the host portion to create more network identifiers, at the cost of fewer hosts per subnet. Private address ranges (10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16) are reserved for internal use and are not routable on the public internet without Network Address Translation (NAT).
Routing, switching, and the path a packet takes
A switch operates at Layer 2 (Data Link) and forwards frames within the same local network using MAC addresses. It maintains a MAC address table and sends traffic only to the port where the destination device is known, rather than flooding every port. VLANs extend the switch's usefulness by creating logical network segments on shared physical infrastructure.
A router operates at Layer 3 (Network) and moves packets between different networks using IP addresses and a routing table. Routes can be configured statically or learned dynamically through routing protocols such as OSPF, BGP, or EIGRP. Understanding the difference between a router and a switch, and knowing where each fits in a network diagram, is fundamental to any networking role and to every major IT certification.
Core protocols every technician should know
DNS (Domain Name System) translates human-readable names like example.com into IP addresses that routers can use. DHCP (Dynamic Host Configuration Protocol) automatically assigns IP addresses, subnet masks, default gateways, and DNS server addresses to devices when they connect. These two protocols handle most of what goes wrong in a basic connectivity complaint: if a device cannot reach the internet, DNS and DHCP are the first things to verify.
TCP (Transmission Control Protocol) provides reliable, ordered, error-checked delivery by establishing a connection with a three-way handshake before data flows. UDP (User Datagram Protocol) is connectionless and faster, used where some packet loss is acceptable, such as streaming video or DNS queries. HTTP and HTTPS carry web traffic, SMTP and IMAP handle email, and SSH provides encrypted remote access to devices.
Key concepts
- + OSI model: Seven layers from Physical to Application, each isolating a different aspect of communication.
- + TCP/IP suite: The actual protocol stack used on the internet; IP addresses packets, TCP ensures reliable delivery.
- + Subnetting: Divides address space into smaller networks; requires binary math and CIDR notation.
- + Routing vs switching: Switches connect hosts within a LAN using MAC addresses; routers connect networks using IP addresses.
- + DNS and DHCP: DNS resolves names to addresses; DHCP assigns addresses automatically at connection time.
- + TCP vs UDP: TCP guarantees delivery and order; UDP is faster and connectionless, suited to real-time traffic.
Frequently asked questions
What is the difference between a hub, a switch, and a router?
What is subnetting and why is it used?
What does DNS do and what happens when it fails?
What is the purpose of a default gateway?
What is a VLAN and when would you use one?
What is NAT and why is it needed?
Related topics
Reserved for affiliate links to recommended technical books and study guides. Not yet wired.
Reserved for affiliate links to online learning platforms. Not yet wired.
Self-hosted newsletter signup. Not yet wired to an email provider.