UNIT III Basic Internetworking (IP, CIDR, ARP, RARP, DHCP, ICMP)
UNIT III Basic Internetworking (IP, CIDR, ARP, RARP, DHCP, ICMP)
1. IP
Full Form: Internet Protocol
Purpose:
IP is the main protocol used for sending data across
networks. It assigns addresses to devices and makes sure
packets of data find the right destination.
1
Computer Network
Types:
IPv4 (Internet Protocol version 4)
• 32-bit address
• Format: 192.168.0.1
• Around 4.3 billion addresses
IPv6 (Internet Protocol version 6)
• 128-bit address
• Format: 2001:0db8:85a3:0000:0000:8a2e:0370:7334
• Almost unlimited addresses (3.4×10³⁸)
Structure of IPv4 Address:
• Divided into 4 octets: 192.168.1.1
• Each number is 8 bits → Total = 32 bits
• Divided into Network ID and Host ID
Routing Using IP:
1. Each packet contains source IP and destination IP.
2. Routers read destination IP to decide where to forward
the packet.
3. Packet hops through routers until it reaches the
destination.
2
Computer Network
3
Computer Network
4
Computer Network
ARP Spoofing:
A hacker tricks devices by sending fake ARP replies to
redirect data → Common in Man-in-the-Middle attacks.
Example:
Asking your neighbor, “What’s the house number of Rohan?”
(You know his name/IP but need his exact house/MAC
address)
5
Computer Network
Advantages:
• Easy IP management
• No manual configuration
• Supports mobile devices
Example:
A hotel guest asking reception for a room → Reception finds
an available room, confirms, and gives it for a certain number
of days (lease time).
9
Computer Network
Real-World Applications:
• Internet Backbone: BGP routes traffic across the
Internet.
• Traffic Engineering: Organizations control outbound
and inbound traffic paths.
• Load Balancing: Distributes network traffic across
multiple routes or ISPs.
• Cloud Routing: Cloud providers like AWS or Google
Cloud use BGP to connect users to the nearest or most
efficient data center.
• Security Monitoring: Misconfigured or malicious BGP
updates (BGP hijacks) can lead to traffic rerouting or
blackholing.
Comparison: ICMP vs BGP
Main Use
Ping, Traceroute Internet routing
Case
Protocol
Support Protocol Path Vector Routing Protocol
Type
12