Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 2 ( a ) The IPv 4 datagram is shown in Figure 2 . 1 below. The bits allocated to each field are shown

Question 2
(a) The IPv4 datagram is shown in Figure 2.1 below. The bits allocated to each field are
shown at the top of the frame.
Figure 2.1
(i) Calculate the size of the Payload in the transmitted packet, if the entry of the IHL
field in the header is 1010 and the Total length entry is 0000010000010000.
(ii) For the same packet as in part (i) find how many bytes were put into the Options
field.
(iii) Is it possible from the information provided in part (i) to define whether any padding
was used in the packet? If not, explain why. If yes, how big was the padding?
(b) The IPv4 addressing is based on a relatively small 32-bit address space, which requires to
utilize various schemes for an efficient address allocation.
(i) The administrator of a campus LAN is assigned a single IP address of 172.16.0.0.
Assuming that a LAN should comprise at least 100 subnets and each subnet should
contain at most 50 hosts, define a suitable subnet mask for the site. Find how many
subnets and how many hosts per subnet will be allowed.
(ii) The ISP (Internet Service Provider) has allocated the following block of IP addresses
to two networks which use CIDR (Classless Inter-Domain Routing) addressing:
Network 1: IP1 Base Address =240.80.16.0/20
Mask M1=255.255.240.0
Network 2: IP2 Base Address =240.80.31.0/24
Mask M2=255.255.255.0
If a packet with the IP destination address IP0=240.80.31.155 arrives at the router
to which the Networks 1 and 2 are attached, carry out a Boolean logical AND
operation on IP0 and each of the address masks M1 and M2, and compare the
obtained result with the given base addresses IP1 and IP2. To which network the
packet will be routed? Explain why.
(c) An IPv4 link shown in Figure 2.2 consists of two hosts H1 and H2 and a router R. The
router R defines the links maximum transmission unit (MTU) MTU =1500 bytes. The
application layer of the host H1 generates a 1480-byte file which is given to the transport
layer for a reliable transmission to the host H2. The network uses a non-transparent
fragmentation.
Figure 2.2
(i) Is fragmentation of the packet required in this case? Explain your answer.
(ii) In case the packet is fragmented, calculate the payload of each fragment.
(iii) Show the Total Length, DF, MF, and Fragment Offset fields of the IP header in each
packet transmitted over this link. Explain why these fields are needed in the packet
fragmentation.
(d) Compare the OSI and the TCP/IP reference models, sketch their layer structure, and
explain their similarities and differences. [Note, that you are not required to explain the
functionality of each layer in the models].
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning Microsoft SQL Server 2012 Programming

Authors: Paul Atkinson, Robert Vieira

1st Edition

1118102282, 9781118102282

More Books

Students also viewed these Databases questions

Question

2. Do not crowd the student. Do not get in the students face.

Answered: 1 week ago

Question

Is the style consistent?

Answered: 1 week ago

Question

Does your strategic intent play to your strengths?

Answered: 1 week ago