📘 PAPER 6 – DATA COMMUNICATION & NETWORKS (UNIT 3 – NETWORK LAYER) university of allahabad
🔴 UNIT 3 – NETWORK LAYER
1️⃣ Network Layer – Introduction
✅ Definition
The Network Layer is responsible for:
-
Routing packets
-
Path selection
👉 It ensures data reaches the correct destination network.
2️⃣ Functions of Network Layer
✔ Logical addressing
✔ Routing
✔ Packet forwarding
✔ Congestion control
✔ Internetworking
3️⃣ Network Layer Services
🔹 Connection-Oriented Service
-
Establishes connection before transmission
-
Reliable
-
Example: Virtual circuits
🔹 Connectionless Service
-
No prior connection
-
Fast but unreliable
-
Example: Internet (IP)
4️⃣ Routing
✅ Definition
Routing is the process of selecting the best path to transfer data from source to destination.
5️⃣ Types of Routing
🔹 1. Static Routing
-
Manually configured
-
Used in small networks
🔹 2. Dynamic Routing
-
Routes change automatically
-
Uses routing algorithms
6️⃣ Routing Algorithms
🔹 1. Distance Vector Routing
Features:
-
Based on distance and direction
Example:
RIP (Routing Information Protocol)
Problems:
❌ Count to infinity
❌ Slow convergence
🔹 2. Link State Routing
Features:
-
Each node knows full topology
-
Uses Dijkstra’s algorithm
Example:
OSPF (Open Shortest Path First)
Advantages:
✔ Fast
✔ Accurate
7️⃣ Congestion Control
✅ Definition
Congestion occurs when:
Network traffic exceeds capacity.
Causes:
-
Too many packets
-
Limited bandwidth
-
Slow routers
Congestion Control Techniques:
🔹 Open Loop
-
Prevent congestion
-
No feedback
Examples:
✔ Traffic shaping
✔ Admission control
🔹 Closed Loop
-
Detect & correct congestion
-
Uses feedback
Examples:
✔ Backpressure
✔ Choke packet
8️⃣ Internetworking
Definition:
Connecting multiple networks together to form the Internet.
Devices Used:
-
Router
-
Gateway
-
Bridge
9️⃣ Internet Protocol (IP)
✅ IP
Responsible for:
-
Logical addressing
🔹 IPv4 Address
IPv4 Classes
| Class | Range |
|---|---|
| A | 1–126 |
| B | 128–191 |
| C | 192–223 |
| D | Multicast |
| E | Experimental |
🔹 IPv6
Features:
✔ 128-bit address
✔ Larger address space
✔ Better security
✔ No NAT needed
Example:
🔟 Difference Between IPv4 and IPv6
| IPv4 | IPv6 |
|---|---|
| 32-bit | 128-bit |
| Limited addresses | Large address space |
| NAT required | No NAT |
| Less secure | More secure |
📌 EXAM IMPORTANT QUESTIONS (UNIT 3)
✔ Explain Network Layer
✔ Routing algorithms
✔ Difference between distance vector & link state
✔ Congestion control
✔ IPv4 vs IPv6
✔ IP addressing
Comments
Post a Comment