Solved

Question on IP Datagram

Posted on 2002-03-14
6
565 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
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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

If your business is like most, chances are you still need to maintain a fax infrastructure for your staff. It’s hard to believe that a communication technology that was thriving in the mid-80s could still be an essential part of your team’s modern I…
When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

813 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

12 Experts available now in Live!

Get 1:1 Help Now