Fundamentals 20 min read

Mastering Network Fundamentals: OSI, TCP/IP, and Core Protocols Explained

This comprehensive guide walks through the basics of computer networking, covering OSI and TCP/IP models, network classifications, each layer’s responsibilities, key protocols such as IP, ARP, ICMP, TCP, UDP, and application‑layer services like DNS, DHCP, and HTTP, while illustrating concepts with clear diagrams and practical examples.

MaGe Linux Operations
MaGe Linux Operations
MaGe Linux Operations
Mastering Network Fundamentals: OSI, TCP/IP, and Core Protocols Explained

Network Fundamentals Overview

OSI and TCP/IP are foundational models that underpin virtually all networking concepts. Understanding these models makes learning higher‑level protocols much easier.

Network Classification

By scope: Wide Area Network (WAN), Metropolitan Area Network (MAN), Local Area Network (LAN).

By usage: Public networks and private networks.

OSI Model and TCP/IP Comparison

The OSI seven‑layer model is often used as a teaching tool, while the TCP/IP four‑layer model is the practical reference for the Internet.

OSI vs TCP/IP
OSI vs TCP/IP

Physical Layer

The physical layer transmits raw bits over a medium, providing a reliable physical channel for higher layers.

Repeater (also called amplifier): regenerates signals within the same LAN; both ports must use the same protocol. The 5‑4‑3 rule limits repeaters in 10BASE‑5 Ethernet.

Hub: multi‑port repeater, operates in half‑duplex, cannot separate collision or broadcast domains.

Channel concepts:

Simplex: one‑directional communication.

Half‑duplex: two‑directional but not simultaneous.

Full‑duplex: simultaneous two‑directional communication.

Data Link Layer

The data link layer provides reliable transmission over the physical layer, framing data into frames and handling error detection.

Frames are the basic unit; Ethernet is the dominant protocol.

Key devices: bridges and switches.

Ethernet Frame Structure
Ethernet Frame Structure

Network Layer

The network layer routes packets between end systems, handling addressing, routing, and fragmentation.

Core protocol: IP (Internet Protocol) – provides best‑effort, connectionless delivery.

Supporting protocols: ARP, RARP, ICMP, IGMP.

IP addressing and subnetting: Class A (8‑bit network, 24‑bit host), Class B (16‑bit network, 16‑bit host), Class C (24‑bit network, 8‑bit host); Class D for multicast, Class E reserved.

IP Header
IP Header

NAT (Network Address Translation) allows many private hosts to share a single public IP, at the cost of added complexity.

Transport Layer

The transport layer provides end‑to‑end communication services for applications.

UDP Protocol

Connection‑less, no reliability guarantees.

Message‑oriented, minimal header (8 bytes).

UDP Header
UDP Header

TCP Protocol

Connection‑oriented, reliable byte‑stream service.

Handles segmentation, reassembly, flow control, congestion control, and error detection.

Key mechanisms: three‑way handshake, sliding‑window flow control, slow‑start and congestion avoidance, fast retransmit/recovery, and four‑way termination.

TCP Segment
TCP Segment

Three‑Way Handshake

1️⃣ Client sends SYN (seq = x). 2️⃣ Server replies SYN‑ACK (seq = y, ack = x+1). 3️⃣ Client sends ACK (seq = x+1, ack = y+1). After this both sides are in ESTABLISHED state.

TCP Handshake
TCP Handshake

Four‑Way Termination

1️⃣ Client sends FIN (seq = x). 2️⃣ Server ACKs (ack = x+1) and enters CLOSE_WAIT. 3️⃣ Server sends FIN (seq = y). 4️⃣ Client ACKs (ack = y+1) and enters TIME_WAIT before closing.

TCP Termination
TCP Termination

Application Layer

Provides network services to end‑user applications.

DNS (Domain Name System)

Maps human‑readable domain names to IP addresses using a hierarchical, distributed database. Resolution order: browser cache → hosts file → DNS cache → recursive query to root, TLD, and authoritative servers.

DNS Resolution
DNS Resolution

DHCP (Dynamic Host Configuration Protocol)

Automatically assigns IP addresses and other network parameters to hosts on a LAN using UDP.

HTTP/HTTPS

HTTP (port 80) is the application‑layer protocol for web traffic; HTTPS (port 443) adds TLS/SSL encryption for security.

Common request methods: GET, POST, DELETE, HEAD, OPTIONS, PUT.

HTTP Methods
HTTP Methods

Overall, mastering these layers and protocols provides a solid foundation for any networking or systems engineering work.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

ProtocolsTCP/IPNetworkingfundamentalsOSI modelnetwork layers
MaGe Linux Operations
Written by

MaGe Linux Operations

Founded in 2009, MaGe Education is a top Chinese high‑end IT training brand. Its graduates earn 12K+ RMB salaries, and the school has trained tens of thousands of students. It offers high‑pay courses in Linux cloud operations, Python full‑stack, automation, data analysis, AI, and Go high‑concurrency architecture. Thanks to quality courses and a solid reputation, it has talent partnerships with numerous internet firms.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.