TCP/IP Model Explained – The Foundation of Modern Networks

Networking for Beginners – Tutorial 3

TCP/IP Model Explained – The Foundation of Modern Networks

Course: Networking for Beginners to Advanced
Lesson: 3 of 30


Introduction

The TCP/IP Model is the communication model used by the Internet and most modern networks. Whether you are configuring a Cisco switch, managing a firewall, or deploying Hikvision IP cameras, you are working with the TCP/IP model.

Unlike the OSI Model, which has 7 layers, the TCP/IP Model has 4 layers and is used in real-world networking.


What is the TCP/IP Model?

TCP/IP stands for:

  • TCP – Transmission Control Protocol
  • IP – Internet Protocol

The TCP/IP model defines how data is transmitted between devices across local and wide area networks.

Examples:

  • Accessing a website
  • Watching YouTube
  • Sending emails
  • Viewing CCTV cameras remotely
  • Connecting to cloud services

TCP/IP Model Layers

LayerFunction
ApplicationUser applications and services
TransportReliable or fast data delivery
InternetIP addressing and routing
Network AccessPhysical transmission and MAC addressing

TCP/IP vs. OSI Model

OSI ModelTCP/IP Model
ApplicationApplication
PresentationApplication
SessionApplication
TransportTransport
NetworkInternet
Data LinkNetwork Access
PhysicalNetwork Access

Key Difference

  • OSI Model: Used mainly for learning and troubleshooting.
  • TCP/IP Model: Used in real-world networking.

Layer 1 – Application Layer

This layer provides services directly to users and applications.

Examples

  • Web Browser
  • Microsoft Outlook
  • Hik-Connect
  • HikCentral
  • iVMS-4200
  • File Explorer

Common Protocols

ProtocolPurposeDefault Port
HTTPWeb Browsing80
HTTPSSecure Web443
FTPFile Transfer21
SSHSecure Remote Login22
DNSName Resolution53
DHCPAutomatic IP Addressing67/68
NTPTime Synchronization123
SMTPEmail Sending25
POP3Email Receiving110
IMAPEmail Synchronization143

Layer 2 – Transport Layer

The Transport Layer controls how data is delivered between devices.

The two main protocols are:

TCP (Transmission Control Protocol)

TCP provides reliable communication.

Features

  • Connection-oriented
  • Error checking
  • Acknowledgements
  • Packet retransmission
  • Ordered delivery

Used For

  • Web browsing (HTTPS)
  • Email
  • File transfers
  • Device configuration
  • Cisco SSH sessions

UDP (User Datagram Protocol)

UDP provides fast communication.

Features

  • Connectionless
  • Lower overhead
  • Faster transmission
  • No guarantee of delivery

Used For

  • Live CCTV video
  • Voice over IP (VoIP)
  • Video conferencing
  • Online gaming

TCP vs. UDP

FeatureTCPUDP
Reliable
SpeedModerateFast
Error CheckingLimited
Packet Recovery
Live Video
File Transfer

Layer 3 – Internet Layer

This layer is responsible for:

  • IP Addressing
  • Routing
  • Packet forwarding

Protocols include:

  • IPv4
  • IPv6
  • ICMP
  • ARP (supports address resolution in IPv4 networks)

Devices

  • Routers
  • Layer 3 Switches
  • Firewalls

Layer 4 – Network Access Layer

This layer includes:

  • Ethernet
  • Wi-Fi
  • MAC Addresses
  • CAT6 Cable
  • Fiber Optic Cable
  • RJ45 Connectors
  • SFP Modules

Devices:

  • Layer 2 Switches
  • Network Interface Cards (NICs)
  • Wireless Access Points

Common Network Protocols

HTTP

Used to access websites.

Example:

http://example.com

Port:

80


HTTPS

Encrypted web communication.

Example:

https://example.com

Port:

443


FTP

Transfers files between computers.

Port:

21


SSH

Secure remote management.

Used to configure Cisco switches and routers.

Port:

22

Example:

ssh admin@192.168.10.1

DNS

Converts names into IP addresses.

Example:

www.google.com

↓

142.250.xxx.xxx

Port:

53


DHCP

Automatically assigns:

  • IP Address
  • Subnet Mask
  • Gateway
  • DNS Server

Port:

67/68


NTP

Synchronizes device time.

Used by:

  • Cisco Switches
  • Firewalls
  • Hikvision Cameras
  • NVRs
  • Servers

Port:

123

Accurate time is important for CCTV playback and event logs.


What is a Port?

A port is a logical communication endpoint used by applications.

Think of it like an apartment number inside a building. The IP address identifies the building, and the port identifies the specific service.

Examples:

ServicePort
HTTP80
HTTPS443
FTP21
SSH22
DNS53
DHCP67/68
NTP123
SMTP25
POP3110

Enterprise CCTV Packet Flow

Imagine an IP camera sending video to an NVR.

IP Camera
     │
CAT6 Cable
     │
PoE Switch
     │
Fiber ODF
     │
Cisco Catalyst C9300X-24Y
     │
Gigabit Switch
     │
Hikvision NVR
     │
LCD Monitor

What Happens?

  1. The IP camera captures live video.
  2. The video is compressed using H.265.
  3. The video is sent using IP packets.
  4. The Cisco switch forwards the packets.
  5. The router or Layer 3 switch routes traffic if needed.
  6. The NVR receives and stores the video.
  7. Operators view live or recorded footage.

Cisco Configuration Example

Enable SSH for secure remote management:

configure terminal

hostname CCTV-Core

ip domain-name company.local

crypto key generate rsa modulus 2048

ip ssh version 2

username admin privilege 15 secret StrongPassword

line vty 0 15
 login local
 transport input ssh

end

write memory

Hikvision Example

Camera Settings:

SettingValue
IP Address192.168.101.101
Gateway192.168.101.1
DNS8.8.8.8
Video CodecH.265
TransportUDP (commonly used for live streaming, depending on configuration)

NVR Settings:

SettingValue
IP Address192.168.200.10
Recording ModeContinuous
Time SyncNTP Enabled

Troubleshooting Using the TCP/IP Model

Problem: Unable to view a camera.

Check:

  • Is the camera powered?
  • Is the CAT6 cable connected?
  • Is the switch port active?
  • Does the camera have the correct IP address?
  • Can you ping the camera?
  • Are the required ports allowed through the firewall?
  • Is the camera added correctly to the NVR?

Summary

In this lesson, you learned:

  • ✅ What the TCP/IP Model is
  • ✅ The 4 TCP/IP layers
  • ✅ TCP/IP vs. OSI
  • ✅ TCP vs. UDP
  • ✅ Common protocols (HTTP, HTTPS, FTP, SSH, DNS, DHCP, NTP)
  • ✅ Ports and port numbers
  • ✅ Packet flow in an enterprise CCTV network
  • ✅ Basic Cisco and Hikvision configuration examples

Next Tutorial (Lesson 4)

Ethernet, MAC Address & ARP Explained

In the next lesson, you'll learn:

  • What Ethernet is
  • How MAC addresses work
  • Unicast, Broadcast, and Multicast traffic
  • What ARP (Address Resolution Protocol) does
  • How switches learn MAC addresses
  • MAC address tables on Cisco switches
  • Packet forwarding in enterprise CCTV networks
  • Real-world troubleshooting examples using Cisco switches and Hikvision IP cameras

This lesson will help you understand how devices communicate inside the same local network before traffic is routed to other networks.

Post a Comment

0 Comments

WhatsApp .whatsapp-float{ position:fixed; bottom:20px; right:20px; background:#25D366; color:#fff; padding:14px 18px; border-radius:50px; text-decoration:none; font-weight:bold; z-index:999; }