Gnutella Forums

Gnutella Forums (https://www.gnutellaforums.com/)
-   General Gnutella Development Discussion (https://www.gnutellaforums.com/general-gnutella-development-discussion/)
-   -   Pong Question (https://www.gnutellaforums.com/general-gnutella-development-discussion/7374-pong-question.html)

Ivex January 20th, 2002 07:11 AM

Pong Question
 
If I received a pong whose TTL is 0, is it means its ping was sent by me? Should I check the routing table (guid, socket) again?

Tamama January 21st, 2002 08:01 AM

you should not get packets with a ttl of 0

The ttl is decreased at a servent and after that if it is 0 it is dropped. So if you do get a ttl of 0 something went wrong and you could drop it (or use it for something, whatever you want)

Tam

Ivex January 21st, 2002 06:40 PM

TTL = 1?
 
If I received a pong with ttl = 1, am I the original sender of its ping? Or I should check it in my routing table again?

Moak January 22nd, 2002 02:06 AM

If you receive a ping with a Hop=0, one of your direct connected peer has send it to you.

About your question "ping was sent by me?"... you shouldn't receive a message from your own. Avoid loops to your own, don't connect to yourself! If you receive any message with TTL=0, you should drop the connection (as Tama said), because it's from a bad, broken servent. If you receive a message with TTL=1, you can say nothing about it, it just means "forward this message not anymore".

Well, there is more background and a little bit of pseudo code in this thread (you started it):
"Why do we need TTL?" - http://www.gnutellaforums.com/showth...&threadid=6363

/Moak

Ivex January 22nd, 2002 05:24 AM

oh, now i see
 
Thanks, very body!


All times are GMT -7. The time now is 08:22 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.