A method for processing, searching, adding and deleting routing prefixes
A deletion method and prefix technology, applied in the field of network communication, can solve the problems of memory consumption and low cost, and achieve the effect of avoiding backtracking operations
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
example
[0158] Example: Implementing an IPV4 routing table based on a 256-branch Trie tree
[0159] 1. In the example, a multi-branch Trie tree with an equal step size of 8 (that is, 256) is used to realize the rapid update and search of the IPV4 routing table prefix.
[0160] 2. The data structure adopts the above-mentioned Table 1-Table 3.
[0161] 3. Add process:
[0162] According to the implementation method of adding a routing prefix above, take adding the following routing entry as an example:
[0163] route entry prefix
routing table entry index
192.168.1.1 / 0 is 0.0.0.0
N0
192.168.1.1 / 1 is 128.0.0.0
N1
……
……
192.168.1.1 / 10 is 192.128.0.0
Na
192.168.1.1 / 11 is 192.160.0.0
Nb
……
……
192.168.1.1 / 24 is 192.168.1.0
N18
……
……
192.168.1.1 / 31 is 192.168.1.0
N1f
192.168.1.1 / 32 is 192.168.1.1
N20
[0164] Table 4
[0165] The added routing table memory map i...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 