Understanding Network Fundamentals: OSI Model, TCP/IP, and Data Encapsulation
This article introduces basic networking concepts, explains the classification of networks, details the OSI seven-layer model and TCP/IP protocols, and illustrates how data is encapsulated and decapsulated across layers, providing clear examples of common protocols and port numbers.
Network Fundamentals
1.1 What is a Network
A computer network connects computers via cables or other media to enable communication between them.
Communication refers to the exchange of information between people, devices, or objects through some medium.
1.2 Types of Networks
Local Area Network (LAN): operates within a small area such as an enterprise or campus.
Metropolitan Area Network (MAN): spans a city, e.g., connections between Beijing and Nanjing.
Wide Area Network (WAN): covers national 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 hardware interfaces at the physical layer.
2.2 Understanding the OSI Model and TCP/IP
OSI Model Layer Descriptions
Application layer: human‑machine interaction interface.
Presentation layer: translates human language to binary, handling translation, encryption, and compression.
Session layer: establishes, manages, and terminates sessions.
Transport layer: defines data transport mechanisms.
Network layer: selects the optimal path for data transmission.
Data link layer: verifies data integrity using MAC addresses and checksums.
Physical layer: transmits bit streams as electrical signals.
Common Protocols and TCP Port Numbers
Application layer:
HTTP (Hypertext Transfer Protocol): default TCP port 80.
FTP (File Transfer Protocol): typically TCP ports 20/21.
TFTP (Trivial File Transfer Protocol): TCP port 69.
Transport layer:
TCP: reliable but slower.
UDP: unreliable and faster.
Network layer:
IP protocol: includes ARP (Address Resolution Protocol).
RARP, ICMP (Internet Control Message Protocol), IGMP.
Data Encapsulation and Decapsulation
3.1 Data Encapsulation
Application layer: original data.
Transport layer: adds TCP/UDP header with port numbers, forming a segment.
Network layer: adds IP address 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
Reference: https://www.cnblogs.com/chenjw0608/p/17758126.html
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
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.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
