CS432 Assignment 2 Solution
CS432 Assignment 2 Solution
Question No. 1:
(a) Compute the checksum using 1’s complement for each of the following data bytes:
101010001
10101011
+ 10100110
01010001
+ 1
1 0 1 0 11 1 1
+
01011011
100001010
Now we will fold the caryy
1 0 1 0 11 1 1
+
01011011
00001010
+1
0 0 0 0 1 0 1 1 →checksum
1 1 1 1 0 1 0 0 →1’s complement
Final value:
Now we will add them
0 0 0 0 1 0 1 1 →checksum
+
1 1 1 1 0 1 0 0 →1’s complement
11111111
Question No. 2:
Suppose the shortest path = Min hop Routing is shown in red color i.e. x to b whose bandwidth’s
demand d is 27 Mbps. Calculate the Total bandwidth for the route x to b (shown in red color)
considering the following criteria.
x = start node
b = end node
H = no. hops on chosen route
Moreover, the MINHOP – based on the minimum hops to each node where the path length is
optimized (i.e., shortest path available).
Note: Write all necessary formulas and show calculations.
Formulas:
MINHOPE=H=5
H=5 hops
Total bandwidth for the route=d*H
Total bandwidth for the route=27*5
Total bandwidth for the route=135Mbps