Docsity

Computer Network - Tutorial, Study Guides, Projects, Research of Computer Networks

Toggle sidebar
bg1
TCN2141 Computer Networks
Tutorial 2 Solution
Important instruction:
Print and prepare the all Solution before the Tutorial Class
Submit to tutor before class start.
1.
Classless Inter-Domain Routing (CIDR) allows the allocation of any power of 2 sized IP
address range, instead of fixed size class A, B, and C subnets. Name two advantages of
using CIDR.
2. What is the basic purpose of DHCP? Name the entities of DHCP.
3. (IP/TCP Headers) Look at the 40byte dump of an IP packet
45 20 03 c5 78 06 00 00 34 06 ca 1f d1 55 ad 71 c0
a8 01 7e
Identify all the fields of the IP header.
4.
In an IPv4 datagram, the value of total-length field is (00A0)16 and the value of the
header-length (HLEN) is (5)16. How many bytes of payload are being carried by the
datagram? What is the efficiency (ratio of the payload length to the total length) of this
datagram?
5.
a. What is meant by IP fragmentation?
b. Why is an IP datagram fragmented?
c. Is it possible to select an IP datagram size to always avoid fragmentation?
6.
a. Where an IP datagram may get fragmented?
b. Where are the IP datagram fragments reassembled?
c. How to prevent an IP datagram from being fragmented?
1 SK FIST 2015
pf2

Partial preview of the text

Download Computer Network - Tutorial and more Study Guides, Projects, Research Computer Networks in PDF only on Docsity!

TCN2141 Computer Networks

Tutorial 2 Solution

Important instruction:

Print and prepare the all Solution before the Tutorial Class

Submit to tutor before class start.

Classless Inter-Domain Routing (CIDR) allows the allocation of any power of 2 sized IP address range, instead of fixed size class A, B, and C subnets. Name two advantages of using CIDR.

  1. What is the basic purpose of DHCP? Name the entities of DHCP.
  2. (IP/TCP Headers) Look at the 40byte dump of an IP packet

45 20 03 c5 78 06 00 00 34 06 ca 1f d1 55 ad 71 c

a8 01 7e

Identify all the fields of the IP header.

In an IPv4 datagram, the value of total-length field is (00A0) 16 and the value of the header-length (HLEN) is (5) (^) 16. How many bytes of payload are being carried by the datagram? What is the efficiency (ratio of the payload length to the total length) of this datagram?

a. What is meant by IP fragmentation?

b. Why is an IP datagram fragmented?

c. Is it possible to select an IP datagram size to always avoid fragmentation?

a. Where an IP datagram may get fragmented?

b. Where are the IP datagram fragments reassembled?

c. How to prevent an IP datagram from being fragmented?

1 SK FIST 2015

d. What happens when a datagram must be fragmented to traverse a network, but the "don't fragment" flag in the datagram is set?

e. Will all the fragments of a datagram reach the destination using the same path?

f. What happens to the original IP datagram when one or more fragments are lost?

g. Will all the fragments of a datagram arrive at the destination system in the correct order?

(IP Fragmentation) 2 points:

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?

  1. A packet has arrived in which the offset value is 300 and the payload size is 100 bytes. What are the number of the first byte and the last byte?
  2. A mobile host travels to foreign networks while retaining its home IP address. To support this, mobile hosts advertise their home IP address to foreign routers, who would propagate this information to other routers during routing updates. Name two advantages and disadvantages of this scheme compared to Mobile IP.
  3. Calculate IP header checksum if an IP header is given as below

2 SK FIST 2015