Outline
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. Introduction Review Of Relevant Facts Minimizing Network Numbers Proxy ARP Subnet Addressing Flexibility In Subnet Address Assignment Variable-Length Subnets Implementation Of Subnets With Masks Subnet Mask Representation Forwarding In The Presence Of Subnets The Subnet Forwarding Algorithm A Unified Forwarding Algorithm Maintenance Of Subnet Masks 14. Broadcasting To Subnets 15. Anonymous Point-To-Point Networks 16. Classless Addressing And Supernetting 17. CIDR Address Blocks And Bit Masks 18. Address Blocks And CIDR Notation 19. A Classless Addressing Example 20. Data Structures And Algorithms For Classless Lookup 21. Longest-Match And Mixtures Of Route Types 22. CIDR Blocks Reserved For Private Networks 23. Summary
2
Arrange special system to answer ARP requests and forward datagrams between networks
Hosts think they are on same network Allow two physical networks to share a single IP prefix Known informally as the ARP hack
Assessments
Chief advantages
Transparent to hosts No change in IP routing tables
Chief disadvantages
Does not generalize to complex topology Only works on networks that use ARP Most proxy ARP systems require manual configuration
Subnet Addressing
Subdivides the host suffix into a pair of fields for physical network and host
Allows an organization to use a single network prefix for multiple physical networks Interpreted only by routers and hosts at the site; treated like normal address elsewhere
Both physical networks share prefix 128.10 Router R uses third octet of address to choose physical net Address Mask: Each physical network is assigned 32-bit address mask (also called subnet mask)
Active Routes: Network Destination Netmask Gateway 0.0.0.0 0.0.0.0 192.168.0.1 127.0.0.0 255.0.0.0 127.0.0.1 192.168.0.158 255.255.255.255 127.0.0.1 192.168.0.0 255.255.255.0 192.168.0.158 192.168.0.255 255.255.255.255 192.168.0.158
Flexibility of CIDR
Merging 256 Class C numbers into a single prefix that is equivalent to Class B Splitting a Class B along power of two boundaries
Solution to problem
Temporary fix until next generation of IP Backward compatible with classful addressing
8
CIDR Techniques:
Extended Addressing: subnet + supernet
blocks of address numbers
Supernetting
Supernetting: assigning a block of contiguous class C numbers Route Proliferation
Example: a block of 256 contiguous class C numbers (equal to a class B)
supernetting: single CIDR prefix spans 256 Class C network numbers Classful routing table requires 256 separate entries for each class C
10
128.211.168.0/21
Mask values must be converted to dotted decimal when configuring a router (and binary internally)
11
12
CIDR Forwarding
Implementation Of CIDR Route Lookup
Each entry in routing table has address plus mask Search is organized from most-specific to least-specific (i.e., entry with longest mask is tested first) Known as longest-prefix lookup or longest-prefix search
13
Route Propagation
Route Exchange: route per CIDR block
Store address mask with each route Send pair of (address, mask) whenever exchanging routing information
14
Summary
Two extensions to original classful IP addressing scheme
Subnet addressing CIDR addressing