1,489 views
7 votes
7 votes
In packet switching network packet are routed from source to destination along a single path having 2 intermediate nodes ,if message size is 48 bytes and each packet contain header of 6 bytes then find optimal packet size...

2 Answers

2 votes
2 votes

(Basic Assumption is that all packets are of same size)

The key here to solve this problem is the fact that packet transmissions from intermidiate switches (routers here) can be overlapped.

Case(1): Message is not at all splitted and no. of packets (of 54B each) is 1...

Transmission Time @ source = 54/bandwidth

Transmission Time @ switch R1 = 54/bandwidth

Transmission Time @ switch R2 = 54/bandwidth

Hence total time= 3*54/bandwidth = 162/bandwidth

Case(2): Message is split in 2 packets (30B each)

Transmission Time @ source = 2*30/bandwidth

Transmission Time @ switch R1 = 30/bandwidth  ......{note 2 packets are transmitted on the line in parallel}

Transmission Time @ switch R2 = 30/bandwidth

Hence total time = 120/bandwidth

----------------

Similarly perform with 3 packets of 22B each : Total Time = 110/bandwidth

With 4 packets of 18B each: Total time = 72/b + 18/b + 18/b = 108/bandwidth

With 6 packets of 14B each : Total time = 84/b + 14/b + 14/b = 112/bandwidth

------------

Thus for sending entire file in minimum time with error-free channel (to save retransmissions of bigger packet sizes) one should go for a split of 4 packets where each packet is having the size of 18B.

------------

TIP - There was a question in Gate-14 (Set 1) which is based on this very concept :)

1 votes
1 votes
packet size  P = p+h   where  h is  header  size  and  p = √ (hx / k-1)    where  x  is  message  size  and  k is  no of  hops.  

here , message size is 48 bytes = x

and each packet contain header of 6 bytes = h

it says , " single path having 2 intermediate nodes" that means k=3

so, p =  √(6 * 48 / 2)

= √ 144

= 12

Hence packet size P = 12 + 6 = 18
edited by
Answer:

Related questions


Deprecated: Implicit conversion from float-string "1543074657.184" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1543074657.184" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1543074657.184" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1543074657.184" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1532590592.054" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1532590592.054" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1532590592.054" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1532590592.054" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1525500621.421" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1525500621.421" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1525500621.421" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1525500621.421" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803
1.1k
views
1 answers
3 votes
John Doe asked Nov 24, 2018
1,135 views
Suppose Host A is connected to another Host B via a switch. The data rate of the link connecting the hosts to the switch is Rbps. Assume a packet length of L bits. In the...
1.4k
views
1 answers
0 votes
Lone Wolf asked Jul 26, 2018
1,362 views
Consider the store and forward packet switched network where host A and B are connected via 2 routers R1 and R2 . Assume Transmission time to be 1ms and Propagation time ...
786
views
1 answers
2 votes
!KARAN asked May 5, 2018
786 views
How long does it take a packet of length L to propagate over a link of distance D, propagation speed S, and transmission rate R bps. Does this delay depend on transmissio...
771
views
1 answers
2 votes