Forwarding table operation method and device, computer equipment and readable storage medium
A forwarding table, computer technology, applied in the field of data network, to achieve the effect of alleviating packet congestion
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
no. 1 example
[0057] figure 1 It is a principle flow diagram of this embodiment. according to figure 1 As shown, the first embodiment of the present invention provides a method for operating a forwarding table, the method comprising:
[0058] S1: Obtain the destination prefix and source prefix according to parsing the received message, and search for the same destination prefix and source prefix in the forwarding table, and the forwarding table has a two-dimensional tree structure;
[0059] S2: When the same destination prefix and source prefix are found, the next-hop address is obtained according to the found destination prefix and source prefix;
[0060] S3: If the same destination prefix and source prefix are not found, add the destination prefix, source prefix and corresponding next-hop address obtained by parsing the message, so as to increase the entry in the forwarding table.
[0061] The method for operating the forwarding table provided by the first embodiment of the present inv...
no. 2 example
[0087] Figure 5 It is the road block diagram of this embodiment. according to Figure 5 As shown, the second embodiment of the present invention provides a device for forwarding table operations, the device includes:
[0088] The search module is used to obtain the destination prefix and the source prefix according to the message received by parsing, and searches the same destination prefix and the source prefix in the forwarding table, and the forwarding table is a two-dimensional tree structure; the obtaining module is used to find In the case of the same destination prefix and source prefix, the next hop address is obtained according to the found destination prefix and source prefix; a module is added to add the parsing description if the same destination prefix and source prefix are not found The destination prefix, the source prefix and the corresponding next-hop address obtained by the message are added to the entry in the forwarding table.
[0089] Optionally, the d...
no. 3 example
[0103] The third embodiment of the present invention provides a computer device, including a processor and a memory; the memory is used to store computer instructions, and the processor is used to run the computer instructions stored in the memory, so as to realize the above-mentioned operation of the forwarding table method.
[0104] The method includes: obtaining the destination prefix and the source prefix according to the received message by parsing, searching the same destination prefix and the source prefix in the forwarding table, the forwarding table is a two-dimensional tree structure; after finding the same destination prefix and In the case of the source prefix, the next hop address is obtained according to the found destination prefix and source prefix; if the same destination prefix and source prefix are not found, add the destination prefix, source prefix and The corresponding next-hop address is used to add an entry in the forwarding table.
[0105] Optionally,...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


