Storage method, search method, device and system of routing table entry
A routing and table entry technology, applied in the computer field, can solve problems such as low search speed and large storage space
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0151] This embodiment provides a method for storing routing table items. The method saves the storage space of the binary tree for storing routing addresses and realizes flexible storage of routing table items by means of segmented storage. see figure 1 , the flow of the storage method of the routing entry provided in this embodiment is as follows:
[0152] 101: Divide each routing address of the routing table entry into at least two address segments according to a preset length;
[0153] 102: Assign a corresponding address suffix to the first address segment of each routing address, and use the address suffix of the first address segment of each routing address as the address prefix of the next address segment;
[0154] 103: Store the first address segment of each routing address in a node of the first binary tree, and store the address suffix corresponding to the first address segment of each routing address;
[0155] 104: If the next address segment is the tail address s...
Embodiment 2
[0164] This embodiment provides a method for storing routing entries. Combining the storage content of the routing entries provided in the first embodiment above, for the convenience of description, this embodiment stores the 16-bit routing addresses A to I in the routing entries as As an example, the method for storing routing entries provided in this embodiment is illustrated. Among them, routing addresses A to I are as follows:
[0165] Routing address A: 1001001001000011
[0166] Routing address B: 1001001010010111
[0167] Routing address C: 1001001110001010
[0168] Routing address D: 1001001111011101
[0169] Routing address E: 1011011010101100
[0170] Routing address F: 1011011010101111
[0171] Routing address G: 1101011110001100
[0172] Routing address H: 1101101110011010
[0173] Routing address I: 1110010110111101
[0174] see image 3 , when the storage method of the routing entry provided in this embodiment stores the above-mentioned routing addresses ...
Embodiment 3
[0229] This embodiment provides a method for searching a routing table entry, combined with the method for searching a routing table entry provided in the first embodiment above, to find the query address in the routing table entry of the 16-bit routing address stored in the second embodiment above The search results corresponding to a, b, c, and d are taken as an example to illustrate the method for searching routing table entries provided in this embodiment. Among them, query addresses a, b, c, d are as follows:
[0230] Query address a: 1001001110001011
[0231] Query address b: 1011011010101100
[0232] Query address c: 1011011010111100
[0233] Query address d: 1100101110011010
[0234] see Figure 6 When the search method for routing table entries provided in this embodiment searches for the search results corresponding to the above query addresses a to d, the method flow is specifically as follows:
[0235] 601: Divide the query address into at least two address se...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com