An IP router must forward packets at gigabit speed in order to guarantee a good quality of service. Two important factors make this task a challenging problem: (i) for each packet, the longest matching prefix in the forwarding table must be quickly computed; (ii) the routing tables contain several thousands of entries and their size grows significantly every year. Because of this, parallel routers have been developed which use several processors to forward packets. In this work we present a novel algorithmic technique which, for the first time, exploits the parallelism of the router also to reduce the size of the routing table. Our method is scalable and requires only minimal additional hardware. Indeed, we prove that any IP routing table T can be split into two subtables T-1 and T-2 such that: ( a) | T-1| can be any positive integer k < | T | and | T-2| <= | T| - k + 1; ( b) the two routing tables can be used separately by two processors so that the IP lookup on T is obtained by simply XOR-ing the IP lookup on the two tables. Our method is independent of the data structure used to implement the lookup search and it allows for a better use of the processors L2 cache. For real routers routing tables, we also show how to achieve simultaneously: ( a) | T-1| is roughly 7% of the original table T; ( b) the lookup on table T-2 does not require the best matching prefix computation.

XOR-based schemes for fast parallel IP lookups / Bongiovanni, Giancarlo; Paolo, Penna. - In: THEORY OF COMPUTING SYSTEMS. - ISSN 1432-4350. - 38:4(2005), pp. 481-501. ( 5th Italian Conference on Algorithms and Complexity ROME, ITALY MAY 28-AUG 30, 2003) [10.1007/s00224-004-1183-1].

XOR-based schemes for fast parallel IP lookups

BONGIOVANNI, Giancarlo;
2005

Abstract

An IP router must forward packets at gigabit speed in order to guarantee a good quality of service. Two important factors make this task a challenging problem: (i) for each packet, the longest matching prefix in the forwarding table must be quickly computed; (ii) the routing tables contain several thousands of entries and their size grows significantly every year. Because of this, parallel routers have been developed which use several processors to forward packets. In this work we present a novel algorithmic technique which, for the first time, exploits the parallelism of the router also to reduce the size of the routing table. Our method is scalable and requires only minimal additional hardware. Indeed, we prove that any IP routing table T can be split into two subtables T-1 and T-2 such that: ( a) | T-1| can be any positive integer k < | T | and | T-2| <= | T| - k + 1; ( b) the two routing tables can be used separately by two processors so that the IP lookup on T is obtained by simply XOR-ing the IP lookup on the two tables. Our method is independent of the data structure used to implement the lookup search and it allows for a better use of the processors L2 cache. For real routers routing tables, we also show how to achieve simultaneously: ( a) | T-1| is roughly 7% of the original table T; ( b) the lookup on table T-2 does not require the best matching prefix computation.
2005
01 Pubblicazione su rivista::01a Articolo in rivista
XOR-based schemes for fast parallel IP lookups / Bongiovanni, Giancarlo; Paolo, Penna. - In: THEORY OF COMPUTING SYSTEMS. - ISSN 1432-4350. - 38:4(2005), pp. 481-501. ( 5th Italian Conference on Algorithms and Complexity ROME, ITALY MAY 28-AUG 30, 2003) [10.1007/s00224-004-1183-1].
File allegati a questo prodotto
Non ci sono file associati a questo prodotto.

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11573/100393
 Attenzione

Attenzione! I dati visualizzati non sono stati sottoposti a validazione da parte dell'ateneo

Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 4
  • ???jsp.display-item.citation.isi??? 5
social impact