Gnutella Forums

Gnutella Forums (https://www.gnutellaforums.com/)
-   Development Open Discussion (https://www.gnutellaforums.com/development-open-discussion/)
-   -   [Concept] Disconnect Policies (https://www.gnutellaforums.com/development-open-discussion/87490-concept-disconnect-policies.html)

arne_bab October 20th, 2008 07:28 AM

Because you then have to check and store 10 minutes worth of packets instead of only one number and the query lifetime worth of packets.

And because a slowly changing "connection quality" is a neat GUI feature. :)

To make it visually appealing it would be possible to just substract the minimum connection quality and multiply the result with (1/(1 - min. quality)), so users see "OK, it went negative, so the node was disconnected". Could even be done with a simply 0%-100% "progressbar" which goes red when it closes in on 0 and turns dark read when the node gets disconnected (<=0).

GregorK October 20th, 2008 07:47 AM

you only need to store 2 additional numbers.. total packages and dropped packages since last check.

arne_bab October 20th, 2008 08:15 AM

You're right - I had a wrong preconception in my mind (store every packet info instead of just adding them up).

arne_bab October 25th, 2008 10:35 AM

But please use TCPs algorithm at least for incoming traffic - there the faster update time is more important, since we replicate the queries.

Besides: Should I keep spending quite some time to find elegant solutions, or should I rather first write a short idea and only do more extensive thinking/testing when you did a test (and save time which might else be wasted on stuff which never gets in)?

GregorK October 25th, 2008 10:37 AM

You should find time to use a more comfortable communication device then a forum... like IRC maybe

arne_bab October 26th, 2008 02:40 AM

The problem with IRC is that we have different IRC times (I'm online a couple of times per week).

Svallen November 27th, 2008 01:59 AM

Quote:

Originally Posted by GregorK (Post 328052)
They are not off, they are active just not configurable through the UI anymore.

Check NetworkHostsContainer.periodicallyCheckHosts()


Cant we just disable the allow to become UltraPeer in the UI? Or are you strictly speaking about being an ultrapeer and then trying to normalize traffic?

Or did i misunderstand?

GregorK November 27th, 2008 03:04 AM

Well the rules apply to both, UP and leafs. After going through some tests and algorithm tuning we pretty much implemented Arnes idea of connection quality calculation.
It's not as smart as Arne would like it to be ;) but should do a better job then the old one.

Svallen November 27th, 2008 04:14 AM

Just looking a the code :)

GregorK November 27th, 2008 05:19 AM

Host.calcSentQuality()
in case you have not found it already.


All times are GMT -7. The time now is 01:47 AM.

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

Copyright © 2020 Gnutella Forums.
All Rights Reserved.