Solved

Question on IP Datagram

Posted on 2002-03-14
6
585 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 16

Accepted Solution

by:
SteveJ earned 15 total points
ID: 6869422
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
ID: 6874339
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
ID: 6925408
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
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 
LVL 3

Expert Comment

by:cincin77
ID: 6927577
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
ID: 7937946
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
ID: 7963342
Comment from expert accepted as answer

Computer101
E-E Admin
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Even if you have implemented a Mobile Device Management solution company wide, it is a good idea to make sure you are taking into account all of the major risks to your electronic protected health information (ePHI).
For many of us, the  holiday season kindles the natural urge to give back to our friends, family members and communities. While it's easy for friends to notice the impact of such deeds, understanding the contributions of businesses and enterprises i…
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…
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…

730 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