Chapter 4 Solutions

advertisement
Chapter -04
October 2, 2008
Solution set
1. Change the following IP addresses from binary notation to dotted-decimal notation.
a. 10000001 00001011 00001011 11101111
129.11.11.239
b. 11000001 10000011 00011011 11111111
193.131.27.255
c. 11100111 11011011 10001101 01101000
231.219.141.104
d. 10011100 00011110 00100011 01101010
156.30.35.106
2. Change the following IP addresses from dotted-decimal notation to binary notation.
a. 129 . 11 . 11 . 239
10000001 00001011 00001011 11101111
b. 193 . 131 . 27 . 255
11000001 10000011 00011011 11111111
c. 231 . 219 . 139 . 111
11100111 11011011 10001011 01101111
d. 249 . 155 . 251 . 15
11111001 10011011 11111011 00001111
3. Find any errors in the following IP addresses.
a. 111. 56 . 045 . 78
There should be no 045 in the IP address
b. 221 . 34 . 7 . 8 . 20
Must have only 4 number to represent the dotted decimal
c. 75 . 45 . 301 .14
No number can exceed 255
d. 111001 . 101 . 111011 . 0011
A mixture of dotted decimal and binary is not allowed
e. 1 . 101 . 11 . 100
No error
4. Change the following IP addresses from binary notation to hexadecimal notation.
a. 10000001 00001011 00101011 11111110
OX810B0BFE
b. 11000001 10000011 00011101 10011000
OXC1831D98
5. Find the class of each address:
a. 00000001 00001011 00001011 11101111
A
1 CSCI 5132 – Internet Protocols
Chapter -04
October 2, 2008
b. 11000001 10000011 00011011 11111111
C
c. 10100111 11011011 10001011 01101111
B
d. 11110011 10011011 11111011 00001111
E
6. Find the class of each address:
a. 227.12.14.87
D
b. 193.12.56.22
C
c. 14.23.120.8
A
d. 252.5.15.111
E
e. 134.11.78.56
B
7. Given the network address 17.0.0.0, find the class, the block, and the range of the
addresses.
Page 91 example 9
8. Given the network address 132.21.0.0, find the class, the block, and the range of the
addresses.
Page 91 example 10
9. Given the network address 220.34.76.0, find the class, the block, and the range of
the addresses.
Page 92 example 11
10. Given the address 23.56.7.91, find the beginning address (network address).
Page 94 example 12
11. Given the address 132.6.17.85, find the beginning address (network address).
Page 94 example 13
2 CSCI 5132 – Internet Protocols
Chapter -04
October 2, 2008
12. Given the address 201.180.56.5, find the beginning address (network address).
Page 94 example 14
13. What is the address space in each of the following systems?
a. a system with 8-bit addresses?
256
b. a system with 16-bit addresses?
65536
c. a system with 64-bit addresses?
1.845 X 1019
14. An address space has a total of 1,024 addresses. How many bits are needed to
represent an address?
10
15. An address space uses three symbols: 0, 1, and 2 to represent addresses. If each
address is made of 10 symbols, how many addresses are available in this system?
3^10 = 59,049
16. Change the following IP addresses from hexadecimal notation to binary notation:
a. 0x1347FEAB
00010011 01000111 11111110 10101011
b. 0xAB234102
10101011 00100011 01000001 00000010
c. 0x0123A2BE
00000001 00100011 10100010 10111110
d. 0x00001111
00000000 00000000 00010001 00010001
17. How many digits are needed to define the netid in hexadecimal notation in each of
the following classes?
a. Class A
2
b. Class B
4
c. Class C
6
18. Find the netid and the hostid of the following IP addresses:
a. 114.34.2.8
Netid : 114 hostid: 34.2.8
b. 132.56.8.6
3 CSCI 5132 – Internet Protocols
Chapter -04
October 2, 2008
Netid: 132.56 hostid: 8.6
c. 208.34.54.12
Netid: 208.34.54 hostid: 12
19. A host with IP address 108.67.18.70 sends a limited broadcast packet to all hosts in
the same network. What are the source and destination IP addresses used in this
packet?
Source address: 108.67.18.70
Destination address: 255.255.255.255
20. A host with IP address 185.67.89.34 needs loopback testing. What are the source
and destination addresses?
Source address: 185.67.89.34
Destination address: 127.X.Y.Z (where X, Y, and Z can be anything)
21. A host in class C that does not know its IP address wants to send a message to a
bootstrap server to find its address. What are the source and destination addresses?
Source address: 0.0.0.0
Destination address: 255.255.255.255
22. In a class A subnet, we know the IP address of one of the hosts and the mask as
given below:
IP Address: 25.34.12.56
Mask: 255.255.0.0
What is the first address (subnet address)?
25.34.0.0
23. In a class B subnet, we know the IP address of one of the hosts and the mask as
given below:
IP Address: 125.34.112.66
Mask: 255.255.224.0
What is the first address (subnet address)?
125.34.96.0
4 CSCI 5132 – Internet Protocols
Chapter -04
October 2, 2008
24. What is the subnetwork address if the destination address is 200.45.34.56 and the
subnet mask is 255.255.240.0?
Page 106 example 15
25. Find the contiguous mask in each case
a. 1024 subnets in class A
255.255.192.0
b. 256 subnets in class B
255.255.255.0
c. 4 subnets in class C
255.255.255.192 – please check answer has changed
26. What is the maximum number of subnets in each case?
a. Class A; mask 255.255.192.0
1024
b. Class B; mask 255.255.192.0
4
c. Class C; mask 255.255.255.192
4
d. Class C; mask 255.255.255.240
16
5 CSCI 5132 – Internet Protocols
Download