summaryrefslogtreecommitdiffstats
path: root/misc
AgeCommit message (Collapse)Author
2000-09-04Serious bug in ext lsa origination found. Going for 1.0.4.Ondrej Filip
2000-09-03Version 1.0.3.Ondrej Filip
2000-08-25Minor bug. It does not work on non RH systems. Thanx toOndrej Filip
Craig Bourne <cbourne@cbourne.com>
2000-08-24Added files for RPM building.Ondrej Filip
1998-12-19Variance estimation fixed.Martin Mares
1998-12-19Added several tools for fib hashing function analysis. It turned outMartin Mares
we can use very simple function which is monotonic with respect to re-hashing: n ^= n >> 16; n ^= n << 10; h = (n >> (16 - o)) & ((1 << o) - 1); where o is table order. Statistical analysis for both backbone routing table and local OSPF routing tables gives values near theoretical optimum for uniform distribution (see ips.c for formulae). The trick is very simple: We always calculate a 16-bit hash value n and use o most significant bits (this gives us monotonity wrt. rehashing if we sort the chains by the value of n). The first shift/xor pair reduces the IP address to a 16-bit one, the second pair makes higher bits of the 16-bit value uniformly distributed even for tables containing lots of long prefixes (typical interior routing case with 24-bit or even longer prefixes).