added link TTL calculation
added link TTL calculation