0% found this document useful (0 votes)
5 views

Assignment #4

The document discusses network layer functions in datagram and virtual circuit networks, the difference between routing and forwarding, IP addressing for routers, how the network layer knows which protocol to use, longest prefix matching for forwarding tables, and IP fragmentation.

Uploaded by

jamila almutari
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Assignment #4

The document discusses network layer functions in datagram and virtual circuit networks, the difference between routing and forwarding, IP addressing for routers, how the network layer knows which protocol to use, longest prefix matching for forwarding tables, and IP fragmentation.

Uploaded by

jamila almutari
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Computer science department

Computer Network COE351


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

11100000 00000000 00000000 00000000 through 0


11100000 00111111 11111111 11111111
11100000 01000000 00000000 00000000 through 1
11100000 01000000 11111111 11111111
11100000 01000001 00000000 00000000 through 2
11100001 01111111 11111111 11111111
otherwise 3

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

 Consider sending a 2400-byte datagram into a link that has an MTU of


700 bytes. Suppose the original datagram is stamped with the identification number 422. How many
fragments are generated? What are the values in the various fields in the IP datagram(s) generated
related to fragmentation?
Suppose there are 35 hosts in a subnet . What should the IP structure look like ?

You might also like