Fundamentals 12 min read

What Is a Network Protocol? Exploring OSI, TCP/IP and Layered Design

This article explains what network protocols are, why layered designs simplify communication, and compares the OSI seven‑layer model with the TCP/IP reference model, detailing each layer’s functions, typical protocols, and practical examples.

MaGe Linux Operations
MaGe Linux Operations
MaGe Linux Operations
What Is a Network Protocol? Exploring OSI, TCP/IP and Layered Design

1. What Is a Protocol

For data to travel across a network from source to destination, all devices must "speak" the same language. The set of rules that defines this language is called a protocol. For example, two people must use the same spoken language to understand each other.

A data communication protocol defines the format and transmission rules for data.

2. Protocol Layering

Network communication is complex: data travels as electrical signals through media, reaches the correct computer, and is then reconstructed for the receiver. To reduce design complexity, protocols are organized into layers.

Layered design allows:

User‑service layer modules to be independent of specific transmission lines or hardware interfaces.

Communication‑service layer modules to be independent of particular user application requirements.

Example: designing a file‑transfer or email service does not need to know whether the underlying line is fiber or twisted‑pair.

Mail‑office analogy:

The post office is a lower layer for the writer.

The transport department is a lower layer for the post office.

Lower layers provide services to upper layers.

Correspondents use the same language; post offices follow common agreements.

3. OSI Seven‑Layer Framework

Data encapsulation and decapsulation process:

1) Visual overview:

2) General process:

3) Protocol description:

4. TCP/IP Reference Model

Developed in the mid‑1970s by the U.S. Department of Defense for ARPANET, TCP/IP is a suite of communication protocols that form the core of the Internet architecture. The TCP/IP reference model divides protocols into four layers: Network Access, Internet, Transport (host‑to‑host), and Application.

4.1 Protocols Corresponding to Each TCP/IP Layer

4.2 Comparison of TCP/IP and OSI Models

Similarities:

Both are based on the concept of a protocol stack.

Protocols in the stack are independent of each other.

Lower layers provide services to upper layers.

Differences:

OSI was defined first as a model; TCP/IP existed as protocols before the model was created.

OSI applies to any protocol suite; TCP/IP applies only to TCP/IP networks.

The number of layers differs (OSI has seven, TCP/IP has four).

4.3 Detailed TCP/IP Layer Descriptions

4.3.1 Physical Layer – Foundations of the Network

The physical layer provides the transmission media and interconnection devices for data communication between devices, defining mechanical, electrical, functional, and procedural characteristics for establishing, maintaining, and terminating physical links.

It handles signal lines, binary levels, data rates, connector specifications, and transmits binary bit streams over the medium.

Physical Layer Devices

Media include aerial wires, balanced cables, fiber optics, and wireless channels. Interconnection devices (DTE/DCE) such as computers, terminals, modems, connectors, and repeaters belong to this layer.

Physical Layer Characteristics

To transmit signals, the physical layer specifies:

Mechanical characteristics: hardware interface details.

Electrical characteristics: wiring and circuit properties.

Functional characteristics: purpose of each signal line.

Procedural characteristics: legal sequence of events for bit‑stream transmission.

4.3.2 Data Link Layer – Ethernet

The data link layer provides services to the network layer, solving communication between adjacent nodes and transmitting protocol data units called frames, which contain MAC addresses, control codes, data, and checksums.

It ensures reliable transmission by error detection, acknowledgment, and retransmission, and performs flow control to prevent buffer overflow and congestion.

Ethernet Operates at the Data Link Layer

4.3.3 Network Layer

Defines logical IP addresses, connects different media types, and selects optimal paths for data.

Functions:

Provides services to the transport layer by delivering packets (or datagrams).

Handles routing, congestion control, and inter‑network connectivity.

Manages network addresses, which consist of a globally unique network part and a host part.

4.3.4 Transport Layer

The IP layer offers point‑to‑point connections, while the transport layer offers end‑to‑end connections.

Its role is to provide reliable, transparent data transfer services, handling error control and flow control, and shielding higher layers from lower‑layer details.

Transport‑layer data units are called segments or datagrams. The main protocols are TCP (reliable, connection‑oriented) and UDP (simple, connectionless), both built on IP.

4.3.5 Application Layer

The application layer corresponds to the high layers of the OSI model and provides services such as FTP, Telnet, DNS, SMTP, etc., acting as the interface between users and the network.

Application‑layer protocols fall into three categories:

TCP‑dependent (e.g., Telnet, SMTP, FTP, HTTP, BGP).

UDP‑dependent (e.g., TFTP, SNMP, DNS, RIP, DHCP, BOOTP).

Both TCP and UDP dependent (e.g., CMOT) or proprietary applications built on the TCP/IP suite.

5. Network Connection Timing

TCP connection establishment time varies with the environment:

On the same host, communication occurs directly in memory.

In a LAN, packets travel through the NIC and switch; the three‑way handshake typically takes about 0.6 ms.

Across the Internet, packets traverse NIC → router → external network.

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.

layered architectureTCP/IPNetwork Protocolscomputer networkingOSI model
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.