摘要 |
<p>A data storing method, device thereof and methods of data searching, adding, and deleting are provided, to improve the data storing efficiency of Ternary Content Addressable Memory. The data storing method includes: according to the length of data, dividing the data into multiple levels of subdata; establishing corresponding relationships between the respective levels of subdata; and storing the respective levels of subdata and the corresponding relationships into tables of TCAM. The device includes: a dividing unit, an establishing unit and a storing unit; the dividing unit being used to dividing the data into multiple levels of subdata according to the length of data, and sending the divided data to the establishing unit; the establishing unit being used to establishing corresponding relationships between the respective levels of subdata; the storing unit being used to storing the respective levels of subdata and the corresponding relationships into tables of TCAM. The technical solutions can improve the data storing efficiency of TCAM.</p> |