Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am reading RFC 2460 about IPv6 and it says that "the packet is discarded if Hop Limit is decremented to zero.", so that is to say that if a router decrements a packet's Hop Limit to 0, other another router can't receives a packet with a hop limit of 0 ?

I ask this question because I read on google : "the packet is discarded if a router receives a packet with a hop limit of 0, or a router decrements a packet’s hop limit to 0". in my view, the second case can't happen.

Am I right ? thanks !

share|improve this question

migrated from stackoverflow.com May 8 '11 at 11:04

This question came from our site for professional and enthusiast programmers.

1  
"Cannot" is not the same as "should not", on the Internet everything happens whether it should or not. –  Steve-o May 8 '11 at 22:24

2 Answers 2

Normally, a router would never receive a packet with a hop limit of zero, but it may happen at some point due to sloppy coding or malicious computers or network degradation.

The issue is what happens when you decrement something that is zero. If it's unsigned, then it wraps around and lasts another 65535 hops.

share|improve this answer
    
Thanks, it's help ! –  lilawood May 7 '11 at 19:41

Have you got to this in 2460:

   8.2 Maximum Packet Lifetime


   Unlike IPv4, IPv6 nodes are not required to enforce maximum packet
   lifetime.  That is the reason the IPv4 "Time to Live" field was
   renamed "Hop Limit" in IPv6.  In practice, very few, if any, IPv4
   implementations conform to the requirement that they limit packet
   lifetime, so this is not a change in practice.  Any upper-layer
   protocol that relies on the internet layer (whether IPv4 or IPv6) to
   limit packet lifetime ought to be upgraded to provide its own
   mechanisms for detecting and discarding obsolete packets.
share|improve this answer

Your Answer

 
discard

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