The present invention relates to a method for routing of data packets as well as a respective routing apparatus. In particular, the present invention relates to a method for routing of data packets according to the IPv6 protocol (“Internet Protocol Version 6”) and a respective routing apparatus.
As one of the essential components of an internet data transmission system, an IP router (“Internet Protocol”) makes a forwarding decision for an input data packet, i.e. it checks a destination address identifier carried in the packet header and directs it to the next output port or output link through which the data packet should be sent. For example, depending on the destination address identifier of the input data packet, the IP router can direct the data packet to a Next Hop router or an Egress™ port for transmission over a respective output link. In a computer network, the NHRP protocol (“Next Hop Resolution Protocol”) is a protocol which can be used so that a computer sending data to another computer can learn the most direct route to the receiving computer. An Egress™ port is a new type of port used in modern IP routers.
In the following, the routing of data is briefly explained with reference to
The IP router shown in
Hence, as long as the routing unit 3 finds a correspondence between the destination address identifier extracted by the header extracting block 2 and at least one of the entries stored in the routing table 4, the respective data packet can be switched to one of the output links OUT1-OUTM. If, however, there is no match for the destination address identifier in the routing table 4, the switch 6 cannot switch the respective data packet to one of the output links, and the data packet cannot be forwarded to its destination.
It is obvious that the cost associated with an IP router of the type shown in
This problem in particular becomes more and more serious with the fast expansion of internet. The newly introduced IPv6 protocol provides address identifiers comprising 128 bits. Theoretically, for an n-bit destination address identifier, the routing table 4 may have up to 2n entries. Hence, as regards the IPv6 protocol, there is a need for an enormous storing capacity for storing such a large routing table 4. Such a large table size, however, makes the look-up procedure even impractical. Therefore, routing table look-up is regarded as the major bottleneck in today's routers.
The most straightforward method for routing table look-up is to perform a linear searching, i.e. compare the destination address identifier of the input data packet with each entry of the routing table until a correspondence between the address identifier and one of the entries in the routing table is recognized. Although this approach is simple, it is hardly used in actual practice due to its poor performance.
To speed up the look-up procedure, various strategies have been used. The most important ones are the usage of a so-called contents-addressed memory (CAM), the search according to a tree-based data structure, and the usage of so-called hashing strategies. Each of these known strategies has its own advantages and disadvantages. However, all of them are based on a search in the original data domain of the destination address identifier. Thus, all of these strategies require a relatively complex search procedure and a relatively large routing table size.
Therefore, the object underlying the present invention is to provide a routing method for data packets as well as a respective routing apparatus which allow a smaller size of the routing table and, thus, enable a faster search for a correspondence between the respective destination address identifier and the entries stored in the routing table and decrease the costs associated with the routing table.
This object is achieved by a routing method and a routing apparatus according to embodiments of the present invention.
The basic idea of the present invention is that the routing table look-up can be performed in a compressed domain, i.e., before performing the look-up operation for an input data packet, its destination address identifier is first compressed to remove redundancy. Then, the look-up operation is carried out with the compressed destination address identifier as the key with respect to the routing table, the entries of which having been also compressed in the same manner as the destination address identifier of the input data packet.
Therefore, the look-up operation can be performed with respect to a smaller routing table and, thus, the costs and power consumption associated with the respective router can be reduced, while the performance of the router can be improved.
The compression of the destination address identifier as well as the forwarding address information entries of the routing table is performed according to one and the same data compression algorithm. In particular, a so-called lossless data compression algorithm is used which eliminates redundancy in the data without sacrificing any information content. There are several popular algorithms and variants of them which can be used for lossless compression. The most important examples are those of the Huffman, Arithmetic, and Lempel-Ziv (LZ) family.
Since the compression efficiency depends on the data characteristics of the destination address identifiers which the router deals with, parameters of the respective compressor, e.g. the code table, should be assigned or adjusted according to these characteristics.
As regards the data compression algorithm, a data compression algorithm can be used which utilizes a code table which assigns a symbol of the address information to be compressed a respective code word. Each code word has preferably a length which is inversely proportional to the appearance probability of the respective symbol in a given address table, for example an IPv6 address table. As a matter of course, the appearance probability of the symbols at the router input may also be considered to improve the overall performance.
By applying the above-mentioned data compression algorithm, the redundancy of the appearance distribution of some symbols or bit combinations in the destination address identifier is taken into account. Therefore, a kind of a spatial redundancy can be removed. However, there can still be other kinds of redundancy, e.g. redundancy in the time domain if there is a similarity of the destination address identifier for successive data packets. In order to remove such a redundancy in the time domain as well, there is preferably a feedback from the routing unit to the compressor unit used for compressing the destination address identifier so as to eliminate such a time domain redundancy and consider the similarity of a plurality of destination address identifiers within a data packet sequence.
Although the present invention can preferably be used for the routing of IPv6 data packets, the present invention is not limited to this preferred field of application and, as a matter of course, can be used for all kinds of data packets.
In the following, preferred embodiments of the present invention will be explained in more detail with reference to the enclosed drawings.
In practice, much redundancy may be involved in the destination address identifier to be processed by an IP router. To explore how much redundancy may be involved in an IP address, an experiment was carried out that tested, with various address tables, how many bits are really necessary to represent the information included in a quad, i.e. 4 bits, of an IPv6 address.
In
It is not easy for a general look-up method to consider all kinds of redundancy completely. The approach described in the following in detail, however, makes it possible to combine the routing table look-up technique with a data compression technique. While the former technique is associated with a searching operation in a compact address table, the latter technique deals with all possible kinds of redundancy. By combining the advantages of both techniques, an optimum solution for the routing table look-up problem can be achieved.
The IP router of
The data compression algorithm used by the address compressors 7, 8 is particularly a so-called lossless data compression algorithm. Such a lossless data compression algorithm eliminates redundancy in the respective data without sacrificing any information content. There are several popular algorithms and variants of them which could be used for such a lossless data compression. The most important examples are the data compression algorithms of the Huffman, Arithmetic, and Lempel-Ziv (LZ) family.
Since the compression efficiency depends on the data characteristics of the destination address identifiers that the router deals with, at least some of the parameters of the address compressors 7, 8, e.g. the code table used by the address compressor, should be assigned or adjusted according to or in dependence upon these data characteristics. Therefore, the IP router shown in
As already described above, the address compression effected by the address compressors 7, 8 takes into account the redundancy of the appearance distribution of some symbols (bit combinations) in the respective destination address identifier. However, there can be another kind of redundancy in terms of the similarity of the destination address identifiers of a plurality of successive data packets. In order to eliminate such a redundancy in the time domain as well, the IP router according to
The address compressor 7 shown in
The code table shown in
The 32 code words output by the coding block 13 are then combined by an address composing block 14 so as to obtain the compressed destination address which is then buffered in a first buffer 20 of the routing unit 3. In addition, there is a block 11 storing the respective code word length table corresponding to column (C) of
The code table shown in
The routing table 4 shown in
A block 17 reads an entry of the leading table 27 and sends the address length bi thereof to a length comparator 16. The length comparator 16 compares the length of the compressed input address as stored in the buffer 15 with each entry read out by the block 17. The length comparator 16 compares the length of the compressed input address with each address length bi stored in the leading table 27 so as to find the corresponding sub-table. If a match is found by the length comparator 16, a block 18 is reset, and thereafter the block 18 sends the base address ai of the found sub-table to a block 24 and initializes a counter 23 to the number of entries ni of the respective sub-table for the following address look-up operation.
Then, the routing unit 3 compares the compressed input address itself, as stored in the buffer 20, with the compressed address cj,i stored in the sub-table as determined by the above-described search operation. A block 24 reads an entry from the respective sub-table 28 and sends the address cj,i to an address comparator 21. This address comparator 21 compares the compressed input address stored in the buffer 20 with the compressed forwarding address provided by the block 24. With each comparison operation effected by the address comparator 21, an AND gate 22 decrements the counter 23. Therefore, the comparison operation of the address comparator 21 is repeated until a correspondence is found between the compressed destination address and one of the compressed forwarding addresses stored in the sub-table 28, or until the counter 23 is decremented to zero. An 1 bit-latch 25 holds the latest comparison results of the address comparator 21. If there is a correspondence between the compressed input destination address and one of the compressed forwarding addresses stored in the sub-table 28, the 1 bit-latch 25 generates a signal for a logic gate 26, which effects a logic AND operation between the output signal of the 1 bit-latch 25 and an inverted output signal of the counter 23. This output signal of the counter 23 has a low level as long as the counter 23 has not reached the value zero. Hence, the output signal VALID of the logic gate 26 indicates whether the output port number or output link number oj,i currently processed by the block 24 is valid and can be used for the forwarding operation of the switch 6 (see
A further block 19 of the routing unit 3 effects a byte alignment operation of the coded or compressed input address, which is stored in the buffer 20, by zero padding of the remaining bits.
According to the implementation example shown in
The model of using compressed destination address identifiers and compressed forwarding addresses was tested using a plurality of IPv6 address tables of various sizes.
Number | Date | Country | Kind |
---|---|---|---|
02017685 | Aug 2002 | EP | regional |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/EP03/08663 | 8/5/2003 | WO | 00 | 11/21/2005 |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO2004/015933 | 2/19/2004 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
5477547 | Sugiyama | Dec 1995 | A |
5613069 | Walker | Mar 1997 | A |
5841989 | James et al. | Nov 1998 | A |
5842224 | Fenner | Nov 1998 | A |
5862344 | Hart | Jan 1999 | A |
6026198 | Okada | Feb 2000 | A |
6094431 | Yamato et al. | Jul 2000 | A |
6295276 | Datta et al. | Sep 2001 | B1 |
6883079 | Priborsky | Apr 2005 | B1 |
7289502 | Gemelli et al. | Oct 2007 | B1 |
20020174203 | Kuhn et al. | Nov 2002 | A1 |
20030033430 | Lau et al. | Feb 2003 | A1 |
20030081554 | Huang et al. | May 2003 | A1 |
20030222996 | Patej | Dec 2003 | A1 |
20060075134 | Aalto et al. | Apr 2006 | A1 |
Number | Date | Country |
---|---|---|
0 978 966 | Feb 2000 | EP |
Number | Date | Country | |
---|---|---|---|
20060106940 A1 | May 2006 | US |