Abstract:
PURPOSE: A method for retrieving and updating a tree using a node structure of a multi search tree is provided to reduce a retrieving time by increasing the number of keys capable of being stored in a node using one pointer necessary for one node of a B tree and decreasing the level number of tree path. CONSTITUTION: An initial 16-bit array is retrieved using an upper 16-bit segment of an inputted destination IP(Internet Protocol) address(101). It is judged whether an "I" flag of a corresponding entry is true in the retrieved initial 16-bit array(102). If the "I" flag of the corresponding entry is true, it is moved to a root node indicated by a node pointer and a multi-path retrieval is performed using a lower 16-bit offset of the inputted destination IP address(103). It is judged whether an exact matching is achieved before a leaf node is reached(104). If the exact matching is achieved before the leaf node is reached, it is judged whether the arrival of the retrieval is a branch node or a leaf node(105). If the arrival of the retrieval is the leaf node, a region port stored in a register is returned(106).
Abstract:
PURPOSE: A method for generating a node of a multiple-search tree and for searching the data of a multiple-search node tree structure is provided to receive associated information in one cache line by using one pointer recorded in a corresponding node regardless of the number of the keys used in one node. CONSTITUTION: In an 8-way search tree applied with a B tree, one node consists of 7 32 bit keys(K1-K7), a 16 bit node pointer(Po), and a 16 bit key pointer(Kp). The keys express the value of the keys. The node pointer expresses the position of the first node. The key pointer expresses the position of the first key. Po means the address of the first node among children nodes is 20000. The key pointer is a value indicating the pointer corresponding to the first key of a node. In a branch node, the key pointer indicates the information on the corresponding port number when the value is the same as the key value. Otherwise, the key pointer indicates the area information enabling a maximum effective matching method.