Professional Documents
Culture Documents
Q1)
To convert IP addresses from dotted-decimal notation to binary notation, you can represent each
decimal number in its 8-bit binary form. Here are the conversions for the provided IP addresses:
a. 114.34.2.8
34 in binary: 00100010
2 in binary: 00000010
8 in binary: 00001000
b. 129.14.6.8
14 in binary: 00001110
6 in binary: 00000110
8 in binary: 00001000
c. 208.34.54.12
34 in binary: 00100010
54 in binary: 00110110
12 in binary: 00001100
34 in binary: 00100010
2 in binary: 00000010
1 in binary: 00000001
Q2)
To convert IP addresses from hexadecimal notation to binary notation, you need to represent each
hexadecimal digit as its 4-bit binary equivalent. Here are the conversions for the provided hexadecimal IP
addresses:
a. 0x1347FEAB
1 in binary: 0001
3 in binary: 0011
4 in binary: 0100
7 in binary: 0111
F in binary: 1111
E in binary: 1110
A in binary: 1010
B in binary: 1011
b. 0xAB234102
A in binary: 1010
B in binary: 1011
2 in binary: 0010
3 in binary: 0011
4 in binary: 0100
1 in binary: 0001
0 in binary: 0000
2 in binary: 0010
c. 0x0123A2BE
0 in binary: 0000
1 in binary: 0001
2 in binary: 0010
3 in binary: 0011
A in binary: 1010
2 in binary: 0010
B in binary: 1011
E in binary: 1110
d. 0x00001111
0 in binary: 0000
0 in binary: 0000
0 in binary: 0000
0 in binary: 0000
1 in binary: 0001
1 in binary: 0001
1 in binary: 0001
1 in binary: 0001
These are the binary representations of the given hexadecimal IP addresses. Note that the "0x" prefix is
used to indicate that the numbers are in hexadecimal notation and should be ignored in the binary
conversion
Q3)
IP Address: 01111111 11110000 01100111 01111101
Divide the binary number into 4 sets of 8 bits each.
Convert each set of 8 bits to its decimal equivalent.
The sets in decimal form are: 127, 240, 103, and 125.
Combine them with dots to get the dotted-decimal notation: 127.240.103.125
Q4)
To determine the class of an IP address, We need to examine the first few bits of
the binary representation of the address. The class is determined by the leading
bits in the binary address. Here are the classes for the provided binary IP
addresses:
The first 4 bits (1111) indicate Class E, which is reserved and not used for regular
IP addresses.
10101111 11000000 11110000 00011101
The first 4 bits (1101) indicate Class D, which is reserved for multicast groups.
11101111 11110111 11000111 00011101
The first 4 bits (1110) indicate Class E, which is reserved and not used for regular
IP addresses.
So, for the given IP addresses:
Q5)
To perform a bitwise NOT operation on each of these IP addresses, we need to
convert each decimal number in the IP address to its binary representation and
then apply the NOT operation to each binary digit. Here are the results:
NOT (22.14.70.34):
Binary Representation: 00010110.00001110.01000110.00100010
NOT Operation: 11101001.11110001.10111001.11011101
NOT (145.36.12.20):
Binary Representation: 10010001.00100100.00001100.00010100
NOT Operation: 01101110.11011011.11110011.11101011
NOT (200.7.2.0):
Binary Representation: 11001000.00000111.00000010.00000000
NOT Operation: 00110111.11111000.11111101.11111111
NOT (11.20.255.255):
Binary Representation: 00001011.00010100.11111111.11111111
NOT Operation: 11110100.11101011.00000000.00000000
Q6)
To perform bitwise OR operations on these IP addresses, WE NEED TO
convert them to binary notation and then apply the OR operation bit by
bit.
(22.14.70.34) OR (255.255.0.0)
It's not possible to perform this operation because "Q" is not a valid
binary digit.
Q7)
To determine the subnet address and the last address in a Class B subnet given
the IP address and subnet mask, follow these steps:
Perform a bitwise AND operation between the IP address and the subnet mask to
find the subnet address:
To find the last address, consider that the subnet address represents the first
address in the subnet. The last address in the subnet is the highest address within
the range.
In a Class B subnet with a subnet mask of 255.255.224.0 (or /19 in CIDR notation),
the total number of possible addresses in the subnet is 2^13 = 8192 addresses.
However, the first and last addresses are reserved, leaving 8190 usable addresses.
So, to find the last address, add 8190 to the subnet address:
The first address (subnet address) is 131.134.96.0, and the last address is
131.134.127.255.
Q8)
To calculate the subnet mask for each of the given scenarios, we need to
determine how many bits are borrowed for subnetting.
24 Subnets in Class A:
To create 24 subnets, we need to borrow enough bits from the host portion of the
Class A address to accommodate 24 subnets. Since 2^3 = 8 and 2^4 = 16, you'll
need 4 bits for subnetting to have more than 24 subnets.
Class A default subnet mask: 255.0.0.0 (8 bits for the network portion)
To create 24 subnets, we need to change the subnet mask to include 4 bits for
subnetting:
Subnet Mask: 255.240.0.0 (The first 4 bits of the second octet are set to 1,
indicating the subnet portion).
256 Subnets in Class B:
To create 256 subnets, we need to borrow enough bits from the host portion of
the Class B address to accommodate 256 subnets. Since 2^8 = 256, we'll need 8
bits for subnetting.
Class B default subnet mask: 255.255.0.0 (16 bits for the network portion)
To create 256 subnets, we need to change the subnet mask to include 8 bits for
subnetting:
Subnet Mask: 255.255.255.0 (The last octet is all 1s, indicating the subnet
portion).
32 Subnets in Class C:
To create 32 subnets, we need to borrow enough bits from the host portion of the
Class C address to accommodate 32 subnets. Since 2^5 = 32, we'll need 5 bits for
subnetting.
Class C default subnet mask: 255.255.255.0 (24 bits for the network portion)
To create 32 subnets, we need to change the subnet mask to include 5 bits for
subnetting:
Subnet Mask: 255.255.255.224 (The last 3 bits of the last octet are set to 1,
indicating the subnet portion).
4 Subnets in Class C:
To create 4 subnets, we need to borrow enough bits from the host portion of the
Class C address to accommodate 4 subnets. Since 2^2 = 4, we'll need 2 bits for
subnetting.
Class C default subnet mask: 255.255.255.0 (24 bits for the network portion)
To create 4 subnets, we need to change the subnet mask to include 2 bits for
subnetting:
Subnet Mask: 255.255.255.192 (The last 2 bits of the last octet are set to 1,
indicating the subnet portion).
These subnet masks will allow us to create the specified number of subnets in
each class.
Q9)
To find the first address (network address) and the last address (limited
broadcast address) in the given block of IP addresses (182.44.82.16/26), we need
to determine the network address and the range of addresses within the /26
subnet.
A /26 subnet means that the first 26 bits of the address are the network portion,
and the remaining bits are for hosts. In this case, the first 26 bits are fixed, and we
have 6 bits for host addresses within this subnet.
Let's calculate the network address and the range of host addresses:
Network Address:
The network address can be obtained by setting all host bits to 0 within the /26
subnet.
Since this is a /26 subnet, the host bits (the last 6 bits) are all 0:
Find the first and last address in the first subnet (subnet 1):
Q11)
To find the range of addresses in each of the provided IP address blocks with
their corresponding subnet masks, we need to identify the network address, first
usable address, last usable address, and the broadcast address for each block.
Let's calculate the ranges for each block:
123.56.77.32/29:
200.17.21.128/27:
17.34.16.0/23:
180.34.64.64/30:
These are the ranges of addresses for each of the provided IP address blocks with
their corresponding subnet masks.
Q12)
Yes, in classless addressing (CIDR), we can find the prefix length (subnet mask)
when we know the first address and the number of addresses in the block. To find
the prefix length, we need to calculate how many bits are required to represent
the range of addresses in the block.
Example:
Let us consider we have a block of addresses, and we know the first address is
192.168.1.0 and there are 32 addresses in the block.
So, the prefix length for this block of addresses is /27 in CIDR notation, and the
subnet mask would be 255.255.255.224 in dotted-decimal notation.
In summary, you can find the prefix length in classless addressing when you know
the first address and the number of addresses in the block by calculating how
many bits are required to represent the address range.
Q13)
To distribute the block of addresses 150.80.0.0/16 to the ISP's 2600 customers,
taking into account the requirements of each customer group, we can design
subblocks as follows:
Q14)
To distribute the block of addresses 120.60.4.0/20 to 100 organizations, with
each organization receiving only 8 addresses, we can design subblocks as follows:
Allocate a /28 Block for Each Organization:
Each organization receives 8 addresses, which can be represented with a /28
subnet.
A /28 subnet provides 16 addresses (2^4), with 14 usable addresses after
considering the network and broadcast addresses.
Allocate a /28 block for each organization.
Now, calculate the number of /28 blocks needed for 100 organizations:
To calculate the slash notation for each subblock, we need to determine the
starting address for each block, which increases sequentially. Starting with
120.60.4.0/20, you can allocate as follows:
Organization 1: 120.60.4.0/28
Organization 2: 120.60.4.16/28
Organization 3: 120.60.4.32/28
...
Organization 100: 120.60.4.384/28
After allocating addresses to these 100 organizations, we have used 100 * /28
blocks, which equals a /23 block (100 * 16 = 1600 addresses). So, the remaining
addresses in the original /20 block are:
So, we have 3,584 addresses still available in the original /20 block (120.60.4.0/20)
after allocating addresses to the 100 organizations.
Q15)
No, the ISP does not need subnetting in this case. Subnetting is typically used to
divide a larger block of IP addresses into smaller subnets to efficiently manage and
allocate addresses to different network segments or customers.
In your scenario, the ISP already has a block of 1024 addresses, which is exactly
the number of addresses needed for 1024 customers. Since there is a one-to-one
correspondence between the number of available addresses and the number of
customers, there is no need for further subdivision through subnetting.