CCNA Notes #02: Complete OSI Model Explained for CCNA | All 7 Layers Made Easy

CCNA Notes #02: OSI Model — Complete 7-Layer Reference Guide

Covers: OSI Overview · All 7 Layers · TCP & UDP · IP Header · Ethernet Frame · ICMP · TCP/IP Model Comparison · Interview Lines


1. What is the OSI Model?

OSI stands for Open Systems Interconnection. It is a logical reference model developed by ISO (International Organization for Standardization) in 1984. It is an open standard—meaning it is not owned by any single vendor.

The OSI model defines how communication takes place between devices from source to destination by dividing the entire networking process into 7 distinct layers, each with a specific role.

Why was OSI created?

As networks grew in size and complexity, different vendors (like Cisco, Juniper, and HP) were building devices using their own proprietary technologies. These devices couldn't communicate with each other. There was a need for a common standard framework. ISO researched various networking models and introduced the OSI Reference Model to solve this problem.

What does OSI give us?

  • A standardized approach to network design and communication
  • Interoperability between devices from different vendors
  • A common language for network engineers worldwide
  • A structured way to understand, design, and troubleshoot networks
  • Ability to isolate and fix a problem at one layer without disturbing others
Interview Line: "OSI is a 7-layer logical reference model developed by ISO in 1984 that defines how devices from different vendors communicate by standardizing networking functions at each layer."
Troubleshooting Tip:
Ping not working → Check Layer 3 (Network)
Cable issue → Check Layer 1 (Physical)
MAC table issue → Check Layer 2 (Data Link)
Session dropping → Check Layer 5 (Session)

2. OSI Layers at a Glance

Data flows from Layer 7 down to Layer 1 at the sender (encapsulation), travels across the medium, then goes from Layer 1 up to Layer 7 at the receiver (decapsulation).

#Layer NamePDUKey FunctionKey Protocols / Devices
7ApplicationDataUser-facing services (web, email, file)HTTP, HTTPS, DNS, DHCP, FTP, SSH, SMTP
6PresentationData (Formatted)Translation, Encryption, CompressionSSL/TLS, JPEG, MP3, MPEG
5SessionDataEstablish, manage, terminate sessionsNetBIOS, RPC, PPTP
4TransportSegment (TCP) / Datagram (UDP)End-to-end delivery, flow control, portsTCP, UDP
3NetworkPacketLogical addressing, routing, path selectionIP, ICMP, OSPF, EIGRP | Router
2Data LinkFrameMAC addressing, error detectionEthernet, ARP, PPP | Switch, Bridge
1PhysicalBitsSignal transmission over physical mediumCables, Hub, Repeater, WAP

Encapsulation & Decapsulation

Encapsulation — At the sender, each layer adds its own header (control information) to the data as it passes downward from Layer 7 to Layer 1. Each layer wraps the data from the layer above.

Decapsulation — At the receiver, each layer removes its corresponding header as data travels upward from Layer 1 to Layer 7.

Memory trick for sender flow (top to bottom): All People Seem TNeed Data Processing
Application → Presentation → Session → Transport → Network → Data Link → Physical

Layer 7 Application Layer

PDU: Data

The Application Layer is the topmost layer and the closest layer to the end user. It provides an interface between the user and the network—meaning it is the gateway through which applications access network services. It also checks whether the required communication resources are available and informs the user if they are not.

What does it do?

  • Acts as an interface between the user and network services
  • Provides network services to applications: web browsing, email, file transfer, network management
  • Checks availability of communication resources before starting
  • Works on a client-server model—the client sends a request, server sends a response

Key Protocols & Port Numbers

ProtocolPortTransportPurpose
HTTP80TCPWeb communication — not secure, data sent in clear text
HTTPS443TCPSecure web (encrypted using SSL/TLS)
DNS53TCP/UDPName resolution—converts FQDN to IP address (e.g., google.com → 142.x.x.x)
DHCP67 (server) / 68 (client)UDPAutomatically assigns IP, subnet mask, default gateway, DNS server
FTP20 / 21TCPFile transfer between client and server. Port 20 = data (<512 bytes), Port 21 = control (>512 bytes). Not secure.
TFTP69UDPTrivial FTP—no authentication, no browsing, must type exact filename. Cannot be secured.
SMTP25TCPSending emails
POP3110TCPReceiving emails—downloads to local device
IMAP143TCPAccess emails on server without downloading them
SSH22TCPSecure remote access (encrypted)
Telnet23TCPRemote access — NOT secure (data in plain text)
SNMP161/162TCP/UDPNetwork monitoring and management
NTP123UDPTime synchronization across network devices

Security at Application Layer

  • SSL (Secure Sockets Layer) and TLS (Transport Layer Security) provide encryption, data integrity, and authentication
  • HTTPS uses SSL/TLS—encryption is handled at the Presentation Layer in OSI but initiated at Application layer
Interview Line: "The Application Layer provides network services directly to end-user applications and acts as an interface between the user and the network."

Layer 6 Presentation Layer

PDU: Formatted Data

The Presentation Layer is responsible for how data is presented, formatted, and secured. It acts as a translator—ensuring that data sent by one system can be understood and used by another, even if they use different formats or encoding schemes.

Key Functions

1. Data Translation (Encoding & Decoding)

Converts data between different formats so both sender and receiver understand it. The same encoding/decoding algorithm must be used at both ends; otherwise, data will not be correctly received or interpreted.

  • Example: ASCII ↔ EBCDIC conversion
File TypeFormats
AudioMP3, WMA
VideoMP4, WMV, AVI, MPEG
ImageJPEG, BMP
Text/DocumentDOC, PDF

2. Encryption & Decryption

Converts plain text → cipher text before transmission (encryption) and back to original at the receiver (decryption). This is how HTTPS works — SSL/TLS encryption happens at this layer.

3. Compression & Decompression

Reduces the size of data to improve bandwidth utilization and speed up transmission. When you watch a video, compression/decompression is handled here.

Protocols / Examples

  • SSL (Secure Sockets Layer) / TLS (Transport Layer Security)
  • JPEG, MP3, MPEG — format encoding/decoding
Interview Line: "The Presentation Layer is responsible for data formatting, encryption, and compression to ensure proper data representation between communicating systems."

Layer 5 Session Layer

PDU: Data

The Session Layer manages the lifecycle of a communication session between two devices — it creates the session, keeps it alive while communication is happening, and properly closes it when done.

Key Functions

1. Session Establishment

Creates and opens a connection between sender and receiver. The number of sessions a device can handle depends on the number of ports available (Port number = 16 bits = 0–65535 per LAN ).

2. Session Management

Maintains and keeps track of all active connections. In a single LAN, two users cannot be assigned the same session ID for the same destination, but can share the same session ID for different destinations.

3. Session Termination

Properly closes the connection after communication is complete — for example, when a user logs out of a website.

4. Dialog Control

Controls the mode of communication between two devices:

  • Simplex — One-way only (e.g., TV broadcast)
  • Half-Duplex — Both directions but one at a time (e.g., walkie-talkie)
  • Full-Duplex — Both directions simultaneously (e.g., phone call)

5. Synchronization (Checkpoints)

Inserts checkpoints during data transmission. If a failure occurs mid-transfer, communication resumes from the last checkpoint rather than starting over.

Protocols / Technologies

  • NetBIOS
  • RPC (Remote Procedure Call)
  • PPTP (used in VPNs)

Real-World Example

When you log into a website: the session starts after login, stays active while you browse, and ends when you log out or the session times out.

Interview Line: "The Session Layer manages the session lifecycle — establishment, maintenance, and termination — between two communicating devices."

Layer 4 Transport Layer

PDU: Segment (TCP) / Datagram (UDP)

The Transport Layer is responsible for end-to-end communication between the source and destination devices. It breaks data into smaller pieces at the sender, manages their reliable (or fast) delivery, and reassembles them at the receiver. This layer is where TCP and UDP live.

Key Functions

1. Segmentation & Reassembly

Divides large chunks of data into smaller segments at the sender so transmission losses can be minimized. By default, the Maximum Segment Size (MSS) = 1460 bytes. Each segment is numbered and reassembled in the correct order at the destination.

2. Sequencing

Each segment is assigned a sequence number at the sender. At the receiver, these numbers are used to rearrange data in the correct order and detect any missing segments. Sequence numbers are 32-bit fields (2^32 = 4.3 billion possible values).

3. Acknowledgement

The receiver sends an acknowledgement (ACK) back to the sender as a receipt of successful data delivery.

4. Flow Control

Prevents the sender from overwhelming the receiver. If the receiver's buffer is full, it sends a "not ready" signal to pause transmission, then sends a "ready" signal once the buffer is cleared. Uses the sliding window mechanism.

5. Error Detection & Correction

Detects errors using checksum. In TCP, lost or corrupted segments are automatically retransmitted. If an ACK is not received within a timeout (default 5 seconds), the same segment is sent again. This is known as Retransmission.

6. Multiplexing (Port Numbers)

Uses port numbers to identify which application each segment belongs to, allowing multiple applications to communicate simultaneously over the same connection.


TCP vs UDP — Comparison

FeatureTCPUDP
Connection typeConnection-oriented (3-way handshake)Connectionless (no handshake)
ReliabilityGuaranteed deliveryBest-effort (no guarantee)
AcknowledgementYesNo
SequencingYesNo
Flow controlYes (windowing)No
RetransmissionYes (automatic)No
Header size20–60 bytes (variable)8 bytes (fixed)
SpeedSlower (more overhead)Faster (low overhead)
Protocol number617
Use casesHTTPS, FTP, SMTP, SSH, TelnetDNS, DHCP, TFTP, SNMP, VoIP, Streaming
Key Rule: Use TCP when reliability is more important than speed. Use UDP when speed is more important than reliability (e.g., VoIP, video streaming — these don't need error recovery).

TCP 3-Way Handshake

Before any data is transferred, TCP establishes a connection using a 3-way handshake process. During SYN, connection parameters are negotiated (MSS, Window Size, Selective ACK, Congestion technique). The SYN packet TCP header is 24 bytes; all other TCP packets are 20 bytes.

StepSent ByMessageMeaning
1Client → ServerSYN (Seq=0)Client requests connection and shares its parameters
2Server → ClientSYN + ACK (Seq=10, ACK=1)Server acknowledges and shares its own parameters. If parameters are acceptable, it agrees; otherwise it sends its own.
3Client → ServerACK (Seq=1)Client confirms — connection is now established. Actual data transfer begins after this.

MSS (Maximum Segment Size)

MSS is negotiated during the 3-way handshake — the lowest value between sender and receiver is always used.

MSS = IP MTU − TCP header − IP header = 1500 − 20 − 20 = 1460 bytes

Window Size & Windowing

Buffer — Storage used to hold data before it is processed. Window Size — The empty/available space in the buffer (i.e., how much data can be received at once). Two types: Sending Window and Receiving Window. The receiving window (lowest among sender and receiver) is always negotiated.

Before windowing was introduced: each segment had to be acknowledged before the next one was sent — very slow. With windowing, multiple segments can be sent against a single acknowledgement. Default window size = 4128 bytes. Example: Window Size = 3 means 3 segments can be sent before waiting for ACK.

Selective Acknowledgement (SACK)

A TCP feature where, if a specific segment is missing during transmission, only that missing segment is re-requested — not all the data. This is TCP-only and is negotiated during the 3-way handshake.

Congestion Technique

TCP manages network congestion using a flag called ECE (Explicit Congestion Echo), negotiated during the 3-way handshake. If this flag is not negotiated, the congestion technique is not used.


Port Number Ranges

RangeCategoryDescription
0 – 1023Well-Known PortsPre-defined for specific protocols (HTTP=80, SSH=22, etc.)
1024 – 49151Registered PortsAssigned to specific services/applications
49152 – 65535Dynamic / Private (Ephemeral)Randomly assigned to client-side connections

TCP Segment Header — Field-by-Field

TCP header size ranges from 20 bytes (minimum) to 60 bytes (maximum). The first 5 rows (5 × 4 = 20 bytes) are always present. The Options field can add up to 40 bytes.

Header length field value × 4 = actual header size in bytes. Range of field value: 5–15. Range of actual size: 20–60 bytes.

FieldSizePurpose & Notes
Source Port16 bitsPort of the sending application — usually a random ephemeral port (e.g. 49152)
Destination Port16 bitsPort of receiving application — pre-defined (e.g. 80 for HTTP, 443 for HTTPS)
Sequence Number32 bitsTracks order of data; used for reassembly, retransmission, and detecting lost segments. Carries size of data inside the segment.
Acknowledgement Number32 bitsTells sender what to send next. Always = last received sequence number + 1. Example: ACK=1001 means data up to Seq 1000 was received.
Header Length (Data Offset)4 bitsSize of the TCP header. Value × 4 = header size in bytes.
Reserved3 bitsNot currently used. Always set to 0. Reserved for future use.
Flags (Control Bits)6 bitsSee flag table below
Window Size16 bitsFlow control — tells sender how much data the receiver can currently handle
Checksum16 bitsError detection — verifies both header and data. Expressed in hexadecimal. If values don't match, packet is dropped.
Urgent Pointer16 bitsUsed only when URG flag is set. Format: X:Y (X = where urgent data starts, Y = size in bytes). Rarely used.
Options0–40 bytesCarries 3-way handshake parameters: MSS, window scaling, timestamps, SACK. Present only in SYN packets (making SYN header 24 bytes).
Data (Payload)VariableActual data being transmitted from the application layer above

TCP Flags — Detailed

FlagFull NameWhen set to 1
SYNSynchronisationUsed to initiate a connection and exchange connection parameters (MSS, window size, etc.)
ACKAcknowledgementThis packet is an acknowledgement (confirming receipt)
FINFinishUsed to gracefully terminate a TCP connection (session logout)
RSTResetAbruptly resets/terminates the connection — used when session expires or destination port is unavailable
PSHPushForces all buffered segments to be sent immediately to the receiving application in received order. Not recommended to set often as it forces the receiving CPU to act immediately.
URGUrgentData is urgent — bypasses the buffer and is processed immediately. Urgent Pointer field becomes active.

UDP Header — Field-by-Field

UDP header is fixed at 8 bytes — this is why UDP is faster. There is no connection setup, no acknowledgement, no sequencing, and no retransmission. If reliability is needed, the application layer must handle it.

FieldSizePurpose
Source Port16 bitsIdentifies the sending application
Destination Port16 bitsIdentifies the receiving application
Length16 bitsTotal length of UDP header + data (minimum 8 bytes)
Checksum16 bitsError detection — optional in IPv4, mandatory in IPv6
Data (Payload)VariableActual user data being transmitted

Layer 3 Network Layer

PDU: Packet  RouterLayer 3 SwitchFirewall

The Network Layer is responsible for delivering packets from the source to the destination across multiple different networks. It adds logical (IP) addresses to data and determines the best path for delivery.

Main Functions

  • Logical Addressing (IP Addressing) — Adds source and destination IP addresses to the segment, turning it into a packet. Includes subnetting and summarization.
  • Path Determination — Calculates all possible paths between source and destination.
  • Path Selection — Selects the best path from all available paths (using routing protocols).
  • Packet Forwarding — Forwards packets hop-by-hop toward the destination.

Routing Protocols

Routing protocols carry routing information and help routers determine and select the best path:

  • RIP / RIPv2 — Routing Information Protocol
  • OSPF — Open Shortest Path First (Protocol number: 89)
  • EIGRP — Enhanced Interior Gateway Routing Protocol (Protocol number: 88, Cisco proprietary)
  • BGP — Border Gateway Protocol (used on the internet between ISPs)

Layer 3 Protocols & Protocol Numbers

ProtocolProtocol NumberPurpose
ICMP1Control messages — ping, traceroute, error reporting
IGMP2Multicast group management
TCP6Reliable transport (from transport layer)
UDP17Fast transport (from transport layer)
GRE47Generic Routing Encapsulation (tunneling)
EIGRP88Cisco routing protocol
OSPF89Link-state routing protocol
Port Number vs Protocol Number:
Port numbers are assigned at the Transport Layer for data generated by the Application Layer.
Protocol numbers are used in the IP header to identify what Transport Layer or Network Layer protocol is encapsulated inside the IP packet.

IPv4 Header — Field-by-Field

Minimum IP header size = 20 bytes. Maximum = 60 bytes (with Options).

Memory order: Version → Header Length → Type of Service → Total Length → Identification → Flags → Fragment Offset → TTL → Protocol → Header Checksum → Source IP → Destination IP → Options → Data

FieldSizePurpose & Notes
Version4 bitsIP version. Value = 4 for IPv4, 6 for IPv6.
Header Length (IHL)4 bitsSize of the IP header (minimum 20 bytes). Helps locate where data begins.
Type of Service / DSCP8 bitsQoS (Quality of Service) — prioritizes traffic. Range 0–7 (0 = least important). Used for voice, video, data prioritization. Replaced by DSCP (Differentiated Services Code Point) with more features.
Total Length16 bitsTotal size of the packet = IP header + data (payload/segment)
Identification16 bitsIdentifies all fragments that belong to the same original packet. All fragments of one packet share the same ID (in hex, 16 bits = 4 hex digits).
Flags3 bitsBit 1: Reserved (always 0). Bit 2: DF (Don't Fragment) — 0=fragmentation allowed, 1=no fragmentation. Bit 3: MF (More Fragments) — 1=more fragments coming, 0=this is the last fragment.
Fragment Offset13 bitsIndicates the position/order of this fragment in the original packet. Used for correct reassembly at the destination.
TTL (Time To Live)8 bitsLimits packet lifespan — prevents infinite routing loops. See TTL section below.
Protocol8 bitsIdentifies the upper-layer protocol encapsulated inside. ICMP=1, TCP=6, UDP=17, EIGRP=88, OSPF=89
Header Checksum16 bitsError checking for the IP header only (not data). Recalculated at every router hop.
Source IP Address32 bitsIP address of the sender
Destination IP Address32 bitsIP address of the receiver
OptionsVariableRarely used. For special purposes: security, routing options. Makes header larger than 20 bytes.
Data (Payload)VariableThe TCP or UDP segment from the layer above

Segmentation vs Fragmentation

FeatureSegmentationFragmentation
Done byTransport LayerNetwork Layer
Applied toData generated from Application LayerData generated from Network Layer
ProtocolTCPIP
ReassemblyAt destination Transport LayerAt destination Network Layer

Fragmentation Example

Packet = 5000 bytes (includes IP header). MTU = 1500 bytes. ICMP header = 8 bytes.

FragmentTotal LengthIdentificationFragment OffsetMF Flag
1st1480+20=15000x000101
2nd1480+20=15000x000114801
3rd1480+20=15000x000129601
4th (last)532+20=5520x000144400

Note: IP is a connectionless protocol — no retransmission, no acknowledgement.


TTL — Time To Live (Deep Dive)

TTL is an 8-bit field in the IP header. Despite the name, it does NOT measure time in seconds — it measures the number of hops (routers) a packet is allowed to cross.

  • The sender sets the TTL value
  • Every router that forwards the packet decrements TTL by 1
  • When TTL reaches 0: the packet is dropped and the router sends an ICMP Time Exceeded (Type 11) message back to the sender
  • Helps identify how many routers exist between source and destination (used in traceroute)
  • Prevents packets from looping indefinitely in the network
Operating System / DeviceDefault TTL
Cisco devices255
Linux / macOS64
Windows128
Interview Line: "TTL is an 8-bit field in the IP header that limits the number of hops a packet can take. Each router decrements it by 1. When TTL = 0, the packet is dropped and an ICMP Time Exceeded message is sent back to the source."

ICMP — Internet Control Message Protocol (Protocol #1)

ICMP is used to verify connectivity and report errors between source and destination. It does not carry user data — it is purely a control/diagnostic protocol.

ICMP Tools

  • Ping (Packet Internet Groper) — Tests connectivity. Sends Echo Request (Type 8) and expects Echo Reply (Type 0).
  • Traceroute — Traces the path between source and destination by incrementally increasing TTL.

ICMP Message Types

MessageType CodeMeaning
Echo RequestType 8Ping request sent to destination
Echo ReplyType 0Ping reply from destination
Destination UnreachableType 3Router cannot reach the destination network
Time ExceededType 11TTL reached 0 — packet dropped by router

Cisco Ping Output

  • ! — Success (received Echo Reply)
  • U — Destination Unreachable
  • . — Request Timed Out (RTO)
SettingWindows DefaultCisco Default
Timeout5 seconds2 seconds
Packets sent4 packets5 packets
Data size32 bytes100 bytes

Layer 2 Data Link Layer

PDU: Frame  SwitchBridgeNIC

The Data Link Layer is responsible for node-to-node delivery of data over a single physical link. While the Network Layer uses IP addresses for end-to-end routing, the Data Link Layer uses MAC addresses to move data between directly connected devices, one hop at a time.

Main Functions

  • Reliable data transfer over a single link (one hop)
  • Uses MAC (Media Access Control) addressing — a physical address embedded in the NIC card
  • Controls access to the transmission medium (MAC sublayer)
  • Error detection using FCS (Frame Check Sequence) — runs CRC (Cyclic Redundancy Check) algorithm on data + header
  • LLC (Logical Link Control) — encapsulates the packet into a frame and identifies the Layer 2 protocol being used. Manages protocols like STP, VTP, DTP.

Data Link Protocols

  • ARP (Address Resolution Protocol)
  • RARP (Reverse Address Resolution Protocol)
  • Proxy ARP, Inverse ARP, Gratuitous ARP
  • HDLC (High-Level Data Link Control)
  • PPP (Point-to-Point Protocol)
  • CDP (Cisco Discovery Protocol)

Ethernet is defined by the IEEE 802.3 standard (introduced in 1980).


Ethernet Frame Format — Field-by-Field

Format: | Preamble (7) | SFD (1) | Destination MAC (6) | Source MAC (6) | EtherType (2) | Data (46–1500) | FCS (4) |

Minimum frame size = 64 bytes  |  Maximum frame size = 1518–1522 bytes
Frame < 64 bytes = Runts  |  Frame > 1522 bytes = Giants
Note: Ethernet header itself = 18 bytes. MTU (1500 bytes) does NOT include the Ethernet header.

FieldSizePurpose & Notes
Preamble7 bytesA pattern of alternating 0s and 1s (FLP — Fast Link Pulses). Synchronizes the sender and receiver — allows them to lock onto the data stream before the actual frame begins. Preamble is never attached to data.
SFD (Start Frame Delimiter)1 byteAlways set to 10101011. Last two bits are 11 — signals adjacent devices to stop sending FLPs and start receiving data. Marks the start of the actual frame (Destination MAC follows). Sometimes counted as part of Preamble, making it 8 bytes total.
Destination MAC Address6 bytesMAC address of the receiving device. Can be unicast, multicast, or broadcast (FF:FF:FF:FF:FF:FF).
Source MAC Address6 bytesMAC address of the sending device. Always a unicast (individual) address — the least significant bit of the first byte is always 0.
EtherType / Type2 bytesIdentifies the upper-layer protocol: IPv4 = 0x0800, IPv6 = 0x86DD, ARP = 0x0806, 802.1Q VLAN tag = 0x8100
Data / Payload46–1500 bytesActual data from the Network Layer (IP packet). If data is less than 46 bytes, padding is added to reach the minimum.
FCS (Frame Check Sequence)4 bytesError detection using CRC algorithm. The CRC value is calculated and stored in FCS by the sender. The receiver runs the same algorithm and compares — if values don't match, the frame is discarded. Unlike TCP checksum, FCS covers both data and header.

Layer 1 Physical Layer

PDU: Bits  HubRepeaterCablesWAP

The Physical Layer is the lowest layer of the OSI model. It deals purely with hardware — transmitting raw bits (0s and 1s) over a physical medium as electrical, optical, or radio signals. There is no addressing, no logic, and no error checking at this layer.

Main Functions

  • Converts digital frames (from Data Link Layer) into bits/binary and vice versa
  • Converts digital data into electrical signals (copper cable), light pulses (fiber), or radio waves (wireless) and back
  • Acts as the bridge between software (logical) and hardware (physical)
  • No decision-making — devices are unintelligent (Hub just forwards signals to all ports)

Transmission Media

Media TypeExamplesSignal Type
Twisted Pair CableCAT5, CAT6 (UTP/STP)Electrical
Coaxial CableCable TV coaxElectrical
Fiber Optic CableSingle-mode, Multi-modeLight (optical)
WirelessWi-Fi, BluetoothRadio waves

OSI Model vs TCP/IP Model

FeatureOSI ModelTCP/IP Model
Developed byISO (International Organization for Standardization)DOD (Department of Defense, USA)
Number of layers7 layers4–5 layers
TypeReference / Logical ModelPractical / Implementation Model
PurposeDefines HOW communication will take place at each layerDefines WHICH protocols will be used to make communication possible
UsageTroubleshooting and understanding networksActual implementation in real networks

TCP/IP Layer Mapping

TCP/IP LayerEquivalent OSI LayersKey Protocols
Application LayerApplication + Presentation + Session (Layers 7, 6, 5)HTTP, HTTPS, DNS, DHCP, Telnet, SSH, FTP, TFTP
Transport Layer (Host-to-Host)Transport (Layer 4)TCP header, UDP header
Internet Layer (Network)Network (Layer 3)IP header, ICMP
Data Link LayerData Link (Layer 2)Ethernet header, ARP header, MAC address, CDP
Physical Layer (Access Layer)Physical (Layer 1)Cables, signals, hardware

Quick Revision Summary

LayerNamePDUKey DevicesWhat to Remember
7ApplicationDataUser-facing; HTTP(80), HTTPS(443), DNS(53), FTP(20/21), SSH(22), DHCP(67/68)
6PresentationFormatted DataTranslation, Encryption (SSL/TLS), Compression; format = JPEG, MP3, MPEG
5SessionDataCreate, Manage, Terminate sessions; Dialog Control (Half/Full duplex); Checkpoints
4TransportSegment/DatagramTCP (reliable, port 6) vs UDP (fast, port 17); 3-way handshake; MSS=1460; windowing
3NetworkPacketRouter, L3 Switch, FirewallIP addressing, routing; TTL; ICMP; fragmentation; OSPF(89), EIGRP(88)
2Data LinkFrameSwitch, Bridge, NICMAC addressing; Ethernet (IEEE 802.3); FCS/CRC; min 64B, max 1518B
1PhysicalBitsHub, Repeater, CablesRaw signal transmission; no addressing, no logic

Key Port Numbers to Memorize

ProtocolPortProtocolPort
HTTP80 (TCP)HTTPS443 (TCP)
FTP Data20 (TCP)FTP Control21 (TCP)
SSH22 (TCP)Telnet23 (TCP)
SMTP25 (TCP)DNS53 (TCP/UDP)
DHCP Server67 (UDP)DHCP Client68 (UDP)
TFTP69 (UDP)POP3110 (TCP)
NTP123 (UDP)IMAP143 (TCP)
SNMP161/162 (TCP/UDP)

Comments

Popular posts from this blog

Network Topologies

Network Devices

CCNA Notes #01: Computer Networks — Types & Classification (Complete Guide)