System and method for realizing fast forwarding of route
By adopting a combination mechanism of port forwarding and IP address forwarding in network devices, the data frames are directly matched and filtered according to the incoming port number, the problem of high forwarding delay of traditional network devices is solved, and the low in financial transaction scenarios is achieved Delay forwarding.
Patent Information
- Application Number
- CN202411597321.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-11
- Publication Date
- 2024-12-06
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional network devices need to read and find the destination IP address during routing and forwarding, resulting in high delays, which cannot meet the needs of low-latency scenarios such as financial transactions.
A network equipment system was designed, through management module, network data processing chip and port module, and the port forwarding table and IP address forwarding table are combined to directly match and filter according to the incoming port number of the data frame, eliminating reading. The process of fetching and looking up tables can realize rapid forwarding.
At the 10 Gigabit network rate, the forwarding delay is reduced to less than 100ns, significantly improving the forwarding efficiency of data frames.
Smart Images

Figure CN119094440A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a system and method for realizing fast routing forwarding. Background Art
[0002] When performing routing forwarding, traditional network devices must first read the destination IP address in the data frame and search for a matching port in the routing forwarding table based on the destination IP address. There are 42 bytes between the start field of the frame and the last bit of the destination IP address. At a 10G rate, it takes 34ns to read the destination IP. With Serdes delay and forwarding delay, the total penetration delay is about 120ns. At a 1G rate, it takes 336ns to read the destination IP. With Serdes delay and forwarding delay, the total penetration delay is about 400ns. For financial transaction scenarios, this delay is still too high and cannot meet the needs of low-latency scenarios. Summary of the invention
[0003] Purpose of the invention: The technical problem to be solved by the present invention is to provide a system and method for realizing fast routing forwarding in view of the deficiencies in the prior art.
[0004] The present invention provides a system for implementing fast routing forwarding, comprising a network device, wherein the network device communicates with one or more external devices (such as routers, switches, storage devices) through one or more networks, and communicates with one or more servers through one or more networks;
[0005] The network device includes a management module, a network data processing chip and a port;
[0006] The network device is used to forward data between different ports (for example, from an input port to an output port);
[0007] The management module is used to configure and generate a port list and an IP address list, monitor the status of the network data processing chip and the port, and perform data interaction with external devices.
[0008] The network data processing chip includes a rate conversion module, a checksum rewriting module, an access control list (ACL) module, a multiplexing module, a port forwarding table module and an address forwarding table module;
[0009] The rate conversion module is used to convert data between different rates;
[0010] The check and rewrite module is used to compare the MAC address, IP address, protocol type, protocol port, and one or more features in the designated position field in the data packet, and discard or rewrite one or more fields in the Ethernet frame according to the configuration if they meet the requirements;
[0011] The access control list (ACL) module is used to check a characteristic value or a combination of two or more characteristic values in the data, set a characteristic set according to one characteristic value or a combination of two or more characteristic values, and forward, discard or send the data that meets the characteristic set to another functional module (such as a multiplexing module, a checksum and rewrite module) inside the network device for processing according to a preset rule;
[0012] Each port in the network device corresponds to a multiplexing module, and the multiplexing module is used to process data in the multiplexing MUX direction and the demultiplexing DEMUX direction. The multiplexing MUX direction sorts data from more than two sources and sends them out from one destination port; when more than two sources send data to one destination port at the same time, the multiplexing module uses the port cache to temporarily store the data in the cache, and according to the pre-set scheduling algorithm, sends the data in the more than two cache queues from the destination port in the order of the scheduling algorithm; the demultiplexing DEMUX direction sends data from one source from more than two destination ports;
[0013] The port forwarding table module is used to maintain a port list, the content of which is the input port number and the corresponding output port number, and one input port number corresponds to one or more output ports; when receiving a data frame, the port forwarding table module traverses the matching port list according to the input port number, sends the data to the multiplexing module corresponding to the matched output port according to the matching result, and then sends it out from the corresponding port; the data frame that fails to match is discarded;
[0014] The address forwarding table module is used to maintain an IP address list, the content of the IP address list is the IP address or the IP address HASH value and the corresponding output port number; the address forwarding table module extracts the destination IP address in the data packet, performs a HASH operation on the 24-bit destination IP address to convert it into a shorter HASH result, traverses and matches it with the IP address HASH value in the IP address list, sends the data to the multiplexing module corresponding to the matching output port, and then sends it out from the corresponding port; data frames that fail to match are discarded.
[0015] In one embodiment of the present invention, the port is configured to mark the input port number on the data frame when receiving the data frame, then send the data to the port forwarding table module for traversal matching, send the data to the multiplexing module corresponding to the matched output port, and then send it out from the corresponding port.
[0016] In another embodiment of the present invention, the port is configured to mark the input port number on the data frame when receiving the data frame, and then send the data to the port forwarding table module for traversal matching, send the data to the multiplexing module corresponding to the output port, and then send it to the verification and rewriting module, according to the direct forwarding or rewriting rules pre-configured (by the device administrator through the command line or other management methods), rewrite the destination MAC address and source MAC address fields, the destination IP address and source IP address fields in the IP packet, the protocol type field, the port field, the TTL field, the data in the payload and the FCS field at the end of the frame. Any one or two of the fields are rewritten, and then sent from the corresponding port.
[0017] Furthermore, the port is configured as a fixed forwarding path. When a port receives a data frame, it sends the data to the multiplexing MUX direction or demultiplexing DEMUX direction of the multiplexing module corresponding to the matching output port according to the pre-configured correspondence between the input port and the output port, and then sends it to the checksum rewriting module corresponding to the output port. According to the pre-configured direct forwarding or rewriting rules, it rewrites any one or more of the destination MAC address and source MAC address fields, the destination IP address and source IP address fields in the IP packet, the protocol type field, the port field, the TTL field, the data in the payload, and the FCS field at the end of the frame, and then sends it out from the corresponding port.
[0018] Furthermore, the ports are configured with different rates, and the data stream is first converted to the egress port rate by the rate conversion module and then sent to other modules inside the network device, or the data rate is converted to the egress port rate before the data is sent from the egress port.
[0019] Furthermore, the management module includes a CPU, a memory, a non-volatile storage, a network interface and a PCIE interface.
[0020] Furthermore, the external devices include routers, L2 / 3 switches, L1 switches, L1.5 switches and fiber switches.
[0021] Furthermore, the server is a single server or a server cluster.
[0022] The present invention also provides a method for realizing fast routing forwarding, which is realized by using the system, and includes:
[0023] Step 1, receiving configuration data representing one or more functional combinations of a network device, and configuring the forwarding relationship between the input port and the output port of the data (configured by the device administrator through a command line, or generated by management software);
[0024] Step 2: Read the MAC address field in the packet header to determine the packet type, and forward or discard it according to the type;
[0025] Step 3, rewrite one or more fields in the data packet according to the data packet type, input port number and output port number, and send it to the output port of the network device or other processing modules in the network device (such as a multiplexing module, a checksum rewriting module).
[0026] The method of the present invention provides a mechanism for fast forwarding of data frames. In a specific network topology environment, the network device does not forward the received data frames by looking up the destination IP address, but searches the port forwarding table according to the input port of the data frame, matches the corresponding output port, filters and re-encapsulates the data frame according to the characteristic value, and then sends it out from the matched output port, forming a complete three-layer forwarding process.
[0027] Beneficial effect: By adopting the method of the present invention, in a network topology environment, such as single-gateway single-line access or dual-gateway dual-line access, the network device does not need to query the destination IP address of the data frame when receiving data. It can directly rewrite the content, re-encapsulate the frame and send it from the designated port, eliminating the process of reading the IP address and looking up the IP address table. The forwarding delay can be reduced to less than 100ns at a 10 Gigabit network rate. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments, and the above and / or other advantages of the present invention will become more clear.
[0029] Figure 1 It is a block diagram of the entire system including network devices.
[0030] Figure 2 It is a flow chart of the method of the present invention. DETAILED DESCRIPTION
[0031] The present invention provides a system for implementing fast routing forwarding, comprising a network device, wherein the network device communicates with one or more external devices (such as routers, switches, storage devices) through one or more networks, and communicates with one or more servers through one or more networks;
[0032] The network device includes a management module, a network data processing chip and a port;
[0033] The network device is used to forward data between different ports (for example, from an input port to an output port);
[0034] The management module is used to configure and generate a port list and an IP address list, monitor the status of the network data processing chip and the port, and perform data interaction with external devices.
[0035] The network data processing chip includes a rate conversion module, a checksum rewriting module, an access control list (ACL) module, a multiplexing module, a port forwarding table module and an address forwarding table module;
[0036] The rate conversion module is used to convert data between different rates;
[0037] The check and rewrite module is used to compare the MAC address, IP address, protocol type, protocol port, and one or more features in the designated position field in the data packet, and discard or rewrite one or more fields in the Ethernet frame according to the configuration if they meet the requirements;
[0038] The access control list (ACL) module is used to check a characteristic value or a combination of two or more characteristic values in the data, set a characteristic set according to one characteristic value or a combination of two or more characteristic values, and forward, discard or send the data that meets the characteristic set to another functional module (such as a multiplexing module, a checksum and rewrite module) inside the network device for processing according to a preset rule;
[0039] Each port in the network device corresponds to a multiplexing module, and the multiplexing module is used to process data in the multiplexing MUX direction and the demultiplexing DEMUX direction. The multiplexing MUX direction sorts data from more than two sources and sends them out from one destination port; when more than two sources send data to one destination port at the same time, the multiplexing module uses the port cache to temporarily store the data in the cache, and according to the pre-set scheduling algorithm, sends the data in the more than two cache queues from the destination port in the order of the scheduling algorithm; the demultiplexing DEMUX direction sends data from one source from more than two destination ports;
[0040] The port forwarding table module is used to maintain a port list, the content of which is the input port number and the corresponding output port number, and one input port number corresponds to one or more output ports; when receiving a data frame, the port forwarding table module traverses the matching port list according to the input port number, sends the data to the multiplexing module corresponding to the matched output port according to the matching result, and then sends it out from the corresponding port; the data frame that fails to match is discarded;
[0041] The address forwarding table module is used to maintain an IP address list, the content of the IP address list is the IP address or the IP address HASH value and the corresponding output port number; the address forwarding table module extracts the destination IP address in the data packet, performs a HASH operation on the 24-bit destination IP address to convert it into a shorter HASH result, traverses and matches it with the IP address HASH value in the IP address list, sends the data to the multiplexing module corresponding to the matching output port, and then sends it out from the corresponding port; data frames that fail to match are discarded.
[0042] In one embodiment of the present invention, the port is configured to mark the input port number on the data frame when receiving the data frame, then send the data to the port forwarding table module for traversal matching, send the data to the multiplexing module corresponding to the matched output port, and then send it out from the corresponding port.
[0043] In another embodiment of the present invention, the port is configured to mark the input port number on the data frame when receiving the data frame, and then send the data to the port forwarding table module for traversal matching, send the data to the multiplexing module corresponding to the output port, and then send it to the verification and rewriting module, according to the direct forwarding or rewriting rules pre-configured (by the device administrator through the command line or other management methods), rewrite the destination MAC address and source MAC address fields, the destination IP address and source IP address fields in the IP packet, the protocol type field, the port field, the TTL field, the data in the payload and the FCS field at the end of the frame. Any one or two of the fields are rewritten, and then sent from the corresponding port.
[0044] The port is configured as a fixed forwarding path. When a port receives a data frame, it sends the data to the multiplexing MUX direction or demultiplexing DEMUX direction of the multiplexing module corresponding to the matching output port according to the pre-configured correspondence between the input port and the output port, and then sends it to the checksum rewriting module corresponding to the output port. According to the pre-configured direct forwarding or rewriting rules, it rewrites any one or more of the destination MAC address and source MAC address fields, the destination IP address and source IP address fields in the IP packet, the protocol type field, the port field, the TTL field, the data in the payload, and the FCS field at the end of the frame, and then sends it out from the corresponding port.
[0045] The ports are configured with different rates, and the data stream is first converted to the egress port rate by the rate conversion module before being sent to other modules inside the network device, or the data rate is converted to the egress port rate before the data is sent out from the egress port.
[0046] The management module includes a CPU, a memory, a non-volatile storage, a network interface and a PCIE interface.
[0047] The external devices include routers, L2 / 3 switches, L1 switches, L1.5 switches and fiber switches.
[0048] The server is a single server or a server cluster.
[0049] like Figure 2 As shown, the present invention also provides a method for realizing fast routing forwarding, which is realized by using the system, and includes:
[0050] Step 1, receiving configuration data representing one or more functional combinations of a network device, and configuring the forwarding relationship between the input port and the output port of the data (configured by the device administrator through a command line, or generated by management software);
[0051] Step 2: Read the MAC address field in the packet header to determine the packet type, and forward or discard it based on the type.
[0052] Step 3, rewrite one or more fields in the data packet according to the data packet type, input port number and output port number, and send it to the output port of the network device or other processing modules in the network device (such as a multiplexing module, a checksum rewriting module).
[0053] In a specific embodiment of the present invention, a system for implementing fast routing forwarding is provided. Figure 1 It is a block diagram of the entire system 300 including the network device 100. The network device 100 can communicate with one or more network devices (such as network devices 201-20x) through one or more networks, and can also communicate with one or more networks and one or more servers (such as servers 20y-20z). The interconnected network type can be a local area network (LAN), a wide area network (WAN), a wireless network, a telephone network, and a mobile network.
[0054] Figure 1 It shows a schematic diagram of the connection between the network device 100 and external devices, and a schematic block diagram of the logical connection between the external devices and each functional module in the network data processing chip 102.
[0055] Figure 1 The network device 100 in the embodiment includes a management module 101 and a network data processing chip 102. The network device 100 may be any device capable of forwarding data from an input port to an output port. The network data processing chip 102 may be an application specific integrated circuit (ASIC), such as a switching chip, or a field programmable gate array (FPGA), a programmable logic array device (PLA), a programmable array logic device (PAL), a complex programmable logic device (CPDL), etc.
[0056] Figure 1The network devices 201 to 20x in the figure represent multiple external network devices to which the network device 100 is connected, including data forwarding devices such as routers, L2 / 3 switches, L1 switches, L1.5 switches, and fiber switches.
[0057] Figure 1 The server 20y-server 20z part in the network device 100 represents multiple external servers connected to the network device 100. The server 20y-server 20z can be a single server or a server cluster. The server 20y-server 20z can be various data storage devices and / or other data processing devices, such as a flash drive SSD, a hard drive HDD, an optical disk, a tape drive, or any other type of storage medium.
[0058] Figure 1 The port 109 on the network device 100 can be a port connected to an external device and an internal port connected to other internal chips, for example, it can be an SFP+ port connected to an external server 20y-server 20z, or it can be connected to other network data processing chips inside the network device, such as an L1 replication chip. The external port can be mapped to the internal port of the network data processing chip 102 through the L1 replication chip. It should be noted that for the sake of clarity, Figure 1 Not all internal ports, external ports, and L1 replica chips are labeled or shown. In different embodiments, system 300 may include more or fewer ports than shown in the figure.
[0059] Figure 1 The rate conversion 103, check & rewrite 104, ACL 105, multiplexing 106, port forwarding table 107 and IP address forwarding table 108 inside the network device 100 are functional modules running inside the network data processing chip 102. Data can flow between the functional modules inside the network data processing chip 102 according to any configured path and can pass through one or more functional modules.
[0060] Figure 1 The rate conversion 103 inside the network device 100 can convert data between different rates. For example, it can convert data from a 1 Gbps rate to a 10 Gbps rate, or it can convert data from a 10 Gbps rate to a 1 Gbps rate.
[0061] Figure 1The check & rewrite 104 inside the network device 100 can compare one or more features in the MAC address, IP address and other feature bits of the data. If the comparison is matched, one or more fields in the Ethernet frame can be discarded or rewritten according to the configuration, such as the destination MAC address and source MAC address fields in the frame header, the destination IP address and source IP address fields in the IP packet, the protocol type field, the port field, the TTL field, the data in the payload and the FCS field at the end of the frame.
[0062] Figure 1 The ACL105 module inside the network device 100 can check a characteristic value and / or a combination of multiple characteristic values in the data, such as the destination MAC address, source MAC address, destination IP address, source IP address, protocol type and port number, and can set a characteristic set based on a combination of one characteristic value and / or multiple characteristic values. Data that meets these characteristic sets can be forwarded, discarded or sent to another functional module inside the network device 100 for processing according to preset rules.
[0063] Figure 1 The multiplexing 106 part inside the network device 100 represents a multiplexing module, and each port corresponds to a multiplexing 106 module. The multiplexing 106 module can process data in two relative directions: multiplexing (MUX) direction and demultiplexing (DEMUX) direction. The multiplexing (MUX) direction can sort data from multiple sources according to a certain algorithm and send it out from one destination port. This module can use the port cache when multiple sources send data to one destination port at the same time, temporarily store the data in the cache, and send the data in multiple cache queues from the destination port according to the scheduling algorithm in the order of the scheduling algorithm according to the pre-set scheduling algorithm. The demultiplexing (DEMUX) direction can send data from one source from multiple destination ports.
[0064] Figure 1 The port forwarding table 108 inside the network device 100 represents a port forwarding table module, which can maintain a port list. The port list can be configured and generated by the management module 101. The list content is the input port number and the corresponding output port number. One input port number can correspond to one or more output ports. This module can traverse the matching port list according to the input port number when receiving a data frame, and send the data to the multiplexing module 106 corresponding to the matched output port according to the matching result, and then send it out from the corresponding port. The data frame that fails to match can be discarded.
[0065] Figure 1The IP address forwarding table 107 inside the network device 100 represents the IP forwarding table module, which can maintain an IP address list. This list can be configured and generated by the management module 101. The list content can be an IP address or an IP address HASH value and a corresponding output port number. This module can extract the destination IP address in the data packet, perform a HASH operation on the 24-bit destination IP address to convert it into a shorter HASH result, perform a traversal match with the IP address HASH value in the IP forwarding table, and send the data to the multiplexing 106 module corresponding to the matching output port, and then send it out from the corresponding port. Data frames that fail to match can be discarded.
[0066] Figure 1 The management module 101 inside the network device 100 represents the management module of the switch, which can interoperate with the network data processing chip 102. The management module 101 may include a CPU, memory, non-volatile storage (such as SSD, HDD), network interface, PCIE interface, and the CPU may include a complex instruction set computing processor (CISC), a reduced instruction set computing processor (RISC), or a processor that implements other instruction sets or a processor that implements a combination of instruction sets. The management module 101 can run the switch management software, manage the configuration of each part inside the network device 100, monitor the status of each part inside the network device 100, and interact with external devices for data, such as ARP, ICMP, and dynamic routing protocols.
[0067] In one embodiment, one or more ports of the network data processing chip 102 can be configured to mark the input port number on the data frame when receiving the data frame, and then send the data to the port forwarding table 107 for traversal matching, send the data to the multiplexing module 106 corresponding to the matched output port, and then send it out from the corresponding port. For example, the port forwarding table (103) is configured so that the data received by port 1 is sent out from ports 5, 6, and 7, and the data received by port 2 is sent out from ports 6, 7, 8, and 9.
[0068] In one embodiment, one or more ports of the network data processing chip 102 can be configured to mark the input port number on the data frame when receiving the data frame, and then send the data to the port forwarding table 107 for traversal matching, send the data to the multiplexing 106 module corresponding to the output port, and then send it to the verification & rewrite 104 module to rewrite the destination MAC address and source MAC address fields, the destination IP address and source IP address fields in the IP packet, the protocol type field, the port field, the TTL field, the data in the payload and the FCS field at the end of the frame according to pre-configured rules. Any one or more fields, and then send it from the corresponding port.
[0069] In one embodiment, one or more ports of the network data processing chip 102 can be configured as a fixed forwarding path. When a port receives a data frame, it sends the data to the multiplexing (MUX) direction or demultiplexing (DEMUX) direction of the multiplexing 106 module corresponding to the matching output port according to a pre-configured correspondence, and then sends it to the check & rewrite 104 module corresponding to the output port, rewrites any one or more of the destination MAC address and source MAC address fields, the destination IP address and source IP address fields in the IP packet, the protocol type field, the port field, the TTL field, the data in the payload, and the FCS field at the end of the frame according to pre-configured rules, and then sends it out from the corresponding port.
[0070] In one embodiment, two ports or more than two ports of the network data processing chip 102 can be configured with different rates, and the data stream can be first converted to the output port rate by the rate conversion 103 module and then sent to other functional modules inside the network device 100, or the data rate can be converted to the output port rate before the data is sent from the output port.
[0071] The network data processing chip 102 can be configured to arbitrarily use each internal functional module, including rate conversion 103, check & rewrite 104, ACL 105, multiplexing 106, port forwarding table 107 and IP address forwarding table 108, one or more of which can exchange the order of each module during the processing without affecting the forwarding function of the network device 100 and the changes in input data and output data.
[0072] The present invention provides a system and method for implementing fast routing forwarding. There are many methods and ways to implement the technical solution. The above is only a preferred implementation of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the protection scope of the present invention. All components not specified in this embodiment can be implemented using existing technologies.
Claims
1. A system for implementing fast routing forwarding, characterized in that: The network device includes a network device that communicates with one or more external devices through one or more networks and communicates with one or more servers through one or more networks; The network device includes a management module, a network data processing chip and a port; The network device is used to forward data between different ports; The management module is used to configure and generate a port list and an IP address list, monitor the status of the network data processing chip and the port, and perform data interaction with external devices.
2. The system according to claim 1, characterized in that The network data processing chip includes a rate conversion module, a checksum rewriting module, an access control list module, a multiplexing module, a port forwarding table module and an address forwarding table module; The rate conversion module is used to convert data between different rates; The check and rewrite module is used to compare the MAC address, IP address, protocol type, protocol port, and one or more features in the designated position field in the data packet, and discard or rewrite one or more fields in the Ethernet frame according to the configuration if they meet the requirements; The access control list module is used to check a characteristic value or a combination of two or more characteristic values in the data, set a characteristic set according to one characteristic value or a combination of two or more characteristic values, and forward, discard or send the data that meets the characteristic set to another functional module inside the network device for processing according to preset rules; Each port in the network device corresponds to a multiplexing module, and the multiplexing module is used to process data in the multiplexing MUX direction and the demultiplexing DEMUX direction. The multiplexing MUX direction sorts data from more than two sources and sends them out from one destination port; when more than two sources send data to one destination port at the same time, the multiplexing module uses the port cache to temporarily store the data in the cache, and according to the pre-set scheduling algorithm, sends the data in the more than two cache queues from the destination port in the order of the scheduling algorithm; the demultiplexing DEMUX direction sends data from one source from more than two destination ports; The port forwarding table module is used to maintain a port list, the content of which is the input port number and the corresponding output port number, and one input port number corresponds to one or more output ports; when receiving a data frame, the port forwarding table module traverses the matching port list according to the input port number, sends the data to the multiplexing module corresponding to the matched output port according to the matching result, and then sends it out from the corresponding port; the data frame that fails to match is discarded; The address forwarding table module is used to maintain an IP address list, the content of the IP address list is the IP address or the IP address HASH value and the corresponding output port number; the address forwarding table module extracts the destination IP address in the data packet, performs a HASH operation on the 24-bit destination IP address to convert it into a shorter HASH result, traverses and matches it with the IP address HASH value in the IP address list, sends the data to the multiplexing module corresponding to the matching output port, and then sends it out from the corresponding port; data frames that fail to match are discarded.
3. The system according to claim 2, characterized in that The port is configured to mark the input port number on the data frame when receiving the data frame, then send the data to the port forwarding table module for traversal matching, send the data to the multiplexing module corresponding to the matched output port, and then send it out from the corresponding port.
4. The system according to claim 2, characterized in that The port is configured to mark the input port number on the data frame when receiving the data frame, then send the data to the port forwarding table module for traversal matching, send the data to the multiplexing module corresponding to the output port, and then send it to the verification and rewriting module, and rewrite the destination MAC address and source MAC address fields, the destination IP address and source IP address fields in the IP packet, the protocol type field, the port field, the TTL field, the data in the payload and the FCS field at the end of the frame according to the pre-configured direct forwarding or rewriting rules, and then send it from the corresponding port.
5. The system according to claim 2, characterized in that The port is configured as a fixed forwarding path. When a port receives a data frame, it sends the data to the multiplexing MUX direction or demultiplexing DEMUX direction of the multiplexing module corresponding to the matching output port according to the pre-configured correspondence between the input port and the output port, and then sends it to the checksum rewriting module corresponding to the output port. According to the pre-configured direct forwarding or rewriting rules, it rewrites any one or more of the destination MAC address and source MAC address fields, the destination IP address and source IP address fields in the IP packet, the protocol type field, the port field, the TTL field, the data in the payload, and the FCS field at the end of the frame, and then sends it out from the corresponding port.
6. The system according to claim 2, characterized in that The ports are configured with different rates, and the data stream is first converted to the egress port rate by the rate conversion module before being sent to other modules inside the network device, or the data rate is converted to the egress port rate before the data is sent out from the egress port.
7. The system according to claim 1, characterized in that The management module includes a CPU, a memory, a non-volatile storage, a network interface and a PCIE interface.
8. The system according to claim 1, characterized in that The external devices include routers, L2 / 3 switches, L1 switches, L1.5 switches and fiber switches.
9. The system according to claim 1, characterized in that The server is a single server or a server cluster.
10. A method for implementing fast routing forwarding, implemented by the system according to any one of claims 1 to 9, characterized in that: include: Step 1, receiving configuration data representing one or more functional combinations of a network device, and configuring a forwarding relationship between input ports and output ports of the data; Step 2: Read the MAC address field in the packet header to determine the packet type, and forward or discard it according to the type; Step 3, rewrite one or more fields in the data packet according to the data packet type, input port number and output port number, and send it to the output port of the network device or other processing modules in the network device.
Citation Information
Patent Citations
Message editing realization method and apparatus based on conventional switching chip search mode
CN105429882A
Message forwarding method and device
CN105791173A
Message forwarding method and apparatus
CN106330704A
Route control method and switch equipment
CN109510786A
10-Gigabit ethernet line interface apparatus and method of controlling the same
US20040109465A1
