Open Systems and Layered Network Architectures: Concepts, Protocols, and Interfaces
Overview: When a browser sends a request, transport prepares delivery between applications.
What is an Open System?
- An Open System is a computer system that adheres to open, publicly available, vendor-independent standards (such as TCP/IP or ISO OSI).
- Any manufacturer (Apple, Dell, Lenovo) can build equipment that complies with open standards, guaranteeing that devices from different…
Why Use a Layered Architecture? (The Post Office Analogy)
- Think of how you mail a physical handwritten letter through India Post:
- You (Sender): Write the letter, seal it in an envelope, write the recipient’s address, and stick a postal stamp.
- Local Post Office: Collects letters from your area, sorts them by PIN code, and packs them into mailbags.
- Airport / Railways: Transports mailbags across cities without ever opening or reading your letter!
- Destination Post Office: Unpacks the mailbag and gives it to the local postman.
- Friend (Receiver): Receives the envelope, opens it, and reads your letter.
View diagram · Layered Communication Model
Protocols vs. Interfaces
- In exams, this distinction is frequently asked:
- Protocol: A set of formal rules governing communication between peer entities on the same layer on two different…
- Interface: The set of operations and services that a lower layer offers to the layer immediately above it inside the…
- Service Access Point (SAP): The specific software doorway or port where Layer N-1 delivers services to Layer N.
💡 DAVV Exam Tip
- Question (5 Marks): “Explain the concept of layered architecture in computer networks.
-
- Differentiate: Protocol = Horizontal communication between peer layers on different machines; Interface = Vertical communication between…
The ISO-OSI 7-Layer Reference Model: Architecture and Layer Functions
Overview: On a shared medium, MAC decides when a station may send and supplies local addressing.
Easy Mnemonic to Remember the 7 Layers
- To remember the 7 layers from top (Layer 7) to bottom (Layer 1):
- “All People Seem To Need Data Processing”
- A - Application (Layer 7)
- P - Presentation (Layer 6)
- S - Session (Layer 5)
- T - Transport (Layer 4)
- N - Network (Layer 3)
- D - Data Link (Layer 2)
The 7 Layers and Their Core Duties
- Read down the layers to follow a message towards the medium.
- Application Layer Network services to user apps: HTTP, FTP, SMTP, DNS
- Presentation Layer Translation, Encryption (SSL/TLS), and Data Compression (JPEG/ZIP)
- Session Layer Dialog control, session establishment, and Checkpoints/Sync points
- Transport Layer End-to-end delivery, Port numbers, Flow & Error control (TCP / UDP)
- Network Layer Logical IP addressing and packet Routing across networks (Routers)
- Data Link Layer Framing, physical MAC addressing, Hop-to-Hop error control (Switches)
- Physical Layer Transmission of raw bits over physical copper/fiber cables (Hubs/Repeaters)
View diagram · The ISO OSI 7-Layer Architecture
💡 DAVV Exam Tip
- Practice Question: “Explain the ISO-OSI 7-layer reference model with a neat diagram.
-
- Draw the 7-layer stack diagram with Layer 7 at the top and Layer 1 at the bottom.
-
- Write the Data Units: Bits -> Frames -> Packets -> Segments -> Data.
-
- Give at least 3 distinct bullet points for every layer.
Physical Layer: Transmission Devices, Media, and Working Principles
Overview: A repeater restores a signal for the next cable segment.
Core Responsibilities of the Physical Layer
- Representation of Bits: Defines how a bit 0 and bit 1 are represented as electrical voltages or light pulses.
- Data Rate (Transmission Speed): Defines the duration of a bit and number of bits sent per second (bps).
- Synchronization of Bits: Synchronizes sender and receiver clocks to ensure bits are sampled at the exact right microsecond.
- Physical Topologies: How devices are wired (Star, Bus, Ring, Mesh).
- Transmission Modes: Direction of signal flow (Simplex, Half-Duplex, Full-Duplex).
Transmission Modes (Simplex vs. Half-Duplex vs. Full-Duplex)
- Simplex allows transfer in one direction only.
View diagram · The Three Transmission Modes
Physical Layer Hardware Devices
- 1. Repeater: An electronic device that receives a weak, attenuated electrical or optical signal, cleans away noise, **regenerates (amplifies) the signal…
- Extends the maximum physical length of a network cable (e.g., beyond the 100-meter limit of Cat6 copper).
- 2. Hub (Multi-Port Repeater): A non-intelligent broadcast device with 8, 16, or 24 ports.
- How it Works: When a frame enters port 1, the Hub blindly copies and broadcasts that electrical signal out of all other ports.
- Disadvantage: Creates a single large collision domain; causes massive collisions.
DTE vs. DCE Interface
- DTE (Data Terminal Equipment): The end user device that creates or consumes digital data (e.g., your desktop PC or router).
- DCE (Data Circuit-terminating Equipment): The communication device that connects the DTE to the telecom network lines (e.g., a Modem).
- EIA-232 (RS-232): The standard 25-pin or 9-pin cable interface used to connect a DTE to a DCE.
💡 DAVV Exam Tip
- Question (5 Marks): “Explain the functions of the Physical Layer.
-
- Define the 5 duties of Layer 1.
-
- Give the 3 transmission modes with real-world analogies: TV broadcast (Simplex), Walkie-talkie (Half-Duplex), Telephone call…
Data Link Layer: Framing Methods, Bit/Byte Stuffing, and Error Detection (CRC)
Overview: An IP packet crossing three Ethernet links is carried inside a new frame on each link.
What is Framing?
- Framing is the method of marking the beginning and the end of a packet of data so the receiver knows where one frame starts and where it…
- The 4 Standard Framing Methods: Length fields or delimiters tell a receiver where a frame ends.
- 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 withESC - 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)
- Understanding Bit Stuffing (The HDLC Method): In bit-oriented protocols, every frame starts and ends with a special 8-bit flag byte:
01111110(a zero, six ones, and a zero). - The Problem: What if the user’s actual image or file contains the pattern
01111110?
View diagram · Four Standard Framing Techniques
Error Detection Techniques
- During transmission, electrical noise can flip bits (turning 0 into 1).
- 1. Parity Check (Simple Parity & 2D Parity): Adds 1 extra parity bit to make the total number of 1s even (Even Parity) or odd (Odd Parity).
- Limitation: Can only detect single-bit errors.
- 2. Checksum (Used in TCP and IP): Data is split into 16-bit integers, added together using 1’s complement arithmetic, and inverted.
- 3. CRC (Cyclic Redundancy Check - Polynomial Code): The most powerful and widely used error detection method in modern networking (Ethernet, Wi-Fi, 4G/5G).
- How it Works (Modulo-2 Binary Division):
- Both sender and receiver agree on a Generator Polynomial G(x) of degree r (e.g., x^3 + x + 1 represented as binary
1011). - The sender appends r zeros to the end of the data frame.
💡 DAVV Exam Tip
- Question (10 Marks): “Explain Bit Stuffing and Byte Stuffing with examples.
-
- Give the Bit Stuffing rule: Insert a 0 after five consecutive 1s (
11111).
- Give the Bit Stuffing rule: Insert a 0 after five consecutive 1s (
-
- Explain CRC modulo-2 division (XOR subtraction where 1 ⊕ 1 = 0 and 1 ⊕ 0 = 1).
-
- Show that a remainder of 0 indicates valid error-free transmission.
MAC Addressing, Unicast vs Multicast, and Logical Link Control (LLC)
Overview: A browser and a server do not need the same internal design to exchange a page.
Anatomy of a MAC Address (Physical Address)
- A MAC (Media Access Control) Address is a 48-bit (6-byte) physical address written as 12 hexadecimal digits separated by colons or…
- Formula: Example: 00:1A:2B:3C:4D:5E
- First 24 Bits: OUI (Vendor Code) Organizationally Unique Identifier (OUI)
- Last 24 Bits: NIC Serial Number Network Interface Controller Specific
View diagram · 48-Bit MAC Address Structure
Types of MAC Addresses: Unicast, Multicast, and Broadcast
- Unicast Address: Sent to one specific destination device (e.g.,
00:1A:2B:3C:4D:5E). - Multicast Address: Sent to a specific group of subscribed devices (e.g., all smart TVs streaming a cricket match).
- Broadcast Address: Sent to every single computer on the entire local network!
- Formula: FF:FF:FF:FF:FF:FF (all 48 bits are 1s)
💡 DAVV Exam Tip
- Question (5 Marks): “Explain the structure of a 48-bit MAC address.
-
- Draw the 48-bit breakdown: 24 bits OUI (Manufacturer) + 24 bits Device Serial Number.
-
- Write the Broadcast MAC address:
FF:FF:FF:FF:FF:FF.
- Write the Broadcast MAC address:
Flow Control and ARQ Protocols: Stop-and-Wait, Go-Back-N, and Selective Repeat
Overview: With stop-and-wait, a sender waits after every frame.
Stop-and-Wait ARQ
- The simplest flow control protocol:
- Send Frame 0 Sender transmits Frame 0 and starts countdown timer
- Wait & Acknowledge Receiver verifies checksum and responds with ACK 1 (expecting Frame 1)
- Send Frame 1 Sender receives ACK 1, stops timer, and transmits Frame 1
- Next ACK Cycle Receiver validates Frame 1 and returns ACK 0 to continue sequence
- Sender transmits one single frame and starts a timer.
- Sender stops and waits until it receives an Acknowledgement (ACK) from the receiver.
- If the ACK arrives before the timer expires, sender sends the next frame.
View diagram · Stop-and-Wait Protocol Handshake Flow
Sliding Window Protocols (Pipelined Transmission)
- Instead of waiting after every single frame, Sliding Window protocols allow the sender to transmit multiple frames (up to a **Window Size…
- Go-Back-N ARQ (GBN) Sender window size: Ws = 2^m - 1.
- Selective Repeat ARQ (SR) Sender window size: Ws = 2^m-1.
View diagram · Go-Back-N vs Selective Repeat ARQ
Master Comparison Table for Exams
- Sender Window Size (Ws): 1
- Receiver Window Size (Wr): 1
- Retransmission on Error: Only that 1 frame
- Receiver Buffer Needed?: No buffer needed
- Efficiency / Bandwidth: Lowest
- Complexity: Very Simple
💡 DAVV Exam Tip
- Question (10 Marks): “Explain Sliding Window protocols.
-
- State the receiver window sizes: Wr = 1 for GBN, Wr > 1 for Selective Repeat.
-
- Explain why GBN retransmits all frames while SR retransmits only the lost frame.
-
- Write the 6-point comparison table above.