UNIVERSITY OF CALIFORNIA, DAVIS
________________________________________________________________________________________
BERKELEY
•
DAVIS
•
IRVINE
•
LOS ANGELES
•
RIVERSIDE
•
SAN DIEGO
•
SAN FRANCISCO
________________________________________________________________________________________
__________________________________
SANTA BARBARA
•
SANTA CRUZ
__________________________________
EEC 173A/ECS 152A-Computer Networks
Spring 2018
HW 2 - Solution
1.(14 points) Review Questions. (a)(2 pts) Two most important network-layer functions in a datagram network:
(b)(4 pts) Describe how packet loss can occur at input ports. Describe how packet loss at input ports can be eliminated (without using infinite buffers).
(c)(2 pts) Do routers have IP addresses?
(d)(2 pts) What is the 32-bit binary equivalent of the IP address 223.1.3.27
(e)(4 pts) For each of the following CIDR formatted addresses what is the address range and how many hosts can you accommodate?
2.(12 points) IP Fragmentation. 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?
4

