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.
View worked solution
Answer: C
To find the number of times a packet visits the network layer and the data link layer, let us trace the path of the packet from the source to the destination through two intermediate routers and :
Let us analyze the layer transitions at each node:
- At Source ():
- The packet is created and passed down to the Network layer (1st visit).
- It is then passed down to the Data Link layer (1st visit) for framing before transmission.
- At Router ():
- The frame is received and processed up to the Data Link layer (2nd visit).
- The packet is passed up to the Network layer (2nd visit) to determine the next hop.
- It is then sent back down to the Data Link layer (3rd visit) to be encapsulated into a new frame.
- At Router ():
- The frame is received and processed up to the Data Link layer (4th visit).
- The packet is passed up to the Network layer (3rd visit) for routing.
- It is then sent back down to the Data Link layer (5th visit) for the final hop.
- At Destination ():
- The frame is received and processed up to the Data Link layer (6th visit).
- The packet is passed up to the Network layer (4th visit) to be delivered to the higher layers.
Summary of Visits:
- Network layer: times
- Data link layer: times
Thus, the network layer is visited 4 times and the data link layer is visited 6 times.
Free practice · Your answers on this page are not saved.
