Flow control method and device for DPU, DPU equipment and storage medium

By using multiple data channels to receive message sequences in the DPU, parsing and processing identification and data volume, counting cache occupancy, and controlling traffic according to the backpressure threshold, the traffic blocking problem when the Ethernet system link is congested is solved and the efficiency is improved. Data transmission efficiency.

CN118612150APending Publication Date: 2024-09-06YUSUR TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410761908.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

The existing Ethernet system blocks all traffic when the link is congested, causing all transmitted traffic to be affected and unable to efficiently control traffic and improve network performance.

Method used

Receive message sequences through multiple data channels, parse and process identification and data volume, count cache occupancy, and send back-pressure instructions to the sender based on back-pressure threshold comparison to limit the flow of congested data channels while allowing other channels to transmit normally. .

Benefits of technology

It achieves efficient control of the traffic of each data channel, avoids the impact of link congestion on other channels, and improves data transmission efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118612150A
    Figure CN118612150A
Patent Text Reader

Abstract

The embodiment of the invention provides a flow control method and device for a DPU (Data Processing Unit), DPU equipment and a storage medium. The method comprises the steps that a message sequence sent by a sending end is received through a plurality of data channels, and the data channels are established based on an input port; analyzing the message sequence received by each data channel, and determining a processing identifier and a data volume of the message sequence; performing corresponding processing on the message sequence according to the processing identifier of the message sequence, and counting the cache occupation amount of the data channel based on the data size of the message sequence, the cache occupation amount being used for indicating the storage space occupied by the message sequence received by the data channel; and comparing the cache occupation amount of the data channel with a back pressure threshold value of the data channel, and when the cache occupation amount is greater than the back pressure threshold value, sending a back pressure instruction to a sending end of the message sequence to limit the sending end to send the message sequence to the data channel with the cache occupation amount greater than the back pressure threshold value, and sending the message sequence to the data channel with the back pressure threshold value. And the sending end normally sends the message sequence to other data channels.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of data transmission, and in particular, to a flow control method, apparatus, DPU device and storage medium for DPU. Background Art

[0002] With the rapid development of Internet technology, the business traffic in the network is increasing, and users' requirements for network performance are getting higher and higher. At the same time, network congestion, delay and other problems are becoming increasingly prominent. In traditional Ethernet systems, when a certain Ethernet link is congested, a flow control mechanism is used to control the flow of the link to deal with the problem of link congestion. However, when the existing flow control mechanism controls the flow of a certain Ethernet link when facing congestion, it will directly block all traffic on the link, so that all traffic transmitted through the link is affected. Summary of the invention

[0003] In view of this, an embodiment of the present application provides a flow control method, apparatus, DPU device and storage medium for DPU to solve the above problems.

[0004] According to a first aspect of an embodiment of the present application, a flow control method for a DPU is provided, the DPU comprising at least one input port, the method comprising: receiving a message sequence sent by a sender through a plurality of data channels, the plurality of data channels being established based on the input port; parsing the message sequence received by each of the data channels to determine a processing identifier and a data volume of the message sequence; processing the message sequence accordingly according to the processing identifier of the message sequence, and counting a cache occupancy of the data channel based on the data volume of the message sequence, the cache occupancy being used to indicate a storage space occupied by the message sequence received by the data channel; comparing the cache occupancy of the data channel with a back pressure threshold of the data channel, and when the cache occupancy is greater than the back pressure threshold, sending a back pressure instruction to the sender of the message sequence to restrict the sender from sending the message sequence to the data channel having the cache occupancy greater than the back pressure threshold, and the sender normally sends the message sequence to other data channels.

[0005] In a possible implementation, the message sequence is processed accordingly according to the processing identifier of the message sequence, and the cache occupancy of the data channel is counted based on the data volume of the message sequence, including: when the processing identifier of the message sequence includes a registration identifier, determining the cache occupancy of the data channel that receives the message sequence according to the data volume; and according to the cache occupancy of the data channel, matching the corresponding storage space to store the message sequence.

[0006] In a possible implementation, the processing identifier also includes at least one of the following: a first release identifier, used to indicate a single output of the message sequence; a second release identifier, used to indicate discarding the message sequence; a multiplexing identifier, used to indicate multiple mirror outputs of the message sequence; and an application identifier, used to indicate extending the length of the message sequence.

[0007] In a possible implementation, the message sequence is processed accordingly according to the processing identifier of the message sequence, and the cache occupancy of the data channel is counted based on the data volume of the message sequence, and also includes: processing the message sequence according to the first release identifier, the second release identifier, the multiplexing identifier and / or the application identifier; when the storage space occupied by the message sequence changes, the cache occupancy is updated.

[0008] In a possible implementation, the method further includes: setting a priority of each of the data channels by setting back pressure thresholds of the multiple data channels; wherein the back pressure threshold of the data channel with a higher priority is greater than the back pressure threshold of the data channel with a lower priority.

[0009] In a possible implementation, the DPU includes a plurality of input ports, and each of the input ports is correspondingly provided with 8 data channels.

[0010] In a possible implementation, the parsing of the message sequence received by each of the data channels includes: parsing the message sequence to determine the channel identifier of the data channel that receives the message sequence; processing the message sequence accordingly according to the processing identifier of the message sequence, and counting the cache occupancy of the data channel based on the data volume of the message sequence, and also includes: determining a storage address for storing the cache occupancy of each of the data channels based on the channel identifier of the data channel; storing the cache occupancy of each of the data channels according to the storage address, wherein different storage addresses include different channel identifiers.

[0011] According to a second aspect of an embodiment of the present application, a flow control device for a DPU is provided, comprising: a receiving unit, configured to receive a message sequence sent by a sending end through a plurality of data channels, wherein the plurality of data channels are established based on the input port; a parsing unit, configured to parse the message sequence received by each of the data channels, and determine a processing identifier and a data volume of the message sequence; a statistical unit, configured to perform corresponding processing on the message sequence according to the processing identifier of the message sequence, and to count a cache occupancy of the data channel based on the data volume of the message sequence, wherein the cache occupancy is used to indicate a storage space occupied by the message sequence received by the data channel; a back pressure unit, configured to compare the cache occupancy of the data channel with a back pressure threshold of the data channel, and to send a back pressure instruction to the sending end of the message sequence when the cache occupancy is greater than the back pressure threshold, so as to restrict the sending end from sending the message sequence to the data channel having the cache occupancy greater than the back pressure threshold, and the sending end normally sends the message sequence to other data channels.

[0012] According to the third aspect of the embodiment of the present application, a DPU device is provided, comprising: a processor, a memory, an input port and a communication bus, wherein the processor, the memory and the input port communicate with each other through the communication bus; the memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute a method as in any of the above embodiments.

[0013] According to a fourth aspect of the embodiments of the present application, a computer storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, a method as described in any of the above embodiments is implemented.

[0014] In the embodiment of the present application, a message sequence sent by a sending end can be received through multiple data channels, and the message sequence received by each data channel can be parsed to determine the processing identifier and data volume of the message sequence. The message sequence is processed accordingly according to the processing identifier of the message sequence, and the cache occupancy of the statistical channel is calculated based on the data volume of the message sequence. By setting a back pressure threshold for each data channel, the back pressure threshold is used to indicate whether each data channel is congested. After obtaining the cache occupancy of each data channel, the cache occupancy of each data channel is compared with its back pressure threshold. When the cache occupancy of a certain data channel is greater than its back pressure threshold, a back pressure instruction can be sent to the sending end of the message sequence to limit the sending end from sending the message sequence to the data channel, that is, to limit the flow of the data channel. The sending end can send messages to other data channels under the same link whose cache occupancy is not greater than the back pressure threshold as usual, so that the data channel that is not congested can still be used normally without being affected by the congested data channel, thereby more efficiently controlling the flow of each data channel and improving the efficiency of data transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.

[0016] Figure 1 is a flow chart of a flow control method for a DPU provided in an embodiment of the present application;

[0017] Figure 2 This is a flowchart of the steps for updating the cache occupancy provided by an embodiment of the present application;

[0018] Figure 3 It is a structural block diagram of a flow control device for DPU provided in an embodiment of the present application;

[0019] Figure 4 It is a structural schematic diagram of a DPU device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0020] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the embodiments of the present application should fall within the scope of protection of the embodiments of the present application.

[0021] The terms used in this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The singular forms of "a", "a", "an" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in this article refers to and includes any or all possible combinations of one or more associated listed items.

[0022] It should be understood that although the terms first, second, third, etc. may be used in this application to describe various information, such information should not be limited to these terms. For example, without departing from the scope of this application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0023] A first aspect of an embodiment of the present application provides a flow control method for a DPU (Data Processing Unit) to solve the above-mentioned problem.

[0024] DPU is a dedicated data processor with data as the center. It adopts software-defined technology to support infrastructure layer resource virtualization and infrastructure layer services such as storage, security, and traffic management. DPU may include at least one input port, which is a physical port. Each input port can form an Ethernet link for network communication.

[0025] like Figure 1 As shown, the flow control method for DPU provided in the embodiment of the present application includes:

[0026] S110: receiving a message sequence sent by a sending end through a plurality of data channels, wherein the plurality of data channels are established based on an input port.

[0027] In the embodiment of the present application, the input port is a physical port, and the data channel is a virtual channel. Based on the Ethernet link of the input port, multiple data channels can be created, and different data channels can carry traffic of different services.

[0028] S120: Parse the message sequence received by each data channel to determine the processing identifier and data volume of the message sequence.

[0029] The message processing identifier may be identification information carried by the message sequence, which may be used to indicate the type of processing to be performed on the message sequence. It should be understood that the storage space of the memory is usually composed of identical storage units. In the embodiment of the present application, the data volume of the message sequence may be represented by the number of storage units that the message sequence needs to occupy.

[0030] S130: Process the message sequence accordingly according to the processing identifier of the message sequence, and calculate the buffer occupancy of the statistical data channel based on the data volume of the message sequence, where the buffer occupancy is used to indicate the storage space occupied by the message sequence received by the data channel.

[0031] The buffer occupancy of the data channel can also be represented by the number of storage units occupied by the received message sequence. When part or all of the message sequence received by the data channel is output, so that the corresponding storage unit is released, the buffer occupancy of the data channel can be reduced by the number of released storage units.

[0032] In some optional embodiments, the processing identifier includes a registration identifier. The message sequence is processed accordingly according to the processing identifier of the message sequence, and the cache occupancy of the statistical data channel based on the data volume of the message sequence is calculated, including:

[0033] When the processing identifier of the message sequence includes a registration identifier, the buffer occupancy of the data channel receiving the message sequence is determined according to the data volume. According to the buffer occupancy of the data channel, the message sequence is stored in a corresponding storage space to facilitate subsequent other processing of the message sequence.

[0034] In the embodiment of the present application, the processing identifier includes a registration identifier, so when it is determined that the processing identifier of the message sequence includes a registration identifier, the cache occupancy of the data channel receiving the message sequence can be determined according to the data volume. According to the cache occupancy of the data channel, the corresponding storage space is matched to store the message sequence, thereby realizing the registration of the message sequence, so as to prepare for other subsequent processing of the message sequence, so as to meet the complex scenario requirements of performing multiple processing on the message sequence.

[0035] In some optional embodiments, the processing identifier may also include at least one of the following: a first release identifier, used to indicate a single output of the message sequence; a second release identifier, used to indicate discarding the message sequence; a multiplexing identifier, used to indicate multiple mirror outputs of the message sequence; an application identifier, used to indicate extending the length of the message sequence. Of course, the processing identifier of the embodiment of the present application may also include other appropriate processing identifiers, all of which are within the protection scope of the embodiment of the present application.

[0036] For example, in some feasible embodiments, the processing identifier may be as shown in the following table:

[0037] Table 1 Message field example table

[0038]

[0039] The above table is an example of each field in the message sequence. Among them, the identifier name column is the name of various processing identifiers; the keyword column is an example of the specific content of each processing identifier; the port_id column is an example of the number of the physical port / link, for example, if the DPU includes 4 physical ports, the numbers of the 4 physical ports can be binary values ​​of 0, 1, 2, and 3; the queue_id column is an example of the number of the data channel, for example, if each physical port has 8 data channels, the numbers of the 8 data channels can be binary values ​​of 0, 1, 2, 3, 4, 5, 6, and 7; the number column is an example of the data volume of the message sequence, the data volume can be represented by the number of storage units, and the specific value can be a binary value.

[0040] In an embodiment of the present application, the processing identifier may include a first release identifier, a second release identifier, a multiplexing identifier and an application identifier, etc., so that when processing the message according to the processing identifier, the message sequence can be output once according to the first release identifier, the message sequence can be discarded according to the second release identifier, the message sequence can be mirrored multiple times according to the multiplexing identifier, the length of the message sequence can be expanded according to the application identifier, etc., to achieve multiple processing of the message sequence, thereby meeting the complex scenario requirements of performing multiple processing on the message sequence.

[0041] S140: Compare the cache occupancy of the data channel with the back pressure threshold of the data channel. When the cache occupancy is greater than the back pressure threshold, send a back pressure instruction to the sending end of the message sequence to restrict the sending end from sending the message sequence to the data channel having a cache occupancy greater than the back pressure threshold, and the sending end sends the message sequence normally to other data channels.

[0042] If the buffer occupancy of the data channel is greater than the back pressure threshold, it can indicate that the data channel has traffic congestion, otherwise, it can indicate that the data channel has no traffic congestion. The back pressure threshold of the data channel can be determined according to the maximum storage space allocated for the data channel. Restricting the sender from sending a message sequence to the data channel can be to stop the sender from sending a message sequence to the data channel, or to slow down the speed of sending the message sequence to the data channel. In addition, in the embodiment of the present application, multiple data channels are respectively provided with corresponding back pressure thresholds, and the back pressure thresholds of multiple data channels corresponding to the same input port can be different. Using the back pressure threshold of each data channel, it can be determined for each data channel whether it is necessary to restrict the sender from sending a message sequence to the data channel, so that the flow of each data channel can be independently controlled, and only the sender is restricted from sending a message sequence to a data channel with a buffer occupancy greater than its own back pressure threshold, without restricting the sender from sending the message sequence to a data channel with a buffer occupancy less than or equal to its own back pressure threshold.

[0043] In the embodiment of the present application, a message sequence sent by a sending end can be received through multiple data channels, and the message sequence received by each data channel can be parsed to determine the processing identifier and data volume of the message sequence. The message sequence is processed accordingly according to the processing identifier of the message sequence, and the cache occupancy of the statistical channel is calculated based on the data volume of the message sequence. By setting a back pressure threshold for each data channel, the back pressure threshold is used to indicate whether each data channel is congested. After obtaining the cache occupancy of each data channel, the cache occupancy of each data channel is compared with its back pressure threshold. When the cache occupancy of a certain data channel is greater than its back pressure threshold, a back pressure instruction can be sent to the sending end of the message sequence to limit the sending end from sending the message sequence to the data channel, that is, to limit the flow of the data channel. The sending end can send messages to other data channels under the same link whose cache occupancy is not greater than the back pressure threshold as usual, so that the data channel that is not congested can still be used normally without being affected by the congested data channel, thereby more efficiently controlling the flow of each data channel and improving the efficiency of data transmission.

[0044] In some optional embodiments, the message sequence is processed accordingly according to the processing identifier of the message sequence, and the buffer occupancy of the statistical data channel is calculated based on the data volume of the message sequence, further comprising:

[0045] The message sequence is processed according to the first release identifier, the second release identifier, the multiplexing identifier and / or the application identifier; when the storage space occupied by the message sequence changes, the cache occupancy is updated.

[0046] As in the above embodiment, the message sequence can be output once according to the first release identifier, the message sequence can be discarded according to the second release identifier, the message sequence can be mirrored multiple times according to the multiplexing identifier, and the length of the message sequence can be extended according to the application identifier. It should be understood that after part / all of the message sequence stored in the storage unit is output or discarded, the storage unit is released, the storage space occupied by the message sequence will be reduced, and the corresponding cache occupancy will also be reduced accordingly. When the length of the message sequence is extended, the message sequence will occupy more storage space.

[0047] When the storage space occupied by the message sequence decreases by a certain value, the cache occupancy of the data channel receiving the message sequence will also decrease by the same value; when the storage space occupied by the message sequence increases by a certain value, the cache occupancy of the data channel receiving the message sequence will also increase by the same value, thereby realizing the update of the cache occupancy. After the cache occupancy of the data channel is updated, the updated cache occupancy is compared with the back pressure threshold of the data channel again. When the cache occupancy is greater than the back pressure threshold, a back pressure instruction is sent to the sending end of the message sequence to restrict the sending end from sending the message sequence to the data channel.

[0048] For example, Figure 2 As shown, in an optional embodiment, processing the message sequence according to the first release identifier, the second release identifier, the reuse identifier and / or the application identifier; when the storage space occupied by the message sequence changes, updating the cache occupancy may include:

[0049] S210: Process the message sequence according to the first release identifier, the second release identifier, the multiplexing identifier and / or the application identifier.

[0050] S220: Registering an increase in the buffer occupancy or a decrease in the buffer occupancy during the processing.

[0051] S230: superimpose the increase or decrease of the cache occupancy with the original cache occupancy of the data channel. It should be understood that the increase of the cache occupancy may be a positive value, and the decrease of the cache occupancy may be a negative value.

[0052] In an embodiment of the present application, the message sequence is processed according to the first release identifier, the second release identifier, the reuse identifier and / or the application identifier, and the cache occupancy is updated when the storage space occupied by the message sequence changes. The cache occupancy of the data channel can be detected in real time, and when the cache occupancy of the data channel is greater than its back pressure threshold, a back pressure instruction can be sent to the sending end of the message sequence in time, thereby improving the response speed of back pressure.

[0053] In some optional embodiments, the flow control method provided by the present application further includes:

[0054] The priority of each data channel is set by setting the back pressure thresholds of multiple data channels; wherein the back pressure threshold of a data channel with a high priority is greater than the back pressure threshold of a data channel with a low priority.

[0055] Multiple data channels can be established based on the Ethernet link of each input port. In the embodiment of the present application, different back pressure thresholds can be set for multiple data channels corresponding to the same input port. The higher the back pressure threshold of a data channel, the higher the upper limit of its cache occupancy, that is, the higher the upper limit of the storage space it can occupy, so that the priority of the data channel is also higher. Therefore, by setting the back pressure threshold of multiple data channels, the priority of each data channel can be set.

[0056] As a feasible implementation, when setting the back pressure threshold of the data channel, the maximum storage space that can be occupied can be allocated to the data channel of each priority level according to the total storage space that can be used, and the maximum storage space that can be occupied by the data channel is determined as its back pressure threshold. It should be understood that the priority of the data channel can be determined according to the importance of the business corresponding to the message sequence it receives, or according to other appropriate factors, all of which are within the protection scope of the embodiments of the present application, and the embodiments of the present application do not limit the setting method of the data channel priority.

[0057] In the embodiment of the present application, the priority of each data channel can be set by setting the back pressure threshold of multiple data channels. Specifically, the back pressure threshold of the data channel with a high priority can be set to be greater than the back pressure threshold of the data channel with a low priority. Through the embodiment of the present application, the priorities of different data channels can be simply and conveniently set, so that the data channel with a higher priority has a larger upper limit of the cache occupancy, so that when the Ethernet link is congested, the message sequence or traffic received by the data channel with a higher priority can be given priority processing.

[0058] In some optional embodiments, the DPU includes multiple input ports, and each input port is provided with 8 data channels. For example, the DPU may include 4 input ports, and 8 data channels may be established on the Ethernet link corresponding to each input port, thereby forming 32 data channels.

[0059] In an embodiment of the present application, the DPU includes multiple input ports, and each input port is correspondingly provided with 8 data channels, so that the DPU can form multiple Ethernet links through multiple data ports for data transmission, thereby meeting the data transmission requirements of multiple ports and multiple channels.

[0060] In some optional embodiments, parsing the message sequence received by each data channel includes: parsing the message sequence to determine the channel identifier of the data channel that receives the message sequence.

[0061] After parsing the message sequence, the channel identifier of the data channel receiving the message sequence can be obtained from the identification information carried in the message sequence. The channel identifier of the data channel can be the number of the data channel. For example, if the DPU includes 4 input ports and 8 data channels are established under each input port, the channel identifier of the third data channel under the second input port can be (8+3)11.

[0062] The message sequence is processed accordingly according to the processing identifier of the message sequence, and the cache occupancy of the statistical data channel is calculated based on the data volume of the message sequence, and further includes: determining a storage address for storing the cache occupancy of each data channel based on the channel identifier of the data channel. The cache occupancy of each data channel is stored according to the storage address, wherein different storage addresses include different channel identifiers.

[0063] Specifically, the embodiment of the present application may use a memory such as a register to store the cache occupancy of the data channel, and according to the channel identification of the data channel, set the address of the register storing the cache occupancy of the data channel. Thus, based on the channel identification of the data channel, the storage address for storing the cache occupancy of each data channel can be determined.

[0064] It should be understood that when the cache occupancy of a data channel is updated, the storage address storing the cache occupancy of each data channel is determined according to the channel identifier of the data channel, and the cache occupancy stored in the storage address is updated.

[0065] Exemplarily, a table of registers storing cache occupancy is shown as follows:

[0066] Table 2 Cache occupancy storage example table

[0067] Storage address Cache occupancy 00000 10100101 00001 01000101 00010 00101001 00011 11001011 …… …… 11111 01011011

[0068] The storage address values ​​in the table can be obtained by performing binary conversion on the channel identifier of the data channel. For example, if the channel identifier is 2, the storage address corresponding to the channel identifier is 00010. The cache occupancy can also be represented in binary.

[0069] In an embodiment of the present application, the message sequence can be parsed to determine the channel identifier of the data channel for receiving the message sequence, and based on the channel identifier of the data channel, a storage address for storing the cache occupancy of each data channel can be determined. The cache occupancy of each data channel is stored according to the storage address. The storage address of the cache occupancy can be determined simply and conveniently based on the channel identifier of the data channel, which is beneficial to improving the efficiency of cache occupancy storage.

[0070] According to the second aspect of the embodiment of the present application, Figure 3 As shown, a flow control device 300 for a DPU is provided, comprising:

[0071] The receiving unit 310 is used to receive a message sequence sent by the sending end through multiple data channels, and the multiple data channels are established based on the input port;

[0072] The parsing unit 320 is used to parse the message sequence received by each data channel to determine the processing identifier and data volume of the message sequence;

[0073] The statistical unit 330 processes the message sequence according to the processing identifier of the message sequence, and calculates the buffer occupancy of the statistical data channel based on the data volume of the message sequence, where the buffer occupancy is used to indicate the storage space occupied by the message sequence received by the data channel;

[0074] The back pressure unit 340 is used to compare the cache occupancy of the data channel with the back pressure threshold of the data channel, and when the cache occupancy is greater than the back pressure threshold, send a back pressure instruction to the sending end of the message sequence to restrict the sending end from sending the message sequence to the data channel having a cache occupancy greater than the back pressure threshold, and the sending end normally sends the message sequence to other data channels.

[0075] The flow control device for DPU provided in the embodiment of the present application is based on the same inventive concept as the aforementioned flow control method embodiment for DPU and can achieve the same effect. The specific implementation process can be found in the description in the aforementioned flow control method embodiment for DPU, which will not be repeated here.

[0076] According to the third aspect of the embodiment of the present application, a DPU device is also provided. Figure 4 , shows a schematic diagram of the structure of a DPU device according to an embodiment of the present application. The specific embodiment of the present application does not limit the specific implementation of the DPU device.

[0077] like Figure 4 As shown, the DPU device may include: a processor (processor) 402, a communication interface (Communications Interface) 404, a memory (memory) 406, and a communication bus 408.

[0078] in:

[0079] The processor 402 , the communication interface 404 , and the memory 406 communicate with each other via a communication bus 408 .

[0080] The communication interface 404 is used to communicate with other electronic devices or servers.

[0081] The processor 402 is used to execute the program 410, and specifically can execute the relevant steps in the above-mentioned flow control method embodiment for DPU.

[0082] Specifically, the program 410 may include program codes, which include computer operation instructions.

[0083] The processor 402 may be a CPU, or an application specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application. The one or more processors included in the smart device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.

[0084] The memory 406 is used to store the program 410. The memory 406 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0085] The program 410 may include multiple computer instructions. Specifically, the program 410 may enable the processor 402 to execute operations corresponding to the flow control method for DPU described in any of the aforementioned method embodiments through the multiple computer instructions.

[0086] The specific implementation of each step in program 410 can refer to the corresponding description of the corresponding steps and units in the above method embodiment, and has corresponding beneficial effects, which will not be repeated here. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described devices and modules can refer to the corresponding process description in the above method embodiment, which will not be repeated here.

[0087] The present application also provides a computer storage medium on which a computer program is stored, and when the program is executed by a processor, the method described in any of the above-mentioned multiple method embodiments is implemented. The computer storage medium includes but is not limited to: a compact disc read-only memory (CD-ROM), a random access memory (RAM), a floppy disk, a hard disk or a magneto-optical disk, etc.

[0088] It should be pointed out that, according to the needs of implementation, the various components / steps described in the embodiments of the present application can be split into more components / steps, or two or more components / steps or partial operations of components / steps can be combined into new components / steps to achieve the purpose of the embodiments of the present application.

[0089] Those of ordinary skill in the art will appreciate that the units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present application.

[0090] The above implementation methods are only used to illustrate the embodiments of the present application, and are not limitations on the embodiments of the present application. Ordinary technicians in the relevant technical field can make various changes and modifications without departing from the spirit and scope of the embodiments of the present application. Therefore, all equivalent technical solutions also belong to the scope of the embodiments of the present application. The scope of patent protection of the embodiments of the present application should be limited by the claims.

Claims

1. A flow control method for DPU, characterized in that: The DPU comprises at least one input port, and the method comprises: Receiving a message sequence sent by a sending end through a plurality of data channels, wherein the plurality of data channels are established based on the input port; Parsing the message sequence received by each of the data channels to determine the processing identifier and data volume of the message sequence; Processing the message sequence accordingly according to the processing identifier of the message sequence, and counting the cache occupancy of the data channel based on the data volume of the message sequence, where the cache occupancy is used to indicate the storage space occupied by the message sequence received by the data channel; The cache occupancy of the data channel is compared with a back pressure threshold of the data channel. When the cache occupancy is greater than the back pressure threshold, a back pressure instruction is sent to the sending end of the message sequence to restrict the sending end from sending the message sequence to the data channel having the cache occupancy greater than the back pressure threshold, and the sending end sends the message sequence normally to other data channels.

2. The method according to claim 1, characterized in that The processing of the message sequence according to the processing identifier of the message sequence and counting the buffer occupancy of the data channel based on the data volume of the message sequence includes: When the processing identifier of the message sequence includes a registration identifier, determining the buffer occupancy of the data channel receiving the message sequence according to the data volume; According to the buffer occupancy of the data channel, the corresponding storage space is matched to store the message sequence.

3. The method according to claim 2, characterized in that The processing identifier also includes at least one of the following: A first release flag, used to indicate a single output of the message sequence; A second release flag, used to indicate that the message sequence is to be discarded; A multiplexing flag, used to indicate that the message sequence is outputted multiple times in a mirror image; An application identifier is used to indicate that the length of the message sequence is to be extended.

4. The method according to claim 3, characterized in that The processing of the message sequence according to the processing identifier of the message sequence and counting the buffer occupancy of the data channel based on the data volume of the message sequence also includes: Processing the message sequence according to the first release identifier, the second release identifier, the multiplexing identifier and / or the application identifier; When the storage space occupied by the message sequence changes, the cache occupancy is updated.

5. The method according to claim 1, characterized in that The method further comprises: The priority of each data channel is set by setting the back pressure thresholds of the plurality of data channels; wherein the back pressure threshold of the data channel with a high priority is greater than the back pressure threshold of the data channel with a low priority.

6. The method according to claim 1, characterized in that The DPU includes a plurality of input ports, and each of the input ports is correspondingly provided with 8 data channels.

7. The method according to claim 2, characterized in that: The parsing of the message sequence received by each of the data channels includes: Parsing the message sequence to determine a channel identifier of the data channel for receiving the message sequence; The processing of the message sequence according to the processing identifier of the message sequence and counting the buffer occupancy of the data channel based on the data volume of the message sequence also includes: Based on the channel identifier of the data channel, determining a storage address for storing the cache occupancy of each data channel; The cache occupancy of each of the data channels is stored according to the storage address, wherein different storage addresses include different channel identifiers.

8. A flow control device for a DPU, characterized in that: The DPU comprises at least one input port, and the device comprises: A receiving unit, configured to receive a message sequence sent by a sending end through a plurality of data channels, wherein the plurality of data channels are established based on the input port; A parsing unit, used to parse the message sequence received by each of the data channels to determine the processing identifier and data volume of the message sequence; a statistical unit, processing the message sequence accordingly according to the processing identifier of the message sequence, and counting the cache occupancy of the data channel based on the data volume of the message sequence, wherein the cache occupancy is used to indicate the storage space occupied by the message sequence received by the data channel; A back pressure unit is used to compare the cache occupancy of the data channel with a back pressure threshold of the data channel, and when the cache occupancy is greater than the back pressure threshold, send a back pressure instruction to the sending end of the message sequence to restrict the sending end from sending the message sequence to the data channel having the cache occupancy greater than the back pressure threshold, and the sending end normally sends the message sequence to other data channels.

9. A DPU device, characterized in that: include: A processor, a memory, an input port and a communication bus, wherein the processor, the memory and the input port communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute the method according to any one of claims 1-7.

10. A computer storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method according to any one of claims 1 to 7.

Citation Information

Cited By

  • Multi-channel message transmission method, chip and storage medium

    CN120835032A