Data Communication and Networking
Data Communication and Networking
d- 129.14.6.8
d- Class B
10Q. a- 11110111 11110011 10000111 11011101
a- Class E
b- 10101111 11000000 11110000 00011101
b- Class B
c- 11011111 10110000 00011111 01011101
c- Class C
d- 11101111 11110111 11000111 00011101
d- Class D
11Q. a- 114.34.2.8
a- Netid : 114 hostid: 34.2.8
b- 132.56.8.6
b- Netid: 132.56 hostid: 8.6
c- 208.34.54.12
c- Netid: 208.34.54 hostid: 12
d- 251.34.98.5
d- Reserved for future use.
12Q. First Address - 14.7.24.0
Last Address - 14.14.34.255
The above address is belongs to Class A
The number of address in the network is 2^32-n = 2^24 = 16777216
13Q. First address -122.12.7.0
2048 address in the range.
>AND operation
12.14.70.34
255.0. 0. 0
12.0.0.0.0
>AND Operation
c- (14.110.160.12) AND(255.200.140.0)
c- Answer is
14.110.160.12
255.200.140.0
14.72.128.0
d- (28.14.40.100)AND(255.128.100.0)
d- Answer is 28.14.40.100
255.128.100.0
28.0.32.0
>And Operation
>OR Operation
b- (12.11.60.12) OR(255.0.0.0)
b- Answer is 12.11.60.12
255.0.0.0
255.11.60.12
> OR Operation
14.110.160.12
255.200.140.0
255.246.172.12
>OR Operation
d- (28.14.40.100) OR(255.200.140.0)
d- Answer is
28.14.40.100
255.200.140.0
255.142.108.100
>OR Operation
17Q. IP Address
subnet mask
First Address
:
:
:
25.34.12.56
255.255.0.0
25.34.0.0
IP Address
Subnet mask
Last Address
:
:
:
25.34.12.56
In Class A >OR Operation
0.0.255.255
25.34.255.255
18Q. IP Address
Subnet mask
First Address
:
:
:
131.134.112.66
255.255.224.0
131.134.96.0
:
:
:
131.134.112.66
0.0.31.255
131.134. 127.255
IP Address
Subnet mask
Last address
In Class B
>AND Operation
19Q. IP Address
Subnet mask
First Address
IP Address
Subnet mask
Last Address
: 202.44.82.16
: 255.255.255.192
: 202.44.82.0
In Class C
>AND Operation
: 202.44.82.16
: 63.255.255.255
: 202.44.82.255
In Class C
>OR Operation
25.34.12.56
255.255.0.0
25.34.0.0
IP Address 25.34.12.56
complement of the Mask (NOT)- 0.0.255.255
Last Address (OR) 25.34.255.255
22Q. IP Address - 182.44.82.16/26
IP Address Networkmask First Address (AND) -
182.44.82.16
255.255.255.192
182.44.82.16
IP Address 182.44.82.16
Complement of the Mask (NOT) 0.0.0.63
Last Address (OR) 182.44.82.63
23Q. Desired Subnet
a- 2
b- 62
c- 122
d- 250
- Binary Notation
-1
- 00111110
- 01111010
- 11111010
Subnet mask
255.255.255.192
255.255.255.192
255.255.255.192
255.255.255.192
Broadcast address
130.56.0.64
130.56.0.128
130.56.0.192
130.56.0.255
25 th Answers:
a- Subnet Mask 255.255.255.192
b- Number of address in each subnet is = 64
c- First subnet First address is = 130.56.0.0
First subnet Last address is = 130.56.0.64
d- Last Subnet First address is =130.56.0.192
last subnet Last address is = 130.56.0.255
26Q. Answer Explanation: Block Address is 211.17.180.0/24
Create 32 subnets, 32= 2^5
Already block consist prefix length is 24
So If we need to create 32 subnets mean n sub = n+log32
n sub = 24+5
n sub = 29
Number of addresses is 2^32-n = 2^32-29
2^32-n = 2^3
2^32-n = 8
Subnet address Subnet mask
Broadcast address
211.17.180.0
255.255.255.248
211.17.180.8
211.17.180.8
255.255.255.248
211.17.180.16
211.17.180.16
255.255.255.248
211.17.180.24
211.17.180.24
255.255.255.248
211.17.180.32
211.17.180.32
255.255.255.248
211.17.180.40
And so on
211.17.180.248 255.255.255.248
211.17.180.255
26 th answers:
a- Subnet Mask is 255.255.255.248
b- Number of addresses in each subnet is 8
c- First subnet First address is 211.17.180.0
First Subnet Last address is 211.17.180.8
d- Last Subnet First address is 211.17.180.248
Last Subnet Last address is 211.17.180.255
27Q.
a- /24
b- /8
c- /27
d- /28
28Q.
a- Range of addresses in address block is 123.56.77.32/29
My answer is including the Network address and broadcast address
123.56.77.32 - 123.56.77.39
b- Range of addresses in given address block is 200.17.21.128/27
200.17.21.128 200.17.21.159(includes network and broad cast address)
c-Range of address in given address block is 17.34.21.128/23
range between 17.34.16.0 -17.34.17.255 (includes network and broad cast address)
d- Rande of address in given as 180.34.64.64/30
range between 180.34.64.64 -180.34.64.67
29Q. Yes, we can find the prefix length if address is given in block. So I will give an example
Example:
First address is 230.8.24.0
Last address is 230.8.24.63
The difference between first address last bit digit is 0 and last address last bit digit is 63
if we substract from 255 last address last digitwecould get the network mask length in first
address.
That is 255-63 =192
If we see the subnet mask for the first address in binary notation
First IP address 11100110 00001000 00011000 00000000
Subnet mask
11111111 11111111 11111111 11000000
230
8
24
0
Last IP address 11100110 00001000 00011000 0011111
Complement
00000000 00000000 00000000 0011111
230
8
24
63
From above mask if we see in first and last address we can say thet the prefix length is 26.
30Q.Yes, we can find the prefix length if they give the number of address and first address.
Example: No.of addresses are =32 and first address is 167.199.170.82
Total number of addresses 32 =2^5
Prefix length is n sub= 2^32-n
n sub = 2^32-5
n sub = 2^27
Equation is,
the value of prefix lenth can be found from n sub =2^32-n, then n=log2^32/N
n sub =32-log2^N
If we substitute the value prefix length n = 32-log2^N
n= 32-log2^32
n= 32-log2^32
n= 27.
31Q. Yes, If prefix legth is same in blocks of the classless addressing it could be be possible.
n1 =16+log(65536/25600) =17
n2= 16+log(65536/6400) =19
n3= 16+log(65536/8000)= 19