Академический Документы
Профессиональный Документы
Культура Документы
Tahir Azim
2 14 16
CLASS “B”
10 Net ID Host-ID
e.g. Company
2 14 16 2 14 16
e.g. Site 10 Net ID 0000 Host-ID 10 Net ID 1111 Host-ID
2 14 16 2 14 16
128.9.0.0
142.12/19
65/8
128.9/16
0 232-1
2 16
128.9.16.14
Courtesy Nick McKeown (Stanford), Umar Kalim
(NIIT)
Classless Interdomain Routing (CIDR)
Addressing
128.9.19/24
128.9.25/24
128.9.16/20 128.9.176/20
128.9/16
0 232-1
128.9.16.14
Prefix aggregation:
If a service provider serves two organizations with
prefixes, it can (sometimes) aggregate them to form a
shorter prefix. Other routers can refer to this shorter
prefix, and so reduce the size of their address table.
E.g. ISP serves 128.9.14.0/24 and 128.9.15.0/24, it
can tell other routers to send it all packets belonging
to the prefix 128.9.14.0/23.
ISP Choice:
In principle, an organization can keep its prefix if it
changes service providers.
Source: http://www.cidr-report.org/
80000
60000
40000
20000
0
8 11 14 17 20 23
Prefix length (bits)
Source: Geoff Huston, Jan 2006
• Solution
– We found in the previous examples that the first
address is 140.120.80.0/20 and the number of
addresses is 4096. To find the last address, we need
to add 4095 (4096 − 1) to the first address.
– Or, set all bits that are not part of the CIDR prefix to 1
• 140.120.(0101 1111)2. (1111 1111)2 = 140.120.95.255