Method, device and equipment for managing routing capacity

By creating virtual routing and forwarding instances (VRFs) at the software level of the switch, the problem of inability to expand the routing table capacity in the prior art is solved, and the routing table capacity is improved without increasing hardware costs.

CN119496730APending Publication Date: 2025-02-21RUIJIE NETWORKS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311047295.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-18
Publication Date
2025-02-21

AI Technical Summary

Technical Problem

Existing switches cannot expand the routing table capacity without installing switching chips with larger routing table capacity, resulting in the inability to meet the high requirements for routing table capacity of high-scale networks.

Method used

By creating virtual routing and forwarding instances (VRFs) at the switch's software level, associating the layer three ports with VRFs, and sending the VRF corresponding routing table to the line card, thus realizing that multiple VRFs share a physical line card routing table , improve the routing table capacity.

Benefits of technology

Without increasing hardware costs, the switch's routing table capacity is effectively improved, meeting the demand for routing table capacity of high-scale networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119496730A_ABST
    Figure CN119496730A_ABST
Patent Text Reader

Abstract

The invention discloses a routing capacity management method, device and equipment, the method is applied to a switch, and the switch comprises a main control board and at least one line card; the method is executed by a main control board and comprises the steps that at least one virtual routing and forwarding instance VRF is created according to an object operation instruction, the at least one VRF is associated with a corresponding three-layer port and a routing table, and the three-layer port and at least one line card have a mapping relation; and for each line card, respectively executing the following operations: binding a VRF associated with a three-layer port having a mapping relationship with the line card with the line card, and issuing a routing table corresponding to the VRF bound with the line card to the line card, so that the line card sends the routing table corresponding to the VRF bound with the line card to the line card according to the message characteristics of the received message. And after the routing information of the message is found in the written routing table, completing message forwarding based on the routing information. The method is used for improving the routing table capacity from the software level.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of network communications, and in particular, relates to a method, device and equipment for managing routing capacity. Background Art

[0002] With the development of data centers and the continuous expansion of network scale, the aggregation layer and core layer networks have put forward higher requirements on the routing table capacity specifications of switch products. Even in some core layer networks, the routing capacity that the switch routing table capacity can support must reach more than one megabyte.

[0003] However, the routing capacity that the current switch can support depends on the routing capacity that the switching chip in each line card on the switch can support. For example, if a single switching chip can support writing a routing table with a capacity of one megabyte, then the entire distributed switch can only support writing a routing table with a capacity of one megabyte at most. This is because the switching chips corresponding to all line cards of the distributed switch are written into the same routing table to ensure that after the switch receives a message on any line card, it can find the path to the target line card of the message by querying the routing table, and use the found path to forward the message to the target line card to complete the message forwarding.

[0004] The related technology cannot expand the routing table capacity of the switch without installing a switching chip with a larger routing table capacity. Summary of the invention

[0005] The purpose of the present application is to provide a method, device and equipment for managing routing capacity, which is used to increase the routing table capacity from the software level without installing a switching chip with a larger routing table capacity.

[0006] In a first aspect, the present application provides a method for managing routing capacity, which is applied to a switch, wherein the switch comprises: a main control board and at least one line card; the method is executed by the main control board, and comprises:

[0007] According to the object operation instruction, at least one virtual routing and forwarding instance VRF is created, wherein the at least one VRF is respectively associated with a corresponding layer-3 port and a routing table, and the layer-3 port and the at least one line card have a mapping relationship;

[0008] For each of the line cards, the following operations are performed respectively: the VRF associated with the three-layer port having a mapping relationship with the line card is bound to the line card, and the routing table corresponding to the VRF bound to the line card is sent to the line card, so that the line card finds the routing information of the message in the written routing table according to the message characteristics of the received message, and completes the message forwarding based on the routing information.

[0009] Optionally, binding the VRF associated with the layer-3 port having a mapping relationship with the line card to the line card comprises at least one of the following steps:

[0010] If all the layer-3 ports having a mapping relationship with the line card are associated with the same VRF, the line card is bound to a corresponding VRF;

[0011] If the layer-3 port having a mapping relationship with the line card is associated with multiple VRFs, the line card is bound to the multiple VRFs.

[0012] Optionally, the message characteristics include a VRF identifier determined based on the three-layer port through which the message enters and destination IP address information, so that the line card determines the target routing table corresponding to the message in the written routing table according to the VRF identifier, and searches for the routing information of the message in the target routing table based on the destination IP address information.

[0013] Optionally, the destination IP address information includes the destination IP address of the message and the IP address mask length.

[0014] In a second aspect, the present application provides a method for managing routing capacity, which is applied to a switch, wherein the switch includes: a main control board and at least one line card; the method is executed by the line card, including:

[0015] Write the routing table issued by the main control board; wherein the routing table is a routing table corresponding to the VRF bound to the line card, and the VRF is a VRF associated with a three-layer port having a mapping relationship with the line card in at least one VRF created by the main control board according to the object operation instruction; the at least one VRF is respectively associated with the corresponding three-layer port and the routing table, and the three-layer port and the at least one line card have a mapping relationship;

[0016] When a message is received, the routing information of the message is searched in the written routing table according to the message characteristics of the message, and the message is forwarded based on the routing information.

[0017] Optionally, the message features include a VRF identifier and destination IP address information determined based on a layer-3 port through which the message enters;

[0018] Then, according to the message characteristics of the message, the routing information of the message is searched in the written routing table, including:

[0019] Determine the target routing table corresponding to the message in the written routing table according to the VRF identifier;

[0020] Based on the destination IP address information, the routing information of the message is searched in the target routing table.

[0021] Optionally, the destination IP address information includes the destination IP address of the message and the IP address mask length.

[0022] In a third aspect, the present application provides a device for managing routing capacity, which is applied to a switch, wherein the switch comprises: a main control board and at least one line card; the device comprises:

[0023] A VRF creation module, configured to create at least one virtual routing and forwarding instance VRF according to the object operation instruction, wherein the at least one VRF is respectively associated with a corresponding layer-3 port and a routing table, and the layer-3 port and the at least one line card have a mapping relationship;

[0024] The routing table sending module is used to perform the following operations for each of the line cards: bind the VRF associated with the three-layer port having a mapping relationship with the line card to the line card, and send the routing table corresponding to the VRF bound to the line card to the line card, so that the line card can complete the message forwarding based on the routing information after finding the routing information of the message in the written routing table according to the message characteristics of the received message.

[0025] Optionally, the routing table sending module binds the VRF associated with the layer-3 port having a mapping relationship with the line card to the line card, including at least one of the following steps:

[0026] If all the layer-3 ports having a mapping relationship with the line card are associated with the same VRF, the line card is bound to a corresponding VRF;

[0027] If a layer-3 port having a mapping relationship with the line card is associated with multiple VRFs, the line card is bound to the multiple VRFs.

[0028] Optionally, the message characteristics include a VRF identifier determined based on the three-layer port through which the message enters and destination IP address information, so that the line card determines the target routing table corresponding to the message in the written routing table according to the VRF identifier, and searches for the routing information of the message in the target routing table based on the destination IP address information.

[0029] Optionally, the destination IP address information includes the destination IP address of the message and the IP address mask length.

[0030] In a fourth aspect, the present application provides a device for managing routing capacity, which is applied to a switch, wherein the switch comprises: a main control board and at least one line card; the device comprises:

[0031] A routing table writing module, used for writing the routing table issued by the main control board; wherein the routing table is a routing table corresponding to the VRF bound to the line card, and the VRF is a VRF associated with a three-layer port having a mapping relationship with the line card in at least one VRF created by the main control board according to the object operation instruction; the at least one VRF is respectively associated with the corresponding three-layer port and the routing table, and the three-layer port and the at least one line card have a mapping relationship;

[0032] The message forwarding module is used to complete message forwarding based on the routing information after searching the routing information of the message in the written routing table according to the message characteristics of the message when receiving the message.

[0033] Optionally, the message features include a VRF identifier and destination IP address information determined based on a layer-3 port through which the message enters;

[0034] Then the message forwarding module searches for routing information of the message in the written routing table according to the message characteristics of the message, including:

[0035] Determine the target routing table corresponding to the message in the written routing table according to the VRF identifier;

[0036] Based on the destination IP address information, the routing information of the message is searched in the target routing table.

[0037] Optionally, the destination IP address information includes the destination IP address of the message and the IP address mask length.

[0038] In a fifth aspect, an embodiment of the present application provides a device for managing routing capacity, comprising at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute a method for managing routing capacity as described in any one of the first aspect of the present application, or execute a method for managing routing capacity as described in any one of the second aspect of the present application.

[0039] In the sixth aspect, an embodiment of the present application also provides a computer-readable storage medium. When the instructions in the computer-readable storage medium are executed by the processor of the terminal device, the terminal device is enabled to execute the method for managing routing capacity as described in any one of the first aspect of the present application, or to execute the method for managing routing capacity as described in any one of the second aspect of the present application.

[0040] The technical solution provided by the embodiments of the present application brings at least the following beneficial effects:

[0041] The present application provides a method, apparatus and device for managing routing capacity, which can increase routing table capacity from a software level without installing a switching chip with a larger routing table capacity. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. Obviously, the drawings introduced below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0043] Figure 1 A schematic diagram of the structure of a switch provided in an embodiment of the present application;

[0044] Figure 2 A schematic diagram of a method for managing routing capacity provided in an embodiment of the present application;

[0045] Figure 3 A schematic diagram of another method for managing routing capacity provided in an embodiment of the present application;

[0046] Figure 4 A schematic diagram of a device for managing routing capacity provided in an embodiment of the present application;

[0047] Figure 5 A schematic diagram of another device for managing routing capacity provided in an embodiment of the present application;

[0048] Figure 6 A schematic diagram of a device for managing routing capacity provided in an embodiment of the present application. DETAILED DESCRIPTION

[0049] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Among them, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0050] With the development of data centers and the continuous expansion of network scale, the aggregation layer and core layer networks have put forward higher requirements on the routing table capacity specifications of switch products. Even in some core layer networks, the routing capacity that the switch routing table capacity can support must reach more than one megabyte.

[0051] However, the routing capacity that the current switch can support depends on the routing capacity that the switching chip in each line card on the switch can support. For example, if a single switching chip can support writing a routing table with a capacity of one megabyte, then the entire distributed switch can only support writing a routing table with a capacity of one megabyte at most. This is because the switching chips corresponding to all line cards of the distributed switch are written into the same routing table to ensure that after the switch receives a message on any line card, it can find the path to the target line card of the message by querying the routing table, and use the found path to forward the message to the target line card to complete the message forwarding.

[0052] The related technology cannot expand the routing table capacity of the switch without installing a switching chip with a larger routing table capacity.

[0053] In view of the above problems, the present application provides a method, apparatus and device for managing routing capacity, which can increase the routing table capacity from the software level without installing a switching chip with a larger routing table capacity.

[0054] like Figure 1 As shown, it is a schematic diagram of the structure of the switch provided in the embodiment of the present application. In the embodiment of the present application, the switch 11 includes a main control board 12 and at least one line card 13. Among them, the main control board 12 can be used to obtain the routing table used by the switch when forwarding messages; the line card 13 is used to receive and send messages, which is equivalent to the transceiver port of the switch.

[0055] In a communication network, a routing table is a spreadsheet file or database-like file stored in a message forwarding device, in which the stored routing information includes the path to a specific network address. The message forwarding device relies on the routing table to forward messages in the network.

[0056] When forwarding messages between the main control board 12 and the line card 13, and between each line card, the sender only needs to send the message directly to the receiver without establishing a communication connection in advance. The main control board 12 can learn the routing table according to the routing protocol, or receive the configured routing table according to the object operation instruction. After the main control board 12 obtains the routing table, the main control board 12 can send the routing table to the line card 13. After the routing table is written into the switching chip of the line card 13, the line card 13 forwards the message according to the written routing table. For example, after the message enters from the line card A of the switch 11, the line card A will query the routing information in the written routing table according to the information of the message, and forward the message to the target line card B according to the routing information.

[0057] In order to ensure that after receiving a message on any line card, the switch can find the path to the target line card of the message by querying the routing table, the switch chip of each line card needs to save all the routing tables. As the routing information in the routing table increases, in order to improve the routing table capacity of the switch, the storage of the switch needs to be increased, thereby increasing the hardware cost of the switch. The embodiment of the present application provides a method for managing routing, which is applied to Figure 1 The switch shown is used to solve the problem of how to manage the routing table written by each line card 13 from the software level without increasing the hardware cost, so as to increase the routing table capacity of the switch 11.

[0058] like Figure 2 As shown, a method for managing routing capacity provided by an embodiment of the present application is applied to a switch, the switch comprising: a main control board and at least one line card; the method is executed by the main control board, comprising the following steps:

[0059] Step 21, according to the object operation instruction, create at least one virtual routing and forwarding instance VRF, the at least one VRF is respectively associated with a corresponding three-layer port and a routing table, and the three-layer port and the at least one line card have a mapping relationship;

[0060] A Virtual Private Network (VPN) is a network that provides dedicated services over a public infrastructure. VPN can simulate a point-to-point private connection to send data between two computers over a shared or public network. Since a switch may be connected to multiple VPN users at the same time, these users (routes) need to be isolated from each other, so a virtual routing and forwarding instance (VPN Routing and Forwarding instance, VRF) is used at this time.

[0061] VRF can create multiple VRFs on the same physical device at the same time. Each VRF is independent of each other and has independent interfaces, routing tables, and routing protocol processes. Routing tables are not shared between VRFs, that is, packets are only forwarded between interfaces within each VRF and are not forwarded across VRFs. Therefore, based on VRF technology, multiple routing tables can be created on a physical device to divide the network, achieve data or business isolation, and allow users to deploy overlapping or identical non-conflicting IP addresses.

[0062] For a three-layer switch that uses the two-layer switching technology + the three-layer forwarding technology, it is possible to forward messages multiple times between three-layer interfaces in one route, and realize high-speed forwarding of data packets in the third layer of the network model.

[0063] In an embodiment of the present application, after at least one VRF is created on a switch according to an object operation instruction, a corresponding three-layer port and a routing table are respectively associated with the at least one VRF, and the three-layer interface associated with each VRF may include a physical three-layer interface and a logical three-layer interface configured based on the physical interface and other network parameters, wherein the physical three-layer interface associated with each VRF may directly correspond to the at least one line card, and the logical three-layer interface associated with each VRF has a mapping relationship with the at least one line card, that is, based on the three-layer interface associated with each VRF, each VRF will correspond to at least one line card among all line cards, and the forwarding of messages under each VRF will be performed between the line cards corresponding to the VRF.

[0064] Step 22, for each of the line cards, perform the following operations respectively: bind the VRF associated with the three-layer port having a mapping relationship with the line card to the line card, and send the routing table corresponding to the VRF bound to the line card to the line card, so that the line card can find the routing information of the message in the written routing table according to the message characteristics of the received message, and complete the message forwarding based on the routing information.

[0065] After creating at least one VRF and associating the corresponding three-layer port and routing table for the at least one VRF, it is necessary to perform the following operations for each line card: bind the VRF associated with the three-layer port having a mapping relationship with the line card to the line card.

[0066] Since each VRF corresponds to at least one line card among all line cards, that is, a layer-3 port having a mapping relationship with each line card may correspond to one or more VRFs, therefore, as a feasible implementation manner, the VRF associated with the layer-3 port having a mapping relationship with the line card is bound to the line card, including at least one of the following steps a and b:

[0067] Step a: if all the layer-3 ports having a mapping relationship with the line card are associated with the same VRF, the line card is bound to a corresponding VRF;

[0068] In some embodiments, the line cards include line card 1, line card 2, ... line card N, and the VRFs include VRF1, VRF2, ... VRFN. For step a, at least one of the following conditions exists:

[0069] Case a1: Line card 1 is bound to VRF1, line card 2 is bound to VRF2, ... line card N is bound to VRFN.

[0070] Case a2: Line card 1, line card 2, ... line card M are bound to VRF1, line card M+1 is bound to VRF2, ... line card N is bound to VRFN.

[0071] Step b: If the layer-3 port having a mapping relationship with the line card is associated with multiple VRFs, the line card is bound to the multiple VRFs.

[0072] In some embodiments, the line cards include line card 1, line card 2, ... line card N, and VRFs include VRF1, VRF2, ... VRFN. For step b, line card 1 may be bound to VRF1, VRF2, ... VRFM, that is, one line card may be bound to multiple VRFs.

[0073] The above-mentioned M and N are both positive integers, and M<N.

[0074] In an embodiment of the present application, after creating at least one VRF and associating a corresponding three-layer port and a routing table for the at least one VRF, each VRF is bound to one or more corresponding line cards according to a mapping relationship between the three-layer port and the at least one line card.

[0075] That is to say, for the same line card, one or more VRFs can be bound, and the routing table corresponding to the VRF bound to the line card can be sent to the line card, so that the line card can find the routing information of the message in the written routing table according to the message characteristics of the received message, and complete the message forwarding based on the routing information.

[0076] The written routing table stores the path pointing to a specific network address, which can guide the line card to forward the message. In the embodiment of the present application, after the message enters from the three-layer port, the line card uses the message characteristics of the received message to search the routing information of the message in the written routing table, and forwards the received message using the found routing information, and the message is only forwarded between the three-layer interfaces associated with the same VRF.

[0077] In one or more embodiments, the message characteristics include a VRF identifier determined based on the three-layer port through which the message enters and destination IP address information, so that the line card determines the target routing table corresponding to the message in the written routing table according to the VRF identifier, and searches for the routing information of the message in the target routing table based on the destination IP address information.

[0078] The above-mentioned VRF identifier is used to identify the VRF to which the message belongs. After the message enters from the three-layer port, the switching chip will read the VRF identifier associated with the three-layer port, so that the VRF to which the message belongs can be determined, and the target routing table corresponding to the message can be determined in the routing table written in the line card. After that, the routing information of the message is searched in the target routing table according to the destination IP address information determined based on the message information.

[0079] In some embodiments, the destination IP address information includes a message destination IP address and an IP address mask length, and both the message destination IP address and the IP address mask length can be obtained from the message information.

[0080] Specifically, after the message enters the line card, "VRF identifier + message destination IP address + IP address mask length" is used as index information, and the routing information corresponding to the message is determined in the routing table written in the line card. If matching routing information is found, the message is forwarded according to the routing table, otherwise, the message is discarded.

[0081] In the present application, each line card does not need to write into the same routing table. Instead, after creating at least one VRF according to the object operation instruction, the line card is bound to the corresponding VRF, and the routing table corresponding to the VRF bound to the line card is sent to the line card, so that the line card can find the routing information of the message in the written routing table according to the message characteristics of the received message, and complete the message forwarding based on the routing information, thereby improving the routing table capacity from the software level.

[0082] Based on the same inventive concept, Figure 3 As shown, a method for managing routing capacity provided by an embodiment of the present application is applied to a switch, wherein the switch comprises: a main control board and at least one line card; the method is executed by the line card and comprises the following steps:

[0083] Step 31, writing the routing table issued by the main control board; wherein the routing table is a routing table corresponding to the VRF bound to the line card, and the VRF is a VRF associated with a three-layer port having a mapping relationship with the line card in at least one VRF created by the main control board according to the object operation instruction; the at least one VRF is respectively associated with the corresponding three-layer port and the routing table, and the three-layer port and the at least one line card have a mapping relationship;

[0084] Step 32: when a message is received, after searching the routing information of the message in the written routing table according to the message characteristics of the message, the message is forwarded based on the routing information.

[0085] In the embodiment of the present application, the message features include a VRF identifier and destination IP address information determined based on the layer 3 port through which the message enters;

[0086] Then, according to the message characteristics of the message, the routing information of the message is searched in the written routing table, including:

[0087] Determine the target routing table corresponding to the message in the written routing table according to the VRF identifier;

[0088] Based on the destination IP address information, the routing information of the message is searched in the target routing table.

[0089] In some embodiments, the destination IP address information includes the destination IP address of the message and the IP address mask length.

[0090] The specific implementation of the above steps can refer to the above embodiments and will not be described in detail here.

[0091] Based on the method for managing routing capacity provided in the embodiments of the present application, each line card does not need to write into the same routing table. Instead, after creating at least one VRF according to the object operation instruction, the line card is bound to the corresponding VRF, and the routing table corresponding to the VRF bound to the line card is sent to the line card, so that the line card can find the routing information of the message in the written routing table according to the message characteristics of the received message, and complete the message forwarding based on the routing information, thereby improving the routing table capacity from the software level.

[0092] Based on the same inventive concept, the embodiment of the present application also provides a device for managing routing capacity, which is applied to a switch, wherein the switch includes: a main control board and at least one line card; Figure 4 As shown, the device comprises:

[0093] A VRF creation module 401 is used to create at least one virtual routing and forwarding instance VRF according to the object operation instruction, wherein the at least one VRF is respectively associated with a corresponding layer-3 port and a routing table, and the layer-3 port and the at least one line card have a mapping relationship;

[0094] The routing table sending module 402 is used to perform the following operations for each of the line cards: bind the VRF associated with the three-layer port having a mapping relationship with the line card to the line card, and send the routing table corresponding to the VRF bound to the line card to the line card, so that the line card can complete the message forwarding based on the routing information after finding the routing information of the message in the written routing table according to the message characteristics of the received message.

[0095] Optionally, the routing table sending module binds the VRF associated with the layer-3 port having a mapping relationship with the line card to the line card, including at least one of the following steps:

[0096] If all the layer-3 ports having a mapping relationship with the line card are associated with the same VRF, the line card is bound to a corresponding VRF;

[0097] If the layer-3 port having a mapping relationship with the line card is associated with multiple VRFs, the line card is bound to the multiple VRFs.

[0098] Optionally, the message characteristics include a VRF identifier determined based on the three-layer port through which the message enters and destination IP address information, so that the line card determines the target routing table corresponding to the message in the written routing table according to the VRF identifier, and searches for the routing information of the message in the target routing table based on the destination IP address information.

[0099] Optionally, the destination IP address information includes the destination IP address of the message and the IP address mask length.

[0100] Based on the above-mentioned device for managing routing capacity provided in the embodiments of the present application, each line card does not need to write into the same routing table. Instead, after creating at least one VRF according to the object operation instruction, the line card is bound to the corresponding VRF, and the routing table corresponding to the VRF bound to the line card is sent to the line card, so that the line card can find the routing information of the message in the written routing table according to the message characteristics of the received message, and complete the message forwarding based on the routing information, thereby improving the routing table capacity from the software level.

[0101] Based on the same inventive concept, the embodiment of the present application also provides a device for managing routing capacity, which is applied to a switch, wherein the switch includes: a main control board and at least one line card; Figure 5 As shown, the device comprises:

[0102] The routing table writing module 501 is used to write the routing table issued by the main control board; wherein the routing table is a routing table corresponding to the VRF bound to the line card, and the VRF is a VRF associated with a three-layer port having a mapping relationship with the line card in at least one VRF created by the main control board according to the object operation instruction; the at least one VRF is respectively associated with the corresponding three-layer port and the routing table, and the three-layer port and the at least one line card have a mapping relationship;

[0103] The message forwarding module 502 is used for, when receiving a message, searching for routing information of the message in a written routing table according to the message characteristics of the message, and completing message forwarding based on the routing information.

[0104] Optionally, the message features include a VRF identifier and destination IP address information determined based on a layer-3 port through which the message enters;

[0105] Then the message forwarding module searches for routing information of the message in the written routing table according to the message characteristics of the message, including:

[0106] Determine the target routing table corresponding to the message in the written routing table according to the VRF identifier;

[0107] Based on the destination IP address information, the routing information of the message is searched in the target routing table.

[0108] Optionally, the destination IP address information includes the destination IP address of the message and the IP address mask length.

[0109] Based on the above-mentioned device for managing routing capacity provided in the embodiments of the present application, each line card does not need to write into the same routing table. Instead, after creating at least one VRF according to the object operation instruction, the line card is bound to the corresponding VRF, and the routing table corresponding to the VRF bound to the line card is sent to the line card, so that the line card can find the routing information of the message in the written routing table according to the message characteristics of the received message, and complete the message forwarding based on the routing information, thereby improving the routing table capacity from the software level.

[0110] Based on the same inventive concept, the present application also provides a device 600 for managing routing capacity, such as Figure 6 As shown, it includes at least one processor 602; and a memory 601 that is communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned method for managing routing capacity applied to the main control board of the switch, or execute the above-mentioned method for managing routing capacity applied to the line card of the switch.

[0111] The memory 601 is used to store programs. Specifically, the program may include program code, and the program code includes computer operation instructions. The memory 601 may be a volatile memory, such as a random-access memory (RAM); or a non-volatile memory, such as a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD); or a combination of any one or more of the above volatile memories and non-volatile memories.

[0112] The processor 602 may be a central processing unit (CPU), a network processor (NP), or a combination of a CPU and a NP. It may also be a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.

[0113] Based on the same inventive concept, an embodiment of the present application provides a computer program medium, wherein the computer storage medium stores a computer program, and the computer program is used to enable a computer to execute the above-mentioned method for managing routing capacity applied to the main control board of the switch, or to execute the above-mentioned method for managing routing capacity applied to the line card of the switch.

[0114] The above-mentioned storage medium may be a non-transitory computer-readable storage medium, for example, the non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.

[0115] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.

[0116] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or a data center that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state drive (SSD)), etc.

[0117] The technical solution provided by the present application is introduced in detail above. The principles and implementation methods of the present application are explained by using specific examples in the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

[0118] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0119] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that the embodiments of the present application can be provided as methods, systems, or computer program products by computer program instructions. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application can adopt one or more computer-usable storage media containing computer-usable program codes (implementing each process and / or box in the flowchart and / or block diagram, and the combination of the processes and / or boxes in the flowchart and / or block diagram. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the process Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0120] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0121] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0122] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A method for managing routing capacity, characterized in that: Applied to a switch, the switch comprises: a main control board and at least one line card; the method is executed by the main control board, comprising: According to the object operation instruction, at least one virtual routing and forwarding instance VRF is created, wherein the at least one VRF is respectively associated with a corresponding layer-3 port and a routing table, and the layer-3 port and the at least one line card have a mapping relationship; For each of the line cards, the following operations are performed respectively: the VRF associated with the three-layer port having a mapping relationship with the line card is bound to the line card, and the routing table corresponding to the VRF bound to the line card is sent to the line card, so that the line card finds the routing information of the message in the written routing table according to the message characteristics of the received message, and completes the message forwarding based on the routing information.

2. The method according to claim 1, characterized in that Binding the VRF associated with the layer-3 port having a mapping relationship with the line card to the line card comprises at least one of the following steps: If all the layer-3 ports having a mapping relationship with the line card are associated with the same VRF, the line card is bound to a corresponding VRF; If the layer-3 port having a mapping relationship with the line card is associated with multiple VRFs, the line card is bound to the multiple VRFs.

3. The method according to claim 1, characterized in that The message features include a VRF identifier determined based on the layer 3 port through which the message enters and destination IP address information, so that the line card determines the target routing table corresponding to the message in the written routing table according to the VRF identifier, and searches for the routing information of the message in the target routing table based on the destination IP address information.

4. The method according to claim 3, characterized in that The destination IP address information includes the destination IP address of the message and the IP address mask length.

5. A method for managing routing capacity, characterized in that: Applied to a switch, the switch comprises: a main control board and at least one line card; the method is executed by the line card, comprising: Write the routing table issued by the main control board; wherein the routing table is a routing table corresponding to the VRF bound to the line card, and the VRF is a VRF associated with a three-layer port having a mapping relationship with the line card in at least one VRF created by the main control board according to the object operation instruction; the at least one VRF is respectively associated with the corresponding three-layer port and the routing table, and the three-layer port and the at least one line card have a mapping relationship; When a message is received, the routing information of the message is searched in the written routing table according to the message characteristics of the message, and the message is forwarded based on the routing information.

6. The method according to claim 5, characterized in that The message features include a VRF identifier and destination IP address information determined based on the Layer 3 port through which the message enters; Then, according to the message characteristics of the message, the routing information of the message is searched in the written routing table, including: Determine the target routing table corresponding to the message in the written routing table according to the VRF identifier; Based on the destination IP address information, the routing information of the message is searched in the target routing table.

7. The method according to claim 6, characterized in that The destination IP address information includes the destination IP address of the message and the IP address mask length.

8. A device for managing routing capacity, characterized in that: Applied to a switch, the switch comprises: a main control board and at least one line card; the device comprises: A VRF creation module, configured to create at least one virtual routing and forwarding instance VRF according to the object operation instruction, wherein the at least one VRF is respectively associated with a corresponding layer-3 port and a routing table, and the layer-3 port and the at least one line card have a mapping relationship; The routing table sending module is used to perform the following operations for each of the line cards: bind the VRF associated with the three-layer port having a mapping relationship with the line card to the line card, and send the routing table corresponding to the VRF bound to the line card to the line card, so that the line card can complete the message forwarding based on the routing information after finding the routing information of the message in the written routing table according to the message characteristics of the received message.

9. A device for managing routing capacity, characterized in that: Applied to a switch, the switch comprises: a main control board and at least one line card; the device comprises: A routing table writing module, used for writing the routing table issued by the main control board; wherein the routing table is a routing table corresponding to the VRF bound to the line card, and the VRF is a VRF associated with a three-layer port having a mapping relationship with the line card in at least one VRF created by the main control board according to the object operation instruction; the at least one VRF is respectively associated with the corresponding three-layer port and the routing table, and the three-layer port and the at least one line card have a mapping relationship; The message forwarding module is used to complete message forwarding based on the routing information after searching the routing information of the message in the written routing table according to the message characteristics of the message when receiving the message.

10. A device for managing routing capacity, characterized in that: It comprises at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method as described in any one of claims 1-4, or execute the method as described in any one of claims 5-7.