Ultra-low time delay switching equipment and method for controlling forwarding action of ultra-low time delay switching equipment
By setting exception forwarding address mapping table and cache register in ultra-low delay switching devices, processing the source MAC address and source IP address of the packet, and cache the Ethernet header of the direction packet, the problem of incomplete forwarding of packets in pass-through mode is solved, and low-latency forwarding control is achieved.
Patent Information
- Application Number
- CN202510220551.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-26
- Publication Date
- 2025-05-13
- Estimated Expiration
- 2045-02-26
AI Technical Summary
In pass-through mode, when the ultra-low-latency switch performs access control ACL entry filtering, the packet is incompletely forwarded, and in order to ensure the integrity of the packet, the packet content needs to be cached, resulting in an increase in forwarding delay.
By setting exception forwarding address mapping table and cache register in ultra-low delay switching devices, the mapping table is updated based on the source MAC address and source IP address of the message, and the Ethernet header of the direction message is cached, and the packet is processed according to the ACL table entry to reduce the message content and forwarding delay that need to be cached.
It realizes that the forwarding action of the specified port is controlled without increasing the forwarding delay, and reduces the content of the packet that needs to be cached for ACL table entry matching and comparison.
Smart Images

Figure CN119996353A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to communication technology, and more specifically to an ultra-low latency switching device and a method for controlling forwarding actions thereof. Background Art
[0002] At present, the financial securities industry has an increasingly strong demand for high-frequency trading, and there has been a surge in demand for ultra-fast trading systems composed of ultra-low latency switches. It is under this demand background that ultra-low latency switches have been born with the advantages of extremely low latency and minimalist functions.
[0003] The ultra-low latency switching switch completes message forwarding through the cut-through forwarding mode. However, in some business scenarios, it is necessary to set an access control list (ACL) table entry to perform filtering on a specified IP address, which will cause the first part of the message to be forwarded in the previous interface clock in the cut-through mode, and the second part of the message to be discarded in the next interface clock because it matches the filtering ACL. Similarly, when it is necessary to set an ACL table entry that allows the forwarding of IP addresses for ports that prohibit message forwarding, the first part of the message to be discarded in the previous interface clock in the cut-through mode, and the second part of the message to be sent in the next interface clock because it matches the filtering ACL and is allowed to be forwarded, resulting in incomplete messages being forwarded to other communication devices.
[0004] In order to ensure the integrity of the forwarded message, the message content including the IP header of the forwarded message needs to be cached, but this will increase the forwarding delay. Summary of the invention
[0005] The purpose of the present disclosure is to provide an ultra-low latency switching device and a method for controlling forwarding actions thereof, so as to realize controlling the forwarding actions of a designated port while reducing the forwarding latency.
[0006] To achieve the above-mentioned purpose, the present disclosure provides a method for controlling forwarding actions of an ultra-low latency switching device, the method comprising: updating an exception forwarding address mapping table based on the source MAC address and source IP address of an inbound message arriving at an internal port; wherein a diversion port directly connected to the internal port is mapped to an external forwarding port of the ultra-low latency switch; caching the Ethernet header of the outbound message arriving at the internal port according to a specified number of cache bytes in the outbound direction of the internal port; searching for a mapped MAC address of the specified IP address in the exception forwarding address mapping table based on a specified IP address of an exceptional forwarding action access control ACL entry of the internal port; determining that the destination MAC address of the Ethernet header of the cached outbound message is a mapped MAC address; and processing the outbound message based on the exceptional forwarding action ACL entry.
[0007] To achieve the above-mentioned purpose, the present disclosure also provides an ultra-low latency switching device, which includes a setting unit, which is used to set the default forwarding action of the default forwarding action register of the outbound direction of the internal port; set the exception forwarding action ACL table of the exception forwarding action access control ACL register of the internal port; set the specified cache byte number and the specified cache space of the outbound cache register of the internal port, and set the exception forwarding address mapping register of the internal port to be empty; the internal port is located at the diversion port of the internal forwarding unit and directly connected to the switching unit; the internal switching unit updates the exception forwarding address mapping table of the exception forwarding address mapping register based on the source MAC address and the source IP address of the inbound message arriving at the internal port; caches the Ethernet header of the outbound message arriving at the internal port in the specified cache space according to the specified cache byte number; based on the specified IP address of the exception forwarding action access control ACL table item of the internal port, finds the mapped MAC address of the specified IP address in the exception forwarding address mapping table; determines that the destination MAC address of the Ethernet header of the cached outbound message is the mapped MAC address; and processes the outbound message based on the exception forwarding action ACL table item.
[0008] The beneficial effect of the present disclosure is that the message content that needs to be cached for ACL entry matching is reduced to a minimum number of bytes, and the forwarding action of the designated port is controlled while reducing the forwarding delay. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Figure 1 A flowchart of an embodiment of a method for controlling ultra-low latency switching forwarding actions;
[0010] Figure 2A-2B A schematic diagram of a first embodiment of an ultra-low latency switching device controlling forwarding actions provided by the present disclosure;
[0011] Figure 3A-3B A schematic diagram of a second embodiment of an ultra-low latency switching device controlling forwarding actions provided by the present disclosure;
[0012] Figure 4 A schematic diagram of an ultra-low latency switching forwarding device for controlling forwarding actions is provided for the present disclosure. DETAILED DESCRIPTION
[0013] The present invention will be described in detail with multiple examples shown in multiple figures. In the following detailed description, multiple specific details are used to provide a comprehensive understanding of the present disclosure. Known methods, steps, components and circuits are not described in detail in the examples to avoid making these examples difficult to understand.
[0014] Among the terms used, the term "include" means including but not limited to; the term "contain" means including but not limited to; the terms "above", "within" and "below" are inclusive of the number; the terms "greater than" and "less than" are exclusive of the number. The term "based on" means based on at least a part thereof.
[0015] Figure 1 The figure shows an embodiment of a method for controlling forwarding actions of an ultra-low latency switching device provided by the present disclosure, the method comprising:
[0016] Step 101, based on the source MAC address and source IP address of the incoming message arriving at the internal port, update the exception forwarding address mapping table; wherein the diversion port directly connected to the internal port is mapped to the external forwarding port of the ultra-low latency switch;
[0017] Step 102, caching the Ethernet header of the outgoing message arriving at the internal port according to the specified cache byte number of the outgoing direction of the internal port;
[0018] Step 103, based on the specified IP address of the access control ACL entry of the exception forwarding action of the internal port, the mapped MAC address of the specified IP address is found in the exception forwarding address mapping table;
[0019] Step 104: determine that the destination MAC address of the cached Ethernet header is the found mapped MAC address, and process the outgoing message based on the matched exceptional forwarding action ACL entry.
[0020] Figure 1 The beneficial effect of the method embodiment is that the message content that needs to be cached for ACL table entry matching is reduced to a minimum number of bytes, and the forwarding action of the designated port is controlled while reducing the forwarding delay.
[0021] Figure 2A-2B A schematic diagram of a first embodiment of an ultra-low latency switching device controlling forwarding actions is provided for the present disclosure.
[0022] Figure 2A In the present disclosure, a chip with a PCIE physical layer interface (Physical Interface for PCI Express, PIPE) is added to the ultra-low latency switch 20 as an internal switching unit S2.
[0023] The CPU of the ultra-low latency switch 20 sets the mapping relationship between the external forwarding ports 1-11 of the switching unit S1 and the ports 21-31 on the switching chip S1 as the diversion ports; the CPU sets the messages received by the internal ports P21 and P25 directly connected to the diversion ports 21 and 25 to be sent to P31; and configures the messages received by P31 to be sent to P21 and P25.
[0024] The CPU of the ultra-low latency switch 20 sets the default forwarding action of the outbound default forwarding action register of the internal port P21 to deny forwarding; sets the exception forwarding action ACL table of the exception forwarding action ACL register of the internal port P21 to record the IP address IP1 corresponding to permit forwarding; sets the specified cache byte number of the outbound cache register of the internal port P21; sets the specified cache space of the internal port P21, and sets the exception forwarding address mapping register of the internal port P21 to be empty.
[0025] The CPU of the ultra-low latency switch 20 sets the default forwarding action of the outbound default forwarding action register of the internal port P25 to prohibit forwarding; sets the exception forwarding action ACL table of the exception forwarding action ACL register of the internal port P25 to record the IP address IP2 corresponding to the allowed forwarding; sets the specified cache byte number of the outbound cache register of the internal port P25; sets the specified cache space of the internal port P25, and sets the exception forwarding address mapping register of the internal port P25 to be empty.
[0026] The designated cache byte numbers of the outbound cache registers of the internal ports P21 and P25 are the same, which are equal to the first byte of the message preamble to the last byte of the message Ethernet header, thereby ensuring that the forwarding delays of all external forwarding ports on the ultra-low delay switch 20 are the same.
[0027] The transaction request messages 201 and 202 of the clients C1 and C2 arrive at the port 1 and the port 5 respectively. The switching unit S1 sends the message contents of the transaction request messages 201 and 202 received in each interface clock through the mapped diversion ports 21 and 25.
[0028] The internal switching unit S2 searches the exception forwarding address mapping register of the internal port P21 according to the source MAC address MAC1 and the source IP address IP1 of the transaction request message 201 received by the internal port P21 in the continuous interface clock; the internal switching unit S2 determines that the mapping relationship between MAC1 and IP1 is not found, and records the mapping relationship between MAC1 and IP1 in the exception forwarding address mapping register of the internal port P21. The internal switching unit S2 sends the message content of the transaction request message 201 received in the continuous interface clock to the internal port P31.
[0029] The internal switching unit S2 searches the exception forwarding address mapping register of the internal port P25 according to the source MAC address MAC2 and the source IP address IP2 of the transaction request message 202 received by the internal port P25 in the continuous interface clock; if the internal switching unit S2 fails to search the mapping relationship between MAC2 and IP2, the mapping relationship between MAC2 and IP2 is recorded in the exception forwarding address mapping register of the internal port P25. The internal switching unit S2 sends the message content of the transaction request message 202 received in the continuous interface clock to the internal port P31.
[0030] The switching unit S1 receives the transaction request messages 201 and 202 in consecutive interface clocks through the diversion port 31 , and sends them to the server S1 through the mapped external forwarding port 11 .
[0031] Figure 2B In the example, server S1 sends a transaction response message 301 to client C1, wherein the destination MAC address is MAC 1 and the destination IP address is IP1.
[0032] The switching unit S1 receives the Ethernet header of the transaction request message 301 through the external forwarding port 11 within the current interface clock and sends it through the diversion port 31.
[0033] The internal switching unit S2 receives the Ethernet header of the transaction response message 301 through the internal port P31 within the current interface clock, makes two copies and sends them to the internal ports P21 and P25 respectively.
[0034] The internal switching unit S2 caches the Ethernet header of the transaction response message 301 received in the current interface clock, that is, the message content from the first bit of the transaction response message 301 to the last bit of the Ethernet header, according to the specified cache byte number and the specified cache space of the outbound cache register of the internal port P21.
[0035] The internal switching unit S2 searches for the exception forwarding action ACL register of the internal port P21 and reads the IP address IP1 recorded in the exception forwarding action ACL table of the internal port P21.
[0036] The internal switching unit S2 searches the exception address mapping register of the internal port P21 based on finding IP1, and finds the mapped MAC address MAC1 of IP1.
[0037] The internal switching unit S2 determines that the destination MAC address MAC1 of the Ethernet header of the cached transaction response message 301 is the mapped MAC address MAC1, and based on the allowed forwarding action of the exception forwarding action ACL table of the internal port P21, the Ethernet header of the transaction response message 301 cached in the designated cache space of the internal port P21 is sent through the internal port P21.
[0038] The internal switching unit S2 caches the Ethernet header of the transaction response message 301 received in the current interface clock according to the designated cache byte number and designated cache space of the outgoing direction cache register of the internal port P25.
[0039] The internal switching unit S2 searches for the exception forwarding action ACL register of the internal port P25, and reads the exception forwarding action ACL table record IP address IP2 of the internal port P25.
[0040] The internal switching unit S2 searches the exception address mapping register of the internal port P25 based on finding IP2, and finds the mapped MAC address MAC2 of IP2.
[0041] The internal switching unit S2 determines that the destination MAC address MAC1 of the Ethernet header of the cached transaction response message 301 is different from the found mapped MAC address MAC2, and based on the default forwarding action of the internal port P25, prohibits forwarding and discards the Ethernet header of the transaction response message 301 cached in the designated cache space of the internal port P25.
[0042] In the subsequent interface clock, the switching unit S1 receives other fields of the transaction request message 301 through the external forwarding port 11 and sends it through the diversion port 31.
[0043] The internal switching unit S2 receives other fields of the transaction response message 301 in the subsequent interface clock through the internal port P31, makes two copies and sends them to the internal ports P21 and P25 respectively.
[0044] The internal switching unit S2 sends the other fields of the copied transaction response message 301 through the internal port P21. When it recognizes that the last field of the transaction response message 301, such as the FCS (Frame Check Sequence) field, has been sent through the internal port P21, it determines that the entire message has been sent.
[0045] The internal switching unit S2 discards the other fields of the transaction response message 301 copied for the internal port P25, and when it is identified that the other fields of the discarded transaction response message 301 include the end field, it is determined that the entire message has been discarded.
[0046] Afterwards, the server S1 sends a transaction response message to the client C1 again, and the ultra-low latency switch 20 controls the forwarding actions of the internal ports P21 and P25 according to the above content.
[0047] When the server S1 sends a transaction response message to the client C2, the way in which the ultra-low latency switch 20 controls the forwarding action of the internal port P25 refers to the way in which the above-mentioned transaction response message 301 is forwarded via the internal port P21, and the way in which the ultra-low latency switch 20 controls the forwarding action of the internal port P21 refers to the way in which the above-mentioned transaction response message 301 is forwarded via the internal port P25.
[0048] Figure 3A-3B A schematic diagram of a second embodiment of an ultra-low latency switching device controlling forwarding actions provided in the present disclosure.
[0049] Figure 3A In the present disclosure, a PCIE physical layer interface chip is added to the ultra-low latency switch 20 as an internal switching unit S2.
[0050] The CPU of the ultra-low latency switch 20 sets the mapping relationship between the external forwarding ports 1-11 of the switching unit S1 and the ports 21-31 on the switching chip S1 as the diversion ports; the CPU sets the message received by the internal port P21 directly connected to the diversion port 21 to be sent to P31; and configures the message received by P31 to be sent to P21.
[0051] exist Figure 3A , 3B In the scenario shown, only clients C3 and C5 are allowed to forward Ethernet data packets with client C6. Client C4 has a higher security level, and only client C4 is allowed to send Ethernet data packets to client C6, while client C6 is prohibited from sending Ethernet data packets to client C4.
[0052] The CPU of the ultra-low latency switch 20 sets the default forwarding action of the outbound default forwarding action register of the internal port P21 to allow forwarding; and sets the exception forwarding action ACL table of the exception forwarding action ACL register of the internal port P21 to record that the IP address IP4 corresponds to prohibited forwarding.
[0053] The Ethernet data packets 401 , 402 , 403 of the clients C3 , C4 , C5 arrive at port 1 , and the switching unit S1 sends the message contents of the Ethernet data packets 401 , 402 , 403 received in each interface clock through the mapped diversion port 21 .
[0054] The internal switching unit S2 searches the exception forwarding address mapping register of the internal port P21 according to the source MAC addresses and source IP addresses of the Ethernet data messages 401, 402, 403 received by the internal port P21 at consecutive interface clocks.
[0055] The internal switching unit S2 determines that the mapping relationship between the source MAC3 and IP3 of the Ethernet data message 401 has not been found, and records the mapping relationship between MAC3 and IP3 in the exception forwarding address mapping register of the internal port P21.
[0056] The internal switching unit S2 determines that the mapping relationship between the source MAC4 and IP4 of the Ethernet data message 402 has not been found, and records the mapping relationship between MAC4 and IP4 in the exception forwarding address mapping register of the internal port P21.
[0057] The internal switching unit S2 determines that the mapping relationship between the source MAC5 and IP5 of the Ethernet data message 403 has not been found, and records the mapping relationship between MAC5 and IP5 in the exception forwarding address mapping register of the internal port P21.
[0058] The MAC4 and IP4 internal switching unit S2 sends the message contents of the Ethernet data messages 401, 402, 403 received in consecutive interface clocks to the internal port P31.
[0059] The switching unit S1 receives the message contents of the Ethernet data messages 401 , 402 , and 403 through the diversion port 31 in a continuous interface clock and sends the message contents to the server S1 through the mapped external forwarding port 11 .
[0060] Figure 3B , client C6 sends Ethernet data packets 501, 502, and 503 to clients C3, C4, and C5 respectively; among them, the destination MAC address of Ethernet data packet 501 is MAC 3; the destination IP address is IP3 address; the destination MAC address of Ethernet data packet 502 is MAC 4; the destination IP address is IP4 address; the destination MAC address of Ethernet data packet 503 is MAC 5; the destination IP address is IP5 address.
[0061] The switching unit S1 sends the message contents of the Ethernet data messages 501 , 502 , and 503 received in each interface clock through the external forwarding port 11 through the flow guide port 31 .
[0062] The internal switching unit S2 sends the message contents of the Ethernet data messages 501, 502, 503 received in each interface clock to the internal port P21 via the internal port P31.
[0063] The internal switching unit S2 caches the Ethernet headers of the Ethernet data packets 501 , 502 , 503 received within a plurality of consecutive interface clocks according to the designated cache byte number and designated cache space of the outgoing direction cache register of the internal port P21 .
[0064] The internal switching unit S2 searches for the IP address IP4 in the exception forwarding action ACL table of the exception forwarding action ACL register of the internal port P21, searches for the exception address mapping register of the internal port P21, and finds the MAC4 mapped to the specified IP4.
[0065] The internal switching unit S2 determines that the destination MAC address MAC1 of the Ethernet header of the cached Ethernet data packet 501 is different from the found mapped MAC address MAC4, allows forwarding based on the default forwarding action of the internal port P21, and sends the Ethernet header of the cached Ethernet data packet 501 through the internal port P21. The internal switching unit S2 determines that the destination MAC address MAC4 of the Ethernet header of the cached Ethernet data packet 502 is the same as the found mapped MAC address MAC4. The internal switching unit S2 discards the Ethernet header of the cached Ethernet data packet 502 based on the prohibit forwarding action of the ACL table entry of the exception forwarding action ACL table of the exception forwarding action ACL register of the internal port P21.
[0066] The internal switching unit S2 determines that the destination MAC address MAC6 of the Ethernet header of the cached Ethernet data message 503 is different from the found mapped MAC address MAC4, allows forwarding based on the default forwarding action of the internal port P21, and sends the Ethernet header of the cached Ethernet data message 503 through the internal port P21.
[0067] In the subsequent interface clock, the switching unit S1 receives other fields of the Ethernet data packets 501 , 502 , and 503 through the external forwarding port 11 , and sends them through the diversion port 31 .
[0068] The internal switching unit S2 receives other fields of the Ethernet data messages 501, 502, 503 in the subsequent interface clock through the internal port P31, and sends them to the internal port P21.
[0069] The internal switching unit S2 sends other fields of the Ethernet data messages 501 and 503 through the internal port P21. When it is recognized that the last fields of the Ethernet data messages 501 and 503, such as the FCS (Frame Check Sequence) field, have been sent through the internal port P21, it is determined that the entire message has been sent.
[0070] The internal switching unit S2 discards the other fields of the Ethernet data message 502, and when it is identified that the other fields of the discarded transaction response message 301 include the end field, it is determined that the entire message has been discarded.
[0071] Afterwards, the client C6 sends the Ethernet data message to the clients C3, C4, and C5 again, and the ultra-low latency switch 20 controls the forwarding action of the internal port P21 according to the above content.
[0072] exist Figure 2A-2B , Figure 3A-3B In the illustrated embodiment, the internal switching unit S2 does not update the same mapping relationship found in the exception forwarding address mapping register of the internal port P21 or P25 based on the source MAC address and the source IP address of the received data message at the internal port P21.
[0073] exist Figure 2A-2B , Figure 3A-3B In the illustrated embodiment, the internal switching unit S2 updates the mapping relationship found based on the source MAC address and source IP address of the received data message and if the mapping relationship found in the exception forwarding address mapping register of the internal port P21 or P25 has a different MAC address or IP address.
[0074] exist Figure 2A-2B , Figure 3A-3B In the illustrated embodiment, the internal switching unit S2 does not find a mapping relationship in the exception forwarding address mapping register of the internal port P21 or P25 based on the source MAC address and source IP address of the received data packet, and the number of stored mapping relationships reaches the maximum value. Starting from the first address mapping relationship in the exception forwarding address mapping register of the internal port P21 or P25, a circular covering is performed based on the newly learned mapping relationship between the source MAC address and the source IP address of the incoming message, that is, the first address mapping relationship is covered first, and then the second address mapping relationship is covered...
[0075] Figure 4 A schematic diagram of an ultra-low latency switching forwarding device for controlling forwarding actions is provided for the present disclosure. The device 600 includes a network interface, a CPU 61, a storage unit 62, a switching unit 63, and an internal switching unit 64. The switching unit 63 can be an FPGA or ASIC chip with a switching function; the internal switching unit 64 statistical unit is a PIPE chip; the processor 61 executes the setting module 621 by running the processor executable instructions in the memory 62.
[0076] The setting unit 621 is used to set the default forwarding action of the default forwarding action register of the egress direction of the internal port; set the exception forwarding action ACL table of the exception forwarding action access control ACL register of the internal port; set the specified cache byte number and the specified cache space of the egress cache register of the internal port, and set the exception forwarding address mapping register of the internal port to be empty; the internal port is located in the internal forwarding unit and is directly connected to the diversion port of the switching unit;
[0077] The internal switching unit 64 updates the exception forwarding address mapping table of the exception forwarding address mapping register based on the source MAC address and source IP address of the inbound message arriving at the internal port; caches the Ethernet header of the first outbound message arriving at the internal port in the specified cache space according to the specified number of cache bytes; searches for the mapped MAC address of the specified IP address in the exception forwarding address mapping table based on the specified IP address of the exception forwarding action access control ACL table entry of the internal port; determines that the first destination MAC address of the cached Ethernet header of the first outbound message is the mapped MAC address; and processes the first outbound message based on the exception forwarding action ACL table entry.
[0078] The internal switching unit 64 is also used to cache the Ethernet header of the second outgoing message arriving at the internal port according to the specified number of cache bytes; based on the specified IP address, find the mapped MAC address in the exception forwarding address mapping table to determine that the second destination MAC address of the Ethernet header of the cached second outgoing message is different from the mapped MAC address, and process the second outgoing message based on the default forwarding action of the internal port.
[0079] The setting unit 621 is used to set the default forwarding action to allow forwarding and set the forwarding action of the exceptional forwarding action ACL table entry to prohibit forwarding; or, the setting unit 621 is used to set the default forwarding action to prohibit forwarding and set the forwarding action of the exceptional forwarding action ACL table entry to allow forwarding.
[0080] The internal switching unit 64 updates the exception forwarding address mapping table, including: failing to find an address mapping relationship that matches the source IP address of the incoming message in the exception forwarding address mapping table, determining that the number of recorded address mapping relationships in the exception forwarding address mapping table has reached a maximum value, and starting from the first address mapping relationship in the exception forwarding address mapping table, performing a cyclic coverage based on the mapping relationship between the source MAC address and the source IP address of the incoming message.
[0081] The internal switching unit 64 updates the exception forwarding address mapping table, including: failing to find an address mapping relationship that matches the source IP address of the incoming message in the exception forwarding address mapping table; determining that the number of recorded address mapping relationships in the exception forwarding address mapping table has not reached the maximum value, and adding a new address mapping relationship corresponding to the source MAC address and source IP address of the incoming message.
[0082] The internal switching unit 64 updates the exception forwarding address mapping table including: finding an address mapping relationship that matches the source IP address of the incoming message in the exception forwarding address mapping table; and if it is determined that the found address mapping relationship records the source MAC address and source IP address of the incoming message, then the found address mapping relationship is not updated.
[0083] The internal switching unit 64 updates the exception forwarding address mapping table, including: finding the address mapping relationship that matches the source IP address of the incoming message in the exception forwarding address mapping table, determining that the MAC address recorded in the found address mapping relationship is inconsistent with the source MAC address of the incoming message, and updating the found address mapping relationship based on the source MAC address and source IP address of the incoming message.
[0084] In the present disclosure, a machine-readable storage medium may be any electronic, magnetic, optical or other physical storage device for storing or containing information (such as executable instructions, data, etc.). For example, any machine-readable storage medium herein may be any type of random access memory (RAM), volatile memory, non-volatile memory, flash memory, storage drive (such as a hard drive), solid-state drive, any type of storage optical disk (such as a CD, DVD, etc.), and similar devices, or a combination thereof. In addition, any machine-readable storage medium herein may be a non-temporary machine-readable storage medium.
[0085] The above description is only a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present disclosure shall be included in the scope of protection of the present disclosure.
Claims
1. A method for controlling forwarding actions of an ultra-low latency switching device, characterized in that: The method comprises, Based on the source MAC address and source IP address of the incoming message arriving at the internal port, the exception forwarding address mapping table is updated; wherein the diversion port directly connected to the internal port is mapped to the external forwarding port of the ultra-low latency switch; Cache the Ethernet header of the first outgoing message arriving at the internal port according to the specified cache byte number in the outgoing direction of the internal port; Based on the designated IP address of the access control ACL entry of the exception forwarding action of the internal port, a mapped MAC address of the designated IP address is found in the exception forwarding address mapping table; Determine that the first destination MAC address of the Ethernet header of the cached first outgoing message is the mapped MAC address; The first outgoing message is processed based on the exceptional forwarding action ACL entry.
2. The method according to claim 1, characterized in that The method further comprises Cache the Ethernet header of the second outgoing message arriving at the internal port according to the specified cache byte number in the outgoing direction of the internal port; Based on the specified IP address, the mapped MAC address is found in the exception forwarding address mapping table. Determining that a second destination MAC address of the Ethernet header of the cached second outgoing message is different from the mapped MAC address; The second outgoing message is processed based on a default forwarding action of the internal port.
3. The method according to claim 1, characterized in that The default forwarding action of the internal port is to allow forwarding; the forwarding action of the exception forwarding action ACL table entry is to prohibit forwarding; or, The default forwarding action of the internal port is to prohibit forwarding; The forwarding action of the exceptional forwarding action ACL entry is to allow forwarding.
4. The method according to claim 1, characterized in that: Based on the source MAC address and source IP address of the incoming packet arriving at the internal port, updating the exception forwarding address mapping table includes: In the exception forwarding address mapping table, no address mapping relationship matching the source IP address of the incoming message is found; Determine that the number of recorded address mapping relationships in the exception forwarding address mapping table reaches a maximum value, and start from the first address mapping relationship in the exception forwarding address mapping table, and perform cyclic coverage according to the mapping relationship between the source MAC address and the source IP address of the inbound message; or, In the exception forwarding address mapping table, no address mapping relationship matching the source IP address of the incoming message is found; It is determined that the number of recorded address mapping relationships in the exception forwarding address mapping table has not reached a maximum value, and a new address mapping relationship corresponding to the source MAC address and the source IP address of the inbound message is added.
5. The method according to claim 1, characterized in that Based on the source MAC address and source IP address of the incoming packet arriving at the internal port, updating the exception forwarding address mapping table includes: In the exception forwarding address mapping table, find the address mapping relationship that matches the source IP address of the incoming message; If it is determined that the found address mapping relationship records the source MAC address and the source IP address of the incoming message, the found address mapping relationship is not updated; or, In the exception forwarding address mapping table, find the address mapping relationship that matches the source IP address of the incoming message; It is determined that the MAC address of the found address mapping relationship record is inconsistent with the source MAC address of the incoming message, and the found address mapping relationship is updated based on the source MAC address and source IP address of the incoming message.
6. An ultra-low latency switching device, comprising: The device comprises a setting unit and an internal switching unit, The setting unit is used to set the default forwarding action of the default forwarding action register of the egress direction of the internal port; set the exception forwarding action ACL table of the exception forwarding action access control ACL register of the internal port; set the specified cache byte number and the specified cache space of the egress cache register of the internal port, and set the exception forwarding address mapping register of the internal port to be empty; the internal port is located in the internal forwarding unit and is directly connected to the diversion port of the switching unit; The internal switching unit updates the exception forwarding address mapping table of the exception forwarding address mapping register based on the source MAC address and the source IP address of the inbound message arriving at the internal port; caches the Ethernet header of the first outbound message arriving at the internal port in the specified cache space according to the specified cache byte number; and searches the mapped MAC address of the specified IP address in the exception forwarding address mapping table based on the specified IP address of the access control ACL table entry of the exception forwarding action of the internal port; Determine that the first destination MAC address of the Ethernet header of the cached first outgoing message is the mapped MAC address; The first outgoing message is processed based on the exceptional forwarding action ACL entry.
7. The device according to claim 6, characterized in that The internal switching unit is also used to cache the Ethernet header of the second outgoing message arriving at the internal port according to the specified cache byte number; based on the specified IP address, find the mapped MAC address in the exception forwarding address mapping table to determine that the second destination MAC address of the cached Ethernet header of the second outgoing message is different from the mapped MAC address; and process the second outgoing message based on the default forwarding action of the internal port.
8. The device according to claim 6, characterized in that The setting unit is used to set the default forwarding action to allow forwarding, and set the forwarding action of the exception forwarding action ACL table entry to prohibit forwarding; or, The setting unit is used to set the default forwarding action to prohibit forwarding; The forwarding action of the exception forwarding action ACL entry is set to allow forwarding.
9. The device according to claim 6, characterized in that The internal switching unit updates the exception forwarding address mapping table based on the source MAC address and the source IP address of the incoming message arriving at the internal port, including: The internal switching unit fails to find an address mapping relationship matching the source IP address of the incoming message in the exception forwarding address mapping table, determines that the number of recorded address mapping relationships in the exception forwarding address mapping table has reached a maximum value, and performs a cyclic coverage based on the mapping relationship between the source MAC address and the source IP address of the incoming message starting from the first address mapping relationship in the exception forwarding address mapping table; or, The internal switching unit fails to find an address mapping relationship that matches the source IP address of the incoming message in the exception forwarding address mapping table; determines that the number of recorded address mapping relationships in the exception forwarding address mapping table has not reached the maximum value, and adds a new address mapping relationship corresponding to the source MAC address and source IP address of the incoming message.
10. The device according to claim 6, characterized in that The internal switching unit updates the exception forwarding address mapping table based on the source MAC address and the source IP address of the incoming message arriving at the internal port, including: The internal switching unit finds an address mapping relationship that matches the source IP address of the incoming message in the exception forwarding address mapping table; if it is determined that the found address mapping relationship records the source MAC address and source IP address of the incoming message, the found address mapping relationship is not updated; or, The internal switching unit finds an address mapping relationship that matches the source IP address of the inbound message in the exception forwarding address mapping table, determines that the MAC address recorded in the found address mapping relationship is inconsistent with the source MAC address of the inbound message, and updates the found address mapping relationship based on the source MAC address and source IP address of the inbound message.
Citation Information
Patent Citations
Ethernet two-layer head compression based transmission device and method
CN104079488A
Message storing and forwarding method, circuit and device
CN105635000A
Device and method for detection aiming at ARP (address resolution protocol) response message attack
CN107689963A
Message forwarding method and equipment
CN116436875A
Data forwarding method and device
CN117201438A