Thread: Time To Live in a IP header

  1. #1
    Dragon Rider jas_atwal's Avatar
    Join Date
    Nov 2007
    Location
    India
    Posts
    54

    Time To Live in a IP header

    This is a sanity check. An IP packet has a TTL field of 8 bits. that means a count of 256. That means an IP packet can traverse 256 hops before it is dropped? isn't that a too large value for real world?

    Please correct me if I understand wrong.

    Thank you all!!
    -------------------------------------------------------------------
    There are 10 kinds of people in this world....Those who understand binary and those who don't

  2. #2
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Quote Originally Posted by jas_atwal View Post
    This is a sanity check. An IP packet has a TTL field of 8 bits. that means a count of 256. That means an IP packet can traverse 256 hops before it is dropped? isn't that a too large value for real world?

    Please correct me if I understand wrong.

    Thank you all!!
    The TTL counts down from some initial value to zero. Yes, it is possible to create a packet with a TTL of 255, but what would be the point? Most packets have a starting TTL much less than that.

  3. #3
    Registered User
    Join Date
    Dec 2005
    Location
    german border
    Posts
    72
    I was always under the impression that most packets had it set to 256 as it's only used to stop infinite routing loops which are relatively rare afaik. I don't think it has much practical use in modern networks.

  4. #4
    Registered User
    Join Date
    Mar 2005
    Location
    Mountaintop, Pa
    Posts
    1,058
    Per the current RFC 1700. The current recommended default time to live (TTL) for the Internet Protocol (IP) is 64.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. IP header "total length" vs. packet size
    By MK27 in forum Networking/Device Communication
    Replies: 2
    Last Post: 01-04-2009, 07:45 AM
  2. Using pointers
    By Big_0_72 in forum C Programming
    Replies: 3
    Last Post: 10-28-2008, 07:51 PM
  3. Read and set\change system time
    By Hexxx in forum C++ Programming
    Replies: 9
    Last Post: 01-02-2006, 07:11 AM
  4. Building your own IP header
    By nkhambal in forum Networking/Device Communication
    Replies: 2
    Last Post: 04-28-2005, 07:47 AM
  5. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM