Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am relatively new to dealing with network packets, but as I look into the ipv6 header formats, I do not see a place where the ipv6 headers define what protocol is used in the data section -- but the ipv4 protocol does.

Am I missing where ipv6 gives the protocol information, or is that information no longer deemed necessary?

share|improve this question

It turns out that the "Next Header" field in IPv6 does the same thing as the "Protocol" field does in IPv4. See .

share|improve this answer

The version (= 6) in IPv6 is located in the exact same place in the packet that it is in IPv4: the first 4 bits. That way, you can read the first 4 bits of the packet and find out which version of IP the packet is without knowing in advance.

share|improve this answer
That's not quite the field I was talking about. I'm not talking about which version of the IP protocol being used. In IPv4 there is a "protocol" field at byte 9. For example, it could be the value of 6 which would mean that the data itself is using TCP. – Alexander Bird Jun 14 '13 at 17:04
I see what you were looking for now, but this Answer is correct given what the Question seems to be asking for... – Chris S Jun 14 '13 at 19:05
Ah yes, I see I misunderstood what you were asking! But yeah, you seem to have got the answer you were looking for, regarding the next header field. – Celada Jun 14 '13 at 20:03

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.