i'm using the list for routing, and also, to know when to find others...for example, I can have a list of known peers, but if they're not online, then it doesn't matter; but, if I know they're gone, then I know when to look for others to keep the network up.
 
the "I'm going offline" message is a good idea. Another reason I want to keep the list accurate is because I use it as a path list...so the message won't be sent to the same machine twice...but, if the address stored in the path was/is a dead node, then its just a waste of space since the message would never get there anyway.
 
thanks

David Barrett <[EMAIL PROTECTED]> wrote:
What’s the list used for?  Are you showing a “buddy list” to users and thus does this ping/pong show the online/offline status of peers?

If so, you can probably keep the frequency pretty slow (30s) and just count on users to shutdown “gracefully” by sending a “I’m going offline” message to all buddies.  Thus in the normal case, your buddy list will reflect online/offline activity instantly.  It’ll only be when a user disconnects ungracefully (ie, crashes, loses internet connection, etc) that you’ll detect his going offline via the keepalive.
 
-david
 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lemon Obrien
Sent: Tuesday, November 07, 2006 6:59 PM
To: theory and practice of decentralized computer networks
Subject: [p2p-hackers] cutting down on network traffic...
 
as some of you know...
 
if a peer is behind a firewall, you have to ping/pong udp style to keep the hole open...once about every 20 seconds...now, if you know the machine can accept unsolicited udp messages, then either the firewall is open or the peer is not behind a firewall, and this type of peer does not have to ping/pong at all to be communicated with...but...it is always nice to know which peers are online and which have dropped off, and you can use ping/pong to deteremine this...
 
my question is, if the udp channel is open, how often should you ping/pong other peers to keep your list up to date? one minute, two, ?
 
thanks
 


You don't get no juice unless you squeeze
Lemon Obrien, the Third.

http://www.tamago.us
_______________________________________________
p2p-hackers mailing list
[email protected]
http://lists.zooko.com/mailman/listinfo/p2p-hackers



You don't get no juice unless you squeeze
Lemon Obrien, the Third.

http://www.tamago.us
_______________________________________________
p2p-hackers mailing list
[email protected]
http://lists.zooko.com/mailman/listinfo/p2p-hackers

Reply via email to