Provide structure and categorization for networking protocols and standards
Define rules for how network devices and software should work
Enable interoperability between different vendors and systems
Conceptual framework created by ISO
Divides network functions into 7 distinct layers
Each layer serves specific functions and communicates with adjacent layers
Practical model used in real-world networks
Developed by US Department of Defense (DARPA)
Fewer layers than OSI but serves same purpose
Layer 7 - Application
Closest to end user
Interacts with software applications
Protocols: HTTP, HTTPS, FTP, SMTP, DNS
Functions: Identifying communication partners, synchronizing communication
Who uses it: Application developers
Layer 6 - Presentation
Translates data between application and network formats
Functions: Encryption/decryption, compression, format translation
Example: Converting JPEG to network-transmittable format
Layer 5 - Session
Controls dialogues (sessions) between hosts
Functions: Establishes, manages, and terminates connections
Example: Managing connection between web browser and YouTube server
Layer 4 - Transport
PDU: Segment
Segments and reassembles data
Provides host-to-host communication
Protocols: TCP, UDP
Breaks large data into smaller segments
Header added: L4 header
Layer 3 - Network
PDU: Packet
Provides connectivity between different networks
Logical addressing: IP addresses
Path selection between source and destination
Devices: Routers operate here
Header added: L3 header (added to segment)
Layer 2 - Data Link
PDU: Frame
Provides node-to-node connectivity
Defines data formatting for physical transmission
Detects and possibly corrects Physical Layer errors
Physical addressing: MAC addresses (separate from Layer 3)
Devices: Switches operate here
Headers/Trailers added: L2 header + L2 trailer
Layer 1 - Physical
PDU: Bit
Defines physical characteristics of transmission medium
Specifications: Voltage levels, maximum distances, connectors, cable specs
Converts digital bits to electrical or radio signals
Example: Cable types, pin layouts, RJ-45 connectors
Term
Definition
Encapsulation
Process of adding headers (and trailers) to data as it moves DOWN the OSI layers
De-encapsulation
Process of removing headers (and trailers) as data moves UP the OSI layers
PDU (Protocol Data Unit)
The specific name for data at each layer of the OSI model
Adjacent-layer interaction
Communication between different layers on the SAME device
Same-layer interaction
Communication between the same layer on DIFFERENT devices
Segment
Layer 4 PDU (Data + L4 header)
Packet
Layer 3 PDU (Segment + L3 header)
Frame
Layer 2 PDU (Packet + L2 header + L2 trailer)
Bit
Layer 1 PDU (electrical/radio signals)
Host-to-host communication
End-to-end communication provided by Transport Layer
Node-to-node communication
Direct link communication provided by Data Link Layer
Physical (Layer 1)
Data Link (Layer 2)
Network (Layer 3)
Transport (Layer 4)
Session (Layer 5)
Presentation (Layer 6)
Application (Layer 7)
Link (equivalent to OSI Layers 1+2)
Internet (equivalent to OSI Layer 3)
Transport (equivalent to OSI Layer 4)
Application (equivalent to OSI Layers 5+6+7)
Layer 7: HTTP, HTTPS, FTP, SMTP, DNS, DHCP
Layer 4: TCP, UDP
Layer 3: IP, ICMP, OSPF, EIGRP
Layer 2: Ethernet, PPP, Frame Relay
Layer 1: Hubs, Repeaters, Cables
Layer 2: Switches, Bridges
Layer 3: Routers, Layer 3 Switches
Layer 7: Firewalls (application-layer), Load Balancers
❌ Wrong: Thinking a web browser talking to a web server is adjacent-layer interaction
✅ Correct: This is same-layer interaction (both at Layer 7)
Tip: Adjacent = different layers SAME device; Same-layer = same layer DIFFERENT devices
❌ Wrong: Counting headers incorrectly for PDU identification
✅ Correct:
1 header (L4) = Segment
2 headers (L4+L3) = Packet
3 headers + 1 trailer (L4+L3+L2+trailer) = Frame
Tip: Count the layers involved in encapsulation
❌ Wrong: Thinking TCP/IP Link layer = only OSI Data Link layer
✅ Correct: TCP/IP Link = OSI Data Link + Physical (both layers)
Tip: TCP/IP combines the bottom two OSI layers
❌ Wrong: Thinking Layer 3 provides host-to-host communication
✅ Correct: Layer 4 (Transport) provides host-to-host; Layer 3 provides network-to-network
Tip: Layer 3 = logical addressing and routing; Layer 4 = reliable delivery
❌ Wrong: Thinking network engineers work with all 7 layers equally
✅ Correct: Network engineers focus on Layers 1-4 (especially 2-3)
Tip: Top 3 layers (5-7) are for application developers
❌ Wrong: Confusing encapsulation with de-encapsulation
Encapsulation = Adding headers going DOWN (Layer 7→1)
De-encapsulation = Removing headers going UP (Layer 1→7)
Top-Down (7→1):
"All People Seem To Need Data Processing"
"Please Do Not Teach Students Pointless Acronyms" (reverse)
Bottom-Up (1→7):
"Please Do Not Throw Sausage Pizza Away"
Layer 7 (Application) → User interface, HTTP/HTTPS
Layer 6 (Presentation) → Data translation, encryption
Layer 5 (Session) → Establishes/manages sessions
Layer 4 (Transport) → Segments data, TCP/UDP, HOST-TO-HOST
Layer 3 (Network) → IP addressing, routing, ROUTERS
Layer 2 (Data Link) → MAC addressing, SWITCHES, frames
Layer 1 (Physical) → Cables, signals, bits
"Some People Fear Birthdays"
Segment (Layer 4)
Packet (Layer 3)
Frame (Layer 2)
Bits (Layer 1)
Only Layer 2 adds a TRAILER (all others only add headers)
Trailer is needed for error detection at physical layer
"Really Sounds Heavy" = Routers (L3), Switches (L2), Hubs (L1)
YOU → Web Browser → YouTube Server
Layer 7: Your browser (HTTP) ←same-layer→ YouTube server (HTTP)
Layer 4: Your computer's TCP ←same-layer→ YouTube's TCP
Layer 3: Your IP address ←routing→ YouTube's IP address
Layer 2: Your MAC ←node-to-node→ Router MAC → ... → YouTube MAC
Layer 1: Electrical signals on your cable
1. Application creates DATA
2. Transport adds L4 header → SEGMENT
3. Network adds L3 header → PACKET
4. Data Link adds L2 header + L2 trailer → FRAME
5. Physical converts to BITS (electrical/radio signals)
Network Engineer focuses on:
- Layer 4: TCP/UDP port configurations
- Layer 3: IP addressing, routing protocols (OSPF, EIGRP)
- Layer 2: VLAN configuration, switch settings
- Layer 1: Cable types, physical connections
Application Developer focuses on:
- Layer 7: HTTP, APIs, user interfaces
- Layer 6: Data formatting, encryption
- Layer 5: Session management
What is a networking model?
A set of rules that categorizes and provides structure for networking protocols and standards, defining how network devices and software should work.
How many layers does the OSI model have?
7 layers (Application, Presentation, Session, Transport, Network, Data Link, Physical)
How many layers does the TCP/IP model have?
4 layers (Application, Transport, Internet, Link)
What does OSI stand for?
Open Systems Interconnection (created by ISO - International Organization for Standardization)
What does TCP/IP stand for and who developed it?
Transmission Control Protocol/Internet Protocol, developed by US Department of Defense through DARPA
What is the primary function of Layer 7 (Application)?
Closest to end user; interacts with software applications; identifies communication partners and synchronizes communication
Name 3 Layer 7 protocols
HTTP, HTTPS, FTP, SMTP, DNS (any 3)
Do network engineers typically work with Layer 7?
No, application developers work with Layer 7. Network engineers focus on Layers 1-4.
What is the primary function of Layer 6 (Presentation)?
Translates data between application and network formats; handles encryption/decryption and data compression
Give an example of Layer 6 functionality
Encrypting data as it is sent and decrypting data as it is received; translating between different application formats (e.g., JPEG, ASCII)
What is the primary function of Layer 5 (Session)?
Controls dialogues (sessions) between communicating hosts; establishes, manages, and terminates connections
Give a practical example of Layer 5 functionality
Managing the connection between your web browser and a YouTube server; maintaining the session while you watch videos
What is the Layer 4 PDU called?
What type of communication does Layer 4 provide?
Host-to-host (end-to-end) communication
What are the two main Layer 4 protocols?
TCP (Transmission Control Protocol) and UDP (User Datagram Protocol)
What does Layer 4 add to the data during encapsulation?
Layer 4 header (creating a segment from the data)
What is the primary function of Layer 4?
Segments and reassembles data for communications between end hosts; breaks large data into smaller segments
What is the Layer 3 PDU called?
What type of addressing does Layer 3 use?
Logical addressing (IP addresses)
What devices operate at Layer 3?
Routers (and Layer 3 switches)
What is the primary function of Layer 3?
Provides connectivity between end hosts on different networks; provides logical addressing (IP); provides path selection (routing)
What does Layer 3 add during encapsulation?
Layer 3 header (added to the segment to create a packet)
What is the Layer 2 PDU called?
What type of addressing does Layer 2 use?
Physical addressing (MAC addresses) - separate from Layer 3 addressing
What devices operate at Layer 2?
Switches and bridges
What type of communication does Layer 2 provide?
Node-to-node connectivity (e.g., PC to switch, switch to router, router to router)
What is unique about Layer 2 encapsulation?
It is the ONLY layer that adds both a header (L2 header) AND a trailer (L2 trailer)
What are the main functions of Layer 2?
Defines how data is formatted for physical transmission; detects and possibly corrects Physical Layer errors; provides node-to-node connectivity
What is the Layer 1 PDU called?
What devices operate at Layer 1?
Hubs, repeaters, cables, physical connectors
What is the primary function of Layer 1?
Defines physical characteristics of transmission medium (voltage levels, distances, connectors); converts digital bits into electrical or radio signals
Give examples of Layer 1 specifications
Cable specifications, voltage levels, maximum transmission distances, physical connectors (RJ-45), pin layouts
What is a PDU?
Protocol Data Unit - the specific name for data at each layer of the OSI model
List all OSI PDUs from Layer 7 to Layer 1
Data (L7-L5) → Segment (L4) → Packet (L3) → Frame (L2) → Bit (L1)
If data has 1 header (L4), what PDU is it?
Segment (Layer 4 PDU)
If data has 2 headers (L4 + L3), what PDU is it?
Packet (Layer 3 PDU)
If data has 3 headers and 1 trailer (L4 + L3 + L2 + trailer), what PDU is it?
Frame (Layer 2 PDU)
What is encapsulation?
The process of adding headers (and trailers) to data as it moves DOWN the OSI layers (Layer 7 → Layer 1)
What is de-encapsulation?
The process of removing headers (and trailers) as data moves UP the OSI layers (Layer 1 → Layer 7)
Describe the complete encapsulation process
Data → +L4 header = Segment → +L3 header = Packet → +L2 header & trailer = Frame → converted to Bits
When sending data, do you encapsulate or de-encapsulate?
Encapsulate (adding headers as data goes down the layers)
When receiving data, do you encapsulate or de-encapsulate?
De-encapsulate (removing headers as data goes up the layers)
What is adjacent-layer interaction?
Communication between different layers of the OSI model on the SAME device
What is same-layer interaction?
Communication between the same layer on DIFFERENT devices (e.g., Layer 7 on your PC talking to Layer 7 on a web server)
Is a web browser communicating with a web server an example of adjacent-layer or same-layer interaction?
Same-layer interaction (both are operating at Layer 7 using HTTP)
When Layer 4 on your computer passes data to Layer 3 on your computer, what type of interaction is this?
Adjacent-layer interaction (different layers on the same device)
What are the 4 layers of the TCP/IP model (bottom to top)?
1. Link, 2. Internet, 3. Transport, 4. Application
Which OSI layers equal the TCP/IP Link layer?
OSI Data Link (Layer 2) + Physical (Layer 1)
Which OSI layer equals the TCP/IP Internet layer?
OSI Network layer (Layer 3)
Which OSI layer equals the TCP/IP Transport layer?
OSI Transport layer (Layer 4)
Which OSI layers equal the TCP/IP Application layer?
OSI Application (Layer 7) + Presentation (Layer 6) + Session (Layer 5)
Which model is actually used in modern networks - OSI or TCP/IP?
TCP/IP is actually used, but the OSI model influences how network engineers think and talk about networks
Which layers do network engineers primarily focus on?
Layers 1-4 (Physical, Data Link, Network, Transport) - especially Layers 2 and 3
Which layers do application developers primarily work with?
Layers 5-7 (Session, Presentation, Application) - the upper layers
At which layer do routers operate?
Layer 3 (Network layer)
At which layer do switches operate?
Layer 2 (Data Link layer)
Which layer provides logical addressing with IP addresses?
Which layer provides physical addressing with MAC addresses?
Which layer is responsible for path selection/routing?
Which layer segments and reassembles data?
Layer 4 (Transport layer)
Recite the OSI mnemonic from Layer 7 to Layer 1
"All People Seem To Need Data Processing" (Application, Presentation, Session, Transport, Network, Data Link, Physical)
Recite the OSI mnemonic from Layer 1 to Layer 7
"Please Do Not Throw Sausage Pizza Away" (Physical, Data Link, Network, Transport, Session, Presentation, Application)
What is the PDU mnemonic?
"Some People Fear Birthdays" - Segment, Packet, Frame, Bits
HTTP data has been encapsulated with L4, L3, and L2 headers plus an L2 trailer. What is this PDU called and at what layer?
Frame (Layer 2 PDU) - it has 3 headers and 1 trailer
A router receives a frame, removes the L2 header and trailer, and examines the destination IP address. At what layer is it operating?
Layer 3 (Network layer) - routers operate at Layer 3 and use IP addresses
Data needs to be encrypted before being sent over the network. Which layer handles this?
Layer 6 (Presentation layer) - handles encryption/decryption
TCP breaks a large file into smaller pieces for transmission. At what layer does this occur?
Layer 4 (Transport layer) - segments and reassembles data
A switch forwards a frame based on the destination MAC address. At what layer is it operating?
Layer 2 (Data Link layer) - switches operate at Layer 2 and use MAC addresses
Your computer converts digital data into electrical signals to send over an Ethernet cable. What layer is this?
Layer 1 (Physical layer) - converts bits to electrical/radio signals
Which layer establishes and terminates the connection between your web browser and a remote web server?
Layer 5 (Session layer) - manages connections/sessions
What is the difference between host-to-host and node-to-node communication?
Host-to-host (Layer 4) = end-to-end between final devices; Node-to-node (Layer 2) = direct link between adjacent devices
What is the difference between logical and physical addressing?
Logical addressing (Layer 3) = IP addresses, used for routing between networks; Physical addressing (Layer 2) = MAC addresses, used for local network communication
Why does Layer 2 add both a header AND a trailer?
The trailer is used for error detection (e.g., Frame Check Sequence/FCS) to verify data integrity at the physical layer
What's the difference between a segment and a packet?
Segment = Layer 4 PDU (data + L4 header); Packet = Layer 3 PDU (segment + L3 header)
Can a Layer 2 switch read IP addresses?
No, Layer 2 switches operate at the Data Link layer and only read MAC addresses. Only Layer 3 devices (routers) read IP addresses.
EXAM TIP: If asked about communication between a browser and web server, what type of interaction is it?
Same-layer interaction (both at Layer 7), NOT adjacent-layer interaction
EXAM TIP: How do you identify a PDU by counting headers?
1 header = Segment; 2 headers = Packet; 3 headers + 1 trailer = Frame; Bits = Layer 1
EXAM TIP: Which TCP/IP layer equals TWO OSI layers?
TCP/IP Link layer = OSI Data Link + OSI Physical (both bottom layers)
EXAM TIP: Which layer provides host-to-host communication - Layer 3 or Layer 4?
Layer 4 (Transport) provides host-to-host; Layer 3 provides network-to-network connectivity
EXAM TIP: Do network engineers work with Layers 5-7?
No, network engineers focus on Layers 1-4; application developers work with Layers 5-7
Which protocols operate at Layer 4?
TCP and UDP
Which protocols operate at Layer 3?
IP, ICMP, routing protocols (OSPF, EIGRP)
Which protocols operate at Layer 7?
HTTP, HTTPS, FTP, SMTP, DNS, DHCP, SSH, Telnet
What protocol is used when you visit https://www.cisco.com?
HTTPS (HTTP Secure) - operates at Layer 7
Why do we need both OSI and TCP/IP models if TCP/IP is what's actually used?
The OSI model provides a more detailed conceptual framework that helps network engineers understand and troubleshoot networks, even though TCP/IP is the practical implementation
When data travels from your computer to a web server, does it go up or down the OSI layers on your computer?
DOWN the layers (7→1) during encapsulation, then sent across the network
When data arrives at a web server, does it go up or down the OSI layers?
UP the layers (1→7) during de-encapsulation
What happens to headers and trailers during de-encapsulation?
They are removed/stripped off as data moves up the layers (Layer 1→7)
Why does the Transport layer break data into segments?
Smaller segments are easier to send over the network and are less likely to cause transmission problems if errors occur
What is the purpose of the Layer 2 trailer?
Error detection - contains Frame Check Sequence (FCS) to verify data wasn't corrupted during transmission
If you can't access a website, which layers would a network engineer check?
Start with Layer 1 (cables/connections), then Layer 2 (switch issues), Layer 3 (routing/IP), and Layer 4 (TCP/UDP)
If a router is not forwarding packets correctly, which layer is likely the problem?
Layer 3 (Network layer) - routers operate at Layer 3 and handle packet forwarding
If you're experiencing physical connectivity issues with cables, which layer is the problem?
Layer 1 (Physical layer) - handles physical medium and connections
Quick Review - Name all 7 OSI layers in order (top to bottom)
7-Application, 6-Presentation, 5-Session, 4-Transport, 3-Network, 2-Data Link, 1-Physical
Quick Review - What are the PDUs for Layers 4, 3, 2, and 1?
Layer 4 = Segment, Layer 3 = Packet, Layer 2 = Frame, Layer 1 = Bit
Quick Review - Which layer: Routers, Switches, Hubs?
Routers = Layer 3, Switches = Layer 2, Hubs = Layer 1
Quick Review - Which layer uses IP addresses? Which uses MAC addresses?
IP addresses = Layer 3 (Network); MAC addresses = Layer 2 (Data Link)
Quick Review - What's the difference between encapsulation and de-encapsulation?
Encapsulation = adding headers going DOWN (L7→L1); De-encapsulation = removing headers going UP (L1→L7)
Quick Review - Which layers do network engineers focus on?
Layers 1-4 (Physical, Data Link, Network, Transport)
Quick Review - Map TCP/IP to OSI layers
TCP/IP Link = OSI 1+2; TCP/IP Internet = OSI 3; TCP/IP Transport = OSI 4; TCP/IP Application = OSI 5+6+7
Protocol: Set of rules defining how data should be communicated between devices
Standard: Agreed-upon specification describing how a protocol/technology should work
Key Difference: Standards are vendor-neutral; proprietary protocols are vendor-specific
ARPANET (1969): First packet-switching network
TCP/IP (1974-1983): Became dominant due to open standards
Key Date: January 1, 1983 - ARPANET fully switched to TCP/IP
IEEE: Local area network technologies (Ethernet 802.3, Wi-Fi 802.11)
IETF: Internet protocols, publishes RFCs (Requests for Comments)
Exam Importance
Adding headers/trailers as data moves DOWN the stack
⭐⭐⭐⭐⭐
Decapsulation
Removing headers/trailers as data moves UP the stack
Data at each layer with appropriate headers
How layers service each other vertically
⭐⭐⭐⭐
How same layers communicate horizontally
Hop
One step in the path (router-to-router or host-to-router)
Function: Where applications meet the network
OSI Equivalent: Layer 7
Protocols to Memorize:
HTTP/HTTPS (Web browsing)
FTP (File transfer)
SMTP, POP3, IMAP (Email)
DNS (Name resolution)
TFTP (Trivial File Transfer)
Function: End-to-end communication between processes
Uses: Port numbers
Key Protocols:
TCP: Connection-oriented, reliable
UDP: Connectionless, faster, less overhead
PDU Name:
TCP = Segment
UDP = Datagram
Function: End-to-end delivery across networks (routing)
Uses: IP addresses
IPv4
IPv6
ICMP
PDU Name: Packet
Devices: Routers
Function: Hop-to-hop delivery on local network
Uses: MAC addresses
Ethernet (IEEE 802.3)
Wi-Fi (IEEE 802.11)
PDU Name: Frame
Devices: Switches
Unique Feature: Only layer with both header AND trailer
Function: Transmit bits as signals
Types: Electrical, optical, radio signals
Components: Cables, connectors, NICs
PDU Name: Bits
Item
Number/Code
Context
Ethernet
802.3
IEEE standard
Wi-Fi
802.11
HTTP
Port 80
Web traffic
HTTPS
Port 443
Secure web
FTP
Port 21
File transfer
ARPANET to TCP/IP
Jan 1, 1983
Historical date
OSI Model
7 layers
Reference model
TCP/IP Model
4-5 layers
Practical model
❌ WRONG: Calling everything a "packet" ✅ CORRECT:
Layer 4 = Segment (TCP) or Datagram (UDP)
Layer 3 = Packet
Layer 2 = Frame
Layer 1 = Bits
❌ WRONG: Thinking Application is always Layer 5 ✅ CORRECT: In OSI terms, Application = Layer 7
❌ WRONG: Thinking encapsulation happens going UP ✅ CORRECT: Encapsulation = DOWN the stack, Decapsulation = UP the stack
❌ WRONG: Switches create new hops ✅ CORRECT: Switches extend the local network; routers create hops
❌ WRONG: All layers have trailers ✅ CORRECT: Only Layer 2 has a trailer (for error checking)
❌ WRONG: Both create segments ✅ CORRECT: TCP = Segment, UDP = Datagram
What is a protocol?
A set of rules defining how data should be communicated between devices over a network.
What is a standard?
An agreed-upon specification that describes how a protocol or technology should work (vendor-neutral).
What does TCP/IP stand for?
Transmission Control Protocol/Internet Protocol
The process of adding headers (and trailers) to data as it moves DOWN the protocol stack.
What is decapsulation?
The process of removing headers (and trailers) as data moves UP the protocol stack.
What are the 5 layers of the TCP/IP model (bottom to top)?
Physical
Data Link/Local Network
Network/Internet
Transport
Application
What does Layer 1 (Physical) do?
Transmits bits as electrical, optical, or radio signals over the physical medium.
What does Layer 2 (Data Link) do?
Provides hop-to-hop delivery on a local network using MAC addresses.
What does Layer 3 (Network/Internet) do?
Provides end-to-end delivery between hosts across networks using IP addresses and routers.
What does Layer 4 (Transport) do?
Provides end-to-end communication between application processes using port numbers.
What does Layer 5 (Application) do?
Where network communications meet applications; defines how applications format, send, and interpret data.
What is the PDU name at Layer 2?
What is the PDU name at Layer 3?
What is the PDU name at Layer 4 for TCP?
What is the PDU name at Layer 4 for UDP?
Datagram
What is the PDU name at Layer 1?
Bits
Which layer adds BOTH a header and a trailer?
Layer 2 (Data Link) - trailer is for error checking
What type of address is used at Layer 2?
MAC (Media Access Control) address
What type of address is used at Layer 3?
IP address
What type of address is used at Layer 4?
Port number
What device operates primarily at Layer 2?
Switch
What device operates primarily at Layer 3?
Router
What IEEE standard defines Ethernet?
IEEE 802.3
What IEEE standard defines Wi-Fi?
IEEE 802.11
Name the two main Transport Layer protocols.
What organization publishes RFCs?
IETF (Internet Engineering Task Force)
What does RFC stand for?
Request for Comments
When did ARPANET fully switch to TCP/IP?
January 1, 1983
Which organization developed the OSI model?
ISO (International Organization for Standardization)
What are the OSI layers (bottom to top)?
Data Link
Network
Session
Presentation
Why is the TCP/IP Application layer often called Layer 7?
Because it corresponds to the OSI model's Layer 7 (Application), which is the common reference model.
When each layer provides a service to the layer above it and is serviced by the layer below it (vertical interaction).
When the same layer on different devices communicates with each other (horizontal interaction).
What is a "hop" in networking?
One step along the path between two devices (from one router/host to the next router/host). Switches don't count as hops.
What is the payload in a PDU?
The contents encapsulated by that layer's header/trailer (everything "inside" that layer).
Do routers look at Layer 4 information?
No, routers normally operate based on Layer 3 (IP) information only.
What port does HTTP use
What protocol is used for secure web browsing?
HTTPS (uses port 443)
What port does FTP use?
Name three email protocols.
SMTP (sending), POP3 (receiving), IMAP (receiving)
What layer do HTTP, FTP, and SMTP operate at?
Application Layer (Layer 5/7)
What's the difference between TCP and UDP?
TCP is connection-oriented and reliable; UDP is connectionless, simpler, and faster with less overhead.
What's the difference between a protocol and a standard?
A protocol is the actual set of rules; a standard is the agreed-upon specification describing how it should work.
Why did TCP/IP win over proprietary protocols?
It was published as open standards that any vendor could implement and could run over many network types.
When PC1 sends data to a web server, what happens to the data as it goes down the stack?
Each layer adds its header (L4, L3, L2), and L2 adds a trailer, creating: Data → Segment → Packet → Frame
What information is in the Layer 2 header?
Source and destination MAC addresses for the next hop
What information is in the Layer 3 header?
Source and destination IP addresses for end-to-end communication
What information is in the Layer 4 header?
Source and destination port numbers for process-to-process communication
In what order is a frame transmitted?
L2 header first, then L3 header, L4 header, data, and L2 trailer last
Layer
OSI #
Name
PDU
Address Type
Key Protocols
Device
5
7
Data
N/A
HTTP, FTP, DNS
4
Segment/Datagram
Port #
TCP, UDP
3
IP Address
IPv4, IPv6, ICMP
2
MAC Address
Ethernet, Wi-Fi
1
Hub, Cables, NICs
Master PDU names - This is heavily tested
Understand encapsulation flow - Know what happens at each layer
Memorize IEEE standards - 802.3 and 802.11 appear frequently
Know which devices operate at which layers
Understand the difference between hops and segments
Remember Layer 2 is the only layer with a trailer
Zuletzt geändertvor 16 Tagen