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
| Layer | Function |
|---|---|
| Application | User applications and services |
| Transport | Reliable or fast data delivery |
| Internet | IP addressing and routing |
| Network Access | Physical transmission and MAC addressing |
TCP/IP vs. OSI Model
| OSI Model | TCP/IP Model |
|---|---|
| Application | Application |
| Presentation | Application |
| Session | Application |
| Transport | Transport |
| Network | Internet |
| Data Link | Network Access |
| Physical | Network 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
| Protocol | Purpose | Default Port |
|---|---|---|
| HTTP | Web Browsing | 80 |
| HTTPS | Secure Web | 443 |
| FTP | File Transfer | 21 |
| SSH | Secure Remote Login | 22 |
| DNS | Name Resolution | 53 |
| DHCP | Automatic IP Addressing | 67/68 |
| NTP | Time Synchronization | 123 |
| SMTP | Email Sending | 25 |
| POP3 | Email Receiving | 110 |
| IMAP | Email Synchronization | 143 |
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)
- 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
| Feature | TCP | UDP |
|---|---|---|
| Reliable | ✔ | ✘ |
| Speed | Moderate | Fast |
| Error Checking | ✔ | Limited |
| 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:
| Service | Port |
|---|---|
| HTTP | 80 |
| HTTPS | 443 |
| FTP | 21 |
| SSH | 22 |
| DNS | 53 |
| DHCP | 67/68 |
| NTP | 123 |
| SMTP | 25 |
| POP3 | 110 |
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?
- The IP camera captures live video.
- The video is compressed using H.265.
- The video is sent using IP packets.
- The Cisco switch forwards the packets.
- The router or Layer 3 switch routes traffic if needed.
- The NVR receives and stores the video.
- 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:
| Setting | Value |
|---|---|
| IP Address | 192.168.101.101 |
| Gateway | 192.168.101.1 |
| DNS | 8.8.8.8 |
| Video Codec | H.265 |
| Transport | UDP (commonly used for live streaming, depending on configuration) |
NVR Settings:
| Setting | Value |
|---|---|
| IP Address | 192.168.200.10 |
| Recording Mode | Continuous |
| Time Sync | NTP 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.
0 Comments