






















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!























TCP/IP Protocol Suite^1
Upon completion you will be able to:
TCP/IP Protocol Suite^2
5.1 VARIABLE-LENGTH BLOCKS
In classless addressing variable-length blocks are assigned that belong to no class. In this architecture, the entire address space (232 addresses) is divided into blocks of different sizes.
The topics discussed in this section include:
Restrictions Finding the Block Granted Block
TCP/IP Protocol Suite^4
Figure 5.1 Variable-length blocks
TCP/IP Protocol Suite^5
Which of the following can be the beginning address of a block that contains 16 addresses? a. 205.16.37.32 b.190.16.42. c. 17.17.33.80 d.123.45.24.
Solution Only two are eligible (a and c). The address 205.16.37.32 is eligible because 32 is divisible by 16. The address 17.17.33.80 is eligible because 80 is divisible by 16.
TCP/IP Protocol Suite^7
Which of the following can be the beginning address of a block that contains 1024 addresses? a. 205.16.37.32 b.190.16.42. c. 17.17.32.0 d.123.45.24.
Solution In this case, we need to check two bytes because 1024 = 4 × 256. The right-most byte must be divisible by 256. The second byte (from the right) must be divisible by 4. Only one address is eligible (c).
TCP/IP Protocol Suite^8
Figure 5.2 Format of classless addressing address
TCP/IP Protocol Suite^10
Classful addressing is a special case of classless addressing.
Note:
TCP/IP Protocol Suite^11
What is the first address in the block if one of the addresses is 167.199.170.82/27?
Address in binary: 10100111 11000111 10101010 01010010 Keep the left 27 bits: 10100111 11000111 10101010 01000000 Result in CIDR notation: 167.199.170.64/
Solution The prefix length is 27, which means that we must keep the first 27 bits as is and change the remaining bits (5) to 0s. The following shows the process:
TCP/IP Protocol Suite^14
Find the first address in the block if one of the addresses is 140.120.84.24/20.
See Next Slide
Solution The first, second, and fourth bytes are as defined in the previous example. To find the third byte, we write 84 as the sum of powers of 2 and select only the leftmost 4 (m is 4) as shown in Figure 5.4. The first address is 140.120.80.0/20.
TCP/IP Protocol Suite^16
Find the number of addresses in the block if one of the addresses is 140.120.84.24/20.
Solution The prefix length is 20. The number of addresses in the block is 232 −^20 or 212 or 4096. Note that this is a large block with 4096 addresses.
TCP/IP Protocol Suite^17
Using the first method, find the last address in the block if one of the addresses is 140.120.84.24/20.
See Next Slide
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.
TCP/IP Protocol Suite^19
Using the second method, find the last address in the block if one of the addresses is 140.120.84.24/20.
See Next Slide
Solution The mask has twenty 1s and twelve 0s. The complement of the mask has twenty 0s and twelve 1s. In other words, the mask complement is 00000000 00000000 00001111 11111111 or 0.0.15.255. We add the mask complement to the beginning address to find the last address.
TCP/IP Protocol Suite^20
We add the mask complement to the beginning address to find the last address.
The last address is 140.120.95.255/20.