Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Who discards IP packet when TTL becomes 0

Tags:

ip

If the TTL of a IP packet becomes 0, then who will discard the IP packet i.e., either router or host.

like image 222
user1808215 Avatar asked Oct 29 '13 15:10

user1808215


People also ask

What happens to an ipv4 packet when the TTL value is 0?

If the TTL is 0, the packet is discarded, and never reaches the host.

What happens when TTL expires?

So, what happens when TTL expires? The packet will not travel to the next hop. If a router sees the TTL value as zero, it will drop the packet. This procedure helps to avoid the infinite looping of packets.

What will happen if the IP header TTL field is set to 0 at the host that sends the packet?

If at any point the TTL count is equal to zero after the subtraction, the router will discard the packet and send an ICMP message back to the originating host.

What can happen when the TTL is 1?

When a labeled packet is received with a TTL of 1, the receiving LSR drops the packet and sends an ICMP message "time exceeded" (type 11, code 0) to the originator of the IP packet. This is the same behavior that a router would exhibit with an IP packet that had an expiring TTL.


1 Answers

The router.

If the TTL is 0, the packet is discarded, and never reaches the host.

More information in wikipedia

like image 67
MTG Avatar answered Sep 28 '22 09:09

MTG