Skip to the content.

đź”— Link to the Room

🏷️ Table of Contents

  1. The OSI Model: An Overview
  2. Encapsulation
    2.1 Encapsulation Process (Data Naming)
    2.2 De-encapsulation
  3. The TCP/IP Model
    3.1 TCP/IP vs OSI Model
    3.2 TCP/IP as a Protocol Suite
    3.3 TCP and the Three-Way Handshake
    3.4 History
  4. Networking Tools: Ping
    4.1 How Ping Works
  5. Networking Tools: Traceroute
    5.1 What Traceroute Does
    5.2 Protocol Differences
    5.3 Ping vs Traceroute - Side-by-Side Comparison
  6. Networking Tools: WHOIS
    7.1 Installation Notes (Linux)
  7. Networking Tools: Dig
    8.1 What Is DNS?
    8.2 How DNS Resolution Works
    8.3 Dig: Manual DNS Queries
    8.4 Understanding Dig Output

📚 Study Notes

The OSI Model: An Overview

Layer Name
7 Application
6 Presentation
5 Session
4 Transport
3 Network
2 Data Link
1 Physical

Layer 7 – Application

Layer 6 – Presentation

Layer 5 – Session

Layer 4 – Transport

Layer 3 – Network

Layer 1 – Physical


❓Which layer would choose to send data over TCP or UDP?4

❓Which layer checks received information to make sure that it hasn't been corrupted?2

❓In which layer would data be formatted in preparation for transmission?2

❓Which layer transmits and receives data?1

❓Which layer encrypts, compress, or otherwise transforms the initial data to give it a standardised format?6

❓Which layer tracks communications between the host and receiving computers?5

❓Which layer accepts communication request from applications?7

❓Which layer handles logical addressing?3

❓When sending data over TCP, what would you call the "bite-sized" pieces of data?Segments

âť“[Research] Which layer would the FTP protocol communicate with?7

❓Which transport layer protocol would be best suited to transmit a live video?UDP

Encapsulation

image

Encapsulation Process (Data Naming)

OSI Layer Name of Data
Layers 7–5 (Application, Presentation, Session) Data
Layer 4 (Transport) Segment (TCP) / Datagram (UDP)
Layer 3 (Network) Packet
Layer 2 (Data Link) Frame
Layer 1 (Physical) Bits

By the time the data is transmitted across the network, the frame has been broken down into bits.

De-encapsulation


❓How would you refer to data at layer 2 of the encapsulation process (with the OSI model)?Frames

❓How would you refer to data at layer 4 of the encapsulation process (with the OSI model), if the UDP protocol has been selected?Datagrams

❓What process would a computer perform on a received message?De-encapsulation

❓Which is the only layer of the OSI model to add a trailer during encapsulation?Data Link

❓Does encapsulation provide an extra layer of security (Aye/Nay)?Aye

The TCP/IP Model

Layer Name
4 Application
3 Transport
2 Internet
1 Network Interface

[!NOTE] Some modern sources describe TCP/IP as a five-layer model, splitting the Network Interface layer into Data Link and Physical layers (similar to the OSI model).
While this interpretation is widely accepted, the official definition remains the four-layer model described in RFC 1122.
Both versions are considered valid.

TCP/IP vs OSI Model

TCP/IP as a Protocol Suite

TCP and the Three-Way Handshake

image

History


❓Which model was introduced first, OSI or TCP/IP?TCP/IP

❓Which layer of the TCP/IP model covers the functionality of the Transport layer of the OSI model (Full Name)?Transport

❓Which layer of the TCP/IP model covers the functionality of the Session layer of the OSI model (Full Name)?Application

❓The Network Interface layer of the TCP/IP model covers the functionality of two layers in the OSI model. These layers are Data Link, and? ...(Full Name)?Physical

❓Which layer of TCP/IP model handles the functionality of OSI network layer?Internet

❓What kind of protocol is TCP?Connection-based

❓What is SYN short for?Synchronise

❓What is the second step of the three way handshake?SYN/ACK

❓What is the short name for "Acknowledgement" segment in the three-way handshake?ACK

Networking Tools: Ping

How Ping Works

image


❓What command would you use to ping the bbc.co.uk website?ping bbc.co.uk

❓Ping muirlandoracle.co.uk What is the IPv4 address?217.160.0.152

❓What switch lets you change the interval of sent ping requests?-i

❓What switch would allow you to restrict requests to IPv4?-4

❓What switch would give you a more verbose output?-v

Networking Tools: Traceroute

What Traceroute Does

Protocol Differences

Ping vs Traceroute - Side-by-Side Comparison

Feature ping traceroute
Purpose Checks if a target is reachable Shows the path taken to reach a target
Main Question Answered “Can I reach this host?” “How do I get to this host?”
Protocol Used ICMP ICMP (Windows) / UDP (Linux & Unix by default)
OSI Layer Network layer Network layer
TCP/IP Layer Internet layer Internet layer
Output Success/failure, latency, packet loss List of intermediate hops with response times
Shows IP Address Yes (resolves domain to IP) Yes (for each hop)
Shows Network Path No Yes
Common Use Case Basic connectivity testing Diagnosing routing and latency issues
Typical First Step Yes Usually after ping succeeds
Availability Available on all major OS Available on all major OS
Speed & Simplicity Very fast and simple More detailed, slightly slower

image


❓What switch would you use to specify an interface when using Traceroute?-i

❓What switch would you use if you wanted to use TCP SYN requests when tracing the route?-T

âť“[Lateral Thinking] Which layer of the TCP/IP model will traceroute run on by default (Windows)?Internet

✅Solution: On Windows tracert uses ICMP which is the same protocol used by ping. ICMP operates at Network layer in the OSI model and Internet layer in the TCP/IP model. —

Networking Tools: WHOIS

Domain Names: The Human-Friendly Internet

[!NOTE] In Europe, personal registration details are typically redacted due to privacy regulations. In other regions, WHOIS results may reveal more information.

Installation Notes (Linux)

image


❓What is the registrant postal code for facebook.com94025

❓When was the facebook.com domain first registered (Format: DD/MM/YYYY)29/03/1997

❓Which city is the registrant based in?Redmont

âť“[OSINT] What is the name of the golf course that is near the registrant address for microsoft.com?Bellevue Golf Course

❓What is the registered Tech Email for microsoft.com?msnhst@microsoft.com

Networking Tools: Dig

What Is DNS?

How DNS Resolution Works

  1. Hosts File
    • The computer first checks its local hosts file
    • This file contains manual IP = domain mappings
    • It is an older system but still takes highest priority
    • Rarely used in modern environments
  2. Local DNS Cache
    • If no hosts file entry exists, the system checks its local DNS cache
    • If the domain was resolved recently, the cached IP is used
    • If not found, the process continues
  3. Recursive DNS Server
    • The computer sends a query to a recursive DNS server
    • These are usually provided by your ISP or public providers like Google DNS or OpenDNS
    • The address of the recursive server is stored in your router or system
    • Recursive servers also maintain their own cache
    • If the recursive server does not have the answer cached, it continues the lookup process.
  4. Root Name Servers
    • Root servers direct queries to the correct Top-Level Domain (TLD) servers
    • Historically there were 13 root server IP addresses
    • Today there are many physical servers using those same addresses via load balancing
    • The client is routed to the nearest available root server
  5. Top-Level Domain (TLD) Servers
    • TLD servers manage domain extensions such as .com, .org, .co.uk
    • The root server forwards the query to the appropriate TLD server
    • TLD servers know which Authoritative Name Servers hold the domain’s records
  6. Authoritative Name Servers
    • These servers store the actual DNS records for domains
    • Every domain has its DNS records stored on an authoritative server
    • This server responds with the final IP address for the domain
    • Once this response is returned, your computer can connect to the website.

Dig: Manual DNS Queries

image

Understanding Dig Output

image


❓What is DNS short for?Domain Name System

❓What is the first type of DNS server your computer would query when you search for a domain?Recursive

❓What type of DNS server contains records specific to domain extensions (i.e. .com, .co.uk*, etc)*? Use the long version of the name.Top-Level Domain

❓Where is the very first place your computer would look to find the IP address of a domain?Hosts File

âť“[Research] Google runs two public DNS servers. One of them can be queried with the IP 8.8.8.8, what is the IP address of the other one?8.8.4.4

❓If a DNS query has a TTL of 24 hours, what number would the dig query show?86400