Assume that Source S and Destination D are connected through an intermediate router R. How many times a packet has to visit the network layer and data link layer during a transmission from S to D? 

Assume that Source S and Destination D are connected through an intermediate router R. How many times a packet has to visit the network layer and data link layer during a transmission from S to D?  Correct Answer Network layer – 3 times, Data link layer – 4 times

As router has a physical layer, data link layer, and network layer, in router packet visit the network layer in the router just once and returns back to the data link layer, hence the total number of times a packet visits the network layer is 3, i.e once in every node and the total number of times a packet visits data link layer is 4, i.e. once for terminals and twice in the router.

General Diagram

[ alt="F1 R.S 24.2.20 Pallavi D3" src="//storage.googleapis.com/tb-img/production/20/02/F1_R.S_24.2.20_Pallavi_D3.png" style="width: 640px; height: 175px;">

For an intermediate router: Network layer – 3 times, Data link layer – 4 times 

Related Questions

Assume that source S and destination D are connected through two intermediate routers labeled R. Determine how many times each packet has to visit the network layer and the data link layer during a transmission from S to D.