A cam-based congestion control system and method

By using a CAM module to store congestion flow information in the network and combining it with the DCTCP algorithm, the problems of data loss and latency caused by network congestion are solved, achieving efficient congestion control and network performance improvement.

CN117834533BActive Publication Date: 2026-11-20HEFEI UNIV OF TECH
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410006896.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-03
Publication Date
2026-11-20
Estimated Expiration
2044-01-03

AI Technical Summary

Technical Problem

Existing technologies lead to data loss, increased latency, and decreased throughput during network congestion, and traditional RAM discards data when there are resource conflicts, making it unable to effectively manage network traffic.

Method used

Congestion flow information is stored using a CAM module. Combined with the DCTCP algorithm, and through hardware and software co-design, the CAM module supports out-of-order data storage, and the initial values ​​and calculation parameters are configured to adjust the data sending speed, thereby achieving congestion control.

Benefits of technology

It improves network performance, reduces data loss and latency, enhances network transmission efficiency, and achieves efficient congestion management through hardware and software co-design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117834533B_ABST
    Figure CN117834533B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of software and hardware cooperation, and discloses a congestion control system and method based on CAM, which comprises a congestion control system based on CAM, a software end, a bus module connected with a network card of the software end, a data transceiving module and a data interaction module on a link, a CAM module connected with the bus module, a calculation module, an analysis congestion flow information module and a flow cumulative packet sending module connected with the CAM module, and a scheduling module connected with the data receiving module and the calculation module. The application stores relevant information in the CAM and supports disorderly storage; the DCTCP algorithm is arranged on the congestion controller, the software implementation algorithm is distinguished, and the performance is improved; the software and hardware are cooperatively designed, the system clock and parameter configuration are performed on the software, the module division is performed on the hardware, and the scheme implementation is facilitated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of software and hardware collaboration technology, and in particular to a congestion control system and method based on CAM. Background Technology

[0002] Network congestion occurs when the number of packets being transmitted in a packet-switched network exceeds the available resources of store-and-forward nodes, leading to a decline in network transmission performance. When network congestion occurs, data loss, increased latency, and decreased throughput typically result, and in severe cases, even "congestion crash." Generally, network congestion occurs when an excessive increase in network load causes a decline in network performance.

[0003] In the field of computer vision, CAM (Activation Mapping) is a tool that helps visualize convolutional neural networks. Here, we are referring to its application in the field of computer networks. CAM tables refer to data exchange, data lookup, or address mapping. CAM table mapping methods are commonly used for flow table storage. This method maps a single flow table to multi-level flow tables for efficient storage and lookup, effectively saving TCAM resources.

[0004] In standard RAM, data at a given address is typically located using that address. CAM (Computer-Aided Memory) works differently; it locates the address using the data itself, resulting in faster data searching. In CAM, when a write conflict occurs, the system deletes the old data.

[0005] First, standard RAM lookup involves searching for data at a specific address, essentially an address match. CAM, however, supports out-of-order addresses, meaning it can dynamically store and unstore data. When address conflicts occur, it's not a one-to-one correspondence; instead, data can be stored in a free row. When the CAM table is full, the relevant data is discarded. This approach is suitable for network data streams with high storage capacity and performance requirements. When network congestion occurs, a corresponding data stream number is written; when the corresponding stream is no longer congested and the required network bandwidth is met, the data stream number can be unregistered. Therefore, a CAM-based congestion control system and method are proposed. Summary of the Invention

[0006] To address the technical problems existing in the prior art, this invention provides a congestion control system and method based on CAM.

[0007] This invention is implemented using the following technical solution: a congestion control system based on CAM, comprising a software terminal, wherein the software terminal is connected to a network interface card (NIC) bus module, a data transceiver module, and a data interaction module on the link; the bus module is connected to a CAM module; the CAM module is connected to a calculation module, a congestion flow information parsing module, and a flow accumulation packet sending module; the calculation module is connected to a scheduling module connected to a data receiving module; the data receiving module is connected to the congestion flow information parsing module and the flow accumulation packet sending module; the software terminal includes a control module connected to the bus module; the control module is connected to a software timing module connected to the data transceiver module and the data interaction module; and the control module is connected to the data transceiver module, and the data interaction module is connected to the data transceiver module.

[0008] As a further improvement to the above scheme, the software timing module is used to scan the interval time of ACK packet transmission or CNP packet transmission; the control module is used to configure initial values, wherein the initial values ​​include the initial window number C at the network card end, the initial end-to-end ACK or CNP packet time RTT, calculation parameters a, g, F, and the data interaction module threshold K in the network link.

[0009] As a further improvement to the above scheme, the congestion flow information parsing module is used to parse congestion flow information, the flow cumulative packet sending module is used to collect data flow cumulative packet sending information, the CAM module is used to store the time data scanned by the software timing module, the initial data configured by the control module, the congestion flow information parsed by the congestion flow information parsing module, and the data flow cumulative packet sending information collected by the flow cumulative packet sending module, the bus module is used for data interaction between the CAM module and the control module, the calculation module calculates the a and C values ​​according to the CAM table content, the scheduling module adjusts the sending speed of the data transceiver module according to the structure calculated by the calculation module, the data interaction module is used to feed back the congestion mark generated on the link according to probability to the data transceiver module, and the data transceiver module receives ACK packets or generates CNP packets according to the congestion mark, thereby adjusting the next sending speed of the corresponding flow number.

[0010] As a further improvement to the above scheme, the bus module adopts either an APB bus or an AXI bus, or at least one of them.

[0011] A congestion control method based on CAM includes the following steps:

[0012] The initial values ​​of the CAM module are configured in the control module of the S1 software: the initial number of windows C, the initial end-to-end ACK or CNP packet time RTT, the threshold K of the data interaction module, and the calculation parameters a, g, and F.

[0013] In step S2, the data transceiving module acquires the congestion flow marked with ECN=1 according to probability by the data interaction module in the network link, and uses the congestion flow information parsing module and the flow accumulated packet sending module to parse and record ACK or CNP packets;

[0014] In step S3, the software timing module on the software side scans the interval time of ACK packet sending or CNP packet sending of the data transceiving module at a fixed time, and if the interval exceeds a fixed threshold, the parsed congestion flow number is stored in the CAM module;

[0015] In step S4, during the flow sending process, it is required to match whether there is relevant congestion flow information in the CAM table, if yes, the relevant byte count is accumulated, otherwise the relevant sent byte count is discarded;

[0016] In step S5, the calculation module reads out the row information values of the CAM table in a polling manner using the DCTCP algorithm according to the congestion flow information pre-stored in the CAM module to calculate the a value and the C value;

[0017] In step S6, the calculated a and C values are sent to the scheduling module, and the scheduling module determines the next number of bytes to be sent according to the calculated a and C, so as to control the sending speed of the data transceiving module.

[0018] As a further improvement of the above solution, the specific formula of the DCTCP algorithm is:

[0019] a=(1-g)*a+F*a

[0020] C=(1-a / 2)*C

[0021] Wherein, the flow number QPN range of the CAM module is 0 to 4096, the threshold K of the switch satisfies K≥(C*RTT) / 7, and the reduction coefficient g satisfies g≤1.386 / (2*(C*RTT+K)) 0.5 , for the estimation of the congestion degree a: 0<a≤1, and F is the proportion of packets marked with ECN in the current window, 0<F≤1.

[0022] As a further improvement of the above solution, the DCTCP algorithm uses congestion packet feedback information in the RDMA network, the reliable transmission service uses ACK packets, and the unreliable transmission service uses CNP packets.

[0023] Compared with the prior art, the beneficial effects of the present invention are as follows:

[0024] According to the present invention, relevant information is stored in the CAM to support out-of-order storage; the DCTCP algorithm is deployed on the congestion controller, which is different from the software-implemented algorithm and can improve performance; collaborative design is carried out from the aspects of software and hardware, system clock and parameter configuration are performed on the software side, and module division is performed on the hardware side, which facilitates the implementation of the solution. Brief Description of the Drawings

[0025] Figure 1 A schematic diagram of a CAM-based congestion control system provided by the present invention;

[0026] Figure 2 A schematic diagram illustrating the steps of a CAM-based congestion control method provided by the present invention;

[0027] Figure 3 This invention provides a state machine transition diagram for marking congestion processing in a CAM-based congestion control system.

[0028] Figure 4 This is a schematic diagram of the CAM module provided by the present invention;

[0029] Figure 5 This is a schematic diagram of the structure of the flow accumulation packet sending module provided by the present invention. Detailed Implementation

[0030] The present invention will now be further described in conjunction with the accompanying drawings and specific embodiments. It should be noted that, without conflict, the various embodiments or technical features described below can be arbitrarily combined to form new embodiments.

[0031] Example 1:

[0032] Please combine Figure 1 This embodiment of a CAM-based congestion control system includes a software terminal. The software terminal is connected to a bus module with a network interface card, a data transceiver module, and a data interaction module on the link. The bus module is connected to a CAM module. The CAM module is connected to a calculation module, a congestion flow information parsing module, and a flow accumulation packet sending module. The calculation module is connected to a scheduling module connected to a data receiving module. The data receiving module is connected to the congestion flow information parsing module and the flow accumulation packet sending module. The software terminal includes a control module connected to the bus module. The control module is connected to a software timing module connected to the data transceiver module and the data interaction module. The control module is connected to the data transceiver module, and the data interaction module is connected to the data transceiver module.

[0033] The software timing module is used to scan the interval of ACK packet transmission or CNP packet transmission; the control module is used to configure initial values, which include the initial window size C at the network card end, the initial end-to-end ACK or CNP packet time RTT, calculation parameters a, g, F, and the data interaction module threshold K in the network link.

[0034] The congestion flow information parsing module is used to parse congestion flow information; the flow cumulative packet sending module is used to collect data flow cumulative packet sending information; the CAM module is used to store the time data scanned by the software timing module, the initial data configured by the control module, the congestion flow information parsed by the congestion flow information parsing module, and the data flow cumulative packet sending information collected by the flow cumulative packet sending module; the bus module is used for data interaction between the CAM module and the control module; the calculation module calculates the a and C values ​​according to the contents of the CAM table; the scheduling module adjusts the sending speed of the data transceiver module according to the structure calculated by the calculation module; the data interaction module feeds back the congestion markers generated on the link according to probability to the data transceiver module; the data transceiver module receives ACK packets or generates CNP packets according to the congestion markers, thereby adjusting the next sending speed of the corresponding flow number;

[0035] The bus module uses either the APB bus or the AXI bus, or at least one of them.

[0036] Example 2:

[0037] Please combine Figure 2 A congestion control method based on CAM includes the following steps:

[0038] The initial values ​​of the CAM module are configured in the control module of the S1 software: the initial number of windows C, the initial end-to-end ACK or CNP packet time RTT, the threshold K of the data interaction module, and the calculation parameters a, g, and F.

[0039] The S2 data transceiver module acquires the congested flows in the network link that are marked with ECN=1 according to probability by the data interaction module, and uses the congestion flow information parsing module and flow accumulation packet sending module to parse and record ACK or CNP packets;

[0040] The software timing module on the S3 software side scans the interval between ACK packets or CNP packets sent by the data transceiver module at fixed intervals. If the interval exceeds a fixed threshold, the parsed congestion flow number is stored in the CAM module.

[0041] During the stream transmission process, S4 needs to check if there is any related congestion stream information in the CAM table. If there is, the relevant byte count is accumulated; otherwise, the relevant transmitted byte count is discarded.

[0042] The S5 calculation module uses the DCTCP algorithm to poll and read the row information values ​​of the CAM table based on the congestion flow information pre-stored inside the CAM module to calculate the a and C values;

[0043] S6 sends the calculated values ​​of a and C to the scheduling module. The scheduling module determines the number of bytes to be sent next based on the calculated values ​​of a and C, thereby controlling the sending speed of the data transceiver module.

[0044] The specific formula of the DCTCP algorithm is:

[0045] a=(1-g)*a+F*a

[0046] C=(1-a / 2)*C

[0047] Wherein, the flow number QPN of the CAM module ranges from 0 to 4096, the threshold K of the data interaction module satisfies K≥(C*RTT) / 7, and the reduction coefficient g satisfies g≤1.386 / (2*(C*RTT+K)) 0.5 , the estimation of the congestion degree a: 0<a≤1, F is the proportion of packets marked with ECN in the current window, 0<F≤1;

[0048] In the RDMA network, the DCTCP algorithm uses congestion packet feedback information, the reliable transmission service uses ACK packets, and the unreliable transmission service uses CNP packets.

[0049] Embodiment 3:

[0050] A CAM-based congestion control method, comprising the following steps:

[0051] S1 The control module at the software side configures the initial values of the CAM module: wherein the initial values include the initial window number C, the initial end-to-end ACK or CNP packet time RTT, the threshold K of the data interaction module, and the calculation parameters a, g, F;

[0052] S2 The data transceiving module acquires the congestion flow marked with ECN=1 by the data interaction module in the network link according to the probability, and uses the congestion flow information parsing module and the flow accumulated packet sending module to parse and record the ACK or CNP packets.

[0053] Wherein, for the RDMA transport layer protocol, the congestion signal is marked on the data interaction module according to the probability, the RTT1 is recorded at the packet sending moment fed back to the software side in the data transceiving module, the RTT2 is recorded when the response packet is received, and the interval of the latest congestion occurrence is obtained according to the duration. If RTT=RTT2-RTT1, it is determined according to RTT whether it is greater than a time interval, and if it is less than the time interval, the processing of this congestion packet is discarded.

[0054] When an ACK or CNP packet is received, it is first determined whether the packet contains an ECN flag. If so, the congestion flow information parsing module is used to parse it. The Destination QP in the BTH field of the ACK or CNP packet and the Syndrome[7:5]=010 in the AETH field of the ACK packet are parsed. The reserved field[4:0] records the RTT time. The payload field in the CNP packet records the RTT time. After parsing, the above content is extracted. The difference between the currently received RTTnow and the most recently received RTTlatest is determined to be higher than the fixed value of the time when congestion occurs.

[0055] The software timing module on the S3 software side scans the interval between ACK packets or CNP packets sent by the data transceiver module at fixed intervals. If the interval exceeds a fixed threshold, the parsed congestion flow number is stored in the CAM module.

[0056] Congested packets that meet the time interval are recorded in the CAM module, including the corresponding flow number. The most recent congested flow information (including the most recent C value and congested flow number) is also written into the CAM module. The latest a, F, and g values ​​from the software are also written into the CAM module.

[0057] If the time frame exceeds a fixed threshold for congestion, the message (congested flow number, corresponding flow number in bytes, a value, g value, and F value) is stored in the CAM table. If the time frame is below the fixed threshold, the message is discarded and not stored in the CAM. If the corresponding flow number in bytes is not recorded, the initial value is sent to the CAM table using scheduling. If the corresponding flow number in bytes is subsequently recorded, the congested flow is written from the byte FIFO to the CAM for updating.

[0058] During the stream transmission process, S4 needs to check if there is any related congestion stream information in the CAM table. If there is, the relevant byte count is accumulated; otherwise, the relevant transmitted byte count is discarded.

[0059] The S5 calculation module uses the DCTCP algorithm to poll and read the row information values ​​of the CAM table based on the congestion flow information pre-stored inside the CAM module to calculate the a and C values;

[0060] S6 sends the calculated values ​​of a and C to the scheduling module. The scheduling module determines the number of bytes to be sent next based on the calculated values ​​of a and C, thereby controlling the sending speed of the data transceiver module.

[0061] The difference between using ACK packets or CNP packets is that the RDMA protocol distinguishes between reliable transmissions, which use ACK packets for data acknowledgment and unreliable transmissions, and CNP packets for data congestion feedback.

[0062] ECN=0 is not necessarily generated in an ACK. When the receiving end generates an ACK carrying ECN=1 congestion information, it needs to meet the requirements that n packets need to be responded to and a congestion mark is required. At this time, the transmitting end needs to parse the information of the congestion packet, and obtain the flow number and flow time. CNP is a congestion mark feedback packet for unreliable transmission. The transmitting end needs to meet the time interval of congestion generation (one CNP is generated for every n unreliable transmission packets), and needs to obtain the information of the congestion packet: flow number and flow time.

[0063] Embodiment 4:

[0064] When the control module at the software end configures the initial value of the CAM module,

[0065] First, at the software end, C, RTT and K are initialized, the preconfigured values above are calculated, and the critical value is selected: K=(C*RTT) / 7, and the reduction factor g=1.386 / (2*(C*RTT+K)) 0.5 . Since the degree of network congestion will also affect the reduction factor, g' is divided into 4 gears: g, 3 / 4g, 1 / 2g and 1 / 4g.

[0066] When the congestion degree is high with a=1, g'=g; when the congestion degree satisfies 1 / 2<a<1, g'=3 / 4g; when the congestion degree satisfies 1 / 2≤a<1 / 10, g'=1 / 2g; when the congestion degree satisfies 1 / 10≤a<0, g'=1 / 4g.

[0067] Such allocation is because when the network is in a very high congestion state with a=1, the number of transmitted bytes can be reduced; when the congestion is very low, the number of transmitted bytes can be quickly restored. Therefore, the congestion controller needs to update the g' value once when each a critical value is reached.

[0068] Since both reliable transmission (ACK) and unreliable transmission (CNP) need to use RTT. For the convenience of calculation and implementation, the same RTT time can be used to update the number of transmitted bytes of QPN.

[0069] Embodiment 5:

[0070] Step 1: The software end configures relevant initial parameters of the CAM module through the APB / AXI bus, and the software end needs to record the initial packet sending time when the transmitting end of the data transceiver module transmits the corresponding QPN packet. When the response end of the data transceiver module sends an ACK to the transmitting end or the transmitting end generates a CNP packet, the time of returning the ACK and generating the CNP packet is recorded, so that congestion packets are generated for different QPN packets at a certain time, so as to avoid excessive network feedback and frequent processing of congestion information.

[0071] Step 2: Before any congestion packets are generated, the sending end of the data transceiver module and the scheduling module send packets according to the initial byte transmission count of the scheduling module. When the data transceiver module generates ECN tags in the network according to probability... Figure 3 The process shown is as follows, where a packet refers to several data packets from the same QP.

[0072] Step 3: The software timing module records the time of the two most recent congestion packets and feeds it back to the congestion flow information parsing module for parsing. If the time of the two most recent congestion packets is greater than a fixed value T, the corresponding ACK or CNP packet needs to be parsed, and the flow number in the congestion packet information is registered in the CAM table. The CAM module supports out-of-order data placement.

[0073] Step 4: The stream accumulation packet sending module supports the accumulation of sent bytes for the same QPN. When there is no corresponding stream number in the CAM table, the received byte count should be discarded. The CAM table maintains a corresponding QPN mapping table. Only when the QPN mapping table is satisfied can the corresponding sent byte count be sent to the CAM table. The stream accumulation packet sending module is as follows: Figure 5 As shown.

[0074] Step 5: The software-side control module configures some parameter values ​​corresponding to the QPN, which are pre-stored in the CAM module's registers. These include initial values ​​for a, F, g, and C. The QPN that first encounters congestion and these parameter values ​​are written to the CAM module. If congestion occurs subsequently, the number of bytes in the CAM table is incremented. When the scheduling threshold speed is met, the corresponding QPN and the value in the byte counter are deregistered. The specific circuit diagram of the CAM module is shown in Figure 4.

[0075] Step 6: The CAM mapping table is polled to read a batch of QPNs and related parameters, which are then sent to the calculation module to calculate the C and a values. The a values ​​need to be updated and written back to the CAM table. Registers are set to store the relevant QPNs and C values, and these values ​​are then passed to the scheduling module.

[0076] This design stores relevant information in the CAM, supporting out-of-order storage; deploys the DCTCP algorithm on the congestion controller, which, unlike the software-implemented algorithm, improves performance; and adopts a collaborative design approach from both hardware and software perspectives, with system clock and parameter configuration in the software and module partitioning in the hardware, facilitating solution implementation.

[0077] The above embodiments are merely preferred embodiments of the present invention and should not be construed as limiting the scope of protection of the present invention. Any non-substantial changes and substitutions made by those skilled in the art based on the present invention shall fall within the scope of protection claimed by the present invention.

Claims

1. A congestion control system based on CAM, characterized in that, The system includes a software component connected to a network interface card (NIC) bus module, a data transceiver module, and a data interaction module on the link. The bus module is connected to a CAM module, which in turn is connected to a calculation module, a congestion flow information parsing module, and a flow accumulation packet sending module. The calculation module is connected to a scheduling module connected to the data transceiver module. The data transceiver module is connected to the congestion flow information parsing module and the flow accumulation packet sending module. The software component also includes a control module connected to the bus module. The control module is connected to a software timing module connected to the data transceiver module and the data interaction module. The control module is connected to the data transceiver module, and the data interaction module is connected to the data transceiver module. The congestion flow information parsing module is used to parse congestion flow information, the flow accumulation packet sending module is used to collect data flow accumulation packet sending information, the CAM module is used to store the time data scanned by the software timing module, the initial value configured by the control module, the congestion flow information parsed by the congestion flow information parsing module, and the data flow accumulation packet sending information collected by the flow accumulation packet sending module, the bus module is used for data interaction between the CAM module and the control module, and the calculation module calculates the a value and C value according to the contents of the CAM table, where a is the estimated value of congestion level and C is the number of windows; The scheduling module adjusts the sending speed of the data transceiver module based on the calculation results of the calculation module. The data interaction module feeds back the congestion markers generated by the link according to probability to the data transceiver module. The data transceiver module receives ACK packets or generates CNP packets according to the congestion markers, thereby adjusting the next sending speed of the corresponding flow number. The software timing module scans the interval between ACK packets or CNP packets sent by the data transceiver module at fixed intervals. If the interval exceeds a fixed threshold, the congestion flow information parsing module writes the parsed congestion flow number into the CAM module. The calculation module performs the a and C values ​​calculation based on the CAM table content, including: the calculation module uses the DCTCP algorithm to poll and read the row information values ​​of the CAM table based on the congestion flow information pre-stored inside the CAM module, and then calculates the a and C values. The control module is used to configure initial values, which include the initial value of the number of network interface card windows C, the initial end-to-end time (RTT) of the initial end-to-end ACK or CNP packet, the reduction factor g, the initial value of the congestion level estimate a, the initial value of the proportion F of packets in the current window that are marked with ECN, and the threshold K of the data interaction module in the network link.

2. The CAM-based congestion control system as described in claim 1, characterized in that, The bus module uses the APB bus and / or the AXI bus.

3. A CAM-based congestion control method, wherein the method is implemented by the CAM-based congestion control system described in claim 1, characterized in that, Includes the following steps: S1. The initial values ​​of the CAM module are configured in the software control module: the initial values ​​include the initial value of the number of network card windows C, the initial end-to-end ACK packet or CNP packet time RTT, the reduction factor g, the initial value of the congestion level estimate a, the initial value of the proportion of packets in the current window that are marked with ECN F, and the data interaction module threshold K in the network link. S2. The data transceiver module obtains the congested flows in the network link that are marked with ECN=1 according to probability by the data interaction module, and uses the congestion flow information parsing module and flow accumulation packet sending module to parse and record ACK or CNP packets. S3. The software timing module on the software side scans the interval between ACK packets or CNP packets sent by the data transceiver module at fixed intervals. If the interval exceeds a fixed threshold, the congestion flow information parsing module writes the parsed congestion flow number into the CAM module. S4. During the stream transmission process, check if there is any related congestion stream information in the CAM table. If so, increment the number of related transmitted bytes; otherwise, discard the number of related transmitted bytes. S5. The calculation module uses the DCTCP algorithm to poll and read the row information values ​​of the CAM table based on the congestion flow information pre-stored inside the CAM module to calculate the a value and C value. S6. The calculated values ​​of a and C are sent to the scheduling module. The scheduling module determines the number of bytes to be sent next based on the calculated values ​​of a and C, thereby controlling the sending speed of the data transceiver module.

Citation Information

Patent Citations

  • Programmable congestion control

    CN112804157A