Chip implementation method and device for expanding routing table item specifications under multi-core architecture
By introducing the loopback channel mechanism and VRF routing table entry design between different processing cores in multi-core switching chips, the problem of wasting routing table entries is solved, the expansion of routing table entry specifications and performance improvement are realized, and the requirements of high-bandwidth networks are met. needs.
Patent Information
- Application Number
- CN202211573812.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-08
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2042-12-08
AI Technical Summary
In multi-core switching chips, the routing table entry resources cannot be effectively expanded, resulting in a waste of resources. Moreover, the routing table entries on each processing core store the same content, which cannot meet the needs of high-bandwidth networks.
By introducing a loopback channel mechanism into the multi-core switching chip, data transfer between different processing cores is allowed, and different VRF routing table entries and default routing table entries are stored in each processing core to realize the expansion of routing table entries and maximize utilization. Physical table entry resources.
It effectively solves the problem of wasted routing table entries in multi-core switching chips, realizes the expansion of routing table entry specifications, improves the switching capacity and performance of the chip, and meets the needs of high-bandwidth networks.
Smart Images

Figure CN115914099B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electronic communications, and in particular to a chip implementation method and device for expanding routing table item specifications under a multi-core architecture. Background Art
[0002] With the rapid development of ultra-large-scale cloud networks and data center network technologies, the switching capacity of network switching chips is getting larger and larger, but limited by the insufficient bandwidth of RAM, in the era of high-bandwidth network chips, a single chip cannot be composed of one processing core. Taking a chip with a switching capacity of 25.6T and a network port of 64*400G as an example, the entire chip will be composed of 2, 4 or 8 independent processing cores, and the network ports of each core are evenly distributed. Then, through the multi-core switching chip architecture technology, multiple processing cores are encapsulated to form a high-performance switching chip, and each processing core has an independent table entry.
[0003] Meanwhile, in the process of network technology development, VPN (Virtual Private Network) technology has been widely used. It uses the advantages of public networks to build private networks, which enables operators to provide more value-added services based on existing networks. All VPNs work on PEs, and any two VPNs can use overlapping address spaces, that is, there are multiple CEs using overlapping network segments. How to distribute different traffic to different CEs on PE, or perform specific forwarding on a specific IP of a CE, while other IPs maintain the original forwarding. In order to achieve the above purpose, the concept of VRF (Virtual Routing Forwarding) is introduced. VRF only exists on PE, and PE is logically divided into multiple virtual routers, that is, each VRF corresponds to a VPN, with its own independent routing table, forwarding table and corresponding interface.
[0004] In a multi-core switching chip, each processing core has an independent routing table entry, and the routing table entries are of the same size. Since the network ports are evenly distributed on each processing core, the content stored in the routing table entries on each processing core is the same. Although each processing core of a multi-core switching chip has an independent routing table entry, the content stored in the routing table entries on each processing core is the same. Compared with a single-core switching chip, although the physical routing table resources are several times that of a single-core processing chip, the routing table entry specifications have not been expanded, resulting in waste.
[0005] The information disclosed in this background technology section is only intended to enhance the understanding of the overall background of the invention and should not be regarded as an acknowledgment or any form of suggestion that the information constitutes the prior art already known to a person skilled in the art. Summary of the invention
[0006] The purpose of the present invention is to provide a chip implementation method and device for expanding routing table entry specifications under a multi-core architecture, which can maximize the use of the chip's physical table entry resources and achieve the expansion of routing table entry specifications.
[0007] To achieve the above objectives, an embodiment of the present invention provides a chip implementation method for expanding routing table entry specifications under a multi-core architecture.
[0008] In one or more embodiments of the present invention, the method includes: in a multi-core switching chip, a first processing core receives a message entering from an original port, and determines whether the message is a routing message; if so, obtains processing information of the message by querying a routing table, and the processing information includes an egress port and next hop information; if the message matches a VRF routing table entry corresponding to the message in the first processing core, the first processing core performs flow control processing on the message and sends it to an egress processing engine, and after completing the processing of the message, sends the message out from the egress port; and if the message matches a default routing table entry in the first processing core, the multi-core switching chip carries the original port information of the message through a loopback channel to a second processing core that stores the corresponding VRF default routing table entry, and the second processing core re-parses the message to complete the processing of the message.
[0009] In one or more embodiments of the present invention, different VRF routing table entries are stored in different processing cores, and the method further includes: storing a default routing table entry based on other processing cores in each processing core, the behavior of the default routing table entry is not to edit the message in the processing core, and directly send the message to the other processing core.
[0010] In one or more embodiments of the present invention, the multi-core switching chip sets the port attribute table items and the interface attribute table items as global attribute table items, and the judgment of whether the message is a routing message includes: the first processing core reads the port attributes and interface attributes of the original port and parses the message to determine whether the message is a routing message.
[0011] In one or more implementations of the present invention, the determining whether the message is a routing message further includes: if the message is not a routing message, ending the processing of the message by the chip.
[0012] In one or more embodiments of the present invention, the multi-core switching chip carries the original port information of the message through a loopback channel to the second processing core that stores the corresponding VRF default routing table entry, including: the chip sends the message to the egress processing engine and skips the processing of the message by the egress processing engine, sends the message to the second processing core through the loopback channel between different processing cores, and places the original port information of the message in an internal header file.
[0013] In one or more embodiments of the present invention, the second processing core re-parses the message to complete the processing of the message, including: the second processing core re-parses the message, reads the port attributes and interface attributes of the original port according to the original port information carried by the loopback channel and parses the message, and after determining that the message is a routing message, queries the routing table to obtain the processing information of the message.
[0014] In one or more embodiments of the present invention, the method further includes: dividing the processing cores by VRF technology, Ipv4 technology or Ipv6 technology.
[0015] In another aspect of the present invention, a chip implementation device for expanding the specifications of routing table entries in a multi-core architecture is provided, which includes a judgment module, a query module, a processing module and a forwarding module.
[0016] The judgment module is used to judge whether the message is a routing message when the first processing core receives the message entering from the original port in the multi-core switching chip.
[0017] The query module is used to obtain processing information of the message by querying a routing table if the message is a routing message, wherein the processing information includes an egress port and next hop information.
[0018] The processing module is used for, if the message matches the VRF routing table entry corresponding to the message in the first processing core, the first processing core performs flow control processing on the message and sends it to the egress processing engine, and after completing the processing of the message, sends the message out from the egress port.
[0019] The forwarding module is used for, if the message matches the default routing table entry in the first processing core, the multi-core switching chip carries the original port information of the message through the loopback channel to the second processing core storing the corresponding VRF default routing table entry, and the second processing core re-parses the message to complete the processing of the message.
[0020] In one or more embodiments of the present invention, the judgment module is also used for: the multi-core switching chip sets the port attribute table items and the interface attribute table items as global attribute table items, the first processing core reads the port attributes and interface attributes of the original port and parses the message to determine whether the message is a routing message.
[0021] In one or more embodiments of the present invention, the judgment module is further used for: if the message is not a routing message, then terminating the chip's processing of the message.
[0022] In one or more embodiments of the present invention, the processing module is further used to: divide the processing cores by VRF technology, Ipv4 technology or Ipv6 technology.
[0023] In one or more embodiments of the present invention, the processing module is also used to: store different VRF routing table entries in different processing cores, and store default routing table entries based on other processing cores in each processing core, and the behavior of the default routing table entry is not to edit the message in the processing core, but to directly send the message to the other processing cores.
[0024] In one or more embodiments of the present invention, the processing module is also used for: the chip sends the message to the egress processing engine and skips the processing of the message by the egress processing engine, sends the message to the second processing core through the loopback channel between different processing cores, and places the original port information of the message in an internal header file.
[0025] In one or more embodiments of the present invention, the forwarding module is also used for: the second processing core re-parses the message, reads the port attributes and interface attributes of the original port according to the original port information carried by the loopback channel, and parses the message, and after determining that the message is a routing message, queries the routing table to obtain the processing information of the message.
[0026] In another aspect of the present invention, an electronic device is provided, comprising: at least one processor; and a memory, wherein the memory stores instructions, and when the instructions are executed by the at least one processor, the at least one processor executes the chip implementation method for expanding the specifications of routing table entries under the multi-core architecture as described above.
[0027] In another aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the chip implementation method for expanding the specifications of routing table entries under the multi-core architecture as described above are implemented.
[0028] Compared with the prior art, the chip implementation method and device for expanding the specifications of routing table items under a multi-core architecture according to the embodiment of the present invention can solve the problem of routing table item waste in a multi-core switching chip, specially design the chip switching architecture and physical items under a multi-core processing architecture, add a loopback channel mechanism, and maximize the use of routing table item resources in each processing core through reasonable user planning, so as to realize the expansion of routing table item specifications in the multi-core switching chip. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 is a flow chart of a chip implementation method for expanding routing table entry specifications under a multi-core architecture according to an embodiment of the present invention;
[0030] Figure 2 It is a structural flow chart of a chip implementation method for expanding routing table entry specifications under a multi-core architecture according to an embodiment of the present invention;
[0031] Figure 3 is a flow chart of a chip implementation method for expanding routing table entry specifications under a multi-core architecture according to an embodiment of the present invention;
[0032] Figure 4 It is a structural diagram of a chip implementation device for expanding routing table entry specifications under a multi-core architecture according to an embodiment of the present invention;
[0033] Figure 5 It is a hardware structure diagram of a computing device implemented by a chip with expanded routing table entry specifications under a multi-core architecture according to an embodiment of the present invention. DETAILED DESCRIPTION
[0034] The specific implementation modes of the present invention are described in detail below in conjunction with the accompanying drawings, but it should be understood that the protection scope of the present invention is not limited by the specific implementation modes.
[0035] Unless explicitly stated otherwise, throughout the specification and claims, the term “comprise” or variations such as “include” or “comprising”, etc., will be understood to include the stated elements or components but not to exclude other elements or components.
[0036] The technical solutions provided by various embodiments of the present invention are described in detail below in conjunction with the accompanying drawings.
[0037] Example 1
[0038] like Figure 1 to Figure 2 As shown, a chip implementation method for expanding routing table entry specifications under a multi-core architecture in an embodiment of the present invention is introduced, and the method includes the following steps.
[0039] In step S101, in a multi-core switching chip, a first processing core receives a message entering from an original port and determines whether the message is a routing message.
[0040] In this embodiment, the multi-core switching chip stores different VRF routing table entries in different processing cores, and stores default routing table entries based on other processing cores in each processing core. The behavior of the default routing table entry is not to edit the message in the processing core, but to directly send the message to the other processing cores.
[0041] In step S102, if the message is a routing message, processing information of the message is obtained by querying a routing table, and the processing information includes an egress port and next hop information.
[0042] In this embodiment, the multi-core switching chip sets the port attribute table item and the interface attribute table item as global attribute table items, and the first processing core reads the port attribute and the interface attribute of the original port and parses the message to determine whether the message is a routing message. If the message is not a routing message, the chip ends processing the message.
[0043] In step S103, if the message matches a VRF routing table entry corresponding to the message in the first processing core, the first processing core performs flow control processing on the message and sends it to the egress processing engine.
[0044] In this embodiment, after the message is processed by the BSR module for flow control, it enters the egress processing engine EPE, and processes the message and completes the update of the message through the editing information of the next hop message found in the routing table.
[0045] In step S104, after completing the processing of the message, the message is sent out from the egress port.
[0046] In the present invention, one or more processing cores are abstracted into a router according to user planning. The processing cores are not limited to being divided by the VRF technology used in this embodiment, and the processing cores can also be divided by Ipv4 technology or Ipv6 technology.
[0047] refer to Figure 2 In this embodiment, two switching processing cores are taken as an example to introduce the chip implementation method for expanding the specifications of routing table entries under the multi-core architecture of this embodiment.
[0048] Port #1 to port #4 are distributed on processing core #0, and port #5 to port #8 are distributed on processing core #1. If the network is divided into 128 VRFs, the routing table entries of VRF0 to 63 are placed in processing core #0, and the routing table entries of VRF64 to 127 are placed in processing core #1. The chip designs the port attribute table entries and the three-layer interface attribute table entries as global attribute table entries, that is, the same settings are made in processing core #0 and processing core #1. Processing core #0 and processing core #1 both have physical table entries for port #1 to port #8, and the three-layer interface attribute table entries are also the same. The content of the routing table entries is different in each processing core, among which the routing table entries of VRF0 to 63 are stored in processing core #0, and the routing table entries of VRF64 to 127 are stored in processing core #1. The routing table entries of processing core #0 only store the default routing entries based on VRF64~127. The behavior of the default routing entries is that the message is not edited in any way in processing core #0 and is sent to processing core #1. Similarly, the default routing table entries of VRF64~127 are stored in processing core #1. The behavior of the default routing entries is that the message is not edited in any way in processing core #1 and is sent to processing core #0.
[0049] like Figure 2 As shown, the processing flow of the present invention is described by taking message #1 as an example. The source port of message #1 is port #1 and belongs to VRF1, and the destination port is port #4.
[0050] 1) Message #1 enters the chip from port #1. By ① reading the port attributes and layer 3 interface attributes of port #1, it is determined that message #1 is a routing message and is divided into VRF1. Then, the routing table is queried to obtain the processing information of message #1 and the process is transferred to ② for processing.
[0051] 2) According to the information found in the routing table, it is found that the packet #1 determines the packet exit port #4 and the next hop information in the processing core #0, and after processing such as flow control, the packet #1 is transferred to processing ③.
[0052] 3) After message #1 reaches the egress processing engine EPE, it processes message #1 according to the message editing information of the next hop, and then the chip sends the edited message #1 out of destination port #4.
[0053] Example 2
[0054] like Figures 2 to 3 As shown, a chip implementation method for expanding routing table entry specifications under a multi-core architecture in an embodiment of the present invention is introduced, and the method includes the following steps.
[0055] In step S301, in a multi-core switching chip, a first processing core receives a message entering from an original port and determines whether the message is a routing message.
[0056] In this embodiment, the multi-core switching chip stores different VRF routing table entries in different processing cores, and stores default routing table entries based on other processing cores in each processing core. The behavior of the default routing table entry is not to edit the message in the processing core, but to directly send the message to the other processing cores.
[0057] In step S302, if yes, the processing information of the message is obtained by querying the routing table, and the processing information includes the egress port and the next hop information.
[0058] In this embodiment, the multi-core switching chip sets the port attribute table item and the interface attribute table item as global attribute table items, and the first processing core reads the port attribute and the interface attribute of the original port and parses the message to determine whether the message is a routing message. If the message is not a routing message, the chip ends processing the message.
[0059] In step S303, if the message matches a default routing table entry in the first processing core, the multi-core switching chip carries the original port information of the message to the second processing core storing the corresponding VRF default routing table entry through a loopback channel.
[0060] In this embodiment, the chip sends the message to the egress processing engine and skips the processing of the message by the egress processing engine, sends the message to the second processing core through the loopback channel between different processing cores, and places the original port information of the message in the internal header file.
[0061] In step S304, the second processing core re-parses the message to complete the message processing.
[0062] In this embodiment, the second processing core re-parses the message, reads the port attributes and interface attributes of the original port according to the original port information carried by the loopback channel, and parses the message. After determining that the message is a routing message, the routing table is queried to obtain the processing information of the message.
[0063] like Figure 2 As shown, the processing flow of the present invention is described by taking message #2 as an example. The source port of message #2 is port #5 and belongs to VRF1, and the destination port is port #4.
[0064] 1) Message #2 enters the chip from port #5. By reading the port attributes and layer 3 interface attributes of port #5 at step ④, it is determined that message #2 is a routing message and is divided into VRF1. Then, the routing table is queried to obtain the processing information of message #2 and the message is transferred to step ⑤ for processing.
[0065] 2) According to the information found in the routing table, it is found that message #2 only matches the default route in the current processing core #1, and the behavior is that the message is not edited in any way in the processing core #1, and message #2 is sent to the processing core #0 through the loopback channel between the processing core #0 and the processing core #1, and the original inbound port #5 information of message #2 is placed in the internal header file for carrying.
[0066] 3) After message #2 reaches the egress processing engine EPE, no editing is done on message #2. The EPE processing is skipped by transparent transmission. Then the chip sends message #2 to processing core #0 through the loopback channel, and then goes to ⑦ for processing.
[0067] 4) After message #2 passes through loopback channel ⑦, message #2 is re-parsed. The port attributes and layer 3 interface attributes of port #5 are read according to the original port #5 carried by the loopback to determine that message #2 is a routing message. At the same time, it is divided into VRF1, and then the routing table is queried to obtain the processing information of message #2, and then it goes to ② for processing.
[0068] 5) Determine the exit port #4 and next hop information of message #2 based on the information found in the routing table, and after processing such as flow control, forward message #2 to processing step ③.
[0069] 6) After message #2 reaches the egress processing engine EPE, it processes message #2 according to the message editing information of the next hop, and then the chip sends the edited message #2 out of destination port #4.
[0070] According to the chip implementation method and device for expanding the specifications of routing table items under a multi-core architecture according to the embodiment of the present invention, it is possible to solve the problem of routing table item waste in a multi-core switching chip, specially design the chip switching architecture and physical items under a multi-core processing architecture, add a loopback channel mechanism, and maximize the use of routing table item resources in each processing core through reasonable user planning, thereby implementing the expansion of routing table item specifications in the multi-core switching chip.
[0071] Example 3
[0072] like Figure 4 As shown, a chip implementation device for expanding the specifications of routing table entries in a multi-core architecture according to a specific embodiment of the present invention is introduced.
[0073] In an embodiment of the present invention, a chip implementation device for expanding the specification of routing table entries under a multi-core architecture includes a judgment module 401 , a query module 402 , a processing module 403 and a forwarding module 404 .
[0074] The judgment module 401 is used to, in a multi-core switching chip, determine whether a message entering from an original port is a routing message when a first processing core receives the message.
[0075] The query module 402 is used to obtain processing information of the message by querying a routing table if the message is a routing message, wherein the processing information includes an egress port and next hop information.
[0076] Processing module 403 is used for, if the message matches the VRF routing table entry corresponding to the message in the first processing core, the first processing core performs flow control processing on the message and sends it to the egress processing engine, and after completing the processing of the message, sends the message out from the egress port.
[0077] The forwarding module 404 is used to, if the message matches the default routing table entry in the first processing core, the multi-core switching chip carries the original port information of the message through the loopback channel to the second processing core storing the corresponding VRF default routing table entry, and the second processing core re-parses the message to complete the processing of the message.
[0078] The judgment module 401 is also used for: wherein the multi-core switching chip sets the port attribute table item and the interface attribute table item as global attribute table items, the first processing core reads the port attribute and the interface attribute of the original port and parses the message to determine whether the message is a routing message.
[0079] The judgment module 401 is further used for: if the message is not a routing message, then ending the chip's processing of the message.
[0080] The processing module 403 is further used to divide the processing core by using VRF technology, IPv4 technology or IPv6 technology.
[0081] The processing module 403 is also used to store different VRF routing table entries in different processing cores, and to store default routing table entries based on other processing cores in each processing core, wherein the behavior of the default routing table entry is to not edit the message in the processing core, but to directly send the message to the other processing cores.
[0082] The processing module 403 is also used for: the chip sends the message to the egress processing engine and skips the processing of the message by the egress processing engine, sends the message to the second processing core through the loopback channel between different processing cores, and puts the original port information of the message in the internal header file.
[0083] The forwarding module 404 is also used for: the second processing core re-parses the message, reads the port attributes and interface attributes of the original port according to the original port information carried by the loopback channel, and parses the message, and after determining that the message is a routing message, queries the routing table to obtain the processing information of the message.
[0084] Figure 5FIG. 5 shows a hardware structure diagram of a chip-implemented computing device 50 for expanding routing table entry specifications under a multi-core architecture according to an embodiment of the present specification. Figure 5 As shown, the computing device 50 may include at least one processor 501, a memory 502 (e.g., a non-volatile memory), a memory 503, and a communication interface 504, and the at least one processor 501, the memory 502, the memory 503, and the communication interface 504 are connected together via a bus 505. The at least one processor 501 executes at least one computer-readable instruction stored or encoded in the memory 502.
[0085] It should be understood that the computer executable instructions stored in the memory 502, when executed, cause at least one processor 501 to perform the above combined operations in various embodiments of this specification. Figure 1-5 Describes the various operations and functions.
[0086] In the embodiments of the present specification, the computing device 50 may include, but is not limited to, a personal computer, a server computer, a workstation, a desktop computer, a laptop computer, a notebook computer, a mobile computing device, a smart phone, a tablet computer, a cellular phone, a personal digital assistant (PDA), a handheld device, a messaging device, a wearable computing device, a consumer electronic device, and the like.
[0087] According to one embodiment, a program product such as a machine-readable medium is provided. The machine-readable medium may have instructions (i.e., the above-mentioned elements implemented in the form of software), which, when executed by a machine, causes the machine to perform the above-mentioned combination of various embodiments of this specification. Figure 1-5 Specifically, a system or device equipped with a readable storage medium may be provided, on which a software program code implementing the functions of any of the above-mentioned embodiments is stored, and a computer or processor of the system or device reads and executes the instructions stored in the readable storage medium.
[0088] According to the chip implementation method and device for expanding the specifications of routing table items under a multi-core architecture according to the embodiment of the present invention, it is possible to solve the problem of routing table item waste in a multi-core switching chip, specially design the chip switching architecture and physical items under a multi-core processing architecture, add a loopback channel mechanism, and maximize the use of routing table item resources in each processing core through reasonable user planning, thereby implementing the expansion of routing table item specifications in the multi-core switching chip.
[0089] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0090] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. 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 flowchart and / or block diagram. 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.
[0091] 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.
[0092] 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.
[0093] The foregoing description of specific exemplary embodiments of the present invention is for the purpose of illustration and demonstration. These descriptions are not intended to limit the present invention to the precise form disclosed, and it is clear that many changes and variations can be made based on the above teachings. The purpose of selecting and describing the exemplary embodiments is to explain the specific principles of the present invention and its practical application, so that those skilled in the art can realize and utilize various different exemplary embodiments of the present invention and various different selections and changes. The scope of the present invention is intended to be limited by the claims and their equivalents.
Claims
1. A chip implementation method for expanding routing table entry specifications under a multi-core architecture, characterized in that: The chip implementation method comprises: In the multi-core switching chip, a first processing core receives a message entering from an original port and determines whether the message is a routing message; If yes, obtain the processing information of the message by querying the routing table, the processing information including the egress port and the next hop information; If the message matches a VRF routing table entry corresponding to the message in the first processing core, the first processing core performs flow control processing on the message and sends it to the egress processing engine, and after completing the processing of the message, sends the message out from the egress port; and If the message matches the default routing table entry in the first processing core, the multi-core switching chip carries the original port information of the message through the loopback channel to the second processing core that stores the corresponding VRF default routing table entry, and the second processing core re-parses the message to complete the processing of the message.
2. The chip implementation method for expanding routing table entry specifications under a multi-core architecture as described in claim 1, wherein different VRF routing table entries are stored in different processing cores, characterized in that: The method further comprises: A default routing table entry based on other processing cores is stored in each processing core. The behavior of the default routing table entry is to directly send the message to the other processing core without editing the message in the processing core.
3. The chip implementation method for expanding the specification of routing table items under a multi-core architecture as claimed in claim 1, wherein the multi-core switching chip sets the port attribute table items and the interface attribute table items as global attribute table items, characterized in that: The determining whether the message is a routing message includes: The first processing core reads the port attribute and the interface attribute of the original port and parses the message to determine whether the message is a routing message.
4. The chip implementation method for expanding routing table entry specifications under a multi-core architecture as described in claim 3 is characterized in that: The determining whether the message is a routing message further includes: If the message is not a routing message, the chip ends processing the message.
5. The chip implementation method for expanding routing table entry specifications under a multi-core architecture as claimed in claim 1, characterized in that: The multi-core switching chip carries the original port information of the message to the second processing core storing the corresponding VRF default routing table entry through the loopback channel, including: The chip sends the message to the egress processing engine and skips the processing of the message by the egress processing engine, sends the message to the second processing core through the loopback channel between different processing cores, and puts the original port information of the message in the internal header file.
6. The chip implementation method for expanding routing table entry specifications under a multi-core architecture as claimed in claim 1, characterized in that: The second processing core re-parses the message to complete the message processing, including: The second processing core re-parses the message, reads the port attributes and interface attributes of the original port according to the original port information carried by the loopback channel, and parses the message, and after determining that the message is a routing message, queries the routing table to obtain processing information of the message.
7. The chip implementation method for expanding routing table entry specifications under a multi-core architecture as claimed in claim 1, characterized in that: The method further comprises: The processing core is divided through VRF technology, IPv4 technology or IPv6 technology.
8. A chip implementation device for expanding routing table entry specifications under a multi-core architecture, characterized in that: The device comprises: A judgment module, used for, in a multi-core switching chip, when a first processing core receives a message entering from an original port, judging whether the message is a routing message; A query module, used for obtaining processing information of the message by querying a routing table if the message is a routing message, the processing information including an egress port and next hop information; a processing module, configured to, if the message matches a VRF routing table entry corresponding to the message in the first processing core, cause the first processing core to perform flow control processing on the message and send the message to an egress processing engine, and after completing processing of the message, send the message out from the egress port; and The forwarding module is used for, if the message matches the default routing table entry in the first processing core, the multi-core switching chip carries the original port information of the message through the loopback channel to the second processing core storing the corresponding VRF default routing table entry, and the second processing core re-parses the message to complete the processing of the message.
9. An electronic device, characterized in that: include: at least one processor; as well as A memory storing instructions, which, when executed by the at least one processor, enables the at least one processor to execute a chip implementation method for expanding routing table entry specifications under a multi-core architecture as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of a chip implementation method for expanding routing table entry specifications under a multi-core architecture as described in any one of claims 1 to 7.
