Coherent capture of shared buffer state
By introducing buffer control and monitoring circuits into communication network elements to generate coherent snapshots, the problem of complex buffer status changes is solved, early detection and management of buffer congestion is achieved, packet loss is reduced, and network performance is improved.
Patent Information
- Application Number
- CN202010430012.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-05-21
- Filing Date
- 2020-05-20
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2040-05-20
AI Technical Summary
In communication network elements, the buffer status continues to change as packets are forwarded, making the root cause analysis of diagnostic events complicated. Existing technologies are difficult to detect and alleviate buffer congestion early, resulting in delays and packet loss.
A network element is designed that includes a buffer control and monitoring (BCM) circuit that continuously monitors the status of logical buffers and freezes records when diagnostic events occur, generating coherent snapshots for processor analysis to take action. The BCM circuitry can concurrently store information in buffer memory and partially write it to snapshot memory, stopping writing in response to predefined diagnostic events and creating snapshots corresponding to the time of the diagnostic event.
By generating coherent snapshots, it provides full observability of network element behavior, supports adaptive management of buffer resources, early detection and mitigation of congestion, reduces packet loss, and improves network performance.
Smart Images

Figure CN111988243B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates generally to communication networks, and in particular to capturing buffer status in network elements. Background Art
[0002] In a communication network element, a buffer may be used to temporarily store communication packets and / or other data. For diagnostic purposes, it may be necessary to analyze and / or diagnose the status of such a buffer.
[0003] US Patent Application Publication 2008 / 0065760 describes a network management system with adaptive sampling active diagnostic capabilities.
[0004] US Patent Application Publication 2014 / 0006871 describes techniques for monitoring and diagnosing a network including one or more devices. Summary of the invention
[0005] Embodiments of the invention described herein provide a network element comprising a plurality of ports configured for communicating over a network, a buffer memory, a snapshot memory, and circuitry configured to forward packets between the ports, temporarily store information associated with the packets in the buffer memory, continuously write at least a portion of the information to the snapshot memory concurrently with storing the information in the buffer memory, and in response to at least one predefined diagnostic event, cease writing the information to the snapshot memory so as to create a coherent snapshot in the snapshot memory corresponding to the time of the diagnostic event.
[0006] In some embodiments, the circuit is configured to concurrently store in the buffer memory and include information about a plurality of packets associated with a plurality of processes or flows in the coherent snapshot. In an embodiment, the information includes data carried by the packets. Additionally or alternatively, the information may include a descriptor of the packets.
[0007] In a disclosed embodiment, the circuit is configured to detect the predefined diagnostic event as part of forwarding the packet. In an example embodiment, in response to the predefined diagnostic event, the circuit is configured to generate an interrupt indicating the coherent snapshot. In another embodiment, in response to the creation of the coherent snapshot, the circuit is configured to send the coherent snapshot over the network.
[0008] According to an embodiment of the present invention, a method is additionally provided, comprising: in a network element including a plurality of ports connected to a network, forwarding packets between the ports. Temporarily storing information associated with the packets in a buffer memory in the network element. Concurrently with storing the information in the buffer memory, continuously writing at least a portion of the information to a snapshot memory in the network element. In response to at least one predefined diagnostic event, stopping writing the information to the snapshot memory so as to create a coherent snapshot in the snapshot memory corresponding to the time of the diagnostic event.
[0009] The present invention will be more fully understood through the following detailed description of embodiments of the present invention in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Figure 1 is a block diagram schematically illustrating a network element according to an embodiment of the present invention;
[0011] Figure 2 is a block diagram schematically illustrating a packet processing unit of a network element according to an embodiment of the present invention;
[0012] Figure 3 is a block diagram schematically illustrating a buffer control and monitoring (BCM) unit according to an embodiment of the present invention;
[0013] Figure 4A is a flow chart schematically illustrating a first method for coherent buffer status transmission according to an embodiment of the present invention; and
[0014] Figure 4B is a flow chart schematically illustrating a second method for coherent buffer status transmission according to another embodiment of the present invention. DETAILED DESCRIPTION
[0015] Overview
[0016] A network element, such as a network switch, receives packets from an ingress port and forwards the packets to an egress port. A network switch typically includes a memory (hereinafter referred to as a buffer) that temporarily stores packets until they can be forwarded to the network. In some embodiments, the buffer may also store control structures, such as packet descriptors.
[0017] Embodiments of the invention described herein provide an improved buffer management method and system that coherently monitors buffer status to allow structural congestion analysis. According to embodiments of the invention, a network element includes a packet processing circuit that receives packets through an ingress port and forwards the packets to an egress port. The packet processing circuit can process multiple packets concurrently, and the buffer can be shared by multiple packet forwarding processes.
[0018] In some embodiments, the buffer control circuit manages a shared buffer and creates multiple individually controlled buffers (hereinafter referred to as logical buffers) within the shared buffer. The control circuit organizes the logical buffers into first-in-first-out queues, and then assigns queues to packet forwarding processes, deallocates logical buffers of queues that are no longer needed, overflows packets from congested queues to non-congested queues, changes the size of logical buffers, merges and splits logical buffers, etc.
[0019] In an embodiment according to the present invention, events related to increased usage of buffer resources, such as buffer congestion, may result in increased latency and may result in loss of packets or portions thereof. In order to improve network performance and reduce the frequency of packet loss events, it is important to detect buffer congestion early, understand its causes, and take measures (e.g., adaptation of shared buffer resources) to alleviate congestion when possible. Such events, as well as other suitable events that are valuable for detection and analysis, are referred to herein as "diagnostic events."
[0020] In theory, it is possible to add circuitry to detect diagnostic events, including failure events (e.g., packet drops) or developing congestion (e.g., a queue exceeds a preset occupancy threshold). However, analysis of the source of the problem is not straightforward because the state of the buffers continues to change as the network element forwards packets. For example, if some circuitry starts reading the state of all queues when a packet is dropped, by the time the state of the last queue is read, the queue state may be very different from the state at the time the packet was dropped.
[0021] According to an embodiment, the network element includes a buffer control and monitoring (BCM) circuit that is configured to continuously monitor the control state of some or all logical buffers and store ("record") a copy of the control state in a local memory. In an embodiment, the control state recording of some or all logical buffers can be enabled and disabled by software control. In some embodiments, the buffer management circuit is configured to stop updating ("freeze") some or all records when a diagnostic event occurs. In an embodiment, after freezing the record, the BCM will indicate to a processor (e.g., a CPU) that a diagnostic event has occurred and the record of the shared buffer control state is frozen.
[0022] In some embodiments, the processor can read the frozen record (hereinafter referred to as a "snapshot"); in other embodiments, the BCM circuit writes the snapshot to the CPU memory; and in other embodiments, the BCM circuit transmits the snapshot over the network (e.g., to a network monitoring server). The snapshot is coherent in the sense that all elements of the record are frozen at the same time, and therefore the entire record is valid and correct for that point in time.
[0023] In some embodiments, the BCM circuit is also configured to detect diagnostic events that may be important for network performance analysis (e.g., diagnostic events include logic buffers exceeding a preset occupancy threshold). In other embodiments, the BCM circuit receives diagnostic events from other units of the network element, and in other embodiments, some diagnostic events are inputs and other diagnostic events are detected by the BCM circuit.
[0024] In some embodiments according to the present invention, resource management can be accomplished at least in part by dynamically adjusting queue thresholds (e.g., a queue occupancy threshold that determines whether a new entry can be forwarded to a queue). In order to properly set the thresholds, it may be important to analyze the queue state when a diagnostic event occurs.
[0025] In some embodiments, the shared buffer contains not only packets, but also data structures related to packet control. For example, in an embodiment, the shared buffer may store a queue of packet descriptors.
[0026] In an embodiment, the snapshot received by the CPU includes individual state snapshots of all logical buffers, thereby allowing diagnostic software to analyze not only the state of the fault queue, but also the state of other queues that exist on the shared buffer resources along with the fault queue.
[0027] In other embodiments, in addition to queue filling information, the snapshot also includes the thresholds used by the queue management. This may be important in embodiments where the thresholds change dynamically.
[0028] Thus, according to embodiments of the invention provided herein, a coherent snapshot of the shared buffer control state is generated, wherein the state of all queues is registered when a diagnostic event is detected (as opposed to registering the state of some queues at a time close to the occurrence of the diagnostic event, and the state of other queues at different times). Full observability is provided, thereby enabling analysis of network element behavior around it, and subsequent adaptation of shared buffer resources to avoid undesirable events.
[0029] System Description
[0030] Figure 1 1 is a block diagram schematically illustrating a network element 100 according to an embodiment of the present invention. The network element communicates with a network 102 and includes: a packet processing unit 104, which receives and sends packets from / to the network; a CPU 106, which manages the operation of the network element; a memory 108, which stores programs and data; and an appropriate bus 110, which is configured to transmit data between various units of the network element.
[0031] The packet processing unit 104 includes: a port 112, which may include an ingress port and / or an egress port; a memory holding a buffer 114 (referred to herein as a "buffer memory") configured to store packets; and an ingress processing unit 116. The ingress processing unit includes a buffer control and monitoring ("BCM") unit 118, and additional control logic ( Figure 1 not shown).
[0032] The network element receives and sends packets from / to the network and temporarily stores the packets in the buffer 114. According to an embodiment of the present invention, the buffer can concurrently store multiple packets that are processed concurrently and belong to multiple processes or flows. Therefore, the buffer is referred to as a shared buffer herein. In some embodiments, additionally or alternatively, the shared buffer can store control structures related to the packet flow (e.g., a packet descriptor queue).
[0033] In an embodiment according to the present invention, BCM 118 continuously records the status of each logical buffer in local memory. Figure 1 In an example embodiment of the present invention, the BCM 118 will stop recording the buffer state (in effect, freezing the buffer state image) in response to the occurrence of a predefined diagnostic event, and send an interrupt to the CPU. The CPU will then read the buffer state record (e.g., to the memory 108). The buffer state record will remain frozen until a relevant record (a "snapshot") is read. Thereafter, state recording can be restarted.
[0034] Therefore, according to Figure 1 In the example implementation shown in , the network element 100 will record the shared buffer status and provide a coherent snapshot of the status to the CPU when a diagnostic event occurs, thereby allowing network maintenance programs to analyze the cause of network congestion and take measures to prevent or reduce congestion-related failures.
[0035] In an embodiment, a software program running in CPU 106 can start and stop the buffer status recording by the BCM. In some embodiments, the software can selectively turn on and off the recording of specific buffers or groups of buffers.
[0036] It should be understood that the structure of the network element 100 described above is cited by way of example. The network element according to the disclosed technology is not limited to the above description. For example, in an alternative embodiment, the CPU may include multiple CPUs; the memory may be fully or partially embedded in the CPU, and there may be more than one bus.
[0037] In some embodiments, an external CPU may be used that is not part of the network element. An interrupt output from the BCM 118 may not be required (e.g., the CPU may instead repeatedly read an indication that a diagnostic event has occurred); the BCM 118 may write the snapshot to memory and, in addition or in lieu thereof, send the snapshot over the network.
[0038] Figure 2 1 is a block diagram schematically illustrating a packet processing unit 104 of a network element according to an embodiment of the present invention. Figure 1 The packet processing unit is briefly described; further details are provided below.)
[0039] The packet processing unit 104 includes: one or more ingress ports 112A, which are configured to receive packets from the network; one or more egress ports 112B, which are configured to send packets to the network; a shared buffer 114, which is coupled to the ingress port and the egress port and is configured to temporarily store packets (and, in some embodiments, packet-related data); and a vertical and horizontal switch 122, which is configured to transfer data between logical buffers of the shared buffer.
[0040] The packet processing unit 104 described above, including the ingress and egress ports 112, the shared buffer 114, and the crossbar switch 122, are collectively referred to as the data plane of the network element (although in some embodiments, the shared buffer may also store control structures). The packet processing unit 104 also includes an ingress processing unit 116, which is configured to control the flow of packets (and is sometimes referred to as a control plane). The ingress processing unit includes: a plurality of control logic units 124, which are configured to process packet headers; a queuing system 130, which is configured to queue packets for egress transmission; and a BCM 118.
[0041] The control logic unit is coupled to the ingress port and receives the header of the packet transmitted from the ingress port to the shared buffer. Each control logic unit includes: a parser 126, which extracts data from the packet header; and a processing unit 128, which constructs a packet descriptor (according to an embodiment of the present invention, a packet descriptor is a compact data structure that contains data related to packet processing, for example, including the destination queue, size and priority). The control logic unit sends the packet descriptor to the queuing system.
[0042] The BCM 118 is configured to control the shared buffer and record the buffer control status. The BCM divides the shared buffer into logical buffers and manages the logical buffers as one or more first-in-first-out queues for storing packets and / or packet-related data.
[0043] The BCM receives buffer consumption updates and buffer release updates from various circuits of the ingress processing unit. The BCM can dynamically change the allocation of buffer space to various queues, including, for example, overflowing packets from a congested queue to a non-congested queue.
[0044] According to an embodiment of the present invention, the BCM continuously records the control state of all or part of the logical buffer in the control state record. The BCM is also configured to detect diagnostic events (e.g., the occupancy of the queue exceeds the programming threshold), and receive external diagnostic events (e.g., packet discard). In response to the occurrence of a diagnostic event, the BCM is configured to freeze the record of the control state and send a coherent control state snapshot.
[0045] Therefore, according to Figure 2 In an example embodiment of the invention, the control state of the shared memory is recorded in the BCM. When a diagnostic event occurs, the recording stops and the BCM sends a coherent snapshot of the control state. A user, such as a network maintenance program, can analyze the snapshot and take preventive or corrective measures to avoid network performance degradation.
[0046] It should be understood that the structure of the above-mentioned group processing unit 104 is cited by way of example. The group processing unit according to the disclosed technology is not limited to the description above. For example, in alternative embodiments, the content of the control status record may be different. In some embodiments, the record includes the complete buffer status; in other embodiments, the record includes a subset of the buffer status, which may be fixed or programmable. Similarly, in some embodiments, only a portion of the status record (e.g., related to the source of the diagnostic event) is sent from the BCM 118. In an embodiment, the record can be compressed. In some embodiments, the local memory storing the control status record includes a double buffer, and when a snapshot is read from one half of the buffer, the record can continue to the other half.
[0047] In some embodiments, the same control logic unit can serve more than one ingress port; in some embodiments, a pool of control logic units are dynamically assigned to ingress ports.
[0048] Figure 3 1 is a block diagram schematically illustrating a buffer control and monitoring (BCM) unit 118 according to an embodiment of the present invention. The BCM includes: four buffer control units 132, which are configured to control a packet receive queue (packet-receive-queue), a packet descriptor receive queue (packet-descriptor-receive-queue), a packet transmit queue (packet-transmit-queue) and a packet descriptor transmit queue (packet-descriptor-transmit-queue).
[0049] and a consumption update router unit 134 configured to route buffer consumption (and buffer release) updates to corresponding buffer control units 132 .
[0050] according to Figure 3 In an example implementation, the control state of the queue is organized into a control database (control database, control DB). Figure 3In an example embodiment, each buffer control unit 132 includes two control DBs - a first control DB 136 and a second control DB 138 (in alternative embodiments, a different number of DBs or a single DB may be used). Each buffer control unit 132 also includes a queue control unit 140; and a state recording unit 142, which is coupled to the control DB 136. The queue control unit 140 is configured to control the corresponding queue in the shared buffer with respect to the control states stored in the control DB 136 and the control DB 138, and to detect diagnostic events related to the corresponding queue (for example, when the occupancy of the queue exceeds a preset threshold). The state recording unit 142 includes an appropriate memory (referred to herein as a "snapshot memory") and is configured to continuously store (record) the control states stored in the DB 136 and the DB 138 in the memory.
[0051] The BCM 118 also includes a snapshot control unit 144 that is coupled to the status recording unit 142. The snapshot control unit receives diagnostic events related to the queue status from the queue control unit 140. Figure 3 In an example embodiment, the snapshot control unit 144 may receive additional diagnostic events, such as packet drops, or other pre-set trigger conditions from sources external to the BCM.
[0052] When a diagnostic event occurs, the snapshot control unit 144 indicates to the state recording unit 142 that recording of the control state should be stopped and that the state recording unit should transmit a copy (snapshot) of the control state recording.
[0053] according to Figure 3 In an example embodiment of the present invention, in addition to the control states of the packet queues, the recorded states may also include the control states of queues related to ingress processing data, such as the control states of the packet descriptor queues. In an embodiment according to the present invention, congestion on the packet descriptor queues may cause performance degradation, and analysis of coherent snapshots of the control states of all queues (including data plane queues and control plane queues) may be important for analyzing and preventing network failures.
[0054] Therefore, according to Figure 3 In an example embodiment, the BCM includes a state recording unit configured to continuously record the control state of the queue of network elements; the diagnostic event is detected by the BCM and / or input to the BCM from an external source. In response to the diagnostic event, the BCM can freeze the recording and send a coherent snapshot of the control state.
[0055] It should be understood that the structure of the BCM 118 described above is cited by way of example. BCMs according to the disclosed technology are not limited to the above description. For example, in alternative embodiments, state recording can be completed in a shared record memory rather than a distributed record memory; and the buffer control unit 132 can include a data compression circuit to compress the control DB before recording. In some embodiments, the BCM can send partial state records, as defined by appropriate BCM driver software.
[0056] In some embodiments, due to pipeline delays, the recording of the control state may lag behind the actual queue state; therefore, the snapshot may be intentionally delayed by a preset (or software-controlled) time period (e.g., a preset number of clock cycles) after the corresponding diagnostic event.
[0057] Figure 4A 2 is a flowchart 200 schematically illustrating a first method for coherent buffer state (snapshot) transmission according to an embodiment of the present invention. The flowchart is executed by the BCM 118.
[0058] The flow starts at a check control state change step 202 where the BCM checks if the control state of any queue has changed. If the control state has changed, the BCM proceeds to an update record step 204 where the BCM records the state change and then proceeds to a check internal diagnostic event step 206 .
[0059] In step 206, the BCM checks whether a diagnostic event has occurred, for example, the occupancy of one of the queues exceeds a preset threshold. If no internal diagnostic event has occurred, the BCM will proceed to step 208 to check for external diagnostic events and check whether an external diagnostic event (e.g., weighted random early detection packet discard (WRED)) has occurred. If there is no state change in step 202, no internal diagnostic event has occurred, and the BCM enters step 208 to check for external diagnostic events.
[0060] If no internal or external diagnostic event has occurred, the BCM will exit the process (after step 208). However, if an internal or external diagnostic event is detected in step 206 or in step 208, the BCM enters a freeze recording step 210, where the BCM stops recording of the control state so that a coherent snapshot can be read, and then enters a generate interrupt step 212, where the BCM sends an interrupt to the CPU.
[0061] After step 212, the CPU typically reads the snapshot. The BCM enters a wait for read complete step 214 and waits until the CPU has finished reading the snapshot. Further control state recording will be suspended so that the relevant snapshot can be read. After reading the snapshot, the BCM will enter a thaw step 216, where the BCM restarts control state recording, and the process ends.
[0062] Figure 4B 2 is a flowchart 250 schematically illustrating a second method for coherent buffer status transmission according to an embodiment of the present invention. The flowchart is executed by the BCM 118, and the first four steps are similar to Figure 4A The corresponding first four steps are the same as: the BCM checks for queue status changes in the check queue status step 252; continues to update the record in the update record step 254, and continues to check internal diagnostic events step 256 if a queue status change occurs, or continues to check external diagnostic events step 258 if no change occurs. Similar to Figure 4A If no internal diagnostic event exists in step 256 , the BCM proceeds to step 258 to check for external diagnostic events.
[0063] When there is a diagnostic event, the process Figure 4A and Process Figure 4B varies; according to Figure 4A In an example implementation, the CPU pulls a snapshot from the BCM, and according to Figure 4B Example implementation of the BCM pushes the snapshot. If a diagnostic event occurs in step 256 or in step 258, the BCM enters a freeze step 260 to freeze the update of the record and then enters a transmit snapshot step 262. In step 262, the BCM writes the snapshot to the memory 108 ( Figure 1 ) in the pre-allocated area in memory. The BCM then proceeds to an unfreeze step 264, where the BCM restarts recording of the control state, and then proceeds to a generate interrupt step 266, where the BCM generates an interrupt to indicate to the CPU that a diagnostic event has occurred and that a snapshot is already in memory. The process ends after step 266.
[0064] In some embodiments, a "warm-up" period occurs before the first step of flowchart 200 and flowchart 250 (respectively, step 202 and step 252), in which the BCM waits for the queue to fill. During the warm-up period, the BCM may ignore all (or some) diagnostic events. Only when the queue is full does the BCM proceed to step 202 ( Figure 4A ) or step 252( Figure 4B ).
[0065] Therefore, according to Figure 4A and Figure 4BIn the example implementation shown in , the BCM can record the control state of the shared buffer of the network element, detect diagnostic events, and receive notifications of external diagnostic events; in response to the diagnostic event, the BCM can freeze the recording and interrupt the CPU so that the CPU will read a coherent snapshot, or write the snapshot to the memory and then interrupt the CPU to indicate that the snapshot is already in the memory. In either case, the recording of the buffer control state will only be restarted after the coherent snapshot is available to the CPU.
[0066] It should be understood that flowchart 200 and flowchart 250 are example flowcharts depicted purely for conceptual clarity. Other suitable flowcharts may be used in alternative embodiments of the present invention. For example, the BCM may stop recording at a time after a diagnostic event occurs; for example, when the CPU begins reading a snapshot; portions of the flowchart (or the entire flowchart) may be executed in parallel or in a different order; an interrupt may not be generated (alternatively, the CPU may repeatedly or occasionally check whether a diagnostic event has occurred and / or whether a snapshot is available). In an embodiment, the BCM never exits the flowchart, but instead, when the BCM enters Figure 4A and Figure 4B At the step marked as exit in the process, the BCM restarts the process flow chart. In some embodiments, the pull process Figure 4A And push process Figure 4B The selection between is done dynamically, e.g. with respect to the CPU load.
[0067] The configuration of the network element 100, including the packet processing unit 104 and all its units, and including the method 200 and the method 250, are example configurations and methods shown purely for conceptual clarity. Any other suitable configuration may be used in alternative embodiments.
[0068] In some implementations, it may be desirable to prevent diagnostic monitoring for some flows. The ingress processing unit 116 may detect such flows and signal the BCM that the diagnostic event should be ignored.
[0069] In embodiments, network element 100 may include a delay measurement device (hardware, software, firmware, or a combination thereof). In these embodiments, a diagnostic event may be flagged in response to a delay of any or all packets.
[0070] In other embodiments, the BCM may initiate a snapshot after a preset number of diagnostic events have occurred, and in other embodiments, when a diagnostic event occurs, the BCM waits a preset time and then initiates a snapshot.
[0071] In various embodiments, various tasks associated with recording and freezing control states may be performed by hardware, software, or a combination of hardware and software.
[0072] In various embodiments, different elements of the network element 100, e.g., the ingress processing unit 116, the BCM 118 and its sub-units, may be implemented using suitable hardware, such as one or more application-specific integrated circuits (ASICs) or field-programmable gate arrays (FPGAs), or a combination of ASICs and FPGAs.
[0073] The CPU 106 of the network element 100 typically includes a general purpose processor that is programmed with 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.
[0074] Although the embodiments described herein are mainly directed to coherent control state snapshots in network elements, the methods and systems described herein may also be used in other applications.
[0075] It should therefore be understood that the above embodiments are cited as examples, and the present invention is not limited by the specific illustrations and descriptions described above. On the contrary, the scope of the present invention includes combinations and sub-combinations of the above-mentioned features, as well as changes and modifications that occur to those skilled in the art when reading the above description and are not disclosed in the prior art. Documents incorporated by reference into this patent application should be considered as part of this application, unless any term defined in these incorporated documents reaches the extent of conflict with the definition explicitly or implicitly made in this specification, in which case only the definition in this specification should be considered.
Claims
1. A network element, include: a plurality of ports configured for communicating over a network; Buffer memory; Snapshot storage; A circuit configured to: forwarding packets between the ports; temporarily storing information associated with the packet in the buffer memory; When a packet is forwarded, the control state of the buffer memory is changed; When the control state changes, continuously writing the control state to the snapshot memory until the writing is stopped due to a diagnostic event; as well as In response to at least one predefined diagnostic event, writing of the control state to the snapshot memory is stopped so as to create in the snapshot memory a coherent snapshot of the control state of the buffer memory corresponding to the time of the diagnostic event.
2. The network element of claim 1, wherein the circuit is configured to concurrently store in the buffer memory and include information about a plurality of packets associated with a plurality of processes or flows in the coherent snapshot.
3. The network element of claim 1, wherein the information comprises data carried by the packets. The network element of claim 1 , wherein the information comprises a descriptor of the packet.
5. The network element of claim 1, wherein the circuit is configured to detect the predefined diagnostic event as part of forwarding the packet.
6. The network element of claim 1, wherein in response to the predefined diagnostic event, the circuit is configured to generate an interrupt indicating the coherent snapshot.
7. The network element of claim 1, wherein in response to creation of the coherent snapshot, the circuitry is configured to send the coherent snapshot over the network.
8. A method for capturing the state of a buffer memory in a network element, include: In a network element comprising a plurality of ports connected to a network, forwarding packets between the ports; temporarily storing information associated with the packet in a buffer memory in the network element; When a packet is forwarded, the control state of the buffer memory is changed; When the control state changes, writing the control state of the buffer memory to the snapshot memory in the network element until the writing is stopped due to a diagnostic event; as well as In response to at least one predefined diagnostic event, writing of the control state to the snapshot memory is stopped to create a coherent snapshot in the snapshot memory corresponding to the time of the diagnostic event.
9. The method of claim 8, further comprising concurrently storing in the buffer memory and including information about a plurality of packets associated with a plurality of processes or flows in the coherent snapshot.
10. The method of claim 8, wherein the information comprises data carried by the packets. The method of claim 8 , wherein the information comprises a descriptor of the packet.
12. The method of claim 8, further comprising detecting the predefined diagnostic event as part of forwarding the packet.
13. The method of claim 8, further comprising generating an interrupt indicating the coherent snapshot in response to the predefined diagnostic event.
14. The method of claim 8, further comprising, in response to the creation of the coherent snapshot, sending the coherent snapshot over the network.
