ipv4 packet structure

I heard that the ipv4 header range from 20 to 60 bytes. I  google around but could not validate that fact. Any ideas?
LVL 1
leblancAccountingAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dave BaldwinFixer of ProblemsCommented:
That sounds about right.
See here:  http://en.wikipedia.org/wiki/IPv4#Packet_structure
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
aadihCommented:
If you want a good deal of details about IP v4, the following link will take you to a good tutorial:

http://www.tutorialspoint.com/ipv4/ipv4_packet_structure.htm >
0
leblancAccountingAuthor Commented:
Nice links but where does it say that the header can be from 20 to 60 bytes?
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

aadihCommented:
Okay.

"60 bytes": No.

"Length—A 4-bit field containing the length of the IP header in 32-bit increments. The minimum length of an IP header is 20 bytes, or five 32-bit increments. The maximum length of an IP header is 24 bytes, or six 32-bit increments. Therefore, the header length field should contain either 5 or 6."

http://www.ciscopress.com/articles/article.asp?p=348253&seqNum=4 >
0
leblancAccountingAuthor Commented:
Now I am confused. Can somebody explain the explanation below:
"
Internet Header Length (IHL)
    The second field (4 bits) is the Internet Header Length (IHL), which is the number of 32-bit words in the header. Since an IPv4 header may contain a variable number of options, this field specifies the size of the header (this also coincides with the offset to the data). The minimum value for this field is 5 (RFC 791), which is a length of 5×32 = 160 bits = 20 bytes. Being a 4-bit value, the maximum length is 15 words (15×32 bits) or 480 bits = 60 bytes. "

http://en.wikipedia.org/wiki/IPv4#Packet_structure
0
aadihCommented:
If you go directly to the RFC, you'll find: "The Option Length is the number of octets in the option counting the type, length, pointer, and overflow/flag octets (maximum length 40)."

So, the option field could be up to 40 bytes. If you add that to the other fields (20 bytes), you get a maximum header length of 60 bytes. That is, no option, 20 bytes; and with maximum option length, 60 bytes.

There are many details ("the devil is in the details"), which cannot be captured by high-level articles; but if interested, one must go and read the RFC itself.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Internet Protocols

From novice to tech pro — start learning today.