Fundamentals 5 min read

Mastering Network Fundamentals: OSI Model, TCP/IP Layers & Data Encapsulation

This article introduces core networking concepts, explaining what a network is, its classifications, the OSI seven‑layer model and its relation to TCP/IP, common protocols with their port numbers, and the processes of data encapsulation and decapsulation across each layer.

Raymond Ops
Raymond Ops
Raymond Ops
Mastering Network Fundamentals: OSI Model, TCP/IP Layers & Data Encapsulation

Network Fundamentals

1.1 What is a network

Network: a computer network connects computers via cables or other media to enable communication.

Communication: interaction between people, devices, or objects through a medium.

1.2 Network classifications

Local Area Network (LAN): covers a small area such as an enterprise or campus.

Metropolitan Area Network (MAN): spans a city, e.g., between Beijing and Nanjing.

Wide Area Network (WAN): covers countries or global scale, e.g., the Internet.

OSI Seven-Layer Model and TCP/IP

2.1 Reasons for layering

Simplify complex network environments for easier troubleshooting.

Standardize physical layer interfaces and hardware.

2.2 Understanding the OSI model and TCP/IP

2.2.1 Reference diagram

OSI model diagram
OSI model diagram

2.2.2 OSI layer descriptions

Application layer: human‑machine interaction interface.

Presentation layer: translates human language to binary, handling translation, encryption, compression.

Session layer: establishes, manages, and terminates sessions.

Transport layer: defines data transport mechanisms.

Network layer: selects the optimal path for data.

Data link layer: verifies MAC addresses and checks data integrity.

Physical layer: transmits bit streams as electrical signals.

Common protocols and TCP ports

Application layer:

HTTP – default TCP port 80.

FTP – file transfer, typically ports 20/21.

TFTP – simple file transfer, TCP port 69.

Transport layer:

TCP – reliable but slower.

UDP – faster but unreliable.

Network layer protocols:

IP protocol suite includes ARP, RARP, ICMP, IGMP.

Data Encapsulation and Decapsulation

3.1 Data encapsulation

Data encapsulation process
Data encapsulation process

Application layer: original data.

Transport layer: adds TCP/UDP header and port numbers, forming a segment.

Network layer: adds IP header, forming a packet.

Data link layer: adds MAC address header and checksum trailer, forming a frame.

Physical layer: converts the frame into electrical signals.

3.2 Data decapsulation

Data decapsulation process
Data decapsulation process
protocolsTCP/IPnetworkingnetwork fundamentalsOSI modeldata encapsulation
Raymond Ops
Written by

Raymond Ops

Linux ops automation, cloud-native, Kubernetes, SRE, DevOps, Python, Golang and related tech discussions.

0 followers
Reader feedback

How this landed with the community

login 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.