forked from I2P_Developers/i2p.i2p
* 2006-06-04 0.6.1.20 released
2006-06-04 jrandom * Reduce the SSU ack frequency * Tweaked the tunnel rejection settings to reject less aggressively
This commit is contained in:
@@ -14,8 +14,8 @@ package net.i2p;
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class CoreVersion {
|
public class CoreVersion {
|
||||||
public final static String ID = "$Revision: 1.61 $ $Date: 2006/05/09 16:17:19 $";
|
public final static String ID = "$Revision: 1.62 $ $Date: 2006-05-18 17:31:09 $";
|
||||||
public final static String VERSION = "0.6.1.19";
|
public final static String VERSION = "0.6.1.20";
|
||||||
|
|
||||||
public static void main(String args[]) {
|
public static void main(String args[]) {
|
||||||
System.out.println("I2P Core version: " + VERSION);
|
System.out.println("I2P Core version: " + VERSION);
|
||||||
|
@@ -1,5 +1,11 @@
|
|||||||
$Id: history.txt,v 1.479 2006-05-18 17:31:08 jrandom Exp $
|
$Id: history.txt,v 1.479 2006-05-18 17:31:08 jrandom Exp $
|
||||||
|
|
||||||
|
* 2006-06-04 0.6.1.20 released
|
||||||
|
|
||||||
|
2006-06-04 jrandom
|
||||||
|
* Reduce the SSU ack frequency
|
||||||
|
* Tweaked the tunnel rejection settings to reject less aggressively
|
||||||
|
|
||||||
2006-05-31 jrandom
|
2006-05-31 jrandom
|
||||||
* Only send netDb searches to the floodfill peers for the time being
|
* Only send netDb searches to the floodfill peers for the time being
|
||||||
* Add some proof of concept filters for tunnel participation. By default,
|
* Add some proof of concept filters for tunnel participation. By default,
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
<i2p.news date="$Date: 2006/05/09 16:17:17 $">
|
<i2p.news date="$Date: 2006-05-18 17:31:08 $">
|
||||||
<i2p.release version="0.6.1.19" date="2006/05/18" minVersion="0.6"
|
<i2p.release version="0.6.1.20" date="2006/05/18" minVersion="0.6"
|
||||||
anonurl="http://i2p/NF2RLVUxVulR3IqK0sGJR0dHQcGXAzwa6rEO4WAWYXOHw-DoZhKnlbf1nzHXwMEJoex5nFTyiNMqxJMWlY54cvU~UenZdkyQQeUSBZXyuSweflUXFqKN-y8xIoK2w9Ylq1k8IcrAFDsITyOzjUKoOPfVq34rKNDo7fYyis4kT5bAHy~2N1EVMs34pi2RFabATIOBk38Qhab57Umpa6yEoE~rbyR~suDRvD7gjBvBiIKFqhFueXsR2uSrPB-yzwAGofTXuklofK3DdKspciclTVzqbDjsk5UXfu2nTrC1agkhLyqlOfjhyqC~t1IXm-Vs2o7911k7KKLGjB4lmH508YJ7G9fLAUyjuB-wwwhejoWqvg7oWvqo4oIok8LG6ECR71C3dzCvIjY2QcrhoaazA9G4zcGMm6NKND-H4XY6tUWhpB~5GefB3YczOqMbHq4wi0O9MzBFrOJEOs3X4hwboKWANf7DT5PZKJZ5KorQPsYRSq0E3wSOsFCSsdVCKUGsAAAA/i2p/i2pupdate.sud"
|
anonurl="http://i2p/NF2RLVUxVulR3IqK0sGJR0dHQcGXAzwa6rEO4WAWYXOHw-DoZhKnlbf1nzHXwMEJoex5nFTyiNMqxJMWlY54cvU~UenZdkyQQeUSBZXyuSweflUXFqKN-y8xIoK2w9Ylq1k8IcrAFDsITyOzjUKoOPfVq34rKNDo7fYyis4kT5bAHy~2N1EVMs34pi2RFabATIOBk38Qhab57Umpa6yEoE~rbyR~suDRvD7gjBvBiIKFqhFueXsR2uSrPB-yzwAGofTXuklofK3DdKspciclTVzqbDjsk5UXfu2nTrC1agkhLyqlOfjhyqC~t1IXm-Vs2o7911k7KKLGjB4lmH508YJ7G9fLAUyjuB-wwwhejoWqvg7oWvqo4oIok8LG6ECR71C3dzCvIjY2QcrhoaazA9G4zcGMm6NKND-H4XY6tUWhpB~5GefB3YczOqMbHq4wi0O9MzBFrOJEOs3X4hwboKWANf7DT5PZKJZ5KorQPsYRSq0E3wSOsFCSsdVCKUGsAAAA/i2p/i2pupdate.sud"
|
||||||
publicurl="http://dev.i2p.net/i2p/i2pupdate.sud"
|
publicurl="http://dev.i2p.net/i2p/i2pupdate.sud"
|
||||||
anonannouncement="http://i2p/NF2RLVUxVulR3IqK0sGJR0dHQcGXAzwa6rEO4WAWYXOHw-DoZhKnlbf1nzHXwMEJoex5nFTyiNMqxJMWlY54cvU~UenZdkyQQeUSBZXyuSweflUXFqKN-y8xIoK2w9Ylq1k8IcrAFDsITyOzjUKoOPfVq34rKNDo7fYyis4kT5bAHy~2N1EVMs34pi2RFabATIOBk38Qhab57Umpa6yEoE~rbyR~suDRvD7gjBvBiIKFqhFueXsR2uSrPB-yzwAGofTXuklofK3DdKspciclTVzqbDjsk5UXfu2nTrC1agkhLyqlOfjhyqC~t1IXm-Vs2o7911k7KKLGjB4lmH508YJ7G9fLAUyjuB-wwwhejoWqvg7oWvqo4oIok8LG6ECR71C3dzCvIjY2QcrhoaazA9G4zcGMm6NKND-H4XY6tUWhpB~5GefB3YczOqMbHq4wi0O9MzBFrOJEOs3X4hwboKWANf7DT5PZKJZ5KorQPsYRSq0E3wSOsFCSsdVCKUGsAAAA/pipermail/i2p/2005-September/000878.html"
|
anonannouncement="http://i2p/NF2RLVUxVulR3IqK0sGJR0dHQcGXAzwa6rEO4WAWYXOHw-DoZhKnlbf1nzHXwMEJoex5nFTyiNMqxJMWlY54cvU~UenZdkyQQeUSBZXyuSweflUXFqKN-y8xIoK2w9Ylq1k8IcrAFDsITyOzjUKoOPfVq34rKNDo7fYyis4kT5bAHy~2N1EVMs34pi2RFabATIOBk38Qhab57Umpa6yEoE~rbyR~suDRvD7gjBvBiIKFqhFueXsR2uSrPB-yzwAGofTXuklofK3DdKspciclTVzqbDjsk5UXfu2nTrC1agkhLyqlOfjhyqC~t1IXm-Vs2o7911k7KKLGjB4lmH508YJ7G9fLAUyjuB-wwwhejoWqvg7oWvqo4oIok8LG6ECR71C3dzCvIjY2QcrhoaazA9G4zcGMm6NKND-H4XY6tUWhpB~5GefB3YczOqMbHq4wi0O9MzBFrOJEOs3X4hwboKWANf7DT5PZKJZ5KorQPsYRSq0E3wSOsFCSsdVCKUGsAAAA/pipermail/i2p/2005-September/000878.html"
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
<info>
|
<info>
|
||||||
<appname>i2p</appname>
|
<appname>i2p</appname>
|
||||||
<appversion>0.6.1.19</appversion>
|
<appversion>0.6.1.20</appversion>
|
||||||
<authors>
|
<authors>
|
||||||
<author name="I2P" email="support@i2p.net"/>
|
<author name="I2P" email="support@i2p.net"/>
|
||||||
</authors>
|
</authors>
|
||||||
|
4
news.xml
4
news.xml
@@ -1,5 +1,5 @@
|
|||||||
<i2p.news date="$Date: 2006-05-18 19:17:10 $">
|
<i2p.news date="$Date: 2006-05-30 22:19:24 $">
|
||||||
<i2p.release version="0.6.1.19" date="2006/05/18" minVersion="0.6"
|
<i2p.release version="0.6.1.20" date="2006/05/18" minVersion="0.6"
|
||||||
anonurl="http://i2p/NF2RLVUxVulR3IqK0sGJR0dHQcGXAzwa6rEO4WAWYXOHw-DoZhKnlbf1nzHXwMEJoex5nFTyiNMqxJMWlY54cvU~UenZdkyQQeUSBZXyuSweflUXFqKN-y8xIoK2w9Ylq1k8IcrAFDsITyOzjUKoOPfVq34rKNDo7fYyis4kT5bAHy~2N1EVMs34pi2RFabATIOBk38Qhab57Umpa6yEoE~rbyR~suDRvD7gjBvBiIKFqhFueXsR2uSrPB-yzwAGofTXuklofK3DdKspciclTVzqbDjsk5UXfu2nTrC1agkhLyqlOfjhyqC~t1IXm-Vs2o7911k7KKLGjB4lmH508YJ7G9fLAUyjuB-wwwhejoWqvg7oWvqo4oIok8LG6ECR71C3dzCvIjY2QcrhoaazA9G4zcGMm6NKND-H4XY6tUWhpB~5GefB3YczOqMbHq4wi0O9MzBFrOJEOs3X4hwboKWANf7DT5PZKJZ5KorQPsYRSq0E3wSOsFCSsdVCKUGsAAAA/i2p/i2pupdate.sud"
|
anonurl="http://i2p/NF2RLVUxVulR3IqK0sGJR0dHQcGXAzwa6rEO4WAWYXOHw-DoZhKnlbf1nzHXwMEJoex5nFTyiNMqxJMWlY54cvU~UenZdkyQQeUSBZXyuSweflUXFqKN-y8xIoK2w9Ylq1k8IcrAFDsITyOzjUKoOPfVq34rKNDo7fYyis4kT5bAHy~2N1EVMs34pi2RFabATIOBk38Qhab57Umpa6yEoE~rbyR~suDRvD7gjBvBiIKFqhFueXsR2uSrPB-yzwAGofTXuklofK3DdKspciclTVzqbDjsk5UXfu2nTrC1agkhLyqlOfjhyqC~t1IXm-Vs2o7911k7KKLGjB4lmH508YJ7G9fLAUyjuB-wwwhejoWqvg7oWvqo4oIok8LG6ECR71C3dzCvIjY2QcrhoaazA9G4zcGMm6NKND-H4XY6tUWhpB~5GefB3YczOqMbHq4wi0O9MzBFrOJEOs3X4hwboKWANf7DT5PZKJZ5KorQPsYRSq0E3wSOsFCSsdVCKUGsAAAA/i2p/i2pupdate.sud"
|
||||||
publicurl="http://dev.i2p.net/i2p/i2pupdate.sud"
|
publicurl="http://dev.i2p.net/i2p/i2pupdate.sud"
|
||||||
anonannouncement="http://i2p/NF2RLVUxVulR3IqK0sGJR0dHQcGXAzwa6rEO4WAWYXOHw-DoZhKnlbf1nzHXwMEJoex5nFTyiNMqxJMWlY54cvU~UenZdkyQQeUSBZXyuSweflUXFqKN-y8xIoK2w9Ylq1k8IcrAFDsITyOzjUKoOPfVq34rKNDo7fYyis4kT5bAHy~2N1EVMs34pi2RFabATIOBk38Qhab57Umpa6yEoE~rbyR~suDRvD7gjBvBiIKFqhFueXsR2uSrPB-yzwAGofTXuklofK3DdKspciclTVzqbDjsk5UXfu2nTrC1agkhLyqlOfjhyqC~t1IXm-Vs2o7911k7KKLGjB4lmH508YJ7G9fLAUyjuB-wwwhejoWqvg7oWvqo4oIok8LG6ECR71C3dzCvIjY2QcrhoaazA9G4zcGMm6NKND-H4XY6tUWhpB~5GefB3YczOqMbHq4wi0O9MzBFrOJEOs3X4hwboKWANf7DT5PZKJZ5KorQPsYRSq0E3wSOsFCSsdVCKUGsAAAA/pipermail/i2p/2005-September/000878.html"
|
anonannouncement="http://i2p/NF2RLVUxVulR3IqK0sGJR0dHQcGXAzwa6rEO4WAWYXOHw-DoZhKnlbf1nzHXwMEJoex5nFTyiNMqxJMWlY54cvU~UenZdkyQQeUSBZXyuSweflUXFqKN-y8xIoK2w9Ylq1k8IcrAFDsITyOzjUKoOPfVq34rKNDo7fYyis4kT5bAHy~2N1EVMs34pi2RFabATIOBk38Qhab57Umpa6yEoE~rbyR~suDRvD7gjBvBiIKFqhFueXsR2uSrPB-yzwAGofTXuklofK3DdKspciclTVzqbDjsk5UXfu2nTrC1agkhLyqlOfjhyqC~t1IXm-Vs2o7911k7KKLGjB4lmH508YJ7G9fLAUyjuB-wwwhejoWqvg7oWvqo4oIok8LG6ECR71C3dzCvIjY2QcrhoaazA9G4zcGMm6NKND-H4XY6tUWhpB~5GefB3YczOqMbHq4wi0O9MzBFrOJEOs3X4hwboKWANf7DT5PZKJZ5KorQPsYRSq0E3wSOsFCSsdVCKUGsAAAA/pipermail/i2p/2005-September/000878.html"
|
||||||
|
@@ -105,7 +105,7 @@ class RouterThrottleImpl implements RouterThrottle {
|
|||||||
|
|
||||||
if (numTunnels > getMinThrottleTunnels()) {
|
if (numTunnels > getMinThrottleTunnels()) {
|
||||||
double tunnelGrowthFactor = getTunnelGrowthFactor();
|
double tunnelGrowthFactor = getTunnelGrowthFactor();
|
||||||
Rate avgTunnels = _context.statManager().getRate("tunnel.participatingTunnels").getRate(60*60*1000);
|
Rate avgTunnels = _context.statManager().getRate("tunnel.participatingTunnels").getRate(10*60*1000);
|
||||||
if (avgTunnels != null) {
|
if (avgTunnels != null) {
|
||||||
double avg = 0;
|
double avg = 0;
|
||||||
if (avgTunnels.getLastEventCount() > 0)
|
if (avgTunnels.getLastEventCount() > 0)
|
||||||
@@ -142,37 +142,37 @@ class RouterThrottleImpl implements RouterThrottle {
|
|||||||
|
|
||||||
double tunnelTestTimeGrowthFactor = getTunnelTestTimeGrowthFactor();
|
double tunnelTestTimeGrowthFactor = getTunnelTestTimeGrowthFactor();
|
||||||
Rate tunnelTestTime1m = _context.statManager().getRate("tunnel.testSuccessTime").getRate(1*60*1000);
|
Rate tunnelTestTime1m = _context.statManager().getRate("tunnel.testSuccessTime").getRate(1*60*1000);
|
||||||
Rate tunnelTestTime60m = _context.statManager().getRate("tunnel.testSuccessTime").getRate(60*60*1000);
|
Rate tunnelTestTime10m = _context.statManager().getRate("tunnel.testSuccessTime").getRate(10*60*1000);
|
||||||
if ( (tunnelTestTime1m != null) && (tunnelTestTime60m != null) && (tunnelTestTime1m.getLastEventCount() > 0) ) {
|
if ( (tunnelTestTime1m != null) && (tunnelTestTime10m != null) && (tunnelTestTime1m.getLastEventCount() > 0) ) {
|
||||||
double avg1m = tunnelTestTime1m.getAverageValue();
|
double avg1m = tunnelTestTime1m.getAverageValue();
|
||||||
double avg60m = 0;
|
double avg10m = 0;
|
||||||
if (tunnelTestTime60m.getLastEventCount() > 0)
|
if (tunnelTestTime10m.getLastEventCount() > 0)
|
||||||
avg60m = tunnelTestTime60m.getAverageValue();
|
avg10m = tunnelTestTime10m.getAverageValue();
|
||||||
else
|
else
|
||||||
avg60m = tunnelTestTime60m.getLifetimeAverageValue();
|
avg10m = tunnelTestTime10m.getLifetimeAverageValue();
|
||||||
|
|
||||||
if (avg60m < 2000)
|
if (avg10m < 2000)
|
||||||
avg60m = 2000; // minimum before complaining
|
avg10m = 2000; // minimum before complaining
|
||||||
|
|
||||||
if ( (avg60m > 0) && (avg1m > avg60m * tunnelTestTimeGrowthFactor) ) {
|
if ( (avg10m > 0) && (avg1m > avg10m * tunnelTestTimeGrowthFactor) ) {
|
||||||
double probAccept = (avg60m*tunnelTestTimeGrowthFactor)/avg1m;
|
double probAccept = (avg10m*tunnelTestTimeGrowthFactor)/avg1m;
|
||||||
probAccept = probAccept * probAccept; // square the decelerator for test times
|
probAccept = probAccept * probAccept; // square the decelerator for test times
|
||||||
int v = _context.random().nextInt(100);
|
int v = _context.random().nextInt(100);
|
||||||
if (v < probAccept*100) {
|
if (v < probAccept*100) {
|
||||||
// ok
|
// ok
|
||||||
if (_log.shouldLog(Log.INFO))
|
if (_log.shouldLog(Log.INFO))
|
||||||
_log.info("Probabalistically accept tunnel request (p=" + probAccept
|
_log.info("Probabalistically accept tunnel request (p=" + probAccept
|
||||||
+ " v=" + v + " test time avg 1m=" + avg1m + " 60m=" + avg60m + ")");
|
+ " v=" + v + " test time avg 1m=" + avg1m + " 10m=" + avg10m + ")");
|
||||||
} else {
|
} else {
|
||||||
if (_log.shouldLog(Log.WARN))
|
if (_log.shouldLog(Log.WARN))
|
||||||
_log.warn("Probabalistically refusing tunnel request (test time avg 1m=" + avg1m
|
_log.warn("Probabalistically refusing tunnel request (test time avg 1m=" + avg1m
|
||||||
+ " 60m=" + avg60m + ")");
|
+ " 10m=" + avg10m + ")");
|
||||||
_context.statManager().addRateData("router.throttleTunnelProbTestSlow", (long)(avg1m-avg60m), 0);
|
_context.statManager().addRateData("router.throttleTunnelProbTestSlow", (long)(avg1m-avg10m), 0);
|
||||||
return TunnelHistory.TUNNEL_REJECT_PROBABALISTIC_REJECT;
|
return TunnelHistory.TUNNEL_REJECT_PROBABALISTIC_REJECT;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (_log.shouldLog(Log.INFO))
|
if (_log.shouldLog(Log.INFO))
|
||||||
_log.info("Accepting tunnel request, since 60m test time average is " + avg60m
|
_log.info("Accepting tunnel request, since 60m test time average is " + avg10m
|
||||||
+ " and past 1m only has " + avg1m + ")");
|
+ " and past 1m only has " + avg1m + ")");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -260,7 +260,7 @@ class RouterThrottleImpl implements RouterThrottle {
|
|||||||
int used1s = _context.router().get1sRate(); // dont throttle on the 1s rate, its too volatile
|
int used1s = _context.router().get1sRate(); // dont throttle on the 1s rate, its too volatile
|
||||||
int used15s = _context.router().get15sRate();
|
int used15s = _context.router().get15sRate();
|
||||||
int used1m = _context.router().get1mRate(); // dont throttle on the 1m rate, its too slow
|
int used1m = _context.router().get1mRate(); // dont throttle on the 1m rate, its too slow
|
||||||
int used = used15s;
|
int used = Math.min(used15s,used1s);
|
||||||
|
|
||||||
double share = _context.router().getSharePercentage();
|
double share = _context.router().getSharePercentage();
|
||||||
int availBps = (int)(((maxKBps*1024)*share) - used); //(int)(((maxKBps*1024) - used) * getSharePercentage());
|
int availBps = (int)(((maxKBps*1024)*share) - used); //(int)(((maxKBps*1024) - used) * getSharePercentage());
|
||||||
@@ -269,8 +269,8 @@ class RouterThrottleImpl implements RouterThrottle {
|
|||||||
_context.statManager().addRateData("router.throttleTunnelBytesUsed", used, maxKBps);
|
_context.statManager().addRateData("router.throttleTunnelBytesUsed", used, maxKBps);
|
||||||
_context.statManager().addRateData("router.throttleTunnelBytesAllowed", availBps, (long)bytesAllocated);
|
_context.statManager().addRateData("router.throttleTunnelBytesAllowed", availBps, (long)bytesAllocated);
|
||||||
|
|
||||||
if (used1s > (maxKBps*1024)) {
|
if (used1m > (maxKBps*1024)) {
|
||||||
if (_log.shouldLog(Log.WARN)) _log.warn("Reject tunnel, 1s rate (" + used1s + ") indicates overload.");
|
if (_log.shouldLog(Log.WARN)) _log.warn("Reject tunnel, 1m rate (" + used1m + ") indicates overload.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -16,8 +16,8 @@ import net.i2p.CoreVersion;
|
|||||||
*/
|
*/
|
||||||
public class RouterVersion {
|
public class RouterVersion {
|
||||||
public final static String ID = "$Revision: 1.419 $ $Date: 2006-05-18 17:31:10 $";
|
public final static String ID = "$Revision: 1.419 $ $Date: 2006-05-18 17:31:10 $";
|
||||||
public final static String VERSION = "0.6.1.19";
|
public final static String VERSION = "0.6.1.20";
|
||||||
public final static long BUILD = 1;
|
public final static long BUILD = 0;
|
||||||
public static void main(String args[]) {
|
public static void main(String args[]) {
|
||||||
System.out.println("I2P Router version: " + VERSION + "-" + BUILD);
|
System.out.println("I2P Router version: " + VERSION + "-" + BUILD);
|
||||||
System.out.println("Router ID: " + RouterVersion.ID);
|
System.out.println("Router ID: " + RouterVersion.ID);
|
||||||
|
@@ -22,7 +22,7 @@ public class ACKSender implements Runnable {
|
|||||||
private boolean _alive;
|
private boolean _alive;
|
||||||
|
|
||||||
/** how frequently do we want to send ACKs to a peer? */
|
/** how frequently do we want to send ACKs to a peer? */
|
||||||
static final int ACK_FREQUENCY = 200;
|
static final int ACK_FREQUENCY = 500;
|
||||||
|
|
||||||
public ACKSender(RouterContext ctx, UDPTransport transport) {
|
public ACKSender(RouterContext ctx, UDPTransport transport) {
|
||||||
_context = ctx;
|
_context = ctx;
|
||||||
|
Reference in New Issue
Block a user