1 IP Addressing: Classful 0 network host 10 network host 110 networkhost 1110 multicast address A B C D class to to to to bits Dotted-decimal notation Binary form
2 IP Addresses: Examples Class “A” address: (18 Class A) Class “B” address:cs.sci.ku.ac.th (128 Class B)
3 Subnetting CLASS “B” e.g. Company 10Net ID Host-ID Net ID Host-ID Subnet ID (20) Subnet Host ID (12) 10Net ID Host-ID Subnet ID (20) Subnet Host ID (12) 10Net ID Host-ID Subnet ID (22) Subnet Host ID (10) 10Net ID Host-ID Subnet ID (26) Subnet Host ID (6) e.g. Site e.g. Dept
4 Subnet Mask Subnet mask: All 1’s for network suffix and All 0’s for host suffix. (เช่น ) Used for routing table lookup: IF ((Mask[i] & Destination Addr) = = Destination[i]) Forward to NextHop[i] Mask must have contiguous 1s followed by contiguous zeros. Subnet mask can end on any bit. Internal routers & hosts use subnet mask to identify “subnet ID” and route packets between “subnets” within the “network”. Routers do not support other types of masks.