←Back to Subject
Notes
Notes
Study material and explanations
Diagrams
Diagrams
Visualize concepts easily
Mnemonics
Mnemonics
Tricks to remember faster
One Night Prep
One Night Prep
Short and focused revision
Revision
Revision
Quick summary and key points
Important Questions
Important Questions
Practice most relevant questions
Diagrams

Diagrams

Visual representations for Unit 4

Layered Communication Model

Layered Communication Model
Layer N (Sender)Adds Header H_N
➔ Virtual Protocol ➔
Layer N (Receiver)Strips Header H_N
Explanation
  • Each layer offers a service to the layer above it.
  • Peer protocols agree how the corresponding layers interpret their messages.
Detailed Notes →Quick Revision →

The ISO OSI 7-Layer Architecture

The ISO OSI 7-Layer Architecture
L7Application Layer
Network services to user apps: HTTP, FTP, SMTP, DNS
L6Presentation Layer
Translation, Encryption (SSL/TLS), and Data Compression (JPEG/ZIP)
L5Session Layer
Dialog control, session establishment, and Checkpoints/Sync points
L4Transport Layer
End-to-end delivery, Port numbers, Flow & Error control (TCP / UDP)
L3Network Layer
Logical IP addressing and packet Routing across networks (Routers)
L2Data Link Layer
Framing, physical MAC addressing, Hop-to-Hop error control (Switches)
L1Physical Layer
Transmission of raw bits over physical copper/fiber cables (Hubs/Repeaters)
Explanation
  • Read down the layers to follow a message towards the medium.
  • At the receiver the corresponding layers recover and interpret the data.
Detailed Notes →Quick Revision →

The Three Transmission Modes

The Three Transmission Modes
1. Simplex
Strictly one-way communication. Sender only sends, receiver only receives (Keyboard ➔ CPU, TV broadcast)
2. Half-Duplex
Two-way communication, but only ONE direction at a time! (Walkie-talkie: "Over and out")
3. Full-Duplex
Simultaneous two-way communication at the exact same time! (Mobile phone call)
Explanation
  • Simplex allows transfer in one direction only.
  • Half duplex allows turns in both directions and full duplex allows both directions together.
Detailed Notes →Quick Revision →

Four Standard Framing Techniques

Four Standard Framing Techniques
1. Character Count
A number in the header specifies the total characters in the frame
2. Byte Stuffing
Uses special Flag bytes (`FLAG`); escapes internal flag bytes with `ESC`
3. Bit Stuffing
Inserts a 0 after five consecutive 1s to avoid confusing flag `01111110`
4. Physical Layer Coding Violations
Uses illegal signal states (e.g., High-High in Manchester encoding)
Explanation
  • Length fields or delimiters tell a receiver where a frame ends.
  • Stuffing prevents data that resembles a delimiter from ending the frame early.
Detailed Notes →Quick Revision →

48-Bit MAC Address Structure

48-Bit MAC Address Structure
🏭 First 24 Bits: OUI (Vendor Code)
  • Organizationally Unique Identifier (OUI)
  • Assigned globally by the IEEE to hardware manufacturers (e.g., Apple, Intel, Cisco, Samsung).
  • Identifies the company that built the network chip.
🔢 Last 24 Bits: NIC Serial Number
  • Network Interface Controller Specific
  • Assigned uniquely by the manufacturer to each individual card.
  • Guarantees that no two network cards in the world have the exact same MAC address!
Explanation
  • A common Ethernet address occupies six bytes.
  • For a globally assigned address, the prefix identifies an allocation and the remaining bits distinguish interfaces.
Detailed Notes →Quick Revision →

Stop-and-Wait Protocol Handshake Flow

Stop-and-Wait Protocol Handshake Flow
01
Send Frame 0
Sender transmits Frame 0 and starts countdown timer
➔
02
Wait & Acknowledge
Receiver verifies checksum and responds with ACK 1 (expecting Frame 1)
➔
03
Send Frame 1
Sender receives ACK 1, stops timer, and transmits Frame 1
➔
04
Next ACK Cycle
Receiver validates Frame 1 and returns ACK 0 to continue sequence
Explanation
  • The sender sends one frame and waits for an acknowledgement.
  • A timeout allows another attempt if the frame or reply was lost.
Detailed Notes →Quick Revision →

Go-Back-N vs Selective Repeat ARQ

Go-Back-N vs Selective Repeat ARQ
⏮️ Go-Back-N ARQ (GBN)
  • Sender window size: Ws = 2^m - 1.
  • Receiver window size: Wr = 1 (Only accepts frames in strict sequence!).
  • If Frame 2 is damaged/lost, receiver discards Frame 2, 3, 4, 5.
  • Sender must go back and retransmit ALL frames starting from Frame 2!
  • Uses cumulative acknowledgements.
🎯 Selective Repeat ARQ (SR)
  • Sender window size: Ws = 2^m-1.
  • Receiver window size: Wr = 2^m-1 (Has a buffer to store out-of-order frames!).
  • If Frame 2 is lost, receiver buffers Frame 3, 4, 5.
  • Sender retransmits ONLY the single lost frame (Frame 2)!
  • Uses independent negative acknowledgements (NAK).
Explanation
  • Go-Back-N retransmits the missing frame and later outstanding frames.
  • Selective Repeat retains good frames and requests only the missing ones.
Detailed Notes →Quick Revision →