首页> 外文会议>Proceedings of the 2005 ACM symposium on Architecture for networking and communications systems >Optimal XOR hashing for a linearly distributed address lookup in computer networks
【24h】

Optimal XOR hashing for a linearly distributed address lookup in computer networks

机译:最佳XOR哈希用于计算机网络中的线性分布地址查找

获取原文
获取原文并翻译 | 示例

摘要

Hashing algorithms have been widely adopted to provide a fast address look-up process which involves a search through a large database to find a record associated with a given key. Modern examples include address-lookup in network routers for a forwarding outgoing link, rule-matching in intrusion detection systems comparing incoming packets with a large database, etc. Hashing algorithms involve transforming a key inside each target data to a hash value hoping that the hashing would render the database a uniform distribution with respect to this new hash value. When the database are already key-wise uniformly distributed, any regular hashing algorithm would easily lead to perfectly uniform distribution after the hashing. On the other hand, if records in the database are instead not uniformly distributed, then different hashing functions would lead to different performance. This paper addresses the case when such distribution follows a natural negative linear distribution, which is found to approximate distributions in many various applications. For this distribution, we derive a general formula for calculating the distribution variance produced by any given non-overlapped bit-grouping XOR hashing function. Such a distribution variance from the hashing directly translates to performance variations in searching. In this paper, the best XOR hashing function is determined for any given key size and any given hashing target size.
机译:散列算法已被广泛采用以提供快速的地址查找过程,该过程涉及通过大型数据库进行搜索以找到与给定密钥相关联的记录。现代示例包括网络路由器中用于转发出站链路的地址查找,入侵检测系统中的规则匹配,将传入数据包与大型数据库进行比较等。散列算法涉及将每个目标数据内的密钥转换为散列值,以希望散列将使数据库相对于此新哈希值的分布均匀。当数据库已经按键进行均匀分布时,任何 regular 散列算法都将在散列之后轻易导致完美的均匀分布。另一方面,如果数据库中的记录不是均匀分布,则不同的哈希函数将导致不同的性能。本文讨论了这种分布遵循自然负线性分布的情况,该分布在许多应用中都近似于分布。对于这种分布,我们导出了一个通用公式,用于计算由任何给定的非重叠位分组XOR哈希函数产生的分布方差。来自散列的这种分布差异直接转化为搜索中的性能差异。在本文中,对于任何给定的密钥大小和任何给定的哈希目标大小,确定最佳的XOR哈希函数。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号