←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 5

Classification of Routing Algorithms

Classification of Routing Algorithms
📌 1. Static (Non-Adaptive) Routing
  • Routes are manually typed into the router by an administrator.
  • Does not adapt to network traffic changes or cable cuts.
  • Simple, secure, but terrible for large networks.
🔄 2. Dynamic (Adaptive) Routing
  • Routers automatically exchange routing tables with neighbors.
  • If a link fails or gets congested, routers dynamically calculate a new alternate route!
  • Examples: RIP, OSPF, BGP.
Explanation
  • A static route is configured in advance.
  • Dynamic routing adapts using information such as neighbour distances or advertised link states.
Detailed Notes →Quick Revision →

Classification of Gateway Protocols

Classification of Gateway Protocols
🏢 Interior Gateway Protocols (IGP)
  • Used for routing packets INSIDE a single Autonomous System (inside a university or company).
  • Focuses on speed and shortest path metrics.
  • Examples: RIP (Routing Information Protocol), OSPF (Open Shortest Path First).
🌍 Exterior Gateway Protocols (EGP)
  • Used for routing packets BETWEEN different Autonomous Systems across the global Internet.
  • Focuses on business agreements, country policies, and security rules.
  • The Standard: BGP (Border Gateway Protocol).
Explanation
  • Interior protocols exchange routing information inside an autonomous system.
  • Exterior routing exchanges reachability between autonomous systems.
Detailed Notes →Quick Revision →

OSI Layer Mapping to Interconnection Devices

OSI Layer Mapping to Interconnection Devices
Layers 7 - 4 Application to Transport
GATEWAY: Protocol conversion, payload translation & cloud access
Layer 3 Network Layer
ROUTER / L3 SWITCH: Packet routing using logical IP addresses
Layer 2 Data Link Layer
BRIDGE / SWITCH: Frame forwarding using physical MAC addresses
Layer 1 Physical Layer
REPEATER / HUB: Signal regeneration & electrical bit broadcasting
Explanation
  • A hub acts on signals and a bridge or switch examines frames.
  • A router uses network-layer addresses to forward packets.
Detailed Notes →Quick Revision →

Network Interconnection Devices

Network Interconnection Devices
1. Repeater (Layer 1)
Regenerates and boosts weak electrical/optical signals
2. Hub (Layer 1)
Multi-port repeater; blindly broadcasts signals out of all ports
3. Bridge (Layer 2)
Filters traffic between 2 LAN segments using MAC address tables
4. Switch (Layer 2)
Multi-port bridge; forwards frames directly to destination port
5. Router (Layer 3)
Connects different networks; routes packets using logical IP addresses
6. Gateway (Layer 7)
Translates completely different protocol suites (e.g., AppleTalk to TCP/IP)
Explanation
  • Repeaters regenerate signals and switches forward local frames.
  • Routers choose a next hop between IP networks.
Detailed Notes →Quick Revision →

Architectural Layer Mapping: OSI vs. TCP/IP

+-----------------------------------+-----------------------------------+
| ISO OSI 7-LAYER MODEL             | TCP/IP 4-LAYER MODEL              |
+-----------------------------------+-----------------------------------+
| Layer 7: Application Layer        |                                   |
| Layer 6: Presentation Layer       | Application Layer                 |
| Layer 5: Session Layer            | (HTTP, FTP, SMTP, DNS, SSH)       |
+-----------------------------------+-----------------------------------+
| Layer 4: Transport Layer          | Transport / Host-to-Host Layer    |
|                                   | (TCP, UDP)                        |
+-----------------------------------+-----------------------------------+
| Layer 3: Network Layer            | Internet Layer                    |
|                                   | (IP, ICMP, ARP)                   |
+-----------------------------------+-----------------------------------+
| Layer 2: Data Link Layer          | Network Access / Link Layer       |
| Layer 1: Physical Layer           | (Ethernet, Wi-Fi, PPP)            |
+-----------------------------------+-----------------------------------+
Explanation
  • The TCP/IP application layer covers several upper OSI responsibilities.
  • Its link layer covers local delivery over the physical network.
Detailed Notes →Quick Revision →

The IEEE 802.3 Ethernet Frame Structure

+------------+--------+------------+------------+-----------+---------------+------------+
| Preamble   | SFD    | Dest MAC   | Source MAC | Type/Len  | Data Payload  | FCS (CRC)  |
| 7 Bytes    | 1 Byte | 6 Bytes    | 6 Bytes    | 2 Bytes   | 46-1500 Bytes | 4 Bytes    |
+------------+--------+------------+------------+-----------+---------------+------------+
Explanation
  • An Ethernet frame identifies local endpoints and carries a payload.
  • The check sequence helps detect corruption during transmission.
Detailed Notes →Quick Revision →

The 3-Tier Internet Hierarchy

The 3-Tier Internet Hierarchy
🌐 Tier-1 ISPs (Global Backbone: Tata Communications, AT&T, Lumen)
Tier-2 Regional ISPs
National coverage (Reliance Jio, Bharti Airtel)
Tier-3 Local Access ISPs
City/Neighborhood cable broadband providers (Hathway, ACT)
Explanation
  • Access networks carry traffic from users towards larger providers.
  • Peering and transit connections let traffic move between provider networks.
Detailed Notes →Quick Revision →

The 5 IPv4 Address Classes

The 5 IPv4 Address Classes
Class A (1 - 126)
Huge networks (8 bits Net ID, 24 bits Host ID). Default mask: `255.0.0.0`
Class B (128 - 191)
Medium networks (16 bits Net ID, 16 bits Host ID). Default mask: `255.255.0.0`
Class C (192 - 223)
Small LANs (24 bits Net ID, 8 bits Host ID = 254 PCs). Default mask: `255.255.255.0`
Class D (224 - 239)
Reserved for Multicasting (streaming video groups). No subnet mask!
Class E (240 - 255)
Reserved for experimental and research use
Explanation
  • Historical classful IPv4 grouped addresses by leading bits.
  • Modern routing normally uses an explicit prefix length instead.
Detailed Notes →Quick Revision →

Traffic Shaping Algorithms

Traffic Shaping Algorithms
🪣 1. Leaky Bucket Algorithm
  • Imagine a water bucket with a small hole in the bottom.
  • No matter how irregularly water is poured in, water leaks out at a constant, smooth rate.
  • If bucket overflows, excess packets are discarded.
  • Result: Completely smooth output; cannot handle bursty traffic.
🪙 2. Token Bucket Algorithm
  • Tokens are generated by a clock and placed in a bucket at a fixed rate.
  • To transmit a packet, a computer must grab a token from the bucket.
  • If the bucket has accumulated 10 tokens, the computer can transmit a burst of 10 packets immediately!
  • Result: Allows controlled bursts of traffic without dropping packets.
Explanation
  • A leaky bucket smooths output towards a controlled rate.
  • A token bucket permits bursts when enough tokens have accumulated.
Detailed Notes →Quick Revision →