Professional Documents
Culture Documents
CS F303
IP Addressing
Ashutosh Bhatia
Department of Computer Science and Information Systems
BITS Pilani Birla Institute of Technology and Science
Pilani|Dubai|Goa|Hyderabad
Pilani Campus, Pilani
BITS Pilani
Pilani|Dubai|Goa|Hyderabad
Outline
• IP addresses
• Subnetting
Problem Statement
netid hostid
• How does this help?
– An entire network (in some specific direction) could be
represented by a single entry at a router
BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
IP addresses
• Requires
– Breaking up the IP address space into disjoint sets
– Each set has a pre-defined number of bits
allocated to netid
Variable Partitioning
IP address space
A: 0 7 bits 24 bits
netid
B: 10 14 bits 16 bits
netid
• Private IP addresses:
– A: 10.0.0.0 through 10.255.255.255
– B: 172.16.0.0 through 172.31.0.0
– C: 192.168.0.0 through 192.168.255.0.
– 127.0.0.1 is loopback address.
netid hostid
subnetid hostid
144 16 68 117
Bit-wise AND
144 16 64 0
R1 R2 R3 R4
Nw 1 Nw 2 Nw 50
B1
Edge Router B2
B3
-------
B50
Nw 1 Nw 2 Nw 50
• This represents 65536 different class C network IDs, but they all
share the same high-order 7 bits.