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

Reply via email to