Quiz
Quiz
Answer: A network-layer packet is a datagram. A router forwards a packet based on the packet’s IP
(layer 3) address. A link-layer switch forwards a packet based on the packet’s MAC (layer 2) address.
Answer: Forwarding is about moving a packet from a router’s input link to the appropriate output link.
Routing is about determining the end-to-routes between sources and destinations.
R3. What are the two most important network-layer functions in a datagram network? What are the
three most important network-layer functions in a virtual-circuit network?
Link state algorithms: Computes the least-cost path between source and destination using complete,
global knowledge about the network. Distance-vector routing: The calculation of the least-cost path is
carried out in an iterative, distributed manner. A node only knows the neighbor to which it should
forward a packet in order to reach given destination along the least-cost path, and the cost of that path
from itself to the destination.