The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+25 votes
5.4k views

In the diagram shown below, $L1$ is an Ethernet LAN and $L2$ is a Token-Ring LAN. An $IP$ packet originates from sender $S$ and traverses to $R$, as shown. The links within each $\text{ISP}$ and across the two $\text{ISP}$s, are all point-to-point optical links. The initial value of the $\text{TTL}$ field is $32$. The maximum possible value of the $\text{TTL}$ field when $R$ receives the datagram is _______.

in Computer Networks by Veteran (98.9k points)
edited by | 5.4k views
0
If original packet is encapsulated by some other stuff then also TTL value does not change.

4 Answers

+67 votes
Best answer

Each time a packet visits  network layer it decrements it's TTL field. Source initializes it and others decreaments it. Inside LAN it never goes to network layer, it is forwarded from data link layer itself.. in routers it goes upto network layer to make a routing decision.. and the router decrements it because the packet has visited the network layer.. and at the receiver too, the packet has visited the network layer and network layer will do it's job and decrements the TTL value.

There are $5$ routers, So Network Layer will be visited $5$ times  and $1$ time on  destination

So, TTL $= 26$

PS:) A receiver decrements TTL value and then checks whether it is $0$ (or) not. So, $26$ is the answer (not $27$)

by Active (2k points)
edited by
0

@rahul sharma

Yes, if the receiver receives a packet with TTL = 0, it accepts it.

If this receiver was to forward to the packet, it would have dropped the packet.

https://tools.ietf.org/html/rfc1812#section-4.2.2.9

0

Sumaiya23:- What do you mean by

:If this receiver was to forward to the packet, it would have dropped the packet.

0
Hosts that act as routers by forwarding datagrams must therefore follow the router's rules for TTL.
0
Any source that TTL will also be decremented by receiving host?
+4

TTL is decremented by the receiving host as well.

Following is a snip of how traceroute works from forouzan 4ed

 

+3

See if this is correct

@router first TTL values is decremented and then check TTL > 0 if yes forward... If it is zero means packet cant take further hops(as TTL ==> No of hops packet can take) and it is still not at destination hence discard.

@reciever as first TTL value is decremented and checked TTL >=0  if yes accept

At router or destination we will never have TTL = negative

since earlier router would have got TTL = 0 before and discarded it.

0
Correct.
0
Does only Network layer decrements TTL? What about DLL and PL ?
0
Tracer route trick is a good MCQ question.
0

@jatin khachane 1

It means once if packet comes to the reciever it wontw be discarded because of TTL value

+16 votes
TTL field reduced at each router, there are total 5 routers and finally at receiver.

=32 -(5+1)=26
by Loyal (5.8k points)
+15 votes
TTL only decrement at router and at dstination.It is very very important to keep under your mind untill exam finish.

So Total router=5

Destintion=1

Intial TTL value=32

When Packet reaches the receiver=32-(5+1)=26
by Loyal (9.7k points)
–5 votes
ans 22
by Loyal (5.2k points)
0
Answer as per official Answer Key is 26

http://gate.iitk.ac.in/GATE2015/docs/KEYS2014/CS02_2014.pdf
0
It's the routers that decrements TTL field right?? And diagram there are 5 routers...

So it should be 32 - 5 = 27?? how it got decrement by 6?? from where one extra coming??
+10
Before accepting the packet, receiver also decreases the TTL value & accepts the packet if TTL >= 0.

In this case, 5 is decrement by 5 routers and 1 is decrement by the receiver. So, total of 6.

Therefore, 32-6 = 26
+15
ok..ok got.. each time a packet visit a network layer it decrements it's TTL field.. source initializes it and others decreaments it.. inside LAN it never goes to network layer, it is forwarded from data link layer itself.. in routers it goes upto network layer to make a routing decision.. and the router decrements it because the packet has visited the network layer.. and at the receiver too the packet has visited the network layer and network layer will do it's job and decrements the TTL value and checks whether it has reached zero, and the router blindly discards it if it reached zero doesn't matter this packet belongs to the receiver itself..!!
0
correctly said :-)
0
When R receives packet then TTL = 27,and it decrements it to make 26. Shouldn't 27 be answer??
0

@Vicky

TTL expiration is intended to cause datagrams to be discarded by routers, but not by the destination host.

http://networkengineering.stackexchange.com/questions/10929/when-is-an-ipv4-ttl-decremented-and-what-is-the-drop-condition

http://searchnetworking.techtarget.com/definition/time-to-live

http://www.linfo.org/time-to-live.html

I did not get any source where it is mentioned that..

1.RECEIVER also decrease TTL.(1st link is against this statement.)

2.RECEIVER reject the packet due to TTL=0 (previously it was 1 before arriving at Receiver)

Plz give a reference for above.

Answer:

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
49,823 questions
54,818 answers
189,570 comments
80,991 users