Solved

Question on IP Datagram

Posted on 2002-03-14
6
550 Views
Last Modified: 2008-02-01
Can somebody please tell me this:

If a datagram contains one 8-bit option and one 8-bit data value, what values will be found in the header fields H.LEN and TOTAL LENGTH?
0
Comment
Question by:ani1
6 Comments
 
LVL 16

Accepted Solution

by:
SteveJ earned 15 total points
Comment Utility
Im not real sure about your question.

As an EXAMPLE, an IP datagram within an 82 byte ethernet frame would breakdown as follows.

Total frame size - 82 bytes
Ethenet header - 14 bytes
IP header - 20 bytes
IP length - 68 bytes

So the frame is made of of 68 bytes of IP stuff, 20 bytes of which is header, and 14 bytes of ethernet stuff.

Good luck.
Steve

0
 

Author Comment

by:ani1
Comment Utility
Thanks Steve.
Though it exactly did not give me the answer, it gave an idea of how to proceed.

Thanks.
0
 
LVL 3

Expert Comment

by:cincin77
Comment Utility
Hi,

first of all 20 bytes is the minimum for the IP header, so if you have a 8 bit option header length of the IP datagram will be 28 bytes. Total length of the IP datagram (packet, datagram->UDP packet)will be 28 + 8=36 bytes. However if we talk about Ethernet, as the minimum length of a packet must be 64 bytes, some padding bytes will be added to this packet after the Ethernet packet is added.

regards...
0
Free camera licenses with purchase of My Cloud NAS

Milestone Arcus software is compatible with thousands of industry-leading cameras for added flexibility. Upon installation on your My Cloud NAS, you will receive two (2) camera licenses already enabled in the software. And for a limited time, get additional camera licenses FREE.

 
LVL 3

Expert Comment

by:cincin77
Comment Utility
Also I would like to add that the dimension of the header lenth in the IP packets is 32 bits so the options that are shorter than 32 bits are padded to 32 bits long. And with an option of 8 bits you will have a header length value of (20 + 4(4 instead of 1))*8bits/32bits=6.

cincin
0
 
LVL 79

Expert Comment

by:lrmoore
Comment Utility
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question:

I recommend: points to SteveJ

if there is any objection or other expert commentary to this recommendation then please post in here within 7 days.
If you feel that your question was not properly addressed, or that none of the comments received were appropriate answers, please post a request in Community support (with a link to this page) to refund your points. http://www.experts-exchange.com/Community_Support/

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

thanks,
lrmoore
EE Cleanup Volunteer
---------------------
0
 
LVL 1

Expert Comment

by:Computer101
Comment Utility
Comment from expert accepted as answer

Computer101
E-E Admin
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Lets look at the default installation and configuration of FreeProxy 4.10 REQUIREMENTS 1. FreeProxy 4.10 Application - Can be downloaded here (http://www.handcraftedsoftware.org/index.php?page=download) 2. Ensure that you disable the windows fi…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now