WO2016101488A1 - Ternary content addressable memory (tcam) table search method and device - Google Patents

Ternary content addressable memory (tcam) table search method and device Download PDF

Info

Publication number
WO2016101488A1
WO2016101488A1 PCT/CN2015/078586 CN2015078586W WO2016101488A1 WO 2016101488 A1 WO2016101488 A1 WO 2016101488A1 CN 2015078586 W CN2015078586 W CN 2015078586W WO 2016101488 A1 WO2016101488 A1 WO 2016101488A1
Authority
WO
WIPO (PCT)
Prior art keywords
tcam
external
link
service
network chip
Prior art date
Application number
PCT/CN2015/078586
Other languages
French (fr)
Chinese (zh)
Inventor
姜海明
杨远田
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016101488A1 publication Critical patent/WO2016101488A1/en

Links

Images

Definitions

  • This document relates to the field of communications, and in particular, to a TCAM lookup table method and apparatus for three-state content addressable memory.
  • a related art network chip includes an application specific integrated circuit (ASIC) and a network processor (NP).
  • ASIC application specific integrated circuit
  • NP network processor
  • SRAM Static Random Access Memory
  • TCAM Ternary Content Addressable Memory
  • Synchronous Dynamic Random Access Memory Synchronous Dynamic Random Access Memory
  • SDRAM Dynamic Random Access Memory
  • the three-state content addressable memory is mainly used to quickly find an access control list (Access Control List, ACL for short) and a route.
  • the main feature of TCAM is fast parallel search.
  • the application on the network processor is usually that the microcode composes a key value (KEY) from the message extraction information, and sends a search command to the TCAM through the NP TCAM controller, and processes the result according to the result. Message.
  • KEY key value
  • the TCAM interconnects with the network chip through a channel, the physical bus, and transmits data and service information on the bus.
  • the TCAM interconnected with the network chip through the bus is usually called an external TCAM.
  • the physical bus between the network chip and the external TCAM is composed of multiple links. During the operation of the device, some lanes are aged or the link quality of the bus is poor. When the TCAM writes service entries, cyclic redundancy occurs. Errors such as Cyclic Redundancy Check (CRC) or Framing.
  • CRC Cyclic Redundancy Check
  • Framing Framing.
  • the external TCAM is operated for a long time, fault information such as aging may occur. Once the link fails or an external TCAM If the fault occurs in itself, it will seriously affect the look-up function of the external TCAM, which in turn affects the services carried on the TCAM.
  • the present invention provides a TCAM table lookup method and apparatus for three-state content addressable memory to solve the problem that the link between the external TCAM and the network chip in the related art is faulty or the external TCAM itself is faulty, thereby affecting the external TCAM.
  • the problem of the lookup function is a TCAM table lookup method and apparatus for three-state content addressable memory to solve the problem that the link between the external TCAM and the network chip in the related art is faulty or the external TCAM itself is faulty, thereby affecting the external TCAM.
  • a three-state content addressable memory TCAM lookup method includes: determining whether a link between a network chip and an external TCAM of the network chip or an external TCAM is faulty; failure of the link or the external TCAM In the case, the message is checked by the internal TCAM of the network chip.
  • determining whether the link between the network chip and the external TCAM of the network chip or the external TCAM is faulty includes: acquiring a fault count; determining whether the fault count reaches a preset threshold; In the case of a preset threshold, it is determined that the link or the external TCAM has failed.
  • the acquiring the fault count comprises: reading the fault count in the error statistics register in the external TCAM by managing the data input and output MDIO interface.
  • the method further includes: writing a TCAM entry for the message lookup table to the internal TCAM.
  • the writing of the TCAM entry for the packet lookup table to the internal TCAM includes: determining whether the service corresponding to the TCAM entry is a critical service, where the key service includes a service related to packet forwarding; In the case where the service is a critical service, a TCAM entry corresponding to the service is written to the internal TCAM.
  • the network chip comprises a network processor NP, the link comprises an Interlaken link between the NP and the CPU; or the network chip comprises an application specific integrated circuit ASIC, the chain The road includes the external bus PCI-Express.
  • a three-state content addressable memory TCAM look-up table device comprising: a determining module, configured to: determine whether a link between a network chip and an external TCAM of the network chip or an external TCAM is faulty; : In case the link or the external TCAM fails, the message is checked by the internal TCAM of the network chip.
  • the determining module includes: an obtaining unit, configured to: acquire a fault count; the first determining unit is configured to: determine whether the fault count reaches a preset threshold; and the determining unit is configured to: In the case where a threshold is set, it is determined that the link or the external TCAM has failed.
  • the obtaining unit is further configured to: read the fault count in the error statistics register in the external TCAM by managing the data input/output MDIO interface.
  • the three-state content addressable memory TCAM look-up table device further includes: a write module, configured to: write a TCAM entry for the message lookup table to the internal TCAM.
  • the writing module includes: a second determining unit, configured to: determine whether the service corresponding to the TCAM entry is a key service, where the key service includes a service related to packet forwarding; To: write the TCAM entry corresponding to the service to the internal TCAM if the service is a critical service.
  • a computer readable storage medium storing computer executable instructions for performing the method of any of the above.
  • FIG. 1 is a flow chart of a TCAM lookup method for a tri-state content addressable memory according to an embodiment of the present invention
  • FIG. 2 is a flow chart of another method for TCAM lookup of a tri-state content addressable memory according to an embodiment of the present invention
  • FIG. 3 is a block diagram showing the structure of a TCAM table lookup method device for a three-state content addressable memory according to an embodiment of the present invention
  • FIG. 4 is a structural block diagram of a judging module in a TCAM table lookup method of a three-state content addressable memory according to an embodiment of the present invention
  • FIG. 5 is a structural block diagram of another apparatus for processing a TCAM table of a three-state content addressable memory according to an embodiment of the present invention.
  • FIG. 6 is a structural block diagram of a write module in another T-state content addressable memory TCAM lookup table method device according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of a CPU, NP, and TCAM connection relationship for a T-state look-up memory TCAM look-up table according to an embodiment of the present invention
  • FIG. 8 is a flowchart of a three-state content addressable memory TCAM lookup table method applied to a CPU control plane to write a TCAM entry for a message lookup table according to an embodiment of the present invention
  • FIG. 9 is a flow chart of a TCAM lookup table method for a tri-state content addressable memory applied to a forwarding plane, in accordance with an embodiment of the present invention.
  • FIG. 1 is a flowchart of a T-state content addressable memory TCAM table lookup method according to an embodiment of the present invention, as shown in FIG. As shown, the process can include the following steps:
  • Step S100 determining whether a link between the network chip and an external TCAM of the network chip or an external TCAM is faulty;
  • Step S102 In the case that the link or the external TCAM is faulty, the packet is checked by the internal TCAM of the network chip.
  • the CPU accesses the external TCAM through the TCAM adapter interface of the network chip, and the network chip and the external TCAM are interconnected through the physical bus; in addition, the general NP also integrates the TCAM into the internal TCAM.
  • the internal TCAM is much smaller than the external TCAM.
  • it is common practice to select an external TCAM to store services such as ACLs and the internal TCAM is usually not used.
  • the CPU of the network chip will look up the message through the internal TCAM of the network chip.
  • the link or the external TCAM is faulty
  • the internal TCAM of the network chip is used to check the message, and the external TCAM and the network chip existing in the related art are solved.
  • the link fails or the external TCAM itself fails, which affects the problem of the external TCAM's look-up function, effectively reducing the impact of link or external TCAM failure on traffic forwarding.
  • determining whether the link between the network chip and the external TCAM of the network chip or the external TCAM is faulty may include: acquiring the fault count; determining whether the fault count reaches a preset threshold; When the fault count reaches a preset threshold, it is determined that the link or the external TCAM is faulty. Occasional failure of external TCAMs and links interconnected with network chips may be common, and has no impact on TCAM lookup and traffic forwarding. Because of the importance of TCAM lookup tables for service forwarding, it is also impossible and should not switch internal and external TCAMs too frequently for lookups.
  • the link or the external TCAM has a really large fault, which affects the normal lookup function of the TCAM. , which in turn affects the bearer of the TCAM to the service.
  • the function of switching the internal TCAM for table lookup is further optimized, and the impact of the link or external TCAM fault on the TCAM lookup function and service forwarding is effectively reduced.
  • obtaining the fault count includes: reading, by using a Management Data Input/Output (MDIO) interface, the fault count in the error statistics register in the external TCAM.
  • MDIO Management Data Input/Output
  • the CPU of the network chip can read the error status in the external TCAM by means of the CPU interface of the network chip and the corresponding MDIO address of the external TCAM.
  • Register and error statistics registers A fault message appears on the link and the external TCAM, and the error status register stores the associated fault information. Accordingly, the error statistics register counts the number of times the fault occurred.
  • the Netlogic TCAM chip has some error status and error count of the PCS layer. Errors such as CRC can be detected in the Common Status Register of the NL11K chip, and there is a CRC error count in the RX PCS Counter register. These registers can be accessed through the out-of-band MDIO interface. By enabling the software thread, the external TCAM internal link related error status register and error statistics register are periodically read through the MDIO interface, thereby sensing the link status between the network chip and the external TCAM and the external TCAM itself.
  • the advantage of borrowing the MDIO interface is that the MDIO signal line is an out-of-band resource, so it does not occupy the link bandwidth resources between the network chip and the external TCAM.
  • FIG. 2 is a flow chart of another time processing method according to an embodiment of the present invention. As shown in FIG. 2, the process may be Including the following steps:
  • Step S200 writing a TCAM entry for the message lookup table to the internal TCAM
  • the main feature of TCAM is fast parallel search.
  • the application on the network processor is usually that the microcode composes a KEY (key value) from the message extraction information, and sends a search command to the TCAM through the NP TCAM controller, and processes the result according to the result. Message.
  • the TCAM entry for the message lookup table is further written into the internal TCAM. That is, the control plane CPU of the network chip converts the data of the original service message sent by the upper layer service (such as ACL) into the TCAM entry for the message lookup table written to the TCAM hardware.
  • Steps S202 and S204 refer to step S100 and step S102 shown in FIG. 1 respectively, and details are not described herein. It is to be noted that, before the step 202, before the packet is checked by the internal TCAM of the network chip, the T-state content addressable memory TCAM lookup method provided by this embodiment further includes step S200.
  • the TCAM entry to be used for the message lookup table is written to the internal TCAM. Writing the TCAM entry for the message lookup table to the internal TCAM is not limited to being performed before the packet is checked by the internal TCAM of the network chip, and may also be included in the judgment network chip and the external part of the network chip.
  • the link between the TCAMs or the external TCAM is out Before the fault occurs; it may also include before determining whether the link between the network chip and the external TCAM of the network chip or the external TCAM is faulty, before the packet is checked by the internal TCAM of the network chip.
  • the internal TCAM storage space of the network chip is usually not very large, and after determining whether the link between the network chip and the external TCAM of the network chip or the external TCAM is faulty, the message is performed on the internal TCAM through the network chip. Before checking the table.
  • the writing of the TCAM entry for the message lookup table to the internal TCAM may further include: determining whether the service corresponding to the TCAM entry is a critical service, where the key service includes The text forwards the related service; in the case where the service is a critical service, the TCAM entry corresponding to the service is written to the internal TCAM.
  • a key service is a service that is decisive for forwarding, such as protocol protection. If the address resolution protocol (ARP) and Open Shortest Path First (OSPF) cannot be reported, If the protocol is not processed, the forwarding service will be affected. .
  • ARP address resolution protocol
  • OSPF Open Shortest Path First
  • the internal TCAM of the network chip is quickly switched to perform a table lookup.
  • the backup mode in which the internal TCAM is in effect the key services are still normal, the service is not interrupted, but the non-critical services such as QoS, flow rate limit, and flow statistics are invalid, and the internal TCAM storage space is reasonably utilized.
  • the service corresponding to the TCAM entry is a critical service; when the service is a critical service, the technical means for writing the TCAM entry into the internal TCAM is not only implemented on the link or Quickly switch internals when an external TCAM fails
  • the TCAM performs a table lookup to ensure that the forwarding of key services is not affected, and the internal TCAM storage space is effectively utilized reasonably.
  • the link or external TCAM fails, the key services of the TCAM are still working normally due to switching to the internal TCAM working mode of the network chip.
  • the operator or the user can be notified of an external TCAM or link problem, and the administrator can selectively perform some operations, such as replacing the external TCAM or maintaining the mode of the internal TCAM operation.
  • the network chip includes a network processor NP, the link includes an Interlaken link between the NP and the CPU; or the network chip includes an application specific integrated circuit ASIC, and the link includes an external bus. PCI-Express. It also includes other network chips and their bus links to the external TCAM.
  • a three-state content addressable memory TCAM look-up table device is also provided, which is used to implement the above-mentioned embodiments and optional embodiments, and has not been described again.
  • the term "module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 3 is a structural block diagram of a TCAM lookup device for a tri-state content addressable memory according to an embodiment of the present invention. As shown in FIG. 3, the device includes a determination module 30 and a look-up table module 32. Description.
  • the determining module 30 is configured to: determine whether a link between the network chip and the external TCAM of the network chip or an external TCAM is faulty; the look-up table module 32 is connected to the determining module 30, and is configured to: when the link or the external In the case of a failure of the TCAM, the message is checked by the internal TCAM of the network chip.
  • the determining module 30 may further include: an obtaining unit 301, configured to: acquire the fault count; the first determining unit 302 is connected to the obtaining unit 301, and is configured to: determine Whether the fault count reaches the threshold; the determining unit 303 is connected to the first determining unit 302, and is configured to determine that the link or the external TCAM is faulty if the counting reaches a threshold.
  • the obtaining unit 301 is further configured to: input and output MDIO through management data. And reading the fault count in the error statistics register in the external TCAM.
  • the apparatus determines whether a link between the network chip and an external TCAM of the network chip or an external TCAM is faulty; when the link or the external TCAM fails, the network chip is adopted.
  • the internal TCAM looks up the message and effectively solves the link failure between the external TCAM and the network chip in the related art or the failure of the external TCAM itself, which seriously affects the external TCAM lookup function, and further Affecting the problem of services carried on the TCAM, the table is checked by the external TCAM when the link and the external TCAM are working normally; in the case of a link or external TCAM failure, the TCAM is quickly switched to the internal chip of the network chip. Check the table to ensure the normal operation of the TCAM look-up table function, effectively reducing the impact of link or external TCAM failure on service traffic forwarding.
  • FIG. 5 is a structural block diagram of another T-state content-addressable memory TCAM look-up table device according to an embodiment of the present invention. As shown in FIG. 5, the device includes the determination module 30 and the look-up table module 32 shown in FIG. In addition, a write module 40 is included, which is described below.
  • the writing module 40 is connected to the determining module 42 and configured to: write a TCAM entry for the message lookup table into the internal TCAM before the table is checked by the internal TCAM of the network chip; the determining module 42.
  • the look-up table module 44 refers to the determining module 30 and the look-up table module 32 shown in FIG. 3, respectively, and details are not described herein.
  • the writing module 40 may further include: a second determining unit 401, configured to: determine whether the service corresponding to the TCAM entry is a key service; and write the unit 402, connect To the second judging unit 401, it is set to write the TCAM entry to the internal TCAM when the service is a critical service.
  • the key services include services related to packet forwarding.
  • the above mentioned network chip and its link with the external TCAM may be an NP network processor, the link is an Interlaken link between the NP and the CPU; or may be an application specific integrated circuit ASIC.
  • the link is a new generation bus interface PCI-Express.
  • the currently popular network chips and their links to external TCAMs are not only NP network processors, Interlaken links; application-specific integrated circuit ASICs, next-generation bus interfaces PCI-Express, but also other network chips and their relationship with external TCAMs. Bus link.
  • the apparatus provided in this embodiment is used to determine whether the service corresponding to the TCAM entry is Key service; when the service is a critical service, the technical means of writing the TCAM entry into the internal TCAM not only realizes fast switching of the internal TCAM for checking the table when the link or the external TCAM fails, ensuring The forwarding of key services is not affected, and the internal TCAM storage space is effectively utilized reasonably.
  • a commonly used network processor to connect to the TCAM is shown in Figure 7.
  • the CPU accesses the external TCAM through the TCAM adaptation interface of the NP.
  • the NP and the TCAM are interconnected by the Interlaken bus.
  • the Interlaken physical bus is composed of multiple links, and the TCAM is also integrated inside the general NP.
  • the network processor microcode obtains forwarding and policy information, such as protocol protection, by checking the TCAM.
  • the protocol packets need to be selected through TCAM matching to improve the priority and send the processing; for example, the quality of service Qos.
  • the user configuration policy performs priority-based processing on certain types of packets. For example, traffic statistics, traffic rate limit, and so on, you need to count and limit the rate of specific packets.
  • the TCAM write table may have errors such as cyclic redundancy check CRC or Framing (framing).
  • CRC cyclic redundancy check
  • Framing Framing
  • FIG. 7 is a schematic diagram of a CPU, NP, and TCAM connection relationship for a T-state look-up memory TCAM look-up table according to an embodiment of the present invention.
  • the connection relationship between the commonly used three-state content addressable memory TCAM, the central processing unit CPU, and the network chip and its functions will be described below with reference to FIG.
  • the central processing unit CPU 50 is mainly responsible for completing the configuration of the network chip, such as the network processor NP and the external TCAM; and converting the original data of the service message delivered by the upper layer service (such as the ACL) into the TCAM hardware for reporting.
  • a TCAM entry for the lookup table a software thread running to scan the error status registration and error statistics registers in the external TCAM for determining whether the link state between the external TCAM and the NP and the operating state of the external TCAM are faulty; When the link or external TCAM fails, the dynamic switching of the NP microcode version is switched.
  • the external TCAM tri-state content addressable memory 52 is coupled to the network chip 54.
  • the external TCAM 52 contains an error status register, an error statistics register for a memory link or TCAM operation failure.
  • the network chip 54 is connected to the central processing unit CPU 50.
  • This embodiment is described by taking an NP network processor as an example. contain:
  • the microcode engine 541 which is an NP core device, is used to run microcode for all network services. Including routing lookup and other services; assembling the KEY key value for the message lookup table, sending it to the TCAM, and performing the corresponding operation according to the returned TCAM lookup table result.
  • the NP can use a set of microcode versions for internal TCAM and external TCAM service lookups, as well as two sets of microcode.
  • the version A microcode sends the table key value to the external TCAM for searching, and the microcode takes the external TCAM result to perform the relevant business action;
  • the version B microcode sends the table key value to the internal TCAM for searching, and the microcode takes the internal TCAM result to execute.
  • Related business actions Usually, the Interlaken physical link is in good condition and runs the microcode version A. When the software thread scans to the link between the NP and the external TCAM, the microcode version is switched and the version B is loaded.
  • the internal TCAM tri-state content addressable memory 542 is configured to write a TCAM entry for the message lookup table when the external TCAM or its link with the network chip fails, and check according to the table key value. Table and feedback to check the results.
  • TCAM interface 543 NP and TCAM adapter interface, used for NP interconnection with TCAM through Interlaken.
  • the CPU interface 544 is used by the CPU to access all resources in the NP through the CPU interface, including a microcode engine, a TCAM adapter interface, and an internal TCAM.
  • the management data input/output interface MDIO 56 the MDIO interface existing between the general NP and the TCAM, can be used to access registers in the external TCAM.
  • the Interlaken bus which is used to connect the TCAM interface between the external TCAM and the network chip, so that the TCAM can communicate with the network chip.
  • FIG. 8 is a flow chart of a three-state content addressable memory TCAM lookup table method applied to a CPU control plane to write a TCAM entry for a message lookup table, in accordance with an embodiment of the present invention. As shown in FIG. 8, the process may include the following steps:
  • Step S600 acquiring Interlaken link running status information between the external TCAM and the network processor NP, and/or running status information of the external TCAM itself;
  • the CPU can read the TCAM internal registers through the CPU interface of the NP through the corresponding MDIO address of the TCAM.
  • the TCAM internal related registers are configured through the MDIO interface.
  • the error status register and error statistics register of the external TCAM internal link and its external TCAM itself are read by the management data input/output MDIO interface periodically or irregularly.
  • the error status register in the external TCAM is used to store the Interlaken link operating status fault information and the operating status fault information of the external TCAM itself.
  • the error statistics register in the external TCAM is used to store the count of the above errors.
  • MDIO Management Data Input and Output
  • This bus is defined by the IEEE through several provisions of the Ethernet standard IEEE 802.3.
  • MDIO is a simple two-wire serial interface that connects management devices (such as MAC controllers, microprocessors) to management-capable transceivers (such as multi-port Gigabit Ethernet transceivers or 10GbE XAUI transceivers) , thereby controlling the transceiver and collecting status information from the transceiver.
  • the information that can be collected includes link status, transmission speed and selection, power down, low power sleep state, TX/RX mode selection, auto-negotiation control, loopback mode control, and the like.
  • transceiver vendors can add more information gathering capabilities. Taking the Netlogic series TCAM widely used in the industry as an example, the Netlogic TCAM chip has some error status and error count of the PCS layer. Errors such as CRC can be detected in the Common Status Register of the NL11K chip, and there is a CRC error count in the RX PCS Counter register. These registers can be accessed through the out-of-band MDIO interface.
  • Step S602 determining whether the Interlaken link running status, and/or the running status information of the external TCAM itself is faulty;
  • a global fault flag is set to determine whether the Interlaken link operating status, and/or the external TCAM's own operating status information has failed.
  • the Interlaken link and the external TCAM are perceived to be faulty by determining whether the current global fault flag is set.
  • the global fault flag has two states: when set to 1, it indicates a fault; when set to 0, it indicates that no fault has occurred.
  • a software thread is a scheduled task that runs on the CPU.
  • the TCAM internal error status register and error statistics register are scanned by turning on the software thread.
  • a global external TCAM fault flag is set and the upper layer and the administrator are notified.
  • the control layer and the forwarding layer take corresponding actions to enter the backup state, that is, activate the internal TCAM working mode.
  • the administrator knows that there is a problem with the external TCAM, he or she can choose to take appropriate actions, such as replacing the external TCAM or maintaining the backup mode of the internal TCAM work.
  • step S604 If the global failure flag is set to 0, the process proceeds to step S604; if the global failure flag is set to 1, the process proceeds to step S606.
  • step S604 the TCAM entry for the message lookup table is written into the external TCAM, and the process ends.
  • the CPU converts the original data of the service packet delivered by the upper layer service (such as an ACL) into a TCAM entry for writing the TCAM hardware for the message lookup table.
  • the global fault flag is set to 0, it indicates that the Interlaken link and the external TCAM are not faulty, so there is no need to switch to the internal TCAM for table lookup operation. Therefore, the TCAM entry for the message lookup table is written to the external TCAM.
  • the microcode engine extracts relevant information from the service message to form a KEY (key value), and sends a search command to the external TCAM through the TCAM controller of the NP, and processes the message according to the feedback search result.
  • Step S606 determining whether the upper layer service is a key service
  • the services carried in the TCAM are classified and corresponding to the critical services. After the TCAM entries for the message lookup table are written to the external TCAM, the CPU control plane writes them to the internal TCAM as a backup.
  • a critical service is a service that is decisive for forwarding, such as protocol protection. If ARP and OSPF packets cannot be sent to the CPU for processing, the protocol fails to run and the forwarding service is affected. Non-critical services, such as QOS. Flow statistics, flow mirroring, etc., do not affect the forwarding service even if they are not valid.
  • step 608 If the upper layer service is a key business, the process proceeds to step 608; if it is not a key service, the process is terminated.
  • Step S608 writing a TCAM entry for the message lookup table into the interior of the network processor NP TCAM;
  • the external TCAM bearer upper layer service does not apply to the external TCAM for packet lookup.
  • the CPU converts the original data of the service packet delivered by the key service (such as the ACL) delivered by the upper layer into the TCAM entry for writing the TCAM hardware for the message lookup table.
  • the internal TCAM of the NP has no fault.
  • the TCAM entry for the message lookup table is written into the internal TCAM, and the KEY key value is checked, and the search command is sent to the internal TCAM through the NP TCAM controller, according to the feedback.
  • the search results process the message.
  • FIG. 9 is a flow chart of a TCAM lookup table method for a tri-state content addressable memory applied to a forwarding plane, in accordance with an embodiment of the present invention. As shown in FIG. 9, the process may include the following steps:
  • Step S700 determining whether the Interlaken link running status, and/or the running status information of the external TCAM itself is faulty;
  • Step S700 can refer to step S602 shown in FIG. 8 , and details are not described herein.
  • step S702 If the global failure flag is set to 0, the process proceeds to step S702; if the global failure flag is set to 1, the process proceeds to step S704.
  • Step S702 running microcode version A, ending the current process
  • the NP microcode engine runs version A microcode, and sends the lookup table key value to the external TCAM for searching.
  • the microcode performs related business operations according to the search result of finding the external TCAM feedback.
  • Step S704 running microcode version B
  • the global fault flag When the global fault flag is set to 1, it indicates that the Interlaken link is operating, and/or the external TCAM itself is faulty.
  • the external TCAM is not applicable to the message lookup table. At this time, it switches to the NP internal TCAM for table lookup operation. It is normal to use the external TCAM to perform table lookup. Only when the software scan thread scans the link or the external TCAM fails, set the fault global flag and switch to the internal TCAM for table lookup.
  • the TCAM entry for the packet lookup table has been previously written to the internal TCAM for backup, and optionally, it is used to carry the critical service for the key service message.
  • the TCAM entry for the lookup table was written to the internal TCAM for backup.
  • the control plane performs microcode dynamic loading and switches the microcode version.
  • the microcode engine runs version B microcode, and sends the lookup table key value to the internal TCAM for searching.
  • the microcode performs related business operations according to the search result of finding the internal TCAM feedback.
  • microcode version A and microcode version B in the microcode engine may be a set of microcode versions or different microcode versions.
  • the present embodiment provides a method for reading the TCAM internal error status register and the error statistics register through the external TCAM MDIO out-of-band interface.
  • NP and external TCAM link status and TCAM chip issues; the control plane of the CPU writes the internal TCAM to the critical TCAM service after writing the external TCAM; when the thread senses the fault, it switches the microcode version, and works internally.
  • the backup mode in which TCAM is in effect the key services are still normal, and services are not interrupted. Only non-critical services such as QoS, traffic rate limit, and flow statistics are invalid.
  • the TCAM key service still works normally due to switching to the internal TCAM working mode; in addition, the user is notified that there is a problem with the external TCAM, and the administrator can selectively perform some operations.
  • the internal TCAM is much smaller than the external TCAM.
  • an external TCAM In the current pursuit of large-capacity indicators and high-bandwidth line-rate forwarding performance, it is common practice to select an external TCAM to store services such as ACLs, and internal TCAMs are usually not used.
  • the internal TCAM space is effectively utilized for backup of TCAM entries for key service message lookup, and the thread scanning external TCAM state is enabled.
  • the microcode version can be switched. Work mode switching can be performed to ensure that key business of TCAM is still running normally.
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
  • the device/function module/functional unit in the above embodiment can be implemented by using a general-purpose computing device. Now, they can be concentrated on a single computing device or distributed over a network of multiple computing devices.
  • the method of checking the packet by using the internal TCAM of the network chip solves the problem that the link between the external TCAM and the network chip is faulty or The external TCAM itself fails, which affects the problem of the external TCAM's look-up function, effectively reducing the impact of link or external TCAM failure on traffic forwarding.

Abstract

A ternary content addressable memory (TCAM) table search method and device. The method comprises: determining whether a link between a network chip and an external TCAM of the network chip is faulty or whether the external TCAM is faulty; and when the link or the external TCAM is faulty, performing table search on packets by means of an internal TCAM of the network chip.

Description

一种三态内容可寻址存储器TCAM查表方法及装置Three-state content addressable memory TCAM table lookup method and device 技术领域Technical field
本文涉及通信领域,尤其涉及一种三态内容可寻址存储器TCAM查表方法及装置。This document relates to the field of communications, and in particular, to a TCAM lookup table method and apparatus for three-state content addressable memory.
背景技术Background technique
现今网络发展速度惊人,网络流量的增长及新业务的出现,需要网络设备具有线速和灵活的处理能力。相关技术的网络芯片包括专用集成电路(Application Specific Integrated Circuit,简称为ASIC)和网络处理器(Network Processor,简称为NP)两大类。网络处理器凭借其高速处理及灵活的可编程性,已成为当今网络中数据处理的有效解决方案。网络处理器中有多种不同的存储器,如静态随机存储器(Static Random Access Memory,简称为SRAM)、三态内容可寻址存储器(Ternary Content Addressable Memory,简称为TCAM)、同步动态随机存储器(Synchronous Dynamic Random Access Memory,简称为SDRAM等,这些存储器存放着各种业务表项,如端口表、MAC表、路由表等。Today's network development is amazing, network traffic growth and the emergence of new services require network equipment to have wire-speed and flexible processing capabilities. A related art network chip includes an application specific integrated circuit (ASIC) and a network processor (NP). With its high-speed processing and flexible programmability, network processors have become an effective solution for data processing in today's networks. There are many different memories in the network processor, such as Static Random Access Memory (SRAM), Ternary Content Addressable Memory (TCAM), Synchronous Dynamic Random Access Memory (Synchronous). Dynamic Random Access Memory (SDRAM, etc.) stores various service items such as port tables, MAC tables, and routing tables.
三态内容可寻址存储器主要用于快速查找访问控制列表(Access Control List,简称为ACL)、路由等表项。TCAM的主要特点是快速并行查找,在网络处理器上的应用通常是,微码从报文抽取相关信息组成一个键值(KEY),通过NP的TCAM控制器向TCAM发送查找命令,根据结果处理报文。The three-state content addressable memory is mainly used to quickly find an access control list (Access Control List, ACL for short) and a route. The main feature of TCAM is fast parallel search. The application on the network processor is usually that the microcode composes a key value (KEY) from the message extraction information, and sends a search command to the TCAM through the NP TCAM controller, and processes the result according to the result. Message.
TCAM通过通道即物理总线与网络芯片互联,在总线上传输数据和业务信息。相对于网络芯片的内部TCAM来讲,与网络芯片通过总线互联的TCAM则通常称之为外部TCAM。网络芯片与外部TCAM之间的物理总线由多个链路(lane)组成,设备运行过程中,一些lane老化或者总线的链路质量不良,在TCAM写入业务表项时,会出现循环冗余检验(Cyclic Redundancy Check,简称为CRC)或者成帧(Framing)等错误。另外外部TCAM长时间运行会出现老化等故障信息。一旦链路出现故障或外部TCAM 本身出现故障,就会严重影响外部TCAM的查表功能,进而影响TCAM上承载的业务。The TCAM interconnects with the network chip through a channel, the physical bus, and transmits data and service information on the bus. Compared with the internal TCAM of the network chip, the TCAM interconnected with the network chip through the bus is usually called an external TCAM. The physical bus between the network chip and the external TCAM is composed of multiple links. During the operation of the device, some lanes are aged or the link quality of the bus is poor. When the TCAM writes service entries, cyclic redundancy occurs. Errors such as Cyclic Redundancy Check (CRC) or Framing. In addition, when the external TCAM is operated for a long time, fault information such as aging may occur. Once the link fails or an external TCAM If the fault occurs in itself, it will seriously affect the look-up function of the external TCAM, which in turn affects the services carried on the TCAM.
针对相关技术中外部TCAM与网络芯片之间的链路出现故障或外部TCAM本身出现故障,从而影响外部TCAM的查表功能的问题,相关技术尚未提出有效的解决方案。In view of the problem that the link between the external TCAM and the network chip fails in the related art or the external TCAM itself fails, thereby affecting the look-up function of the external TCAM, the related technology has not proposed an effective solution.
发明内容Summary of the invention
本文提供了一种三态内容可寻址存储器TCAM查表方法及装置,以解决相关技术中存在的外部TCAM与网络芯片之间的链路出现故障或外部TCAM本身出现故障,从而影响外部TCAM的查表功能的问题。The present invention provides a TCAM table lookup method and apparatus for three-state content addressable memory to solve the problem that the link between the external TCAM and the network chip in the related art is faulty or the external TCAM itself is faulty, thereby affecting the external TCAM. The problem of the lookup function.
一种三态内容可寻址存储器TCAM查表方法,包括:判断网络芯片与所述网络芯片的外部TCAM之间链路或者外部TCAM是否出现故障;在所述链路或者所述外部TCAM出现故障的情况下,通过所述网络芯片的内部TCAM对报文进行查表。A three-state content addressable memory TCAM lookup method includes: determining whether a link between a network chip and an external TCAM of the network chip or an external TCAM is faulty; failure of the link or the external TCAM In the case, the message is checked by the internal TCAM of the network chip.
可选地,所述判断网络芯片与所述网络芯片的外部TCAM之间链路或者外部TCAM是否出现故障包括:获取故障计数;判断所述故障计数是否达到预设阈值;在所述故障计数达到预设阈值的情况下,确定所述链路或者所述外部TCAM出现故障。Optionally, determining whether the link between the network chip and the external TCAM of the network chip or the external TCAM is faulty includes: acquiring a fault count; determining whether the fault count reaches a preset threshold; In the case of a preset threshold, it is determined that the link or the external TCAM has failed.
可选地,所述获取故障计数包括:通过管理数据输入输出MDIO接口,读取所述外部TCAM中的错误统计寄存器中的所述故障计数。Optionally, the acquiring the fault count comprises: reading the fault count in the error statistics register in the external TCAM by managing the data input and output MDIO interface.
可选地,在通过所述网络芯片的内部TCAM对报文进行查表之前,所述方法还包括:将用于报文查表的TCAM条目写入所述内部TCAM。Optionally, before the packet is checked by the internal TCAM of the network chip, the method further includes: writing a TCAM entry for the message lookup table to the internal TCAM.
可选地,将用于报文查表的TCAM条目写入所述内部TCAM包括:判断所述TCAM条目对应的业务是否为关键业务,其中,所述关键业务包括与报文转发有关的业务;在所述业务是关键业务的情况下,将与所述业务对应的TCAM条目写入所述内部TCAM。Optionally, the writing of the TCAM entry for the packet lookup table to the internal TCAM includes: determining whether the service corresponding to the TCAM entry is a critical service, where the key service includes a service related to packet forwarding; In the case where the service is a critical service, a TCAM entry corresponding to the service is written to the internal TCAM.
可选地,所述网络芯片包括网络处理器NP、所述链路包括NP与CPU之间的Interlaken链路;或者所述网络芯片包括专用集成电路ASIC,所述链 路包括外部总线PCI-Express。Optionally, the network chip comprises a network processor NP, the link comprises an Interlaken link between the NP and the CPU; or the network chip comprises an application specific integrated circuit ASIC, the chain The road includes the external bus PCI-Express.
一种三态内容可寻址存储器TCAM查表装置,包括:判断模块,设置为:判断网络芯片与所述网络芯片的外部TCAM之间链路或者外部TCAM是否出现故障;查表模块,设置为:在所述链路或者所述外部TCAM出现故障的情况下,通过所述网络芯片的内部TCAM对报文进行查表。A three-state content addressable memory TCAM look-up table device, comprising: a determining module, configured to: determine whether a link between a network chip and an external TCAM of the network chip or an external TCAM is faulty; : In case the link or the external TCAM fails, the message is checked by the internal TCAM of the network chip.
可选地,判断模块包括:获取单元,设置为:获取故障计数;第一判断单元,设置为:判断所述故障计数是否达到预设阈值;确定单元,设置为:在所述故障计数达到预设阈值的情况下,确定所述链路或者所述外部TCAM出现故障。Optionally, the determining module includes: an obtaining unit, configured to: acquire a fault count; the first determining unit is configured to: determine whether the fault count reaches a preset threshold; and the determining unit is configured to: In the case where a threshold is set, it is determined that the link or the external TCAM has failed.
可选地,获取单元还设置为:通过管理数据输入输出MDIO接口,读取所述外部TCAM中的错误统计寄存器中的所述故障计数。Optionally, the obtaining unit is further configured to: read the fault count in the error statistics register in the external TCAM by managing the data input/output MDIO interface.
可选地,所述三态内容可寻址存储器TCAM查表装置还包括:写入模块,设置为:将用于报文查表的TCAM条目写入所述内部TCAM。Optionally, the three-state content addressable memory TCAM look-up table device further includes: a write module, configured to: write a TCAM entry for the message lookup table to the internal TCAM.
可选地,写入模块包括:第二判断单元,设置为:判断所述TCAM条目对应的业务是否为关键业务,其中,所述关键业务包括与报文转发有关的业务;写入单元,设置为:在所述业务是关键业务的情况下,将与所述业务对应的TCAM条目写入所述内部TCAM。Optionally, the writing module includes: a second determining unit, configured to: determine whether the service corresponding to the TCAM entry is a key service, where the key service includes a service related to packet forwarding; To: write the TCAM entry corresponding to the service to the internal TCAM if the service is a critical service.
一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述任一项的方法。A computer readable storage medium storing computer executable instructions for performing the method of any of the above.
本文采用判断网络芯片与所述网络芯片的外部TCAM之间链路或者外部TCAM是否出现故障;当所述链路或者外部TCAM出现故障的情况下,通过所述网络芯片的内部TCAM对报文进行查表,解决了相关技术中存在的外部TCAM与网络芯片之间的链路出现故障或外部TCAM本身出现故障,从而影响外部TCAM的查表功能的问题,有效地减少了链路或外部TCAM故障对业务流量转发的影响。In this paper, it is determined whether the link between the network chip and the external TCAM of the network chip or the external TCAM is faulty; when the link or the external TCAM fails, the message is performed by the internal TCAM of the network chip. Checking the table solves the problem that the link between the external TCAM and the network chip in the related technology is faulty or the external TCAM itself is faulty, thereby affecting the problem of the external TCAM's look-up table function, effectively reducing the link or external TCAM failure. Impact on traffic forwarding.
附图概述 BRIEF abstract
图1是根据本发明实施例的一种三态内容可寻址存储器TCAM查表方法的流程图;1 is a flow chart of a TCAM lookup method for a tri-state content addressable memory according to an embodiment of the present invention;
图2是根据本发明实施例的另一种三态内容可寻址存储器TCAM查表方法的流程图;2 is a flow chart of another method for TCAM lookup of a tri-state content addressable memory according to an embodiment of the present invention;
图3是根据本发明实施例的一种三态内容可寻址存储器TCAM查表方法装置的结构框图;3 is a block diagram showing the structure of a TCAM table lookup method device for a three-state content addressable memory according to an embodiment of the present invention;
图4是根据本发明实施例的一种三态内容可寻址存储器TCAM查表方法装置中判断模块的结构框图;4 is a structural block diagram of a judging module in a TCAM table lookup method of a three-state content addressable memory according to an embodiment of the present invention;
图5是根据本发明实施例的另一种三态内容可寻址存储器TCAM查表方法装置的结构框图;FIG. 5 is a structural block diagram of another apparatus for processing a TCAM table of a three-state content addressable memory according to an embodiment of the present invention; FIG.
图6是根据本发明实施例的另一种三态内容可寻址存储器TCAM查表方法装置中写入模块的结构框图;6 is a structural block diagram of a write module in another T-state content addressable memory TCAM lookup table method device according to an embodiment of the present invention;
图7是根据本发明实施例的一种用于三态内容可寻址存储器TCAM查表的CPU、NP、TCAM连接关系示意图;7 is a schematic diagram of a CPU, NP, and TCAM connection relationship for a T-state look-up memory TCAM look-up table according to an embodiment of the present invention;
图8是根据本发明实施例的一种应用于CPU控制面写入用于报文查表的TCAM条目的三态内容可寻址存储器TCAM查表方法的的流程图;8 is a flowchart of a three-state content addressable memory TCAM lookup table method applied to a CPU control plane to write a TCAM entry for a message lookup table according to an embodiment of the present invention;
图9是根据本发明实施例的一种应用于转发面的三态内容可寻址存储器TCAM查表方法的流程图。9 is a flow chart of a TCAM lookup table method for a tri-state content addressable memory applied to a forwarding plane, in accordance with an embodiment of the present invention.
本发明的实施方式Embodiments of the invention
下文中将参考附图对本发明的实施方式进行说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。Embodiments of the present invention will be described hereinafter with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
在本实施例中提供了一种三态内容可寻址存储器TCAM查表方法,图1是根据本发明实施例的一种三态内容可寻址存储器TCAM查表方法的流程图,如图1所示,该流程可以包括如下步骤:In this embodiment, a T-state content addressable memory TCAM lookup table method is provided. FIG. 1 is a flowchart of a T-state content addressable memory TCAM table lookup method according to an embodiment of the present invention, as shown in FIG. As shown, the process can include the following steps:
步骤S100,判断网络芯片与所述网络芯片的外部TCAM之间链路或者外部TCAM是否出现故障; Step S100: determining whether a link between the network chip and an external TCAM of the network chip or an external TCAM is faulty;
步骤S102,在所述链路或者所述外部TCAM出现故障的情况下,通过所述网络芯片的内部TCAM对报文进行查表。Step S102: In the case that the link or the external TCAM is faulty, the packet is checked by the internal TCAM of the network chip.
CPU通过网络芯片的TCAM适配接口访问外部TCAM,网络芯片和外部TCAM之间通过物理总线互联;另外通用NP内部也会集成有TCAM,成为内部TCAM。通常内部TCAM相比外部TCAM小很多,在相关技术追求大容量指标、高带宽线速转发性能情况下,常用做法是选择外部TCAM存放ACL等业务,内部TCAM通常不使用。在链路或者外部TCAM出现故障的情况下,网络芯片的CPU将通过网络芯片的内部TCAM对报文进行查表。The CPU accesses the external TCAM through the TCAM adapter interface of the network chip, and the network chip and the external TCAM are interconnected through the physical bus; in addition, the general NP also integrates the TCAM into the internal TCAM. Generally, the internal TCAM is much smaller than the external TCAM. In the case of the related technologies pursuing large-capacity indicators and high-speed line-speed forwarding performance, it is common practice to select an external TCAM to store services such as ACLs, and the internal TCAM is usually not used. In the event of a link or external TCAM failure, the CPU of the network chip will look up the message through the internal TCAM of the network chip.
通过上述步骤,采用当所述链路或者外部TCAM出现故障的情况下,通过所述网络芯片的内部TCAM对报文进行查表的方式,解决了相关技术中存在的外部TCAM与网络芯片之间的链路出现故障或外部TCAM本身出现故障,从而影响外部TCAM的查表功能的问题,有效地减少了链路或外部TCAM故障对业务流量转发的影响。Through the above steps, in the case that the link or the external TCAM is faulty, the internal TCAM of the network chip is used to check the message, and the external TCAM and the network chip existing in the related art are solved. The link fails or the external TCAM itself fails, which affects the problem of the external TCAM's look-up function, effectively reducing the impact of link or external TCAM failure on traffic forwarding.
在可选的实施方式中,判断网络芯片与所述网络芯片的外部TCAM之间链路或者外部TCAM是否出现故障可以包括:获取所述故障计数;判断所述故障计数是否达到预设阈值;在所述故障计数达到预设阈值的情况下,确定所述链路或者所述外部TCAM出现故障。与网络芯片互联的外部TCAM、链路偶尔出现故障,可能是比较常见的、对TCAM查表以及流量转发没有影响的瑕疵。因为TCAM查表对业务转发的重要性,也不可能也不应该过于频繁的切换内外部TCAM进行查找。只有外部TCAM与网络芯片之间的链路或网络芯片本身出现故障的次数达到一定的阈值时,即可认定链路或外部TCAM出现了真正的较大的故障,影响到了TCAM正常的查表功能,进而影响到了TCAM对业务的承载。通过本实施方式,更进一步地优化了切换内部TCAM进行查表的功能,有效地减少了链路或外部TCAM故障对TCAM查表功能以及业务转发的影响。In an optional implementation manner, determining whether the link between the network chip and the external TCAM of the network chip or the external TCAM is faulty may include: acquiring the fault count; determining whether the fault count reaches a preset threshold; When the fault count reaches a preset threshold, it is determined that the link or the external TCAM is faulty. Occasional failure of external TCAMs and links interconnected with network chips may be common, and has no impact on TCAM lookup and traffic forwarding. Because of the importance of TCAM lookup tables for service forwarding, it is also impossible and should not switch internal and external TCAMs too frequently for lookups. Only when the number of faults between the external TCAM and the network chip or the network chip itself reaches a certain threshold, it can be determined that the link or the external TCAM has a really large fault, which affects the normal lookup function of the TCAM. , which in turn affects the bearer of the TCAM to the service. Through the present embodiment, the function of switching the internal TCAM for table lookup is further optimized, and the impact of the link or external TCAM fault on the TCAM lookup function and service forwarding is effectively reduced.
可选地,获取所述故障计数包括:通过管理数据输入输出(Management Data Input/Output,简称为MDIO)接口,读取所述外部TCAM中的错误统计寄存器中的所述故障计数。网络芯片的CPU可以借助网络芯片的CPU接口,通过外部TCAM相应的MDIO地址,读取外部TCAM中的错误状态寄 存器寄存器和错误统计寄存器。链路和外部TCAM出现一次故障信息,错误状态寄存器会将相关的故障信息存储起来。相应地,错误统计寄存器会对故障出现的次数进行统计。Optionally, obtaining the fault count includes: reading, by using a Management Data Input/Output (MDIO) interface, the fault count in the error statistics register in the external TCAM. The CPU of the network chip can read the error status in the external TCAM by means of the CPU interface of the network chip and the corresponding MDIO address of the external TCAM. Register and error statistics registers. A fault message appears on the link and the external TCAM, and the error status register stores the associated fault information. Accordingly, the error statistics register counts the number of times the fault occurred.
以业界广泛使用的Netlogic系列TCAM为例,Netlogic TCAM芯片内有PCS层的一些错误状态和错误计数。NL11K芯片Common Status Register里可以探测到CRC等错误,RX PCS Counter寄存器里有CRC错误计数。这些寄存器可以通过带外的MDIO接口访问。通过启用软件线程,通过MDIO接口定时读取外部TCAM内部链路相关的错误状态寄存器和错误统计寄存器,借此感知网络芯片和外部TCAM间的链路状态和外部TCAM自身运行状态。借用MDIO接口的好处是MDIO信号线是带外资源,因此不占用网络芯片和外部TCAM之间的链路带宽资源。Taking the Netlogic series TCAM widely used in the industry as an example, the Netlogic TCAM chip has some error status and error count of the PCS layer. Errors such as CRC can be detected in the Common Status Register of the NL11K chip, and there is a CRC error count in the RX PCS Counter register. These registers can be accessed through the out-of-band MDIO interface. By enabling the software thread, the external TCAM internal link related error status register and error statistics register are periodically read through the MDIO interface, thereby sensing the link status between the network chip and the external TCAM and the external TCAM itself. The advantage of borrowing the MDIO interface is that the MDIO signal line is an out-of-band resource, so it does not occupy the link bandwidth resources between the network chip and the external TCAM.
在本实施例中还提供了一种三态内容可寻址存储器TCAM查表方法,图2是根据本发明实施例的另一种时间处理方法的流程图,如图2所示,该流程可以包括如下步骤:A method for processing a TCAM table of a three-state content addressable memory is also provided in the embodiment. FIG. 2 is a flow chart of another time processing method according to an embodiment of the present invention. As shown in FIG. 2, the process may be Including the following steps:
步骤S200,将用于报文查表的TCAM条目写入所述内部TCAM;Step S200, writing a TCAM entry for the message lookup table to the internal TCAM;
TCAM的主要特点是快速并行查找,在网络处理器上的应用通常是,微码从报文抽取相关信息组成一个KEY(键值),通过NP的TCAM控制器向TCAM发送查找命令,根据结果处理报文。在通过所述网络芯片的内部TCAM对报文进行查表之前,还包括将用于报文查表的TCAM条目写入所述内部TCAM。即网络芯片的控制面CPU,将上层业务(比如ACL)下发原始业务报文的数据转换成写入到TCAM硬件的、用于报文查表的TCAM条目。The main feature of TCAM is fast parallel search. The application on the network processor is usually that the microcode composes a KEY (key value) from the message extraction information, and sends a search command to the TCAM through the NP TCAM controller, and processes the result according to the result. Message. Before the packet is checked by the internal TCAM of the network chip, the TCAM entry for the message lookup table is further written into the internal TCAM. That is, the control plane CPU of the network chip converts the data of the original service message sent by the upper layer service (such as ACL) into the TCAM entry for the message lookup table written to the TCAM hardware.
步骤S202、步骤S204分别参考图1所示步骤S100、步骤S102,在此不赘述。需要进行说明的是,在步骤202之前即在通过所述网络芯片的内部TCAM对报文进行查表之前,本实施例提供的一种三态内容可寻址存储器TCAM查表方法还包括步骤S200,即将用于报文查表的TCAM条目写入所述内部TCAM。将用于报文查表的TCAM条目写入所述内部TCAM不局限于在通过所述网络芯片的内部TCAM对报文进行查表之前,也可能包括在判断网络芯片与所述网络芯片的外部TCAM之间链路或者外部TCAM是否出 现故障之前;也可能包括在判断网络芯片与所述网络芯片的外部TCAM之间链路或者外部TCAM是否出现故障之后,在通过所述网络芯片的内部TCAM对报文进行查表之前。网络芯片的内部TCAM存储空间通常不是很大,可以在判断网络芯片与所述网络芯片的外部TCAM之间链路或者外部TCAM是否出现故障之后,在通过所述网络芯片的内部TCAM对报文进行查表之前。Steps S202 and S204 refer to step S100 and step S102 shown in FIG. 1 respectively, and details are not described herein. It is to be noted that, before the step 202, before the packet is checked by the internal TCAM of the network chip, the T-state content addressable memory TCAM lookup method provided by this embodiment further includes step S200. The TCAM entry to be used for the message lookup table is written to the internal TCAM. Writing the TCAM entry for the message lookup table to the internal TCAM is not limited to being performed before the packet is checked by the internal TCAM of the network chip, and may also be included in the judgment network chip and the external part of the network chip. Whether the link between the TCAMs or the external TCAM is out Before the fault occurs; it may also include before determining whether the link between the network chip and the external TCAM of the network chip or the external TCAM is faulty, before the packet is checked by the internal TCAM of the network chip. The internal TCAM storage space of the network chip is usually not very large, and after determining whether the link between the network chip and the external TCAM of the network chip or the external TCAM is faulty, the message is performed on the internal TCAM through the network chip. Before checking the table.
通过上述步骤,解决了相关技术中存在的外部TCAM与网络芯片之间的链路或外部TCAM出现故障时,影响TCAM查表功能的问题,进而达到了实现在链路或外部TCAM出现故障的情况下,快速切换至网络芯片内部TCAM进行查表的有益效果。Through the above steps, the problem that the TCAM look-up table function is affected when the link between the external TCAM and the network chip or the external TCAM is broken in the related art is solved, thereby achieving the failure of the link or the external TCAM. Next, quickly switch to the internal chip TCAM of the network chip for the benefit of table lookup.
在可选的实施方式中,将用于报文查表的TCAM条目写入所述内部TCAM还可以包括:判断所述TCAM条目对应的业务是否为关键业务,其中,所述关键业务包括与报文转发有关的业务;在所述业务是关键业务的情况下,将与所述业务对应的TCAM条目写入所述内部TCAM。In an optional implementation, the writing of the TCAM entry for the message lookup table to the internal TCAM may further include: determining whether the service corresponding to the TCAM entry is a critical service, where the key service includes The text forwards the related service; in the case where the service is a critical service, the TCAM entry corresponding to the service is written to the internal TCAM.
鉴于一般的网络芯片内部TCAM存储空间较小,不可能像外部TCAM一样存储所有的用于转发业务报文查表的TCAM条目。对外部TCAM中承载的业务进行分类,对应关键性的业务,网络芯片的控制面CPU在将用于报文查表的TCAM条目写入外部TCAM后,再写入内部TCAM作为备份。关键性业务是指对转发有决定性作用的业务,比如协议保护,如果不能把地址解析协议(Address Resolution Protocol,简称为ARP)及开放式最短路径优先(Open Shortest Path First,简称为OSPF)等报文上送CPU处理,会导致协议运行失败,转发业务受到影响;非关键性业务,比如服务质量(Quality of Service,简称为Qos)、流统计、流镜像等,即使不生效不会影响转发业务。当外部TCAM与网络芯片之间的链路或外部TCAM出现故障时,快速切换至网络芯片的内部TCAM进行查表。此时工作在内部TCAM生效的备份模式,关键业务仍然正常,业务不会中断,只是Qos、流限速、流统计等非关键业务失效,并且合理地利用了内部TCAM的存储空间。In view of the small internal TCAM storage space of a general network chip, it is impossible to store all TCAM entries for forwarding service message lookup tables like an external TCAM. The services carried in the external TCAM are classified, corresponding to the critical service. The control plane CPU of the network chip writes the TCAM entry for the packet lookup table to the external TCAM, and then writes the internal TCAM as a backup. A key service is a service that is decisive for forwarding, such as protocol protection. If the address resolution protocol (ARP) and Open Shortest Path First (OSPF) cannot be reported, If the protocol is not processed, the forwarding service will be affected. . When the link between the external TCAM and the network chip or the external TCAM fails, the internal TCAM of the network chip is quickly switched to perform a table lookup. At this time, the backup mode in which the internal TCAM is in effect, the key services are still normal, the service is not interrupted, but the non-critical services such as QoS, flow rate limit, and flow statistics are invalid, and the internal TCAM storage space is reasonably utilized.
通过上述步骤,采用判断所述TCAM条目对应的业务是否为关键业务;当所述业务是关键业务的情况下,将所述TCAM条目写入所述内部TCAM的技术手段,不仅实现在链路或外部TCAM出现故障时,快速切换内部 TCAM进行查表,保证了关键业务的转发不受影响,有效地合理地利用了内部TCAM的存储空间。Through the above steps, it is determined whether the service corresponding to the TCAM entry is a critical service; when the service is a critical service, the technical means for writing the TCAM entry into the internal TCAM is not only implemented on the link or Quickly switch internals when an external TCAM fails The TCAM performs a table lookup to ensure that the forwarding of key services is not affected, and the internal TCAM storage space is effectively utilized reasonably.
当链路或外部TCAM出现故障时,由于切换到网络芯片内部TCAM工作模式,TCAM承载的关键业务依然正常工作。在获取故障信息时,可以通知运营商或用户外部TCAM或链路出现了问题,管理员可以选择性进行一些操作,例如可以替换外部TCAM,或者维持内部TCAM工作的模式。When the link or external TCAM fails, the key services of the TCAM are still working normally due to switching to the internal TCAM working mode of the network chip. When obtaining the fault information, the operator or the user can be notified of an external TCAM or link problem, and the administrator can selectively perform some operations, such as replacing the external TCAM or maintaining the mode of the internal TCAM operation.
可选的实施方式中,所述网络芯片包括网络处理器NP、所述链路包括NP与CPU之间的Interlaken链路;或者所述网络芯片包括专用集成电路ASIC,所述链路包括外部总线PCI-Express。还包括其他网络芯片及其与外部TCAM之间的总线链路。In an optional implementation, the network chip includes a network processor NP, the link includes an Interlaken link between the NP and the CPU; or the network chip includes an application specific integrated circuit ASIC, and the link includes an external bus. PCI-Express. It also includes other network chips and their bus links to the external TCAM.
在本实施例中还提供了一种三态内容可寻址存储器TCAM查表装置,该装置用于实现上述实施例及可选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, a three-state content addressable memory TCAM look-up table device is also provided, which is used to implement the above-mentioned embodiments and optional embodiments, and has not been described again. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图3是根据本发明实施例的一种三态内容可寻址存储器TCAM查表装置的结构框图,如图3所示,该装置包括判断模块30和查表模块32,下面对该装置进行说明。3 is a structural block diagram of a TCAM lookup device for a tri-state content addressable memory according to an embodiment of the present invention. As shown in FIG. 3, the device includes a determination module 30 and a look-up table module 32. Description.
判断模块30,设置为:判断网络芯片与所述网络芯片的外部TCAM之间链路或者外部TCAM是否出现故障;查表模块32,连接至判断模块30,设置为:当所述链路或者外部TCAM出现故障的情况下,通过所述网络芯片的内部TCAM对报文进行查表。The determining module 30 is configured to: determine whether a link between the network chip and the external TCAM of the network chip or an external TCAM is faulty; the look-up table module 32 is connected to the determining module 30, and is configured to: when the link or the external In the case of a failure of the TCAM, the message is checked by the internal TCAM of the network chip.
在可选的实施方式中,如图4所示,判断模块30还可以包括:获取单元301,设置为:获取所述故障计数;第一判断单元302,连接至获取单元301,设置为:判断所述故障计数是否达到阈值;确定单元303,连接至第一判断单元302,设置为:在所述计数达到阈值的情况下,确定所述链路或所述外部TCAM出现故障。In an optional implementation manner, as shown in FIG. 4, the determining module 30 may further include: an obtaining unit 301, configured to: acquire the fault count; the first determining unit 302 is connected to the obtaining unit 301, and is configured to: determine Whether the fault count reaches the threshold; the determining unit 303 is connected to the first determining unit 302, and is configured to determine that the link or the external TCAM is faulty if the counting reaches a threshold.
可选地,获取单元301还可以设置为:通过管理数据输入输出MDIO接 口,读取所述外部TCAM中的错误统计寄存器中的所述故障计数。Optionally, the obtaining unit 301 is further configured to: input and output MDIO through management data. And reading the fault count in the error statistics register in the external TCAM.
通过本实施例提供的装置,采用判断网络芯片与所述网络芯片的外部TCAM之间链路或者外部TCAM是否出现故障;当所述链路或者外部TCAM出现故障的情况下,通过所述网络芯片的内部TCAM对报文进行查表,有效地解决了相关技术中存在的外部TCAM与网络芯片之间的链路出现故障或外部TCAM本身出现故障,就会严重影响外部TCAM的查表功能,进而影响TCAM上承载的业务的问题,实现了在链路和外部TCAM均正常工作的情况下,通过外部TCAM进行查表;在链路或外部TCAM出现故障的情况下,快速切换至网络芯片内部TCAM进行查表,保证TCAM查表功能正常运行,有效地减少了链路或外部TCAM故障对业务流量转发的影响。Through the apparatus provided in this embodiment, it is determined whether a link between the network chip and an external TCAM of the network chip or an external TCAM is faulty; when the link or the external TCAM fails, the network chip is adopted. The internal TCAM looks up the message and effectively solves the link failure between the external TCAM and the network chip in the related art or the failure of the external TCAM itself, which seriously affects the external TCAM lookup function, and further Affecting the problem of services carried on the TCAM, the table is checked by the external TCAM when the link and the external TCAM are working normally; in the case of a link or external TCAM failure, the TCAM is quickly switched to the internal chip of the network chip. Check the table to ensure the normal operation of the TCAM look-up table function, effectively reducing the impact of link or external TCAM failure on service traffic forwarding.
图5是根据本发明实施例的另一种三态内容可寻址存储器TCAM查表装置的结构框图,如图5所示,该装置除包括图3所示的判断模块30、查表模块32外,还包括写入模块40,下面对该装置进行说明。FIG. 5 is a structural block diagram of another T-state content-addressable memory TCAM look-up table device according to an embodiment of the present invention. As shown in FIG. 5, the device includes the determination module 30 and the look-up table module 32 shown in FIG. In addition, a write module 40 is included, which is described below.
写入模块40,连接至判断模块42,设置为:在通过所述网络芯片的内部TCAM对报文进行查表之前,将用于报文查表的TCAM条目写入所述内部TCAM;判断模块42、查表模块44分别参考图3所示的判断模块30、查表模块32,在此不赘述。The writing module 40 is connected to the determining module 42 and configured to: write a TCAM entry for the message lookup table into the internal TCAM before the table is checked by the internal TCAM of the network chip; the determining module 42. The look-up table module 44 refers to the determining module 30 and the look-up table module 32 shown in FIG. 3, respectively, and details are not described herein.
在可选的实施方式中,如图6所示,写入模块40还可以包括:第二判断单元401,设置为:判断所述TCAM条目对应的业务是否为关键业务;写入单元402,连接至第二判断单元401,设置为:当所述业务是关键业务的情况下,将所述TCAM条目写入所述内部TCAM。其中,所述关键业务包括与报文转发有关的业务。In an optional embodiment, as shown in FIG. 6, the writing module 40 may further include: a second determining unit 401, configured to: determine whether the service corresponding to the TCAM entry is a key service; and write the unit 402, connect To the second judging unit 401, it is set to write the TCAM entry to the internal TCAM when the service is a critical service. The key services include services related to packet forwarding.
可选地,以上提及网络芯片及其与外部TCAM之间的链路可以是NP网络处理器、所述链路是NP与CPU之间的Interlaken链路;也可以是专用集成电路ASIC,所述链路是新一代总线接口PCI-Express。当前市面流行的网络芯片及其与外部TCAM的链路不仅是NP网络处理器、Interlaken链路;专用集成电路ASIC、新一代总线接口PCI-Express,还包括其他网络芯片及其与外部TCAM之间的总线链路。Optionally, the above mentioned network chip and its link with the external TCAM may be an NP network processor, the link is an Interlaken link between the NP and the CPU; or may be an application specific integrated circuit ASIC. The link is a new generation bus interface PCI-Express. The currently popular network chips and their links to external TCAMs are not only NP network processors, Interlaken links; application-specific integrated circuit ASICs, next-generation bus interfaces PCI-Express, but also other network chips and their relationship with external TCAMs. Bus link.
通过本实施例提供的装置,采用判断所述TCAM条目对应的业务是否为 关键业务;当所述业务是关键业务的情况下,将所述TCAM条目写入所述内部TCAM的技术手段,不仅实现在链路或外部TCAM出现故障时,快速切换内部TCAM进行查表,保证了关键业务的转发不受影响,有效地合理地利用了内部TCAM的存储空间。The apparatus provided in this embodiment is used to determine whether the service corresponding to the TCAM entry is Key service; when the service is a critical service, the technical means of writing the TCAM entry into the internal TCAM not only realizes fast switching of the internal TCAM for checking the table when the link or the external TCAM fails, ensuring The forwarding of key services is not affected, and the internal TCAM storage space is effectively utilized reasonably.
一种常用的网络处理器连接TCAM方式如图7。A commonly used network processor to connect to the TCAM is shown in Figure 7.
CPU通过NP的TCAM适配接口访问外部TCAM,NP和TCAM之间通过Interlaken总线互联,Interlaken物理总线由多个链路(lane)组成,另外通用NP内部也会集成有TCAM。在网络设备运行过程中,网络处理器微码通过查TCAM获取转发及策略信息,比如协议保护,对于协议报文需要通过TCAM匹配挑选出来,进行提高优先级并上送处理;比如服务质量Qos,用户配置策略对某种报文进行优先级提升处理;比如流统计、流限速等,需要按照对特定报文进行计数及限速处理。设备运行过程中,某个链路(lane)老化或者链路质量不良,TCAM写表会出现循环冗余检验CRC或者Framing(成帧)等错误,另外TCAM如果长年累月运行可能出现老化等TCAM内部错误一旦出现此类错误,TCAM上承载的业务会受到影响甚至导致上述业务失效。The CPU accesses the external TCAM through the TCAM adaptation interface of the NP. The NP and the TCAM are interconnected by the Interlaken bus. The Interlaken physical bus is composed of multiple links, and the TCAM is also integrated inside the general NP. During the operation of the network device, the network processor microcode obtains forwarding and policy information, such as protocol protection, by checking the TCAM. The protocol packets need to be selected through TCAM matching to improve the priority and send the processing; for example, the quality of service Qos. The user configuration policy performs priority-based processing on certain types of packets. For example, traffic statistics, traffic rate limit, and so on, you need to count and limit the rate of specific packets. During the operation of the device, a certain link (lane) is aging or the link quality is poor. The TCAM write table may have errors such as cyclic redundancy check CRC or Framing (framing). In addition, if the TCAM runs for many years, there may be internal errors such as aging. In the event of such an error, the services carried on the TCAM will be affected or even cause the above services to fail.
图7是根据本发明实施例的一种用于三态内容可寻址存储器TCAM查表的CPU、NP、TCAM连接关系示意图。下面结合图7对常用的三态内容可寻址存储器TCAM、中央处理器CPU、网络芯片之间的连接关系及其功能进行说明。7 is a schematic diagram of a CPU, NP, and TCAM connection relationship for a T-state look-up memory TCAM look-up table according to an embodiment of the present invention. The connection relationship between the commonly used three-state content addressable memory TCAM, the central processing unit CPU, and the network chip and its functions will be described below with reference to FIG.
中央处理器CPU 50,主要负责用于完成网络芯片例如网络处理器NP及外部TCAM配置;以及将上层业务(比如ACL)下发的业务报文原始数据转换为写入TCAM硬件的、用于报文查表的TCAM条目;运行用于扫描外部TCAM中的错误状态寄存和错误统计寄存器的软件线程,用于判断外部TCAM与NP之间的链路状态和外部TCAM的运行状态是否出现故障;在链路或外部TCAM出现故障时,切换NP微码版本的动态切换。The central processing unit CPU 50 is mainly responsible for completing the configuration of the network chip, such as the network processor NP and the external TCAM; and converting the original data of the service message delivered by the upper layer service (such as the ACL) into the TCAM hardware for reporting. a TCAM entry for the lookup table; a software thread running to scan the error status registration and error statistics registers in the external TCAM for determining whether the link state between the external TCAM and the NP and the operating state of the external TCAM are faulty; When the link or external TCAM fails, the dynamic switching of the NP microcode version is switched.
外部TCAM三态内容可寻址存储器52,与网络芯片54连接。外部TCAM 52中包含有用于存储链路或TCAM出现运行故障的错误状态寄存器、错误统计寄存器。 The external TCAM tri-state content addressable memory 52 is coupled to the network chip 54. The external TCAM 52 contains an error status register, an error statistics register for a memory link or TCAM operation failure.
网络芯片54,与中央处理器CPU 50连接。本实施例以NP网络处理器为例子进行说明。包含:The network chip 54 is connected to the central processing unit CPU 50. This embodiment is described by taking an NP network processor as an example. contain:
微码引擎541,它是NP核心器件,用于运行微码,进行所有网络业务。包括路由查找等业务;组装用于报文查表的KEY键值,送入TCAM,根据返回的TCAM查表结果,执行相应的操作|。NP可以使用一套微码版本,分别用于内部TCAM和外部TCAM业务查表,也可以预置两套微码。版本A微码将查表键值送入外部TCAM进行查找,微码取外部TCAM结果执行相关业务动作;版本B微码将查表键值送入内部TCAM进行查找,微码取内部TCAM结果执行相关业务动作。通常Interlaken物理链路状态良好,运行微码版本A;当软件线程扫描到NP和外部TCAM间存在链路问题时,切换微码版本,加载版本B。The microcode engine 541, which is an NP core device, is used to run microcode for all network services. Including routing lookup and other services; assembling the KEY key value for the message lookup table, sending it to the TCAM, and performing the corresponding operation according to the returned TCAM lookup table result. The NP can use a set of microcode versions for internal TCAM and external TCAM service lookups, as well as two sets of microcode. The version A microcode sends the table key value to the external TCAM for searching, and the microcode takes the external TCAM result to perform the relevant business action; the version B microcode sends the table key value to the internal TCAM for searching, and the microcode takes the internal TCAM result to execute. Related business actions. Usually, the Interlaken physical link is in good condition and runs the microcode version A. When the software thread scans to the link between the NP and the external TCAM, the microcode version is switched and the version B is loaded.
内部TCAM三态内容可寻址存储器542,用于在外部TCAM或其与网络芯片之间的链路出现故障时,写入用于报文查表的TCAM条目,及根据查表键值进行查表并反馈查表结果。The internal TCAM tri-state content addressable memory 542 is configured to write a TCAM entry for the message lookup table when the external TCAM or its link with the network chip fails, and check according to the table key value. Table and feedback to check the results.
TCAM接口543,NP与TCAM的适配接口,用于NP通过Interlaken与TCAM互联。TCAM interface 543, NP and TCAM adapter interface, used for NP interconnection with TCAM through Interlaken.
CPU接口544,用于CPU通过CPU接口访问NP内部所有资源,包括微码引擎、TCAM适配接口以及内部TCAM。The CPU interface 544 is used by the CPU to access all resources in the NP through the CPU interface, including a microcode engine, a TCAM adapter interface, and an internal TCAM.
管理数据输入输出接口MDIO 56,即通用NP和TCAM之间存在的MDIO接口,可以用于访问外部TCAM中的寄存器。The management data input/output interface MDIO 56, the MDIO interface existing between the general NP and the TCAM, can be used to access registers in the external TCAM.
此外,外部TCAM与网络芯片之间还有物理总线即Interlaken总线,用于连接外部TCAM与网络芯片的TCAM接口,使TCAM可以与网络芯片通信。In addition, there is a physical bus between the external TCAM and the network chip, that is, the Interlaken bus, which is used to connect the TCAM interface between the external TCAM and the network chip, so that the TCAM can communicate with the network chip.
图8是根据本发明实施例的一种应用于CPU控制面写入用于报文查表的TCAM条目的三态内容可寻址存储器TCAM查表方法的的流程图。如图8所示,该流程可以包括如下步骤:8 is a flow chart of a three-state content addressable memory TCAM lookup table method applied to a CPU control plane to write a TCAM entry for a message lookup table, in accordance with an embodiment of the present invention. As shown in FIG. 8, the process may include the following steps:
步骤S600,获取外部TCAM与网络处理器NP之间的Interlaken链路运行状态信息,和/或外部TCAM自身的运行状态信息; Step S600, acquiring Interlaken link running status information between the external TCAM and the network processor NP, and/or running status information of the external TCAM itself;
如图7所示,CPU可以借助NP的CPU接口,通过TCAM相应的MDIO地址,读取TCAM内部寄存器。TCAM初始化阶段都是通过MDIO接口配置TCAM内部相关寄存器。通过启用软件线程即运行在CPU的一个定时运行的任务,通过管理数据输入输出MDIO接口定时或不定时地读取外部TCAM内部链路及其外部TCAM自身相关运行状态的错误状态寄存器和错误统计寄存器,获取Interlaken链路运行状态信息,和外部TCAM自身的运行状态信息。外部TCAM中的错误状态寄存器用于存储Interlaken链路运行状态故障信息,和外部TCAM自身的运行状态故障信息。外部TCAM中的错误统计寄存器则用于存储上述错误的计数。利用MDIO接口的好处是MDIO信号线是带外资源,因此不占用NP和TCAM间的Interlaken带宽资源。As shown in Figure 7, the CPU can read the TCAM internal registers through the CPU interface of the NP through the corresponding MDIO address of the TCAM. In the TCAM initialization phase, the TCAM internal related registers are configured through the MDIO interface. By enabling the software thread to run a scheduled task running on the CPU, the error status register and error statistics register of the external TCAM internal link and its external TCAM itself are read by the management data input/output MDIO interface periodically or irregularly. Obtain the Interlaken link running status information and the running status information of the external TCAM itself. The error status register in the external TCAM is used to store the Interlaken link operating status fault information and the operating status fault information of the external TCAM itself. The error statistics register in the external TCAM is used to store the count of the above errors. The advantage of using the MDIO interface is that the MDIO signal line is an out-of-band resource and therefore does not occupy the Interlaken bandwidth resources between the NP and the TCAM.
通用NP和TCAM间有MDIO接口,可以访问寄存器。对G比特以太网而言,串行通信总线称为管理数据输入输出(MDIO)。该总线由IEEE通过以太网标准IEEE 802.3的若干条款加以定义。MDIO是一种简单的双线串行接口,将管理器件(如MAC控制器、微处理器)与具备管理功能的收发器(如多端口吉比特以太网收发器或10GbE XAUI收发器)相连接,从而控制收发器并从收发器收集状态信息。可收集的信息包括链接状态、传输速度与选择、断电、低功率休眠状态、TX/RX模式选择、自动协商控制、环回模式控制等。除了拥有IEEE要求的功能之外,收发器厂商还可添加更多的信息收集功能。以目前业界广泛使用的Netlogic系列TCAM为例,Netlogic TCAM芯片内有PCS层的一些错误状态和错误计数。NL11K芯片Common Status Register里可以探测到CRC等错误,RX PCS Counter寄存器里有CRC错误计数。这些寄存器可以通过带外的MDIO接口访问。There is an MDIO interface between the general NP and the TCAM, which can access registers. For G-bit Ethernet, the serial communication bus is called Management Data Input and Output (MDIO). This bus is defined by the IEEE through several provisions of the Ethernet standard IEEE 802.3. MDIO is a simple two-wire serial interface that connects management devices (such as MAC controllers, microprocessors) to management-capable transceivers (such as multi-port Gigabit Ethernet transceivers or 10GbE XAUI transceivers) , thereby controlling the transceiver and collecting status information from the transceiver. The information that can be collected includes link status, transmission speed and selection, power down, low power sleep state, TX/RX mode selection, auto-negotiation control, loopback mode control, and the like. In addition to the features required by the IEEE, transceiver vendors can add more information gathering capabilities. Taking the Netlogic series TCAM widely used in the industry as an example, the Netlogic TCAM chip has some error status and error count of the PCS layer. Errors such as CRC can be detected in the Common Status Register of the NL11K chip, and there is a CRC error count in the RX PCS Counter register. These registers can be accessed through the out-of-band MDIO interface.
步骤S602,判断Interlaken链路运行状态,和/或外部TCAM自身的运行状态信息是否出现故障;Step S602, determining whether the Interlaken link running status, and/or the running status information of the external TCAM itself is faulty;
设置一个用于判断Interlaken链路运行状态,和/或外部TCAM自身的运行状态信息是否出现故障的全局故障标记。通过判断当前全局故障标记是否置位,来感知Interlaken链路、外部TCAM是否出现故障。全局故障标记有两种状态:设置1时,表示出现故障;设置为0时,表示未出现故障。 A global fault flag is set to determine whether the Interlaken link operating status, and/or the external TCAM's own operating status information has failed. The Interlaken link and the external TCAM are perceived to be faulty by determining whether the current global fault flag is set. The global fault flag has two states: when set to 1, it indicates a fault; when set to 0, it indicates that no fault has occurred.
软件线程是一种运行在CPU的一个定时运行的任务。通过开启软件线程,扫描TCAM内部错误状态寄存器和错误统计寄存器。当扫描到有错误信息并且错误计数达到阈值时,设置一个全局的外部TCAM故障标记,并且通知上层及管理员。通过该全局标记,控制层和转发层会采取相应动作,进入备份状态,即激活内部TCAM工作模式。管理员得知外部TCAM出问题,可以选择采取相应动作,比如替换外部TCAM,或者维持内部TCAM工作的备份模式。A software thread is a scheduled task that runs on the CPU. The TCAM internal error status register and error statistics register are scanned by turning on the software thread. When an error message is scanned and the error count reaches the threshold, a global external TCAM fault flag is set and the upper layer and the administrator are notified. Through the global tag, the control layer and the forwarding layer take corresponding actions to enter the backup state, that is, activate the internal TCAM working mode. When the administrator knows that there is a problem with the external TCAM, he or she can choose to take appropriate actions, such as replacing the external TCAM or maintaining the backup mode of the internal TCAM work.
如果全局故障标记设置为0时,进入步骤S604;如果全局故障标记设置为1时,进入步骤S606。If the global failure flag is set to 0, the process proceeds to step S604; if the global failure flag is set to 1, the process proceeds to step S606.
步骤S604,将用于报文查表的TCAM条目写入外部TCAM,结束本次流程。In step S604, the TCAM entry for the message lookup table is written into the external TCAM, and the process ends.
CPU将上层业务(比如ACL)下发的业务报文原始数据转换为写入TCAM硬件的、用于报文查表的TCAM条目。在全局故障标记设置为0时,表示Interlaken链路、外部TCAM没有出现故障,则不需要切换至内部TCAM进行查表操作。因此将用于报文查表的TCAM条目写入外部TCAM。后续的转发业务时,微码引擎从业务报文抽取相关信息组成一个KEY(键值),通过NP的TCAM控制器向外部TCAM发送查找命令,根据反馈查找结果处理报文。The CPU converts the original data of the service packet delivered by the upper layer service (such as an ACL) into a TCAM entry for writing the TCAM hardware for the message lookup table. When the global fault flag is set to 0, it indicates that the Interlaken link and the external TCAM are not faulty, so there is no need to switch to the internal TCAM for table lookup operation. Therefore, the TCAM entry for the message lookup table is written to the external TCAM. In the subsequent forwarding service, the microcode engine extracts relevant information from the service message to form a KEY (key value), and sends a search command to the external TCAM through the TCAM controller of the NP, and processes the message according to the feedback search result.
步骤S606,判断上层业务是否关键业务;Step S606, determining whether the upper layer service is a key service;
对TCAM中承载的业务进行分类,对应关键性的业务,CPU控制面在将用于报文查表的TCAM条目写入外部TCAM之后,还将其写入内部TCAM作为备份。关键性业务是指对转发有决定性作用的业务,比如协议保护,如果不能把ARP及OSPF等报文上送CPU处理,会导致协议运行失败,转发业务受到影响;非关键性业务,比如QOS、流统计、流镜像等,即使不生效不会影响转发业务。The services carried in the TCAM are classified and corresponding to the critical services. After the TCAM entries for the message lookup table are written to the external TCAM, the CPU control plane writes them to the internal TCAM as a backup. A critical service is a service that is decisive for forwarding, such as protocol protection. If ARP and OSPF packets cannot be sent to the CPU for processing, the protocol fails to run and the forwarding service is affected. Non-critical services, such as QOS. Flow statistics, flow mirroring, etc., do not affect the forwarding service even if they are not valid.
如果上层业务是关键业务进入步骤608;如果不是关键业务则不作处理,结束本次流程。If the upper layer service is a key business, the process proceeds to step 608; if it is not a key service, the process is terminated.
步骤S608,将用于报文查表的TCAM条目写入网络处理器NP的内部 TCAM;Step S608, writing a TCAM entry for the message lookup table into the interior of the network processor NP TCAM;
在全局故障标记设置为1时,表示Interlaken链路、外部TCAM出现故障。当前外部TCAM承载上层业务已经不适用外部TCAM进行报文查表。CPU将上层下发的关键业务(比如ACL)下发的业务报文原始数据转换为写入TCAM硬件的、用于报文查表的TCAM条目。而NP的内部TCAM没有出现故障,此时将用于报文查表的TCAM条目再写入内部TCAM,并将查表KEY键值,通过NP的TCAM控制器向内部TCAM发送查找命令,根据反馈的查找结果处理报文。When the global fault flag is set to 1, it indicates that the Interlaken link and the external TCAM have failed. Currently, the external TCAM bearer upper layer service does not apply to the external TCAM for packet lookup. The CPU converts the original data of the service packet delivered by the key service (such as the ACL) delivered by the upper layer into the TCAM entry for writing the TCAM hardware for the message lookup table. The internal TCAM of the NP has no fault. At this time, the TCAM entry for the message lookup table is written into the internal TCAM, and the KEY key value is checked, and the search command is sent to the internal TCAM through the NP TCAM controller, according to the feedback. The search results process the message.
图9是根据本发明实施例的一种应用于转发面的三态内容可寻址存储器TCAM查表方法的流程图。如图9所示,该流程可以包括如下步骤:9 is a flow chart of a TCAM lookup table method for a tri-state content addressable memory applied to a forwarding plane, in accordance with an embodiment of the present invention. As shown in FIG. 9, the process may include the following steps:
步骤S700,判断Interlaken链路运行状态,和/或外部TCAM自身的运行状态信息是否出现故障;Step S700, determining whether the Interlaken link running status, and/or the running status information of the external TCAM itself is faulty;
步骤S700可以参考图8所示的步骤S602,在此不赘述。Step S700 can refer to step S602 shown in FIG. 8 , and details are not described herein.
如果全局故障标记设置为0时,进入步骤S702;如果全局故障标记设置为1时,进入步骤S704。If the global failure flag is set to 0, the process proceeds to step S702; if the global failure flag is set to 1, the process proceeds to step S704.
步骤S702,运行微码版本A,结束本次流程;Step S702, running microcode version A, ending the current process;
当全局故障标记设置为0时,即表示Interlaken链路运行状态和外部TCAM自身的运行状态没有故障。NP的微码引擎运行版本A微码,将查表键值送入外部TCAM进行查找,微码根据查找外部TCAM反馈的查找结果执行相关业务操作。When the global fault flag is set to 0, it means that the Interlaken link running status and the running status of the external TCAM itself are not faulty. The NP microcode engine runs version A microcode, and sends the lookup table key value to the external TCAM for searching. The microcode performs related business operations according to the search result of finding the external TCAM feedback.
步骤S704,运行微码版本B;Step S704, running microcode version B;
当全局故障标记设置为1时,即表示Interlaken链路运行状态,和/或外部TCAM自身的运行状态出现故障。外部TCAM已经不适用于报文查表,此时切换至NP内部TCAM进行查表操作。利用外部TCAM进行查表操作是常态,只有当软件扫描线程扫描到链路或外部TCAM出现故障错误时,设置故障全局标记,切换至内部TCAM进行查表操作。When the global fault flag is set to 1, it indicates that the Interlaken link is operating, and/or the external TCAM itself is faulty. The external TCAM is not applicable to the message lookup table. At this time, it switches to the NP internal TCAM for table lookup operation. It is normal to use the external TCAM to perform table lookup. Only when the software scan thread scans the link or the external TCAM fails, set the fault global flag and switch to the internal TCAM for table lookup.
在图8所示的步骤中,事先已经将用于报文查表的TCAM条目写入了内部TCAM进行备份,可选的是,将用于承载关键性业务、用于关键业务报文 查表的TCAM条目写入了内部TCAM进行了备份。控制面执行微码动态加载,切换微码版本。微码引擎运行版本B微码,将查表键值送入内部TCAM进行查找,微码根据查找内部TCAM反馈的查找结果执行相关业务操作。In the step shown in FIG. 8, the TCAM entry for the packet lookup table has been previously written to the internal TCAM for backup, and optionally, it is used to carry the critical service for the key service message. The TCAM entry for the lookup table was written to the internal TCAM for backup. The control plane performs microcode dynamic loading and switches the microcode version. The microcode engine runs version B microcode, and sends the lookup table key value to the internal TCAM for searching. The microcode performs related business operations according to the search result of finding the internal TCAM feedback.
需要说明是,微码引擎中的两套微码版本A和微码版本B,可以是一套微码版本,也可以是不同的微码版本。It should be noted that the two sets of microcode version A and microcode version B in the microcode engine may be a set of microcode versions or different microcode versions.
相对于目前NP与外部TCAM经常出现的链路故障致业务中断,本实施例提供了一种方法,通过外部TCAM的MDIO带外接口,读取TCAM内部错误状态寄存器和错误统计寄存器,借此获知NP和外部TCAM链路状态及TCAM芯片问题;CPU的控制面在写外部TCAM之后,对关键的TCAM业务,写入内部TCAM;当线程感知到故障时,切换微码版本,此时工作在内部TCAM生效的备份模式,关键业务仍然正常,业务不会中断,只是Qos、流限速、流统计等非关键业务失效。线程扫描到外部TCAM故障后,由于切换到内部TCAM工作模式,TCAM关键业务依然正常工作;另外通知用户外部TCAM出现问题,管理员可以选择性进行一些操作。Compared with the current link failure caused by the current NP and the external TCAM, the present embodiment provides a method for reading the TCAM internal error status register and the error statistics register through the external TCAM MDIO out-of-band interface. NP and external TCAM link status and TCAM chip issues; the control plane of the CPU writes the internal TCAM to the critical TCAM service after writing the external TCAM; when the thread senses the fault, it switches the microcode version, and works internally. The backup mode in which TCAM is in effect, the key services are still normal, and services are not interrupted. Only non-critical services such as QoS, traffic rate limit, and flow statistics are invalid. After the thread scans to the external TCAM fault, the TCAM key service still works normally due to switching to the internal TCAM working mode; in addition, the user is notified that there is a problem with the external TCAM, and the administrator can selectively perform some operations.
通常内部TCAM相比外部TCAM小很多,在目前追求大容量指标、高带宽线速转发性能情况下,常用做法是选择外部TCAM存放ACL等业务,内部TCAM通常不使用。与相关技术相比较,有效利用内部TCAM空间进行用于关键业务报文查表的TCAM条目进行备份,开启线程扫描外部TCAM状态,在外部TCAM或总线链路出故障时,可以通过切换微码版本可以进行工作模式切换,保证TCAM关键业务仍然正常运行。Generally, the internal TCAM is much smaller than the external TCAM. In the current pursuit of large-capacity indicators and high-bandwidth line-rate forwarding performance, it is common practice to select an external TCAM to store services such as ACLs, and internal TCAMs are usually not used. Compared with related technologies, the internal TCAM space is effectively utilized for backup of TCAM entries for key service message lookup, and the thread scanning external TCAM state is enabled. When the external TCAM or bus link fails, the microcode version can be switched. Work mode switching can be performed to ensure that key business of TCAM is still running normally.
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art will appreciate that all or a portion of the steps of the above-described embodiments can be implemented using a computer program flow, which can be stored in a computer readable storage medium, such as on a corresponding hardware platform (eg, The system, device, device, device, etc. are executed, and when executed, include one or a combination of the steps of the method embodiments.
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。Alternatively, all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
上述实施例中的装置/功能模块/功能单元可以采用通用的计算装置来实 现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。The device/function module/functional unit in the above embodiment can be implemented by using a general-purpose computing device. Now, they can be concentrated on a single computing device or distributed over a network of multiple computing devices.
工业实用性Industrial applicability
本发明实施例中,在链路或者外部TCAM出现故障的情况下,通过采用网络芯片的内部TCAM对报文进行查表的方式,解决了由于外部TCAM与网络芯片之间的链路出现故障或外部TCAM本身出现故障,从而影响外部TCAM的查表功能的问题,有效地减少了链路或外部TCAM故障对业务流量转发的影响。 In the embodiment of the present invention, in the case that the link or the external TCAM is faulty, the method of checking the packet by using the internal TCAM of the network chip solves the problem that the link between the external TCAM and the network chip is faulty or The external TCAM itself fails, which affects the problem of the external TCAM's look-up function, effectively reducing the impact of link or external TCAM failure on traffic forwarding.

Claims (12)

  1. 一种三态内容可寻址存储器TCAM查表方法,包括:A three-state content addressable memory TCAM lookup method includes:
    判断网络芯片与所述网络芯片的外部TCAM之间链路或者外部TCAM是否出现故障;Determining whether a link between the network chip and an external TCAM of the network chip or an external TCAM is faulty;
    在所述链路或者所述外部TCAM出现故障的情况下,通过所述网络芯片的内部TCAM对报文进行查表。In case the link or the external TCAM fails, the message is checked by the internal TCAM of the network chip.
  2. 根据权利要求1所述的方法,其中,判断网络芯片与所述网络芯片的外部TCAM之间链路或者外部TCAM是否出现故障包括:The method of claim 1, wherein determining whether the link between the network chip and the external TCAM of the network chip or the external TCAM is faulty comprises:
    获取故障计数;Get the fault count;
    判断所述故障计数是否达到预设阈值;Determining whether the fault count reaches a preset threshold;
    在所述故障计数达到预设阈值的情况下,确定所述链路或者所述外部TCAM出现故障。In case the fault count reaches a preset threshold, it is determined that the link or the external TCAM has failed.
  3. 根据权利要求2所述的方法,其中,获取故障计数包括:The method of claim 2 wherein obtaining the fault count comprises:
    通过管理数据输入输出MDIO接口,读取所述外部TCAM中的错误统计寄存器中的所述故障计数。The fault count in the error statistics register in the external TCAM is read by managing the data input and output MDIO interface.
  4. 根据权利要求1至3中任一项所述的方法,在通过所述网络芯片的内部TCAM对报文进行查表之前,所述方法还包括:The method according to any one of claims 1 to 3, before the table is checked by the internal TCAM of the network chip, the method further includes:
    将用于报文查表的TCAM条目写入所述内部TCAM。A TCAM entry for the message lookup table is written to the internal TCAM.
  5. 根据权利要求4所述的方法,其中,将用于报文查表的TCAM条目写入所述内部TCAM包括:The method of claim 4, wherein writing the TCAM entry for the message lookup table to the internal TCAM comprises:
    判断所述TCAM条目对应的业务是否为关键业务,其中,所述关键业务包括与报文转发有关的业务;Determining whether the service corresponding to the TCAM entry is a key service, where the key service includes a service related to packet forwarding;
    在所述业务是关键业务的情况下,将与所述业务对应的TCAM条目写入所述内部TCAM。In the case where the service is a critical service, a TCAM entry corresponding to the service is written to the internal TCAM.
  6. 根据权利要求5所述的方法,其中,The method of claim 5, wherein
    所述网络芯片包括网络处理器NP、所述链路包括NP与CPU之间的 Interlaken链路;或者The network chip includes a network processor NP, and the link includes between the NP and the CPU. Interlaken link; or
    所述网络芯片包括专用集成电路ASIC,所述链路包括外部总线PCI-Express。The network chip includes an application specific integrated circuit ASIC, and the link includes an external bus PCI-Express.
  7. 一种三态内容可寻址存储器TCAM查表装置,包括:A three-state content addressable memory TCAM lookup device includes:
    判断模块,设置为:判断网络芯片与所述网络芯片的外部TCAM之间链路或者外部TCAM是否出现故障;a determining module, configured to: determine whether a link between the network chip and an external TCAM of the network chip or an external TCAM is faulty;
    查表模块,设置为:在所述链路或者所述外部TCAM出现故障的情况下,通过所述网络芯片的内部TCAM对报文进行查表。The look-up table module is configured to: perform a table lookup of the packet through the internal TCAM of the network chip if the link or the external TCAM fails.
  8. 根据权利要求7所述的装置,其中,所述判断模块包括:The apparatus of claim 7, wherein the determining module comprises:
    获取单元,设置为:获取故障计数;Get the unit, set to: get the fault count;
    第一判断单元,设置为:判断所述故障计数是否达到预设阈值;The first determining unit is configured to: determine whether the fault count reaches a preset threshold;
    确定单元,设置为:在所述故障计数达到预设阈值的情况下,确定所述链路或者所述外部TCAM出现故障。The determining unit is configured to: determine that the link or the external TCAM is faulty if the fault count reaches a preset threshold.
  9. 根据权利要求8所述的装置,其中,The device according to claim 8, wherein
    所述获取单元还设置为:通过管理数据输入输出MDIO接口,读取所述外部TCAM中的错误统计寄存器中的所述故障计数。The obtaining unit is further configured to: read the fault count in the error statistics register in the external TCAM by managing the data input/output MDIO interface.
  10. 根据权利要求7至9中任一项所述的装置,还包括:The apparatus according to any one of claims 7 to 9, further comprising:
    写入模块,设置为:将用于报文查表的TCAM条目写入所述内部TCAM。The write module is configured to: write a TCAM entry for the message lookup table to the internal TCAM.
  11. 根据权利要求10所述的装置,其中,所述写入模块包括:The apparatus of claim 10 wherein said writing module comprises:
    第二判断单元,设置为:判断所述TCAM条目对应的业务是否为关键业务,其中,所述关键业务包括与报文转发有关的业务;The second determining unit is configured to: determine whether the service corresponding to the TCAM entry is a key service, where the key service includes a service related to packet forwarding;
    写入单元,设置为:在所述业务是关键业务的情况下,将与所述业务对应的TCAM条目写入所述内部TCAM。The writing unit is configured to: when the service is a critical service, write a TCAM entry corresponding to the service to the internal TCAM.
  12. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1-6任一项的方法。 A computer readable storage medium storing computer executable instructions for performing the method of any of claims 1-6.
PCT/CN2015/078586 2014-12-26 2015-05-08 Ternary content addressable memory (tcam) table search method and device WO2016101488A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410834839.5A CN105791126B (en) 2014-12-26 2014-12-26 Ternary Content Addressable Memory (TCAM) table look-up method and device
CN201410834839.5 2014-12-26

Publications (1)

Publication Number Publication Date
WO2016101488A1 true WO2016101488A1 (en) 2016-06-30

Family

ID=56149080

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/078586 WO2016101488A1 (en) 2014-12-26 2015-05-08 Ternary content addressable memory (tcam) table search method and device

Country Status (2)

Country Link
CN (1) CN105791126B (en)
WO (1) WO2016101488A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111683014A (en) * 2020-05-26 2020-09-18 中国人民解放军国防科技大学 Routing path tracking method and system of high-speed interconnection network
CN112632340A (en) * 2020-12-28 2021-04-09 盛科网络(苏州)有限公司 Table lookup method and device, storage medium and electronic equipment
CN113328948A (en) * 2021-06-02 2021-08-31 杭州迪普信息技术有限公司 Resource management method, device, network equipment and computer readable storage medium
CN114938346A (en) * 2022-05-13 2022-08-23 苏州盛科通信股份有限公司 Method and device for realizing quick service switching by cooperation of chip and CPU
CN115334046A (en) * 2022-07-04 2022-11-11 超聚变数字技术有限公司 MAC address deleting method and device

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107526650B (en) * 2017-09-07 2021-07-02 郑州云海信息技术有限公司 TCAM error scanning and repairing method
CN109656832A (en) * 2017-10-11 2019-04-19 深圳市中兴微电子技术有限公司 A kind of look-up method, computer readable storage medium
CN108363638A (en) * 2018-02-06 2018-08-03 盛科网络(苏州)有限公司 The error correction method and system of TCAM memory in a kind of chip
CN111324382B (en) * 2018-12-13 2023-03-03 华为技术有限公司 Instruction processing method and chip

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110047439A1 (en) * 2009-08-20 2011-02-24 Broadcom Corporation Soft error rate protection for memories
CN102959548A (en) * 2012-08-22 2013-03-06 华为技术有限公司 Data storage method, search method and device
CN104038416A (en) * 2014-06-17 2014-09-10 上海新储集成电路有限公司 Network processor

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003272386A (en) * 2002-03-20 2003-09-26 Mitsubishi Electric Corp Tcam cell, tcam cell array, address retrieving memory, retrieving device for network address
US7251722B2 (en) * 2004-05-11 2007-07-31 Mistletoe Technologies, Inc. Semantic processor storage server architecture
US7571371B2 (en) * 2005-08-18 2009-08-04 Hewlett-Packard Development Company, L.P. Parallel parity checking for content addressable memory and ternary content addressable memory
CN102970150A (en) * 2011-09-01 2013-03-13 日电(中国)有限公司 Extensible multicast forwarding method and device for data center (DC)
CN103973571A (en) * 2013-02-05 2014-08-06 中兴通讯股份有限公司 Network processor and routing searching method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110047439A1 (en) * 2009-08-20 2011-02-24 Broadcom Corporation Soft error rate protection for memories
CN102959548A (en) * 2012-08-22 2013-03-06 华为技术有限公司 Data storage method, search method and device
CN104038416A (en) * 2014-06-17 2014-09-10 上海新储集成电路有限公司 Network processor

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111683014A (en) * 2020-05-26 2020-09-18 中国人民解放军国防科技大学 Routing path tracking method and system of high-speed interconnection network
CN112632340A (en) * 2020-12-28 2021-04-09 盛科网络(苏州)有限公司 Table lookup method and device, storage medium and electronic equipment
CN112632340B (en) * 2020-12-28 2024-04-16 苏州盛科通信股份有限公司 Lookup method and device, storage medium and electronic equipment
CN113328948A (en) * 2021-06-02 2021-08-31 杭州迪普信息技术有限公司 Resource management method, device, network equipment and computer readable storage medium
CN113328948B (en) * 2021-06-02 2022-10-04 杭州迪普信息技术有限公司 Resource management method, device, network equipment and computer readable storage medium
CN114938346A (en) * 2022-05-13 2022-08-23 苏州盛科通信股份有限公司 Method and device for realizing quick service switching by cooperation of chip and CPU
CN115334046A (en) * 2022-07-04 2022-11-11 超聚变数字技术有限公司 MAC address deleting method and device
CN115334046B (en) * 2022-07-04 2023-09-01 超聚变数字技术有限公司 MAC address deleting method and device

Also Published As

Publication number Publication date
CN105791126B (en) 2020-04-24
CN105791126A (en) 2016-07-20

Similar Documents

Publication Publication Date Title
WO2016101488A1 (en) Ternary content addressable memory (tcam) table search method and device
US10257019B2 (en) Link aggregation split-brain detection and recovery
CN109587065B (en) Method, device, switch, equipment and storage medium for forwarding message
CN108781185B (en) System and method for providing a programmable packet classification framework for network devices
US20230353443A1 (en) Method and system for sharing state between network elements
US8369211B2 (en) Network distribution prevention when virtual chassis system undergoes splits and merges
US20120042095A1 (en) System and Method to Create Virtual Links for End-to-End Virtualization
EP3229406B1 (en) Performing a protocol, such as micro bidirectional forwarding detection, on member links of an aggregated link that uses an address of the aggregated link
US10965604B2 (en) Deadlock avoidance in leaf-spine networks
US10805390B2 (en) Automated mirroring and remote switch port analyzer (RSPAN) functions using fabric attach (FA) signaling
US10397116B1 (en) Access control based on range-matching
US20160134517A1 (en) Avoiding data traffic loss in a ring multihomed, in an active-standby manner, to a transport network
WO2007000092A1 (en) A network processor
EP3200398B1 (en) Automated mirroring and remote switch port analyzer (rspan)/encapsulated remote switch port analyzer (erspan) functions using fabric attach (fa) signaling
WO2016138845A1 (en) Method and device realizing upload of protocol packet to cpu
US7924717B2 (en) Systems and methods of handling access control violations
CN113839862B (en) Method, system, terminal and storage medium for synchronizing ARP information between MCLAG neighbors
US20140207897A1 (en) Data transfer apparatus and data transfer method
US20180198704A1 (en) Pre-processing of data packets with network switch application -specific integrated circuit
WO2015117465A1 (en) Fdb updating method, device, node, and system in ring network
WO2018223991A1 (en) Method and system for switching between active bng and standby bng, and bng
US20150101035A1 (en) Duplicating packets efficiently within a network security appliance
US11659002B2 (en) Extending Media Access Control Security (MACsec) to Network-to-Network Interfaces (NNIs)
US11646995B2 (en) Partitioned intrusion detection
WO2017000097A1 (en) Data forwarding method, device, and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15871564

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15871564

Country of ref document: EP

Kind code of ref document: A1