Cs455Hw5

Q1

a. 114.34.2.8
netid: 114.0.0.0
hostid: 0.34.2.8

b. 132.56.8.6
netid: 132.56.0.0
hostid: 0.0.8.6

c. 208.34.54.12
netid: 208.34.54.0
hostid: 0.0.0.12

Q2

a. 25.34.12.56/16
network mask: 255.255.0.0
Block size:256
first address: 25.34.0.0
last adderss: 25.34.255.255

b. 182.44.82.16/26
network mask: 255.255.255.192
Block size: 64
first address: 182.44.82.0/26
last address: 182.44.82.63/26

Q3

a. ::2222
0000:0000:0000:0000:0000:0000:0000:2222

b. 1111::
1111:0000:0000:0000:0000:0000:0000:0000

c. 0:1:2::
0000:0001:0002:0000:0000:0000:0000:0000

d. B:A:CC::1234:A
000B:000A:00CC:0000:0000:0000:1234:000A

Q4

a.
host bit: log2(128) = 7
32 – 7 = 25 → /25

150.80.0.0/25 - 150.80.99.128/25, 200

b.
host bit: log2(16) = 4
32 – 4 = 28 → /28

150.80.100.0/28 - 150.80.124.240/28, 400

c.
host bit: log2(4) = 2
32 – 2 = 30 → /30

150.80.125.0/30 - 150.80.150.60/30

how many addresses are still available after these allocations

Total address = 2^16 = 65536

65536 - 128 * 200 - 16 * 400 - 4 * 2000 = 25536
Thus there will have 25536 addresses left

Q5

a

R1

MaskNetwork addressNext-hopInterface
/23200.23.16.0—m0
/23200.23.18.0—m1
/23200.23.20.0—m2
/23200.23.22.0—m3
/00.0.0.0R3m4

R2

MaskNetwork addressNext-hop routerInterface
/20199.23.16.0—m0
/00.0.0.0R3m1

R3

MaskNetwork addressNext-hopInterface
/20200.23.16.0R1m0
/20199.23.16.0R2m1
/00.0.0.0Internetm2

b

R1

MaskNetwork addressNext-hopInterface
/23200.23.16.0—m0
/23200.23.18.0—m1
/23200.23.20.0—m2
/00.0.0.0R3m4

R2

MaskNetwork addressNext-hopInterface
/23200.23.22.0—m2
/20199.23.16.0—m0
/00.0.0.0R3m1

R3

MaskNetwork addressNext-hopInterface
/22200.23.16.0R1m0
/23200.23.20.0R1m0
/23200.23.22.0R2m1
/20199.23.16.0R2m1
/00.0.0.0Im2

Q6

a. no options
b. not fragmented
c. 64 bytes
d. the value is 0 of checksum is used
e. the packet can do 32 more hops
f. identification number: 00 03 which is decimal 3
g. No

Q7

45 00 0F B4 38 E7 00 00
Total Length = 0FB4 = 4020
Needs to fragment into 3

FragmentTotal-length (bytes)IdentificationOffset (8-byte units)D (DF)M (MF)
1150014567 (or 38 E7)001
2150014567(or 38 E7)18501
3106014567(or 38 E7)37000

Q8

Router A

DestinationNext-hopCost
A—0
BB2
CB6
DB7
EB11
FB11
GB12

Router G

DestinationNext-hopCost
G—0
EE1
FE2
DE5
CE6
BE10
AE12

Q9

DestinationDistance (hops)Next-Hop
Net 10direct
Net 20direct
Net 55Router J
Net 176Router M
Net 229Router J
Net 246Router J
Net 302Router Q
Net 424Router J