1Explain the Physical Layer (Layer 1) of the OSI Model
Concerned with the transmission of raw bits (1s and 0s) over a physical medium (e.g., copper wire, radio waves).
Deals with specifications like cable thickness and signal frequency.
Recognizes and strips the preamble and frame check sequence (FCS) from incoming Ethernet frames.
2Explain the Data Link Layer (Layer 2) of the OSI Model
Uses MAC addresses to ensure frames reach the correct device.
Checks the destination MAC address; if it matches, strips the MAC info and passes the data up.
Retains the source MAC for response purposes.
3Explain the Network Layer (Layer 3) of the OSI Model
Manages logical addressing (IP addresses) for routing across networks (e.g., the internet).
Verifies the destination IP; if correct, strips IP info and forwards data.
Keeps the source IP for replies.
4Explain the Transport Layer (Layer 4) of the OSI Model
Assembles and disassembles data into chunks (max 1500 bytes per Ethernet frame).
Ensures data is properly sequenced (e.g., box 1 of 3, 2 of 3...).
Reassembles data on the receiving end before passing it on.
5Explain the Session Layer (Layer 5) of the OSI Model
Manages sessions or connections between systems (e.g., browser to web server).
Uses port numbers to identify which application the data belongs to (e.g., multiple browser tabs).
Saves destination and source ports for communication tracking.
6Explain the Presentation Layer (Layer 6) of the OSI Model
Ensures data is in a readable format for the application.
Handles tasks like data conversion, compression, and encryption.
Largely obsolete today as modern applications are compatible with many formats.
7Explain the Application Layer (Layer 7) of the OSI Model
Not the apps themselves, but the APIs/smart functions enabling apps to use network data.
Example: Microsoft Word’s ability to open files from a network folder.
8What is the primary function of a network hub?
A hub repeats incoming signals and sends them out to all connected devices, regardless of destination.
9What does a network hub do with incoming frames?
Rebroadcasts them to all connected ports (like a megaphone).
Key Point: Operates at Layer 1 (Physical)—no MAC address awareness.
10What issue arises when using a hub in a network?
All devices receive all frames, leading to unnecessary traffic and requiring each device to filter out irrelevant frames.
11What is a MAC address?
A unique 48-bit identifier burned into every network card, used to identify devices at the data link layer.
12How many hexadecimal characters are in a MAC address?
12 hexadecimal characters, grouped into 6 pairs (e.g., 00-1A-2B-3C-4D-5E).
13What does the first half of a MAC address represent?
The OEM identifier—the manufacturer’s assigned ID (e.g., Intel).
14What does the second half of a MAC address represent?
A unique identifier for that specific NIC, assigned at the factory.
15What command in Windows reveals your MAC address?
ipconfig /all
16What does a network card (NIC) do when it receives a frame with a MAC address not matching its own?
It ignores and discards the frame.
17What two MAC addresses are added to every frame?
The destination MAC and the source MAC.
18Why is the source MAC address included in a frame?
So the recipient knows who sent the frame and can reply.
19What is a CRC (Cyclic Redundancy Check) in a frame used for?
To verify data integrity and detect transmission errors.
20Where are frames created and consumed?
Inside the network card (NIC).
21What does a NIC do when a frame addressed to it is received?
It strips off the MAC and CRC info and sends the data up to the software.
22Why must every NIC have a unique MAC address?
To uniquely identify each device on the network and ensure frames reach the correct destination.
23Why do Ethernet frames include MAC addresses?
To ensure only the intended recipient processes the frame (others discard it).
Analogy: Like a mailing address on a letter.
24What are the 4 critical parts of an Ethernet frame?
1. Destination MAC (who it’s for).
2. Source MAC (who sent it).
3. Data (payload).
4. CRC/FCS (error check).
25How does a NIC handle an incoming frame?
Compares the destination MAC to its own:
Match: Processes the frame.
No match: Discards it.
26Why are switches better than hubs?
Switches learn MAC addresses and forward frames only to the target port, reducing traffic.
Exam Tip: Hubs = Layer 1; Switches = Layer 2.
27How is a MAC address like a home address?
Ensures the "package" (frame) reaches the right "house" (NIC) on a street (LAN).
28What’s a risk of MAC addresses?
They can be spoofed (impersonated). Mitigation: Switch port security.
29What is a port number in networking?
A 16-bit unsigned number (range: 0–65535) used to identify a specific service or application on a device.
30On which OSI model layer do port numbers operate?
Layer 4 – Transport Layer.
31What is a socket in networking?
A combination of an IP address and a port number used to identify an application endpoint.
32What transport layer protocols use port numbers?
TCP (Transmission Control Protocol) and UDP (User Datagram Protocol).
33What is the range of well-known port numbers?
0–1023
34What types of services use well-known ports?
Legacy and commonly used protocols like HTTP, FTP, DNS, etc.
35What is the range of registered ports?
1024–49151
36Who assigns registered port numbers?
IANA (Internet Assigned Numbers Authority).
37What is the range of dynamic or ephemeral ports?
49152–65535
38What are dynamic ports commonly used for?
As temporary source ports for outgoing connections.
39What is the purpose of a port number in a TCP/IP message?
To direct the message to the correct application or service on the receiving host.
40What port does FTP use for data transfer?
Port 20.
41What port does FTP use for control commands?
Port 21.
42What port does SSH use?
Port 22.
43What port does Telnet use?
Port 23.
44What port does DNS use?
Port 53.
45What port does HTTP use?
Port 80.
46What port does HTTPS use?
Port 443.
47How does the mailbox analogy relate to port numbers?
Just like mailboxes route mail to the correct apartment, port numbers route data to the correct application.
48What are the 3 port number ranges and their purposes?
Well-known (0–1023): Reserved for legacy services (e.g., HTTP/80, FTP/21).
Registered (1024–49,151): Assigned by IANA to specific apps (e.g., MySQL/3306).
Dynamic (49,152–65,535): Ephemeral ports for temporary/client-side connections.
49List 5 critical ports and their services.
20/21: FTP (data/control).
22: SSH (secure remote access).
53: DNS (domain resolution).
80: HTTP (web traffic).
443: HTTPS (secure web traffic).
50Why are ports essential for protocols?
They ensure the correct service (e.g., web server, email) processes the payload.
Example: Port 25 → SMTP (email), Port 3389 → RDP (remote desktop).
51When are dynamic ports used?
For outgoing connections (e.g., your PC uses a random port to browse the web).
Exam Tip: These are client-side ports (49,152–65,535).
52Why disable unused ports?
To reduce attack surface (open ports can be exploited).
Example: Telnet (23) is insecure—use SSH (22) instead.
53What is a port scan?
Probing a host to find open ports (used for diagnostics or attacks).
54What does TCP stand for, and what does it do?
Transmission Control Protocol; a connection-oriented protocol that ensures reliable delivery of data through error checking, acknowledgments, and retransmissions.
55What are the steps of TCP’s 3-way handshake?
SYN → SYN-ACK → ACK.
56What is the function of a TCP FIN message?
It terminates the connection between sender and receiver.
57What type of applications typically use TCP?
Applications requiring reliable delivery: HTTP, SMTP, FTP.
58What does UDP stand for, and what does it do?
User Datagram Protocol; a connectionless protocol that sends data with low latency, without error checking or retransmission.
59When is UDP preferred over TCP?
For time-sensitive or real-time applications: VoIP, streaming, DNS.
60What is a datagram?
A self-contained packet sent via a connectionless network like UDP.
61What is IP (Internet Protocol) responsible for?
Addressing and routing data packets across networks.
62What’s the relationship between TCP and IP?
TCP ensures reliable delivery, while IP handles addressing and routing.
63What does ICMP stand for, and what is it used for?
Internet Control Message Protocol; used for diagnostics and network tools like ping and traceroute.
64What is IPsec used for?
Securing data over IP networks, especially in VPNs.
65What are the primary components of IPsec?
AH (Authentication Header): Authenticates packets, no payload encryption.
ESP (Encapsulating Security Payload): Encrypts and authenticates payloads.
IKE (Internet Key Exchange): Manages encryption keys and security associations.
66 What is a Security Association (SA) in IPsec?
A negotiated agreement between two devices on encryption/authentication settings.
67What are the two modes of IPsec?
Tunnel Mode: Encrypts entire IP packet; adds a new IP header. Used for gateway-to-gateway communication.
Transport Mode: Encrypts only the payload; keeps original IP header. Used for host-to-host communication.
68What does IKE (Internet Key Exchange) do in IPsec?
Sets up and maintains encryption keys and SAs through ISAKMP (Internet Security Association and Key Management Protocol).
69What type of protocol is TCP, and what are its key characteristics?
Connection-oriented (establishes connection first).
Reliable (uses ACKs/NACKs and retransmits lost packets).
Sequentially numbers packets for reassembly.
Slower due to overhead (e.g., 3-way handshake).
Use Cases: HTTP (80), FTP (20/21), SMTP (25).
70How does UDP differ from TCP?
Connectionless (no handshake).
Unreliable (no ACKsetransmissions).
Faster (low latency).
Use Cases: VoIP, DNS (53), streaming, gaming.
71What is the primary function of IP?
Handles logical addressing (IP addresses) and routing packets across networks.
Works with TCP/UDP:
TCP = reliable delivery.
IP = "street address" for routing.
72What is ICMP used for?
Network diagnostics and error reporting:
ping (echo requesteply).
traceroute (path discovery).
Messages like "Destination Unreachable."
Operates at Layer 3 (Network).
73Name the 3 main IPsec protocols and their roles.
AH (Authentication Header): Integrity checks (no encryption).
ESP (Encapsulating Security Payload): Encrypts payload + authenticates.
IKE (Internet Key Exchange): Negotiates encryption keys/Security Associations (SAs).
74Compare IPsec Tunnel Mode vs. Transport Mode.
Tunnel Mode: Encrypts entire packet (+ new header). Used for gateway-to-gateway (e.g., site-to-site VPN).
Transport Mode: Encrypts only payload. Used for host-to-host.
75Match protocols to their default ports:
FTP
SSH
DNS
HTTP
HTTPS
FTP: 20/21
SSH: 22
DNS: 53
HTTP: 80
HTTPS: 443
76When would you choose UDP over TCP?
When speed > reliability (e.g., live video, gaming, VoIP).
TCP: File transfers, web browsing.
77What is an SA in IPsec?
A negotiated agreement between devices on:
Encryption algorithms.
Keys.
Security parameters.
Established via IKE.
78What is a NIC (Network Interface Card)?
A hardware component that connects a computer to a network and handles the creation and processing of frames.
79How is data physically transmitted?
As binary signals (1s/0s) via:
Electricity (copper cables).
Light (fiber optics).
Radio waves (Wi-Fi).
80How is network data organized?
Not continuous streams—sent in discrete chunks called frames.
Frames have:
Start/end markers.
Max size: 1500 bytes (~10,000 bits).
81Describe how frames are created and processed.
Created by NICs from app data (e.g., Word doc).
Transmitted as binary signals.
Received by NICs:
Data extracted → passed to software.
Frame discarded after processing.
82What does a network hub do?
Rebroadcasts frames to all ports (no intelligence).
Problem: Inefficient (all devices receive every frame).
Modern Replacement: Switches (forward frames selectively).
83How are frames like "blocks"?
Discrete units (start/end).
Fixed max size (1500 bytes = one "block").
NICs "build" (send) and "disassemble" (receive) them.
84What is a LAN (Local Area Network)?
A network limited to a local area (like a home or office), allowing devices to share resources.
85What kind of data is sent over networks?
Binary data — sequences of 1s and 0s, regardless of the medium (copper, fiber, wireless).
86How is data transmitted on a network?
As discrete chunks called frames or sometimes packets (packetized data).
87What is a frame in networking?
A block of binary data sent across the network, typically up to 1500 bytes (about 12,000 bits).
88Where are frames created and destroyed?
Inside the network card (NIC) — created before transmission and consumed upon receipt.
89What happens when a frame reaches the receiving NIC?
The NIC extracts the data and passes it up to the appropriate software, then discards the frame.