Assignment #4
Assignment #4
_____________________________
________________________________________________
What are the two most important network-layer functions in a datagram net- work? What are the three
most important network-layer functions in a virtual- circuit network?
What is the difference between routing and forwarding?
A routers has 8 interfaces . How many IP addresses will it have ?
Suppose Host A sends Host B a TCP segment encapsulated in an IP datagram. When Host B receives the
datagram, how does the network layer in Host B know it should pass the segment (that is, the payload of
the datagram) to TCP rather than to UDP or to something else?
Consider a datagram network using 32-bit host addresses. Suppose a router has four links, numbered 0
through 3, and packets are to be forwarded to the link interfaces as follows:
Destination Address Range Link Interface
a. Provide a forwarding table that has five entries, uses longest prefix matching, and forwards packets to the
correct link interfaces.
b. Describe how your forwarding table determines the appropriate link inter- face for datagrams with destination
addresses:
11001000 10010001 01010001 01010101
11100001 01000000 11000011 00111100
11100001 10000000 00010001 01110111