Mohamed Reda Tech Logo
HomeArticlesApplicationsPhonesTutorialsTools
AR
Mohamed Reda Tech Logo
Mohamed Reda Tech

Tech articles, applications, and digital tools & services.

Follow Us
TelegramYouTube

Quick Links

ArticlesApplicationsTutorialsToolsPhones

Help

About UsAbout the authorEditorial policyContact Us

Stay Connected

Get notified when new articles, tools, and app updates are released.

© 2026 MR. All rights reserved.

Privacy Policy•Terms of Service•
Computer Networking Essentials: OSI Model, Subnets, Routing, and Protocols · Mohamed Reda Tech
  1. Home
  2. Articles
  3. DevOps & Networking
  4. Computer Networking Essentials: OSI Model, Subnets, Routing, and Protocols
DevOps & Networking

Computer Networking Essentials: OSI Model, Subnets, Routing, and Protocols

An architectural deep-dive into digital networking infrastructure: covering the TCP/IP and OSI stack, IPv4 CIDR blocks vs IPv6, Network Address Translation (NAT), recursive DNS resolution, and BGP routing mechanics.

By Mohamed RedaPublished: October 15, 2026Updated: October 31, 20264 min read
Mesh Network Routing Topology and Packet Switching Nodes

Every instantaneous web interaction—from submitting an API request to streaming high-resolution media—relies on an invisible, globally federated telecommunications architecture coordinating billions of heterogeneous endpoints across transatlantic fiber conduits and core switching fabrics. To engineer high-availability cloud deployments, distributed microservices, and secure edge infrastructures, software developers must master the mechanical fundamentals governing packet transits. This guide deconstructs network protocol stacks, address translation, DNS resolution mechanics, and packet routing pipelines.

1. The Foundational Abstraction: OSI and TCP/IP Layering Models

To isolate low-level physical signal modulation from high-level application business logic, networking frameworks enforce hierarchical abstraction boundaries standardly formalized within the TCP/IP Protocol Suite:

  1. Application Layer (Layer 7/5): Protocols interfacing directly with client software, encapsulating HTTP/3, DNS queries, TLS handshakes, and SSH telemetry.
  2. Transport Layer (Layer 4): End-to-end process-to-process communication. TCP (Transmission Control Protocol) guarantees deterministic, ordered, and error-checked segment delivery via sliding window flow control. Conversely, UDP (User Datagram Protocol) provides lightweight, connectionless datagram streaming favored by low-latency gaming and real-time VoIP pipelines.
  3. Network / Internet Layer (Layer 3): Logical host addressing and global routing topologies governed by the Internet Protocol (IP), abstracting disjoint physical topologies into a unified addressable cyberspace.
  4. Link and Physical Layer (Layers 2 & 1): Encapsulates raw frames into media access control (MAC) primitives, transforming digital binary octets into copper voltage shifts, fiber-optic photons, or cellular radio modulations.

2. The Architecture of IP Addressing: IPv4 Exhaustion, CIDR, and IPv6

Every node joined to an IP network requires a unique routable numeric identifier:

  • IPv4 Specification: Standardized on 32-bit integer addressing formatted as four decimal octets (e.g., 142.250.190.46), yielding a theoretical ceiling of ~4.29 billion global addresses—a resource exhausted by the smartphone and cloud infrastructure expansion.
  • IPv6 Modernization: Expands address pools to 128-bit hexadecimal notations (e.g., 2001:0db8:85a3::8a2e:0370:7334), providing an effectively inexhaustible space of $3.4 imes 10^{38}$ addressable interfaces.

Network Address Translation (NAT) and Private Subnetting:

To survive IPv4 exhaustion, the industry standardized RFC 1918 private subnets (e.g., 192.168.0.0/16, 10.0.0.0/8). A localized router acts as a boundary bridge: leveraging NAT (Network Address Translation) and Port Address Translation (PAT), it maps hundreds of private internal endpoints through a single authoritative Public IP allocated by the upstream ISP, managing socket translation state tables in internal memory.

3. The Domain Name System (DNS): Distributed Global Resolution

Because humans interface via alphanumeric semantic labels while network routing hardware operates strictly on binary numeric coordinates, DNS (Domain Name System) serves as a globally distributed, hierarchical key-value directory.

When an engineer initiates a request for mohamedreda.site, a deterministic lookup pipeline resolves in milliseconds:

  1. Local In-Memory Cache: The browser and OS kernel check local TTL-bound resolver tables.
  2. Recursive Resolver Dispatch: Uncached queries route to recursive resolvers (e.g., Cloudflare 1.1.1.1 or Google 8.8.8.8).
  3. Root Zone Name Servers: The root clusters direct the query downstream to authoritative TLD operators governing .site or .com.
  4. Authoritative Name Server Ingestion: The registry hosting the domain's authoritative zone files emits the definitive A (IPv4) or AAAA (IPv6) record, returning the raw IP destination back to the client.

4. Routing Mechanics: Routing Tables and Border Gateway Protocol (BGP)

Network routers represent specialized Layer-3 computing engines engineered to evaluate destination IP addresses embedded in incoming packet headers against dynamic Routing Tables. Within local networks, routers calculate lowest-cost paths using interior gateway protocols like OSPF.

At hyperscale internet scale, autonomous systems (ASNs) communicate routing topology changes via the Border Gateway Protocol (BGP). BGP dynamic path vector algorithms continuously calculate optimal autonomous system transit paths, routing packets around submarine cable severances or regional transit collapses dynamically to guarantee global uptime.

Summary Takeaway

The global Internet is a masterpiece of distributed systems engineering. By orchestrating modular TCP/IP protocol abstractions, logical IP coordinates, resilient DNS directories, and dynamic BGP routing fabrics, digital infrastructure achieves sub-second global packet transmission across millions of interconnected networks.

Related articles

DevOps & Networking

Why 100 Mbps Does Not Mean 100 MB/s Download Speed: Bits vs Bytes, TCP Overhead, and Real Throughput

A networking engineering explanation of why 100 Mbps bandwidth translates to ~11.5 MB/s actual download speed, analyzing bits vs bytes, TCP/IP packet overhead, protocol acknowledgments, and ISP throttling.

November 2, 20264 min read

Comments(0)

Leave a comment

Share your thoughts or questions. Your email will not be published.

No comments yet. Be the first to share your thoughts!

Frequently asked questions

What is the fundamental difference between a Router and a Switch?+

A Switch operates at Layer 2 (Data Link), forwarding Ethernet frames between local devices within the same LAN using MAC addresses. A Router operates at Layer 3 (Network), routing IP packets across distinct, disparate networks using routing tables.

Why is the global transition from IPv4 to IPv6 necessary?+

IPv4 utilizes 32-bit addresses, offering approximately 4.3 billion unique combinations, which have been entirely exhausted. IPv6 utilizes 128-bit addresses, providing an astronomical 3.4 x 10^38 addresses, eliminating NAT bottlenecks.

What determines whether an application should use TCP or UDP?+

TCP guarantees ordered, loss-free data delivery via retransmissions and flow control, making it mandatory for web browsing and file transfers. UDP minimizes latency by omitting handshakes and retransmissions, ideal for real-time gaming, DNS lookups, and VoIP.

DevOps & Networking

How Push Notifications Work Even When Apps Are Closed: The Architecture of FCM, APNs, and Persistent Sockets

An architectural exploration of mobile push delivery: resolving background thread exhaustion via single persistent TCP sockets, exploring FCM/APNs relay pipelines, payload parsing, and Doze mode mitigations.

November 2, 20264 min read
DevOps & Networking

Cloud Computing Demystified: Service Models, Virtualization, and Hyperscale Infrastructure

An architectural evaluation of cloud computing foundations: exploring the NIST essential characteristics, dissecting IaaS, PaaS, and SaaS abstraction models, evaluating the Shared Responsibility framework, and deployment topologies.

October 15, 20264 min read
DevOps & Networking

What is Linux? Why Developers Love It & How It Powers 90% of the Cloud

An architectural deep-dive into the Linux operating system, examining kernel vs distributions, Unix design philosophy, file permissions, shell piping, and why it dominates cloud computing.

October 15, 20264 min read