Professional Documents
Culture Documents
Exer1 Sol
Exer1 Sol
A host with IP address 185.67.89.34 needs loopback testing. What are the source and
destination addresses? [5]
2. 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)? [5]
IP Address: 25 . 34 . 12 . 56
Mask: 255 . 255 . 0 . 0
------ ------ ------ -----Subnet Address: 25 . 34 . 0 . 0
3. An ISP is granted a block of addresses starting with 120.60.4.0/20. The ISP wants to
distribute these block to 100 organizations with each organization receiving 8 addresses
only. Design the sub-blocks and give the slash notation for each sub-block. Find out how
many addresses are still available after these allocations. [10]
The site has 23220 = 212 = 4096 addresses. We need to add 7 more 1s to the site prefix (2x 100; x = 7).
23227 = 25 = 32. Each of the 100 organizations has 32 addresses, but only 8 are needed. We add 2 more 1s
to the site prefix. 23229 = 8.
1st subnet: 120.60.4.0/29 to 120.60.4.7/29
... ... ...
32nd subnet: 120.60.4.248/29 to 120.60.4.255/29
33rd subnet: 120.60.5.0/29 to 120.60.5.7/29
... ... ...
64th subnet: 120.60.5.248/29 to 120.60.5.255/29
... ... ...
99th subnet: 120.60.7.16/29 to 120.60.7.23/29
100th subnet: 120.60.7.24/29 to 120.60.7.31/29
Subnets:
4096 800 = 3296 addresses left
Mask
Network address
Next-hop address
Interface
/22
120.14.96.0
---
m0
/22
120.14.100.0
---
m1
/22
120.14.104.0
---
m2
/22
120.14.108.0
---
m3
/0
0.0.0.0
default router
m4
6. IP .
. [ 5, 40]
0x45 0x0 0x?? 0x??
0
0x00 0x0 0x2 0x00
3
0
0x30 0x0 0x?? 0x??
6
0x8d 0xdf 0x0 0x14
5
0x8d 0xdf 0x5 0x26
2
0x02 0x2 0x4 0xab
2
5
0xab 0x5 0x0 0x56
6
0
0x45 0x6 0xac 0x78
7
0x67 0x7 0xb 0x09
8
a
0x14 0x9 0x0 0x99
0
9
0x3b 0xac 0x0 0xca
8
0x90 0x1 0x9 0xab
2
0
(a) IP 2 .
? 3 , 4 .
0x00, 0x30 12*4=48. 16 0x30.
(b) payload 8bit ?
00000000, IHL 5 6 payload .
0x00.
fragment .
(e) () ? 16
.
0x30, Time to Live . hop .