-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 >> Please describe the formula through which to calculate the speed of >> the data that you need to send to your peer, which has 19 other peers >> (and you have no knowledge about the speed with which they are >> transmitting). > > Simple: > > for i in output-bandwidth > for j in list-of-peers > if <j said it was ok to send stuff over within the last minute> > send <remaining-output-bandwidth, weighted for particular peer> > end > end > > In other words, the main thing is I have to explicitly say I am > expecting stuff, and that there is an explicit timeperiod beyond which > other peers should not continue sending me stuff, without my saying > it's ok. > > Similarly, on the receiving end, I will only read packets from peers on > my connected-list. (Yes, this is kindof like wasting bandwidth and > dropping precious packets ... but remember this is AFTER we give our > flooding peer ample time to settle down -- aka. this is bordering on > malicious / ddos behavior.)
I think that would make the problem much worse: Scenario: You have a spike of CPU useage and your node receives little packets over 1 minute. It calculates how much it could have received more and sends all its peers request to almost entire bandwidth. Then the CPU spike ends and it gets swamped with about 20 times the download limit of packets. It then starts dropping packets because it considers this an attack, hurting not only its ow self, but others in the process. - Volodya - -- http://freedom.libsyn.com/ Echo of Freedom, Radical Podcast "None of us are free until all of us are free." ~ Mihail Bakunin -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJNOmXTAAoJENW9VI+wmYasxOoH/04L3eIdl5+CATH9Bti08qef 2wEdQcqCVeBJ9Mc8aubMBcvq/GuqsELWB5XuzQoyQ0XS9RLp2J+iUGiAtkOvegER FKIQtp2jCPLArQ03voIN0mzTF6NH955th6y5BdCG22Zw4MCNNO/ykHC+fFXKoFPC LsCY0nAIZ9EH2c84KIIDb3nYbtljmgNvBeKcYr5KUNLpwehE2meUfBVdYNS0e4fL O2KY3KC1tpRNP9R2x5eI+1DsdMiUhhE/Dpq6ilnvdi8R7JooN/eefW3WqhqFOgXS XuG0cZEn5IHr7fqyFpgHmcTBBl2ehGVk3GwcWNgCCFJmwxWbyEBtX73T97+oL9o= =Hxhy -----END PGP SIGNATURE----- _______________________________________________ Support mailing list Support@freenetproject.org http://news.gmane.org/gmane.network.freenet.support Unsubscribe at http://emu.freenetproject.org/cgi-bin/mailman/listinfo/support Or mailto:support-requ...@freenetproject.org?subject=unsubscribe