Navigating Computer Networks: OSI Model, TCP/IP, UDP vs TCP & DHCP Configuration with Cisco Packet Tracer

Ayushi LathiyaAyushi Lathiya
4 min read

Introduction

In our interconnected digital world, computer networks form the invisible backbone that enables global communication, data sharing, and the seamless operation of countless services we rely on daily. From sending a simple email to streaming high-definition videos, every digital interaction depends on sophisticated networking protocols and infrastructure working harmoniously behind the scenes.

Understanding computer networks is no longer optional for IT professionals, software developers, or anyone working in technology. Whether you're troubleshooting connectivity issues, designing network architectures, or optimizing application performance, a solid grasp of networking fundamentals is essential.

The OSI Model: The Backbone of Connectivity

What is the OSI Model?

The Open Systems Interconnection (OSI) model, developed by the International Organization for Standardization (ISO) in 1984, serves as a conceptual framework for understanding network communication. This seven-layer model breaks down the complex process of network communication into manageable, standardized layers, each with specific responsibilities and functions.

The OSI model isn't just an academic concept – it's a practical tool that network engineers, developers, and IT professionals use daily to troubleshoot problems, design systems, and understand how different network components interact.

The OSI Model is a seven-layer theoretical framework that standardizes networking functions:

LayerNameDescription
7ApplicationNetwork services for apps (e.g., HTTP, FTP)
6PresentationData encryption/compression (e.g., SSL)
5SessionConnection management (e.g., NetBIOS)
4TransportReliable delivery (TCP/UDP)
3NetworkLogical addressing (IP, routers)
2Data LinkPhysical addressing (MAC, switches)
1PhysicalBit transmission (cables, NICs)

TCP/IP Model: Internet's Foundation

Introduction to TCP/IP

The Transmission Control Protocol/Internet Protocol (TCP/IP) suite is the foundation of modern internet communication. While the OSI model provides a theoretical framework, TCP/IP represents the actual protocols used in real-world networks. Developed by the U.S. Department of Defense in the 1970s, TCP/IP has evolved into the standard for network communication worldwide.

While the OSI provides a robust conceptual model, the real world relies on the TCP/IP stack, which has four layers:

  1. Application Layer

  2. Transport Layer

  3. Internet Layer

  4. Network Access Layer

Key Protocols:

  • TCP (Transmission Control Protocol): Reliable, connection-oriented delivery (e.g., HTTP, SMTP).

  • UDP (User Datagram Protocol): Fast, connectionless, used in streaming and DNS.

  • IP (Internet Protocol): Logical addressing and routing.

Transmission Control Protocol (TCP)

TCP provides reliable, connection-oriented communication with the following characteristics:

Connection-Oriented Communication

Three-Way Handshake: TCP establishes connections using a three-step process:

  1. SYN: Client sends synchronization packet to server

  2. SYN-ACK: Server responds with synchronization-acknowledgment

  3. ACK: Client sends acknowledgment to complete connection

Connection Termination: Uses a four-way handshake to properly close connections:

  1. FIN: Initiator sends finish packet

  2. ACK: Receiver acknowledges the finish request

  3. FIN: Receiver sends its own finish packet

  4. ACK: Initiator acknowledges, completing termination

User Datagram Protocol (UDP)

UDP provides fast, connectionless communication with minimal overhead:

Characteristics

Connectionless: No connection establishment required before data transmission.

Unreliable: No guarantee of delivery, ordering, or duplicate protection.

Low Overhead: Minimal header size (8 bytes) compared to TCP (20+ bytes).

Fast Transmission: No connection setup delay or reliability mechanisms.

TCP vs UDP

AspectTCPUDP
ReliabilityYes, ensures deliveryNo, best effort only
SpeedSlower, more header & handshakesFaster, minimal overhead
Use CasesWeb, email, file transferStreaming, gaming, DNS

DHCP in Computer Networks

DHCP (Dynamic Host Configuration Protocol) automates IP address assignment, reducing manual configuration, and is an essential part of network management in both enterprise and home settings.

How DHCP Works

  1. DHCP Discover: Client broadcasts request.

  2. DHCP Offer: Server proposes IP configuration.

  3. DHCP Request: Client asks for offered settings.

  4. DHCP Ack: Server confirms assignment.

Configuring DHCP in Cisco Packet Tracer

Let’s break down the lab procedure based on your provided documentation:

Network Components:

  • Router - PT

  • Switch – PT

  • Server, PCs, Wires

Steps:

  1. Set Up Server:

    • IP: 192.168.1.10, Default Gateway: 192.168.1.1.

    • Services → DHCP: Create Pool1 and Pool2, assign appropriate gateways and start IP ranges.

  2. Configure Routers:

    • Assign correct IPs to FastEthernet and Serial interfaces as per topology.

    • Activate all ports, set up RIP routing if needed.

  3. Switch & PCs:

    • Connect all hardware.

    • On client PCs, configure IP as DHCP.

  4. Verification:

    • Wait for PCs to get IP addresses (should get IPs from the correct pool).

    • Open the command prompt and ping the gateway to confirm connectivity.

Example Command on PC:

textping 192.168.1.1

If you receive replies, your configuration is successful.

References

  1. OSI Model - ISO/IEC 7498-1

  2. TCP/IP Protocol Suite - RFC 1122

  3. Internet Protocol - RFC 791

  4. Transmission Control Protocol - RFC 793

  5. User Datagram Protocol - RFC 768

  6. Dynamic Host Configuration Protocol - RFC 2131

  7. DHCP Options and BOOTP Vendor Extensions - RFC 2132

  8. Cisco Packet Tracer Documentation

0
Subscribe to my newsletter

Read articles from Ayushi Lathiya directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Ayushi Lathiya
Ayushi Lathiya