0% found this document useful (0 votes)
3 views3 pages

Networking Volume 1

Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views3 pages

Networking Volume 1

Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Volume I: Foundations of Network

Architecture
A Deep Dive into Reference Models, Protocols, and Encapsulation

1. Introduction to Computer Networks

A computer network is an interconnected collection of autonomous computers, devices, and systems capable
of exchanging data and sharing resources. The structural organization of these systems is built around a
layered architecture designed to abstract the immense complexity of hardware-to-hardware communication
into manageable, software-driven steps.

2. Reference Models: OSI vs. TCP/IP

To standardize network communications, two primary reference models are universally studied and applied:
the Open Systems Interconnection (OSI) model and the Transmission Control Protocol/Internet Protocol (TCP/
IP) suite.

The 7-Layer OSI Model

The OSI model is a theoretical framework developed by the International Organization for Standardization
(ISO). It partitions network communication into seven distinct vertical layers, each providing services to the
layer above it and consuming services from the layer below it:

Volume I: Foundations of Network Architecture 1


Layer Layer Name Data Unit (PDU) Core Function & Examples

Network access for applications (HTTP, DNS,


7 Application Data
FTP, SMTP).

Data formatting, encryption, compression, and


6 Presentation Data
translation (SSL/TLS, JPEG).

Managing, establishing, and terminating


5 Session Data sessions between applications (RPC,
NetBIOS).

Segment / End-to-end reliability, flow control, and error


4 Transport
Datagram correction (TCP, UDP).

Logical addressing, path selection, and routing


3 Network Packet
across networks (IPv4, IPv6, ICMP).

Physical addressing (MAC), error detection,


2 Data Link Frame
and media access control (Ethernet, Wi-Fi).

Transmission of raw unstructured bitstreams


1 Physical Bits over a physical medium (Cables, Hubs,
Modulations).

The 4-Layer TCP/IP Suite

Unlike the theoretical OSI model, the TCP/IP model is the functional architecture of the modern Internet. It
collapses the Application, Presentation, and Session layers into a single Application Layer, and groups the
Data Link and Physical layers into the Network Access Layer (also known as the Link Layer).

Key Concept: Encapsulation & Decapsulation


As data moves down the stack from the application layer to the physical layer, each layer prepends a
header (and sometimes a trailer) containing protocol-specific control metadata. This process is called
encapsulation. When the receiving host processes the incoming bits, it strips away these headers layer-
by-layer up the stack, a process known as decapsulation.

3. The Transport Layer: TCP vs. UDP

The Transport Layer is responsible for process-to-process delivery of data. It distinguishes between different
applications using 16-bit identifiers called ports (ranging from 0 to 65535). The two dominant protocols at this
layer exhibit opposing design philosophies:

Volume I: Foundations of Network Architecture 2


Transmission Control Protocol (TCP)

TCP is a connection-oriented, reliable, byte-stream protocol. Before any application data can flow, TCP
establishes a virtual connection using a Three-Way Handshake:

• SYN: The client sends a synchronization packet with an initial sequence number (Seq = x).

• SYN-ACK: The server responds acknowledging the request (Ack = x + 1) and sends its own sequence
number (Seq = y).

• ACK: The client acknowledges the server's sequence number (Ack = y + 1).

TCP provides reliability via sequence numbers, explicit acknowledgments, retransmissions upon timeout, and
flow control via the Sliding Window Algorithm. Furthermore, it implements rigorous congestion control to
prevent network collapse using mechanisms like Slow Start, Congestion Avoidance, Fast Retransmit, and Fast
Recovery.

User Datagram Protocol (UDP)

UDP is a stateless, connectionless, unreliable, lightweight protocol. It does not perform handshakes, does not
guarantee delivery, does not maintain sequence order, and provides no flow or congestion control
mechanisms. It introduces minimal overhead (an 8-byte fixed header compared to TCP's minimum 20-byte
header), making it ideal for real-time applications such as voice over IP (VoIP), live video streaming, DNS
lookups, and online gaming where speed is prioritized over absolute reliability.

4. The Data Link Layer & Ethernet

The Data Link Layer transforms raw bits from the physical layer into logical local networks. It relies heavily on
48-bit Media Access Control (MAC) addresses, which are burned permanently into the Network Interface
Card (NIC) by the manufacturer.

The standard protocol for wired local networks is Ethernet (IEEE 802.3). Switches operate at this layer by
constructing a MAC Address Table (CAM Table) through source MAC inspection, allowing them to forward
frames directly to their target destination port, eliminating the collisions typical of legacy hubs.

Volume I: Foundations of Network Architecture 3

You might also like