Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 4

<Exercise 1>

Due date: July 17, 11:59 P.M.


1.

A host with IP address 185.67.89.34 needs loopback testing. What are the source and
destination addresses? [5]

Source address: 185.67.89.34 Destination address: 127.X.Y.Z

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

4. Router R2 routing table . [10]

Class Destination Next Hop I.

Class A 111.0.0.0 --- m1


Class B 145.80.0.0 111.25.19.20 m1
170.14.0.0 111.25.19.20 m1

Class C 192.16.7.0 111.15.17.32 m1


Default 0 default router m0

5. Local ISP 2 routing table . [10]

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.

(c) fragment? ? fragment?


More Flag 1 fragment . offset 0 fragment..
(d) fragment ? ?
. Dont Fragment Flag 0 setting More Flag 1 setting

fragment .

(e) () ? 16
.
0x30, Time to Live . hop .

(f) header checksum .

(g) Destination address class ?


B class. Destination 0x8d . 2 100001110
. 2 10 B class.

(h) (subnet mask) 255.255.255.0 LAN . Sender


host ? 16 .
0x14, subnet mask 255.255.255.0 256 . sender(source address)
8 host number . 16 0x14.

You might also like