Chapter 1: Network Models

89 flashcardsby Manethel
Study these flashcardsFree · spaced repetition · iPhone, Android, Mac & web

All cards

1
Explain 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.
2
Explain 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.
3
Explain 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.
4
Explain 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.
5
Explain 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.
6
Explain 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.
7
Explain 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.
8
What is the primary function of a network hub?
A hub repeats incoming signals and sends them out to all connected devices, regardless of destination.
9
What 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.
10
What 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.
11
What is a MAC address?
A unique 48-bit identifier burned into every network card, used to identify devices at the data link layer.
12
How many hexadecimal characters are in a MAC address?
12 hexadecimal characters, grouped into 6 pairs (e.g., 00-1A-2B-3C-4D-5E).
13
What does the first half of a MAC address represent?
The OEM identifier—the manufacturer’s assigned ID (e.g., Intel).
14
What does the second half of a MAC address represent?
A unique identifier for that specific NIC, assigned at the factory.
15
What command in Windows reveals your MAC address?
ipconfig /all
16
What 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.
17
What two MAC addresses are added to every frame?
The destination MAC and the source MAC.
18
Why is the source MAC address included in a frame?
So the recipient knows who sent the frame and can reply.
19
What is a CRC (Cyclic Redundancy Check) in a frame used for?
To verify data integrity and detect transmission errors.
20
Where are frames created and consumed?
Inside the network card (NIC).
21
What 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.
22
Why must every NIC have a unique MAC address?
To uniquely identify each device on the network and ensure frames reach the correct destination.
23
Why 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.
24
What 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).
25
How does a NIC handle an incoming frame?
Compares the destination MAC to its own:

Match: Processes the frame.

No match: Discards it.
26
Why 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.
27
How is a MAC address like a home address?
Ensures the "package" (frame) reaches the right "house" (NIC) on a street (LAN).
28
What’s a risk of MAC addresses?
They can be spoofed (impersonated). Mitigation: Switch port security.
29
What 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.
30
On which OSI model layer do port numbers operate?
Layer 4 – Transport Layer.
31
What is a socket in networking?
A combination of an IP address and a port number used to identify an application endpoint.
32
What transport layer protocols use port numbers?
TCP (Transmission Control Protocol) and UDP (User Datagram Protocol).
33
What is the range of well-known port numbers?
0–1023
34
What types of services use well-known ports?
Legacy and commonly used protocols like HTTP, FTP, DNS, etc.
35
What is the range of registered ports?
1024–49151
36
Who assigns registered port numbers?
IANA (Internet Assigned Numbers Authority).
37
What is the range of dynamic or ephemeral ports?
49152–65535
38
What are dynamic ports commonly used for?
As temporary source ports for outgoing connections.
39
What 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.
40
What port does FTP use for data transfer?
Port 20.
41
What port does FTP use for control commands?
Port 21.
42
What port does SSH use?
Port 22.
43
What port does Telnet use?
Port 23.
44
What port does DNS use?
Port 53.
45
What port does HTTP use?
Port 80.
46
What port does HTTPS use?
Port 443.
47
How 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.
48
What 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.
49
List 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).
50
Why 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).
51
When 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).
52
Why disable unused ports?
To reduce attack surface (open ports can be exploited).
Example: Telnet (23) is insecure—use SSH (22) instead.
53
What is a port scan?
Probing a host to find open ports (used for diagnostics or attacks).
54
What 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.
55
What are the steps of TCP’s 3-way handshake?
SYN → SYN-ACK → ACK.
56
What is the function of a TCP FIN message?
It terminates the connection between sender and receiver.
57
What type of applications typically use TCP?
Applications requiring reliable delivery: HTTP, SMTP, FTP.
58
What 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.
59
When is UDP preferred over TCP?
For time-sensitive or real-time applications: VoIP, streaming, DNS.
60
What is a datagram?
A self-contained packet sent via a connectionless network like UDP.
61
What is IP (Internet Protocol) responsible for?
Addressing and routing data packets across networks.
62
What’s the relationship between TCP and IP?
TCP ensures reliable delivery, while IP handles addressing and routing.
63
What does ICMP stand for, and what is it used for?
Internet Control Message Protocol; used for diagnostics and network tools like ping and traceroute.
64
What is IPsec used for?
Securing data over IP networks, especially in VPNs.
65
What 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.
67
What 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.
68
What 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).
69
What 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).
70
How does UDP differ from TCP?
Connectionless (no handshake).

Unreliable (no ACKsetransmissions).

Faster (low latency).
Use Cases: VoIP, DNS (53), streaming, gaming.
71
What 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.
72
What is ICMP used for?
Network diagnostics and error reporting:

ping (echo requesteply).

traceroute (path discovery).

Messages like "Destination Unreachable."
Operates at Layer 3 (Network).
73
Name 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).
74
Compare 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.
75
Match protocols to their default ports:

FTP

SSH

DNS

HTTP

HTTPS
FTP: 20/21

SSH: 22

DNS: 53

HTTP: 80

HTTPS: 443
76
When would you choose UDP over TCP?
When speed > reliability (e.g., live video, gaming, VoIP).
TCP: File transfers, web browsing.
77
What is an SA in IPsec?
A negotiated agreement between devices on:

Encryption algorithms.

Keys.

Security parameters.
Established via IKE.
78
What is a NIC (Network Interface Card)?
A hardware component that connects a computer to a network and handles the creation and processing of frames.
79
How is data physically transmitted?
As binary signals (1s/0s) via:

Electricity (copper cables).

Light (fiber optics).

Radio waves (Wi-Fi).
80
How 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).
81
Describe 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.
82
What 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).
83
How are frames like "blocks"?
Discrete units (start/end).

Fixed max size (1500 bytes = one "block").

NICs "build" (send) and "disassemble" (receive) them.
84
What is a LAN (Local Area Network)?
A network limited to a local area (like a home or office), allowing devices to share resources.
85
What kind of data is sent over networks?
Binary data — sequences of 1s and 0s, regardless of the medium (copper, fiber, wireless).
86
How is data transmitted on a network?
As discrete chunks called frames or sometimes packets (packetized data).
87
What is a frame in networking?
A block of binary data sent across the network, typically up to 1500 bytes (about 12,000 bits).
88
Where are frames created and destroyed?
Inside the network card (NIC) — created before transmission and consumed upon receipt.
89
What 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.
Study all 89 cards for free