TCP/IP Model
The TCP/IP model is a set of rules and steps that explains how data moves from one device to another over a network or the internet.
- How data is created
- How it is packed
- How it travels
- How it is delivered correctly
What is the TCP/IP Model?
π Real-World Example (VERY IMPORTANT π‘)
π± You open google.com on your phone.
- Your phone creates a request
- Data is broken into small packets
- Packets travel through routers on the internet
- Googleβs server receives and understands the request
- Google sends the response back (page loads)
π§© TCP/IP Model Layers (CCST Focus β)
| Layer No. | Layer Name | What It Does |
|---|---|---|
| 4οΈβ£ | Application | What the user uses |
| 3οΈβ£ | Transport | How data is delivered |
| 2οΈβ£ | Internet | IP address & routing |
| 1οΈβ£ | Network Access | Physical sending of data |
TCP/IP Data Flow
π¦ Layer 4: Application Layer
Closest layer to the user. Allows apps and software to use the network.
Common Protocols:- HTTP / HTTPS β Websites
- FTP β File transfer
- SMTP β Sending emails
- DNS β Name β IP conversion
Typing
https://youtube.comπ Application layer understands: βUser wants a websiteβ
π© Layer 3: Transport Layer
- TCP β Reliable, safe, slower
- UDP β Fast, no guarantee
π¦ Online banking β TCP (accuracy matters)
Exam Trick:
TCP = Reliable
UDP = Fast
π¨ Layer 2: Internet Layer
Handles IP addresses and routing.
Main Protocol: IPExample:
- Your IP β 192.168.1.10
- Google IP β 142.250.182.14
π₯ Layer 1: Network Access Layer
Responsible for physical data transmission.
Examples:- Ethernet cable
- Wi-Fi
- Network Interface Card (NIC)
β‘ Electrical signals (cable)
π‘ Radio waves (Wi-Fi)
π How Data Flows (VERY IMPORTANT π₯)
Application β Transport β Internet β Network Access
π₯ Receiving Device
Network Access β Internet β Transport β Application
π Same layers, reverse direction
βApplication creates data, Transport delivers it, Internet routes it, Network sends it.β
OSI Model (Open Systems Interconnection)
The OSI Model is a 7-layer conceptual model that explains how data moves in a network step by step.
π It is a learning + troubleshooting model
TCP/IP β How the internet actually works
OSI β How humans understand and fix network problems
OSI Model β 7 Layers Overview
π§ Why OSI Model is IMPORTANT for CCST (Very Important π₯)
As a network support technician, your main job is troubleshooting.
- β Is the cable faulty?
- β Is IP missing?
- β Is the application down?
π Instead of guessing, you check layer by layer.
π§© OSI Model β 7 Layers (Top to Bottom)
| Layer No. | Layer Name | Easy Meaning |
|---|---|---|
| 7οΈβ£ | Application | What the user uses |
| 6οΈβ£ | Presentation | Format & security |
| 5οΈβ£ | Session | Connection control |
| 4οΈβ£ | Transport | Reliable delivery |
| 3οΈβ£ | Network | IP & routing |
| 2οΈβ£ | Data Link | MAC & switching |
| 1οΈβ£ | Physical | Cables & signals |
OSI 7 Layers Explained (Detail)
π§ Memory Trick (EXAM GOLD π₯)
- Application
- Presentation
- Session
- Transport
- Network
- Data Link
- Physical
π¦ Layer 7: Application Layer
Direct interaction with user applications.
Examples:- Web browser (Chrome)
- Email client (Gmail, Outlook)
- HTTP / HTTPS
- FTP
- SMTP
- DNS
β Website not opening
β First check Application layer
π© Layer 6: Presentation Layer
- Data formatting
- Encryption & decryption
- Compression
- HTTPS encryption π
- JPEG, PNG images
- MP4 videos
π¨ Layer 5: Session Layer
- Session start
- Session maintenance
- Session termination
- Staying logged into a website
- Session timeout after inactivity
π₯ Layer 4: Transport Layer
- End-to-end delivery
- Error correction
- Flow control
- TCP β Reliable, safe
- UDP β Fast, no guarantee
- File download β TCP
- Video streaming β UDP
TCP = Reliable
UDP = Fast
πͺ Layer 3: Network Layer
- IP addressing
- Routing between networks
π§ Examples:
- No IP address
- Router not working
π§ Layer 2: Data Link Layer
- MAC addressing
- Switching
- Error detection (frames)
- Switch
- Network Interface Card (NIC)
- Switch port disabled
- MAC address issue
β¬ Layer 1: Physical Layer
- Electrical signals
- Optical signals
- Radio waves
- Ethernet cable
- Fiber cable
- Wi-Fi signals
- Cable unplugged β
- No Wi-Fi signal β
OSI vs TCP/IP Model
OSI vs TCP/IP Diagram
π How Technicians Troubleshoot (Real Method)
1οΈβ£ Check cable
2οΈβ£ Check switch
3οΈβ£ Check IP
4οΈβ£ Check service
π This saves TIME and avoids confusion.
OSI Model helps you understand WHERE the network problem is, layer by layer.
Frames and Packets (Networking Fundamentals)
Packets are used by routers (IP)
Frames are used by switches (MAC)
π This one line alone answers many CCST exam questions.
π¦ What is a Packet?
A packet is a small piece of data created at the Network Layer (Layer 3). It contains IP addresses, so routers know where the data should go.
- Travel between different networks
- Be routed using IP addresses
π§ What does a Packet contain?
- β Source IP address
- β Destination IP address
- β Actual data (payload)
π Real-World Example
Your laptop β Google server
Packets created:
- From IP: 192.168.1.10
- To IP: 142.250.182.14
Because routers work with IP addresses.
Difference Between Frames and Packets
π¨ What is a Frame?
A frame is a data unit at the Data Link Layer (Layer 2). It contains MAC addresses and is used for local delivery.
- Communication inside the same network (LAN)
- Delivery from one device to the next
π§ What does a Frame contain?
- β Source MAC address
- β Destination MAC address
- β The packet inside it
π Real-World Example (Home Network)
- Laptop β Wi-Fi Router
- Router β Switch
00:1A:2B:3C:4D:5E
π Switches read frames, not packets
π§© Packet vs Frame (Side-by-Side β VERY IMPORTANT)
| Feature | Packet | Frame |
|---|---|---|
| OSI Layer | Layer 3 (Network) | Layer 2 (Data Link) |
| Address Type | IP Address | MAC Address |
| Used by | Routers | Switches |
| Scope | Between networks | Within same network |
| Contains | Data | Packet + MAC info |
Packets, Frames & OSI Layers
π Data Journey (Step-by-Step Flow)
2οΈβ£ Transport layer breaks data
3οΈβ£ Network layer creates packet (IP)
4οΈβ£ Data Link layer wraps packet into frame (MAC)
5οΈβ£ Physical layer sends bits (0s & 1s)
π This process is called encapsulation
π What Happens at Each Device?
β’ Creates packet
β’ Wraps it inside a frame
π Switch
β’ Looks only at MAC address
β’ Forwards frame
β’ β Does NOT care about IP
π Router
β’ Removes old frame
β’ Reads packet (IP)
β’ Decides next path
β’ Creates new frame for next network
π Frame changes at every hop
π Packet usually stays the same
π οΈ CCST Troubleshooting Example (Real Exam Logic)
| Symptom | Likely Issue |
|---|---|
| Switch light OFF | Frame / Layer 2 issue |
| No IP address | Packet / Layer 3 issue |
| Can ping IP but website not loading | Application layer issue |
Frame = Local delivery (MAC)
Packet = Global delivery (IP)
Addressing Concepts in Networking
IP = Who (device)
MAC = Which hardware
Port = Which application
π If you remember this one line, half of addressing questions are solved β
πΉ Why Addressing is Needed
Imagine sending a courier without:
β Flat number
β Person name
Same in networking:
- IP finds the device
- MAC finds the hardware on local network
- Port finds the application
Home Network Addressing Overview
π§© 1οΈβ£ IP Address (Network Layer β Layer 3)
An IP address is a logical address that uniquely identifies a device on a network.
πΉ Examples
IPv6: 2001:db8::1
πΉ Types of IP
- Private IP β Inside LAN (home / office)
- Public IP β On the internet
π§ Easy Example
Google server IP β 142.250.182.14
π Routers use IP addresses to route packets π
π§© 2οΈβ£ MAC Address (Data Link Layer β Layer 2)
A MAC address is a physical (hardware) address permanently assigned to a network device.
πΉ Example
πΉ Key Points
- Fixed to NIC (Network Interface Card)
- Works inside the local network (LAN)
- Used by switches
π§ Easy Example
Laptop β Router β Switch
Communication happens using MAC addresses (frames)
π Switches read MAC, not IP
MAC Address vs IP Address
π§© 3οΈβ£ Port Number (Transport Layer β Layer 4)
A port number identifies which application or service should receive the data.
πΉ Common Port Numbers (VERY IMPORTANT)
| Service | Port |
|---|---|
| HTTP | 80 |
| HTTPS | 443 |
| FTP | 21 |
| SSH | 22 |
| SMTP | 25 |
| DNS | 53 |
π§ Easy Example
https://google.com
Behind the scenes:
IP β Google server
Port β 443 (HTTPS)
π Same server, different apps β different ports
π§ How All Three Work Together (Real Flow)
IP Address β Finds the device (server)
MAC Address β Finds device in local network
Port Number β Finds the correct application
π Real Example
Destination Port β 443
Destination MAC β Routerβs MAC (local hop)
π§© Comparison Table (Exam Friendly)
| Feature | IP Address | MAC Address | Port Number |
|---|---|---|---|
| OSI Layer | Layer 3 | Layer 2 | Layer 4 |
| Identifies | Device | Hardware | Application |
| Used by | Routers | Switches | TCP / UDP |
| Scope | Global | Local (LAN) | Application level |
| Changes? | Yes (DHCP) | No (mostly) | No |
π οΈ CCST Troubleshooting Examples
| Problem | Likely Cause |
|---|---|
| No internet, no IP | IP addressing issue |
| Devices not visible in LAN | MAC / Layer 2 issue |
| Website opens, email not working | Port issue |
IP = Where the device is
MAC = Which device it is
Port = Which app it is