Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

BC220402682

HIRA NASEEM

(a) Compute the checksum using 1’s complement for each of the following data bytes:

01010100 01011001 10100010 10100100

Answer

1’s complement for each of the following bytes:

10101011 10100110 01011101 01011011

Add 1’s complement for each of the following bytes

10101011

+ 10100110

01010001

+ 1

01010010

+ 01011101

10101111

+ 01011011

00001010

+ 1

00001011

Here is the checksum 0 0 0 0 1 0 1 1

1’s complement 1 1 1 1 0 1 0 0

(b) Write the final value which will be sent to the receiver after checksum calculation.
Final value :
00001011 checksum
11110100 1’s complement

11111111
QuestionNo.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.

Answer:

Chosen route is the shortest path (Min hop Routing), Min hop is equal to the number
of hops on the shortest path.

Total Bandwidth= H*d*MINHOP

Where:

H is the number of hops

D is the bandwidth

MINHOP is based on the minimum hops to each node

Total bandwidth for the route= 27*5

Total bandwidth for the route= 135Mbps

You might also like