Mitigating memory access congestion in network device
By introducing a memory network congestion controller into network equipment, it identifies and reduces the communication rate of packet flows, solves the problem of memory access congestion in network equipment, improves service quality and reduces resource consumption.
Patent Information
- Application Number
- CN202410511805.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-04-27
- Filing Date
- 2024-04-26
- Publication Date
- 2024-10-29
AI Technical Summary
Modern network devices can easily cause memory access congestion when executing processing tasks concurrently, resulting in reduced service quality and waste of resources.
A network device is designed, including a memory network congestion controller, which reduces the communication rate of packet flows to alleviate congestion by identifying memory access congestion and sending notifications to remote network devices or modifying packet flow policies.
It effectively alleviates memory access congestion, improves the service quality of network equipment, reduces cost, size and power consumption, and avoids waste of resources.
Smart Images

Figure CN118869596A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates generally to network devices, and more particularly to methods and systems for alleviating memory access congestion in network devices. Background Art
[0002] Modern network devices such as network adapters, switches, and network attached storage controllers typically perform a large number of processing tasks concurrently. Such network devices may include multiple processors, such as CPU cores and / or network processors, and high-bandwidth memory systems. Summary of the invention
[0003] The embodiments described herein provide a network device, which includes one or more ports, a processing circuit and a memory network congestion controller. The one or more ports are used to connect to a network. The processing circuit is used to run multiple processing tasks that access a shared memory, and one or more of the processing tasks include transmitting one or more packet streams through a network. The memory network congestion controller identifies memory access congestion that occurs when one or more of the processing tasks access the shared memory, and alleviates the memory access congestion by causing a reduction in the communication rate of at least one packet stream in the packet stream.
[0004] In some embodiments, the memory network congestion controller is used to cause said reduction in said communication rate by sending a notification to a remote network device causing said remote network device to throttle the transmission rate of a packet stream. In some embodiments, the memory network congestion controller is used to cause said reduction in said communication rate by sending information indicating network congestion to a remote network device, regardless of any actual network congestion. In some embodiments, the memory network congestion controller is used to cause said reduction in said communication rate by throttling the transmission rate of a packet stream to a remote network device.
[0005] In the disclosed embodiment, one or more packet flows include a first packet flow and a second packet flow having respective first and second communication priorities, the first communication priority being higher than the second communication priority, and the memory network congestion controller is configured to cause the reduction in the communication rate in the second packet flow. In an example embodiment, the memory network congestion controller is configured to cause the reduction in the communication rate by modifying a packet drop policy applied to the at least one of the packet flows.
[0006] In another embodiment, one or more packet flows include a first packet flow and a second packet flow having respective first and second sensitivities to latency, the first sensitivity being higher than the second sensitivity, and a memory network congestion controller is used to cause the reduction in the communication rate in the second packet flow.
[0007] In an example embodiment, the memory network congestion controller is used to identify the memory access congestion by identifying that a given processing task or task group in the processing tasks has exceeded a memory usage quota allocated thereto. In another embodiment, the memory network congestion controller is used to identify the memory access congestion by identifying that the overall memory usage of the processing tasks has exceeded a threshold.
[0008] Additionally or alternatively, the memory network congestion controller is configured to identify the memory access congestion by identifying that the latency of a given processing task or task group of the processing tasks is above a defined limit when accessing the shared memory. Further additionally or alternatively, the memory network congestion controller is configured to identify the memory access congestion by identifying a trend of increasing latency when accessing the shared memory by one or more of the processing tasks. In some embodiments, the memory network congestion controller is configured to identify the memory access congestion by monitoring notifications of a feedback mechanism between the processing tasks and the shared memory.
[0009] According to the embodiments described herein, a method in a network device is also provided, including running a plurality of processing tasks accessing a shared memory in the network device. One or more of the processing tasks include transmitting one or more packet streams through a network. Memory access congestion that occurs when one or more of the processing tasks access the shared memory is identified. The memory access congestion is alleviated by causing a reduction in the communication rate of at least one of the packet streams.
[0010] The present invention will be more fully understood from the following detailed description of the embodiments in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1 is a block diagram schematically illustrating a network device in a network communication system according to an embodiment of the present invention;
[0012] Figure 2 is a schematic diagram showing a method for alleviating Figure 1 A flowchart of a method for preventing memory access congestion in a network device;
[0013] Figure 3 It schematically shows an embodiment of the present invention. Figure 1a diagram of allocation of memory subsystem (MSS) resources in a network device; and
[0014] Figure 4 It schematically shows an embodiment of the present invention. Figure 1 Schematic diagram of monitoring and regulation of MSS resources in a network device. DETAILED DESCRIPTION
[0015] Overview
[0016] Embodiments of the invention described herein provide improved techniques for alleviating memory access congestion in network devices. The disclosed techniques can be used in various types of network devices, such as network adapters, switches, and network attached storage controllers.
[0017] In some embodiments, the network device includes one or more ports for communicating over the network, processing circuitry that performs various processing tasks, and a shared memory that services the processing circuitry. The processing circuitry can access the shared memory via a coherency structure and / or via a system-level cache.
[0018] Processing tasks may be implemented in hardware and / or software. Some processing tasks may involve communication of packet streams through a network, while other processing tasks may not involve communication of packet streams through a network. For example, a processing circuit may include a network processor that processes packet streams and one or more central processing unit (CPU) cores that perform other calculations.
[0019] While performing various processing tasks, the processing circuitry accesses the shared memory, for example, for storing and retrieving packet data and other information. In theory, the shared memory (including the fabric and cache, if used) can be designed to support the worst-case bandwidth requirements. However, such an over-design would be extremely wasteful in terms of cost, size, and power consumption.
[0020] Therefore, in most practical implementations, processing tasks may temporarily exceed the access bandwidth capability of the shared memory, thereby causing memory access congestion. For example, multiple uncoordinated processing tasks may attempt to access the shared memory concurrently. Unless mitigated, such memory access congestion may result in poor quality of service, for example due to excessive delays and / or dropped packets.
[0021] In some embodiments of the present invention, the network device also includes a memory network congestion controller that identifies and alleviates (i.e., eliminates or at least relieves) memory access congestion. The memory network congestion controller alleviates memory access congestion by causing a reduction in the communication rate of at least one of the packet flows handled by the processing circuit. Reducing the rate of the packet flow on the network side causes the corresponding processing task to reduce its memory access bandwidth on the memory side.
[0022] In various embodiments, the storage network congestion controller may use various techniques to cause a reduction in the communication rate of the packet flow. In some embodiments, the storage network congestion controller sends a request to a remote network device, requesting the remote network device to throttle the transmission rate of the packet flow.
[0023] In one example, a memory network congestion controller sends a "fake" explicit congestion notification (ECN) to a remote network device. The fake ECN notifies the remote network device of network congestion, which is allegedly observed in processing a packet flow, independent of any actual network congestion. As a result, the remote network device will throttle the packet flow in question. Since the network device receives and processes packets at a smaller rate, memory access congestion is alleviated.
[0024] In another embodiment, the storage network congestion controller modifies a packet drop policy, such as a Weighted Random Early Detection (WRED) policy, that is applied to packet flows in the network device.
[0025] In some embodiments, when a network device handles multiple packet flows simultaneously, a memory network congestion controller may use various criteria to select which packet flows to throttle in order to reduce memory access congestion. In one embodiment, the packet flows are assigned corresponding communication priorities, and the memory network congestion controller selects lower priority packet flows for throttling. In another embodiment, the memory network congestion controller selects packet flows that are relatively insensitive to latency.
[0026] In some embodiments, the memory network congestion controller is capable of predicting that memory access congestion is imminent before the congestion degrades performance below acceptable limits. Thus, in this context, the phrase "identifying memory access congestion" in various grammatical forms refers to both actual congestion that has an adverse effect on network device performance and impending congestion that is developing but has not yet had an impact on performance. Example techniques for identifying impending memory access congestion are described herein.
[0027] The disclosed techniques provide a unique link to resolve congestion in the memory domain (memory access congestion) by performing actions in the network domain (throttling packet flows). By using the disclosed techniques, network devices can provide improved quality of service (QoS) during memory congestion. The disclosed techniques also enable the design of memory devices with smaller memory access bandwidth, thereby reducing cost, size, and power consumption.
[0028] System Description
[0029] Figure 12 is a block diagram schematically illustrating a network communication system 20 including a network device 24 according to an embodiment of the present invention. In the system 20, the network device 24 communicates with a remote network device 28 via a network 32. The network devices 24 and 28 and the network 32 may operate according to any suitable network protocol, such as Ethernet or InfiniBand. TM (IB). Network device 24 may include, for example, a network adapter (e.g., an Ethernet NIC or Infiniband HCA, including an "intelligent NIC," also referred to as a data processing unit - DPU), a switch, a router, a network attached storage controller, a graphics processing unit (GPU) with networking capabilities, or any other suitable network device.
[0030] The network device 24 includes one or more ports 36 for sending packets to and receiving packets from the network 32. The network device 24 further includes a system on a chip (SoC) 40 and one or more dynamic random access memory devices (DRAM) 44. The SoC 40 includes a network processor 48 that runs processing tasks 52 and one or more CPU cores 56 that run processing tasks 60. The network processor 48 and the CPU cores 56 are collectively referred to herein as the "processing circuitry" of the network device 24. In alternative embodiments, the processing circuitry may include any other suitable configuration.
[0031] Processing tasks 52 are generally related to the sending and receiving of packet flows between network device 24 and remote network device 28. Processing tasks 60 generally perform other kinds of processing that may or may not be directly related to network communications.
[0032] Typically, both the processing tasks 52 (of the network processor 48) and the processing tasks 60 (of the CPU core 56) access the DRAM 44 for storing and retrieving data. The DRAM 44 is referred to herein as shared memory. In alternative embodiments, the shared memory may include any other suitable memory accessible to the various processing tasks.
[0033] SoC 40 further includes a coherency fabric 64 that connects network processor 48 and CPU core 56 to shared memory. Fabric 64 performs various security and coherency checks on memory access requests issued by network processor 48 and CPU core 56, and routes requests and corresponding responses. Figure 1 In the example of , each DRAM 44 is accessed via a system level cache 68 , a DRAM controller (DMC) 72 , and a DRAM physical layer device (DPHY) 76 .
[0034] Fabric 64, SLC 68, DMC 72, DHY 76, and DRAM 44 are also collectively referred to as a memory subsystem (MSS) of network device 24. The terms MSS and shared memory are sometimes used interchangeably herein. In alternative embodiments, the MSS may have any other suitable configuration.
[0035] exist Figure 1 In the example of FIG. 4 , DRAM 44 is located in network device 24, but is external (“off-chip”) to SoC 40. However, this configuration is not mandatory. For example, when network device 24 is a NIC serving a host (not shown in the figure), DRAM 44 (or other types of shared memory) may be located in the host and accessed through a peripheral bus. In general, shared memory may be centralized or distributed and may be located in any suitable one or more locations.
[0036] In the disclosed embodiment, the network device 24 further includes a memory network congestion controller 80 (referred to herein as the "controller" for brevity). The controller 80 identifies and mitigates memory access congestion events using methods described in detail below.
[0037] like Figure 1 The configuration of the system 20 and network devices shown is an exemplary configuration selected purely for conceptual clarity. In alternative embodiments, any other suitable configuration may be used. For clarity, components that are not necessary for understanding the principles of the present invention, such as various interfaces, addressing circuits, timing and sequencing circuits, and debugging circuits, have been omitted from the accompanying drawings.
[0038] The various elements of network device 24 may be implemented in hardware, for example, in one or more application specific integrated circuits (ASICs) or FPGAs. Additionally or alternatively, the elements of network device 24 may be implemented using software or a combination of hardware and software elements.
[0039] In some embodiments, the network processor 48 and / or the CPU core 56 may be implemented in part or in whole using one or more general purpose processors that are programmed in software to perform the functions described herein. The software may be downloaded to the processor in electronic form, for example, over a network, or it may alternatively or additionally be provided and / or stored on a non-transitory tangible medium, such as a magnetic, optical, or electronic memory.
[0040] Alleviate memory access congestion by throttling network communication rates
[0041] During normal operation of network device 24, processing task 52 sends and receives packet streams over network 32, and processing task 60 performs other functions. Both task 52 and task 60 access DRAM 44 for storing and retrieving data as part of their normal operations.
[0042] In some cases, access to DRAM 44 by processing tasks 52 and / or 60 may cause memory access congestion. Memory access congestion may be defined in various ways. Examples of criteria for memory access congestion may include the following non-limiting examples:
[0043] ■ At some time the memory bandwidth required to process tasks 52 and / or 60 exceeds the maximum memory access bandwidth of the shared memory.
[0044] ■ The memory bandwidth required to process tasks 52 and / or 60 at some time exceeds a defined threshold (which in turn may be derived from the maximum memory access bandwidth of the shared memory).
[0045] ■ The memory access bandwidth of a specific processing task or a specific group of processing tasks exceeds a defined threshold.
[0046] ■ The latency observed in accessing the shared memory by a particular processing task (or task group, or all tasks) exceeds a defined limit. The limit may be defined, for example, relative to the average memory access latency of the processing task (or task group, or all tasks).
[0047] In some embodiments, upon detecting memory access congestion, the controller 80 relieves the congestion by throttling the communication rate of at least one of the packet flows currently communicating between the network device 24 and the remote network device 28. When the communication rate of a packet flow is reduced, the processing task 52 handling this packet flow will generally reduce its rate of accessing the shared memory. As a result, memory access congestion will be alleviated.
[0048] Figure 2 Schematically shows a flow chart of a method for alleviating memory access congestion in a shared memory of a network device 24 according to an embodiment of the present invention. The method begins at a monitoring stage 90, where the memory network congestion controller 80 monitors accesses of processing tasks 52 and 60 to the shared memory.
[0049] In the congestion detection phase 94, the controller 80 checks whether memory access congestion occurs when accessing the shared memory. If no memory access congestion is observed, the method loops back to the above phase 90. Otherwise, if memory access congestion is detected, the controller 80 selects one or more packet flows to be throttled in the flow selection phase 98. In the rate reduction phase 102, the controller 80 throttles the communication rate of the selected one or more flows. Then, the method loops back to the above-mentioned phase 90.
[0050] Figure 2 The method flow shown in is a simplified example flow depicted purely for conceptual clarity. In exemplary embodiments, any other suitable method flow may be used. Example techniques for monitoring access to shared memory, for identifying memory access congestion, for selecting a packet flow to be throttled, and for reducing the rate of a packet flow are further described below.
[0051] In various embodiments, the controller 80 may use various mechanisms for reducing the communication rate of a packet flow. In some embodiments, the controller 80 sends a notification to the remote network device 28 at the far end of the packet flow in question, requesting the remote network device to throttle the communication rate of the packet flow. As a result, the communication rate of incoming packets belonging to the packet flow will be reduced.
[0052] In an exemplary embodiment, the controller 80 sends an explicit congestion notification (ECN) to the remote network device 28, which notifies the remote network device of network congestion that is allegedly observed in processing the packet flow. For example, the ECN mechanism is specified in the Internet Engineering Task Force (IETF) Request For Comments (RFC) 3168 "Adding Explicit Congestion Notification (ECN) to IP" in September 2001, which is incorporated herein by reference.
[0053] In other embodiments, the controller 80 may send other suitable notifications, packets, or messages to the remote network device indicating network congestion. For example, while in RDMA, ECN is typically sent using a congestion notification packet (CNP), in Ethernet, ECN is typically indicated by setting a bit in an acknowledgment (ACK) packet sent to the remote network device.
[0054] In these embodiments, the controller 80 sends ECN or other notifications regardless of any actual network congestion. In other words, in many cases, the controller 80 will send a network congestion notification even if there is no network congestion. In this sense, the notification can be considered a "false" or "simulated" network congestion notification. The purpose of the false notification is to cause the remote network device 28 to reduce the communication rate of the packet stream in order to reduce the memory access bandwidth in the network device 24. The use of ECN, CNP, ACK or other such protocols eliminates the need for modifications in the remote network device 28. In this way, the network device 24 is able to perform the disclosed technology while communicating with a traditional remote network device.
[0055] Further alternatively, the controller 80 may use any other suitable protocol or mechanism to send information indicating network congestion to the remote network device, even if there is no actual network congestion. Several non-limiting examples include the following:
[0056] ■ Sending false telemetry reports indicating network congestion to remote network devices. The false telemetry may include, for example, round trip time (RTT) values that are higher than the actual RTT, false queue states that indicate queue fill levels that are higher than the actual fill levels, bandwidth usage values that are higher than the actual bandwidth usage, etc.
[0057] ■ For packet flows using credit-based flow control, an erroneous credit allocation that is lower than the actual credit allocation is sent to the remote network device.
[0058] ■ For packet flows using Priority Flow Control (PFC), sending erroneous PFC "pause" messages to remote network devices.
[0059] In some embodiments, the above messages, notifications or packets are sent to the remote network device by the controller 80. In other embodiments, the controller 80 may instruct the network processor 48 to send the message, notification or packet in question.
[0060] In some embodiments, the controller 80 requests the network processor 48 to reduce the communication rate of the outgoing packets belonging to the packet flow in question. In another embodiment, the memory network congestion controller modifies a packet drop policy, such as a weighted random early detection (WRED) policy, which is applied to the packet flow in the network device. A more lenient packet drop policy (i.e., a policy that drops a larger percentage of packets) reduces the computing resources required to process the remaining packets, and thus helps to reduce memory access congestion. In general, the controller 80 can use any other suitable technique to cause a reduction in the communication rate of the packet flow in order to reduce memory access congestion.
[0061] When network device 24 handles multiple packet flows simultaneously and detects memory access congestion, controller 80 can use various criteria to select packet flows for throttling. The selection criteria are generally intended to select packet flows that, if throttled, cause the least degradation in overall performance.
[0062] In some embodiments, packet flows are assigned corresponding priorities relative to each other. Priorities may correspond to, for example, different quality of service (QoS) classes, also referred to as traffic classes (TCs). In an embodiment, the controller 80 attempts to select a packet flow with a lower priority than a high priority packet flow. Using this selection criteria, a high priority packet flow will suffer less transmission rate degradation than a low priority packet flow.
[0063] In another embodiment, the controller 80 attempts to select packet flows that are less sensitive to delay rather than packet flows that are more sensitive to delay. For example, a flow that transmits data is generally less sensitive to delay than a flow that transmits real-time video or voice. Throttling relatively delay-tolerant packet flows provides better overall QoS.
[0064] Additionally or alternatively, the controller 80 may use any other suitable selection criteria to select which packet flows to throttle in the event of memory access congestion.
[0065] Resource allocation, monitoring and tuning
[0066] In some embodiments, controller 80 assigns memory resources to processing tasks 52 and 60 and monitors the actual use of resources by the processing tasks. When the actual use of resources by the processing tasks exceeds their allocation, controller 80 uses the above-described techniques to alleviate the resulting memory access congestion.
[0067] In some embodiments, the controller 80 divides the processing tasks 52 and 60 into groups called partitions. A partition may include one or more processing tasks. A partition is a basic unit for allocating, monitoring, and adjusting memory resources. The controller 80 assigns a partition identifier (PARTID) to each partition. In an example embodiment, the total number of partitions is up to thirty-two. In an example embodiment, one or more of the partitions may be defined as a secure partition that can only be accessed by hardware.
[0068] In addition, the controller 80 defines one or more performance monitoring groups (PMGs). Each PMG includes one or more partitions whose performance should be monitored. The controller 80 assigns a PMG identifier (PMGID) to each PMG. Performance can be monitored and adjusted by partition and / or by PMG.
[0069] Controller 80 may assign any suitable resources of the memory subsystem (MSS) of network device 24 to the partitions. The resources may include, for example, one or more of the following:
[0070] ■Memory access bandwidth and priority of accessing DRAM 44.
[0071] ■Bandwidth and priority in the coherency structure 64.
[0072] ■Memory space in SLC 68.
[0073] Additionally or alternatively, any other suitable memory resource type may be used.
[0074] Figure 3 1 is a diagram schematically showing the allocation of MSS resources by the controller 80 in the network device 24 according to an embodiment of the present invention. In this embodiment, the processing tasks 52 and 60 access the shared memory 114 (e.g., Figure 1 The processing tasks 52 and 60 are divided among three partitions with PARTID={0, 1, 2}. A PARTID is assigned to each processing task depending on the partition to which the task belongs.
[0075] The controller 80 includes a cache memory allocation table 106 and one or more resource regulators 110. The table 106 specifies the maximum capacity of the SLC 68 that can be allocated to each partition. In the present example, the maximum capacity of a given partition is specified as a percentage of the total SLC size (e.g., 50%, 10%, 40%). The resource regulator 110 controls the memory access bandwidth to the shared memory 114. In the present example, the regulator 110 sets the minimum memory access bandwidth and the maximum memory access bandwidth (in MBp) for each partition. Assuming no oversubscription, the minimum memory access bandwidth generally indicates the bandwidth that is guaranteed or guaranteed. The maximum memory access bandwidth generally assumes a certain degree of oversubscription.
[0076] Figure 4 1 is a diagram schematically illustrating monitoring and adjustment of MSS resources by the controller 80 in the network device 24 according to an embodiment of the present invention. In this example, the controller 80 includes one or more setting tables 120, a request handler 124, a measurement module 128, and one or more resource adjusters 110.
[0077] A given settings table 120 specifies the allocation of specific MSS resources for each PARTID. In addition to the quota of resources allocated to each PARTID, the table 120 also specifies for each PARTID whether the allocation is a hard limit (HL). Typically, a corresponding table 120 is defined for each resource regulator 110. For clarity, the figure shows a single regulator and a single settings table.
[0078] Request handler 124 handles memory access requests (eg, read requests and write requests) issued by processing tasks 52 and 60. A given memory access request specifies (in addition to the address and data, where appropriate) a corresponding PARTID, traffic class (TC), and PGMID.
[0079] When a new memory access request arrives, the controller 80 queries the settings table 120 and extracts the resource allocation ("settings") corresponding to the PARTID and TC of the request. In parallel, the measurement module 128 measures the actual usage of the resource in question according to the PARTID. Both the resource allocation ("settings") and the actual resource usage are provided as input to the resource regulator 110. The regulator 110 checks whether the actual usage exceeds the allocation and provides the decision to the request handler 124. The request handler 124 can act on the decision in any suitable manner, for example, initiating a "completer busy" (CBusy) report as described in detail below, initiating soft throttling of the data flow, or performing any other suitable action.
[0080] about Figure 3 and Figure 4 The resource allocation, measurement and adjustment schemes described are example schemes chosen purely for conceptual clarity. In alternative embodiments, any other suitable schemes may be used.
[0081] Predict and act on impending memory access congestion
[0082] In some embodiments, the controller 80 predicts that memory access congestion is developing before the congestion has a significant impact on the performance of the network device 24. This capability enables the controller 80 to initiate responsive actions, such as throttling packet flows and preempting congestion using the techniques described above. In various embodiments, the controller 80 can predict memory access congestion in various ways.
[0083] For example, in some embodiments, the controller 80 monitors the latency of memory access operations (e.g., read and / or write operations) issued by various processing tasks 52 and / or 60. The controller 80 attempts to identify trends in latency increases over time. Gradually increasing latency of memory access operations generally indicates impending memory access congestion.
[0084] In other embodiments, the processing tasks and the shared memory (MSS) use a closed-loop feedback mechanism in which the shared memory reports how busy it is handling memory access requests. The controller 80 monitors these reports and uses them to predict future occurrences of memory access congestion. In response to identifying impending memory access congestion, the controller 80 can prevent congestion by initiating throttling of one or more packet flows, as described above.
[0085] In the context of this closed-loop feedback mechanism, processing tasks 52 and 60 are referred to as "requesters" and the MSS is referred to as a "completer."
[0086] In some embodiments, the processing tasks and shared memory use a feedback mechanism known as "completer busy" (CBusy). In these embodiments, the shared memory sends periodic CBusy notifications to the network processor 48 and the CPU core 56. Each Cbusy notification indicates how busy the shared memory is. In an exemplary implementation, the CBusy notification specifies one of four levels: (i) "not busy" means that the utilization rate is less than 50%, (ii) "low busy" means that the utilization rate is between 50% and 75%, "medium busy" means that the utilization rate is between 75% and 90%, and (iv) "high busy" means that the utilization rate is greater than 90%.
[0087] Processing tasks 52 and 60 can use CBusy notifications as hints or suggestions about whether and how to throttle their memory access operations. In an exemplary implementation, the processing task responds to "not busy" and "low busy" notifications by opening a stream of memory access transactions (if necessary). In response to a "medium busy" notification, the processing task can retain the current rate of memory access transactions. In response to a "high busy" notification, the processing task will typically reduce the rate of memory access transactions. Note that this throttling of memory access operations is performed within the network device 24 and should not be confused with throttling of packet flows through the network 32.
[0088] In some embodiments, in addition to the CBusy mechanism, the processing tasks and shared memory use a credit-based flow control loop that regulates the rate of memory access transactions.Further alternatively, any other suitable feedback mechanism may be used.
[0089] In an embodiment, the memory network congestion controller 80 monitors feedback notifications (e.g., CBusy notifications) sent by the shared memory and uses these notifications as indicators of impending memory access congestion. For example, the controller 80 may initiate throttling of a packet flow in response to monitoring a "medium busy" CBusy notification. Alternatively, any other suitable criteria may be used.
[0090] It should be understood that the above embodiments are cited by way of example, and the present invention is not limited to what is specifically shown and described above. On the contrary, the scope of the present invention includes the combination and sub-combination of the various features described above, as well as variations and modifications thereof that would occur to those skilled in the art upon reading the above description and that are not disclosed in the prior art. The documents incorporated by reference in this patent application are considered to be an integral part of this application, except that to the extent that any term is defined in these incorporated documents in a manner that conflicts with the explicit or implicit definition in this specification, only the definition in this specification should be considered.
Claims
1. A network device, comprising: one or more ports, the one or more ports for connecting to a network; processing circuitry for executing a plurality of processing tasks accessing the shared memory, one or more of the processing tasks comprising transmitting one or more packet streams over the network; and A storage network congestion controller, the storage network congestion controller being configured to: identifying memory access congestion occurring when the shared memory is accessed by one or more of the processing tasks; and The memory access congestion is alleviated by causing a reduction in the communication rate of at least one of the packet flows.
2. The network device of claim 1, wherein the storage network congestion controller is configured to cause the reduction in the communication rate by sending a notification to a remote network device causing the remote network device to throttle a transmission rate of a packet flow.
3. The network device of claim 1, wherein the storage network congestion controller is configured to cause the reduction in the communication rate by sending information indicative of network congestion to a remote network device, regardless of any actual network congestion.
4. The network device of claim 1, wherein the storage network congestion controller is to cause the reduction in the communication rate by throttling a transmission rate of a packet flow to a remote network device.
5. A network device according to claim 1, wherein the one or more packet flows include a first packet flow and a second packet flow having corresponding first communication priorities and second communication priorities, the first communication priority being higher than the second communication priority, and wherein the memory network congestion controller is used to cause the reduction in the communication rate in the second packet flow.
6. The network device of claim 1, wherein the memory network congestion controller is to cause the reduction in the communication rate by modifying a packet drop policy applied to the at least one of the packet flows.
7. A network device according to claim 1, wherein the one or more packet flows include a first packet flow and a second packet flow having corresponding first sensitivity and second sensitivity to delay, the first sensitivity is higher than the second sensitivity, and wherein the memory network congestion controller is used to cause the reduction in the communication rate in the second packet flow.
8. The network device of claim 1, wherein the memory network congestion controller is configured to identify the memory access congestion by identifying that a given processing task or task group among the processing tasks has exceeded a memory usage quota allocated thereto.
9. The network device of claim 1, wherein the memory network congestion controller is configured to identify the memory access congestion by identifying that an overall memory usage of the processing task has exceeded a threshold.
10. The network device of claim 1, wherein the memory network congestion controller is configured to identify the memory access congestion by identifying that a latency of a given one or a group of ones of the processing tasks when accessing the shared memory is above a defined limit.
11. The network device according to claim 1, wherein the memory network congestion controller is used to identify the memory access congestion by identifying a trend of increasing latency when accessing the shared memory by one or more of the processing tasks.
12. The network device of claim 1, wherein the memory network congestion controller is configured to identify the memory access congestion by monitoring notifications of a feedback mechanism between the processing tasks and the shared memory.
13. A method in a network device, the method comprising: executing, in the network device, a plurality of processing tasks accessing a shared memory, one or more of the processing tasks comprising transmitting one or more packet streams over the network; identifying memory access congestion occurring when accessing the shared memory by one or more of the processing tasks; as well as The memory access congestion is alleviated by causing a reduction in the communication rate of at least one of the packet flows.
14. The method of claim 13, wherein causing the reduction in the communication rate comprises: A notification is sent to a remote network device causing the remote network device to throttle a transmission rate of a packet flow.
15. The method of claim 13, wherein causing the reduction in the communication rate comprises: Sending information indicating network congestion to a remote network device independent of any actual network congestion.
16. The method of claim 13, wherein causing the reduction in the communication rate comprises: Throttle the transmission rate of packet streams to remote network devices.
17. A method according to claim 13, wherein the one or more packet streams include a first packet stream and a second packet stream having corresponding first communication priority and second communication priority, the first communication priority being higher than the second communication priority, and wherein the reduction in the communication rate in the second packet stream is caused by execution.
18. The method of claim 13, wherein causing the reduction in the communication rate comprises: A packet discard policy applied to the at least one of the packet flows is modified.
19. A method according to claim 13, wherein the one or more packet streams include a first packet stream and a second packet stream having corresponding first and second sensitivities to delay, the first sensitivity is higher than the second sensitivity, and wherein the reduction in the communication rate is performed in the second packet stream.
20. The method of claim 13, wherein identifying the memory access congestion comprises: It is identified that a given one of the processing tasks or a group of tasks has exceeded a memory usage quota allocated thereto.
21. The method of claim 13, wherein identifying the memory access congestion comprises: It is identified that the overall memory usage of the processing task has exceeded a threshold.
22. The method of claim 13, wherein identifying the memory access congestion comprises: It is identified that a latency of a given processing task or group of tasks among the processing tasks in accessing the shared memory is above a defined limit.
23. The method of claim 13, wherein identifying the memory access congestion comprises: An increasing trend in latency when accessing the shared memory by one or more of the processing tasks is identified.
24. The method of claim 13, wherein identifying the memory access congestion comprises: A feedback mechanism between the processing task and the shared memory is monitored for notification.
