Slice-based storage management method, device, equipment and medium

By adopting a slice-based storage management method in the network processor, the data packets are divided into multiple or the same RAM particles, which solves the problems of insufficient throughput performance of the packet storage management unit and difficulty in storage resource management in the existing technology, and improves Improves the processing concurrency and stability of the network processor.

CN117785032BActive Publication Date: 2024-10-18YUSUR TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311636204.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-30
Publication Date
2024-10-18
Estimated Expiration
2043-11-30

AI Technical Summary

Technical Problem

The packet storage management unit of the existing network processor has insufficient throughput performance when processing high-speed and large-traffic data packets. Fragmentation of the storage unit leads to collisions and conflicts of multiple storage accesses, degradation of channel efficiency, and increased difficulty in resource management, which affects the overall throughput capability.

Method used

Using a slicing-based storage management method, the original data is split into multiple data packets in SLICE units of preset length, and the data packets are divided into multiple or the same RAM particles, and the read-write arbitration module responds to the user's requests. Read and write access requests improve storage array granularity and concurrent processing capabilities.

Benefits of technology

It improves the overall processing concurrency and stability of the network processor, reduces the processing complexity and difficulty of read and write arbitration, enhances the write and read management capabilities of high-speed and large-traffic data packets, and improves the throughput rate and channel efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117785032B_ABST
    Figure CN117785032B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a storage management method, device, equipment and medium based on slicing, the method is applied to a network processor, the network processor includes: a RAM storage array, the RAM storage array includes multiple RAM particles; the method includes: splitting the original data in units of SLICE of preset length to obtain multiple data packets; for each data packet, dividing the data packet based on the RAM storage array including multiple RAM particles, dividing the data packet into multiple RAM particles, or dividing the data packet into the same RAM particle; when receiving a user's read and write access request, performing read and write arbitration on the data packet to respond to the read and write access request. The present disclosure can better carry functions such as fast write and read management of high-speed and large-flow data packets, and improve the overall processing concurrency capability and stability of the network processor.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a storage management method, device, equipment and medium based on slicing. Background Art

[0002] With the increasing number of cloud services such as AI and big data, the surge in applications has led to a rapid increase in data center traffic and a continuous increase in network bandwidth. The network processor (NP) is a core component that provides computing power for network devices and can be used to cope with the surge in data traffic.

[0003] The Packet Buffer is an important unit module in the network processor, which needs to carry functions such as fast write and read management of high-speed and large-flow data packets. However, its current architecture is insufficient in terms of overall processing concurrency and stability, which has a great impact on the overall throughput of the network processor. Therefore, the Packet Buffer needs to be optimized to meet the needs of greater network bandwidth and processing power in the future. Summary of the invention

[0004] In order to solve the above technical problems, the present disclosure provides a slice-based storage management method, device, equipment and medium.

[0005] According to one aspect of the present disclosure, a slicing-based storage management method is provided, the method being applied to a network processor, the network processor comprising: a RAM storage array, the RAM storage array comprising a plurality of RAM particles; the method comprising:

[0006] The original data is split into SLICE units of preset length to obtain multiple data packets;

[0007] For each of the data packets, the data packets are divided based on the RAM storage array including multiple RAM particles, and the data packets are divided into multiple RAM particles, or the data packets are divided into the same RAM particle;

[0008] When a read / write access request from a user is received, read / write arbitration is performed on the data packet to respond to the read / write access request.

[0009] According to another aspect of the present disclosure, a slice-based storage management device is provided, the device is arranged in a network processor, the network processor comprises: a RAM storage array, the RAM storage array comprises a plurality of RAM particles; the device comprises:

[0010] The splitting module is used to split the original data into SLICE units of preset length to obtain multiple data packets;

[0011] A partitioning module, configured to partition each of the data packets based on the RAM storage array including a plurality of RAM particles, and partition each of the data packets into a plurality of the RAM particles, or partition the data packets into the same RAM particle;

[0012] The read / write arbitration module is used to perform read / write arbitration on the data packet when receiving a read / write access request from a user, so as to respond to the read / write access request.

[0013] According to another aspect of the present disclosure, an electronic device is provided, the electronic device comprising:

[0014] processor;

[0015] a memory for storing instructions executable by the processor;

[0016] The processor is used to read the executable instructions from the memory and execute the instructions to implement the above method.

[0017] According to another aspect of the present disclosure, a computer-readable storage medium is provided, wherein the storage medium stores a computer program, and the computer program is used to execute the above method.

[0018] Compared with the prior art, the technical solution provided by the embodiments of the present disclosure has the following advantages:

[0019] The embodiments of the present disclosure provide a slicing-based storage management method, apparatus, device and medium, the method being applied to a network processor, the network processor comprising: a RAM storage array, the RAM storage array comprising a plurality of RAM particles; the method comprising: splitting original data in units of SLICE of a preset length to obtain a plurality of data packets; for each data packet, dividing the data packet based on a RAM storage array comprising a plurality of RAM particles, dividing the data packet into a plurality of RAM particles, or dividing the data packet into the same RAM particle; when receiving a read / write access request from a user, performing read / write arbitration on the data packet to respond to the read / write access request.

[0020] In this technical solution, the RAM storage array in the network processor includes multiple RAM particles, which refines the storage array granularity and increases the number of storage arrays, which can bring about an increase in throughput; at the same time, by splitting the original data into multiple data packets and dividing the data packets into RAM particles, the processing complexity and difficulty of reading and writing arbitration for the data packets can be reduced. Therefore, the above method can better carry functions such as fast write and read management of high-speed and large-flow data packets, and improve the overall processing concurrency capability and stability of the network processor. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0022] In order to more clearly illustrate the embodiments of the present invention 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, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0023] Figure 1 A schematic diagram of the structure of a network processor according to an embodiment of the present disclosure;

[0024] Figure 2 A timing diagram of a multi-user random read and write access RAM array according to an embodiment of the present disclosure;

[0025] Figure 3 A schematic diagram of the relationship between the number of users and channel efficiency according to an embodiment of the present disclosure;

[0026] Figure 4 A schematic diagram of the structure of another network processor according to an embodiment of the present disclosure;

[0027] Figure 5 This is a flow chart of the slice-based storage management method described in an embodiment of the present disclosure;

[0028] Figure 6 A schematic diagram of a SLICE division and management method according to an embodiment of the present disclosure;

[0029] Figure 7 A timing diagram of a multi-user read-write access to a RAM array according to an embodiment of the present disclosure;

[0030] Figure 8 A schematic diagram of a read-write arbitration method according to an embodiment of the present disclosure;

[0031] Fig. 9 A schematic diagram of a phase synchronization process according to an embodiment of the present disclosure;

[0032] Fig.10 A schematic diagram of another SLICE division and management method according to an embodiment of the present disclosure;

[0033] Fig.11 This is another timing diagram of multi-user read and write access to a RAM array according to an embodiment of the present disclosure;

[0034] Fig.12 A schematic diagram of another read-write arbitration method according to an embodiment of the present disclosure;

[0035] Fig.13 A schematic diagram of another phase synchronization process according to an embodiment of the present disclosure;

[0036] Fig.14 This is a schematic diagram of the structure of a slice-based storage management device according to an embodiment of the present disclosure;

[0037] Fig.15 It is a schematic diagram of the structure of the electronic device described in the embodiment of the present disclosure. DETAILED DESCRIPTION

[0038] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.

[0039] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.

[0040] At present, the data center traffic speed is increasing, the network bandwidth is constantly increasing, the CPU computing power is growing slower than the network transmission rate, and the gap continues to widen. Although general-purpose CPUs can process network traffic, the efficiency is not high. As the network bandwidth of data centers gradually evolves from 100Gbps, 200Gbps, 400Gbps and even higher bandwidths, the CPU computing power resources occupied by network data processing are also increasing, and even more than half will be consumed on the functions of these infrastructures. Therefore, a new type of processor is urgently needed to reduce the consumption of cloud host CPUs.

[0041] Therefore, a network processor can be used to provide computing power for network devices. A network processor is a communication network chip that can complete various tasks such as route lookup, protocol classification, message processing, firewall and QoS. The network processor in the present disclosure has a certain degree of programmability and can flexibly respond to the functional requirements that managers want to enable. In terms of computing power, a network processor with multiple microcode processors and hardware coprocessors can perform some standard operations on memory operations, routing table lookup algorithms, congestion control, and active queue management.

[0042] As a unit module with a greater impact on the performance of the network processor, the packet storage management unit needs to carry functions such as fast write and read management of high-speed and large-flow data packets. However, the overall performance, stability and scalability of its current architecture are insufficient, which has a great impact on the overall throughput of the network processor.

[0043] The present disclosure takes into account that when the packet storage management unit is managed without SLICE, it will lead to insufficient throughput performance, multiple storage access collisions caused by storage unit fragmentation, channel efficiency degradation, increased difficulty in fragment resource management, unstable network path performance and other issues. Based on this, the present disclosure proposes that the internal design of the packet storage management unit can be optimized based on slice division and management.

[0044] Reference Figure 1 , is a read-write structure diagram of a storage management array in a network processor, the structure including: multi-channel write users, multi-channel read users, random write arbitration units, random read arbitration units and a packet storage management array (PacketBuffer).

[0045] The process for a write user to write a data packet into a storage array is generally as follows: the write user sends a write request and a data packet to a random write arbitration unit. After the random write arbitration unit responds to the write request, it will open a write channel in the packet storage management array according to the request parameters and write the packet data into a storage unit in the packet storage management array.

[0046] The process for a read user to read a data packet out of a storage array is generally as follows: the read user sends a read request to the random read arbitration unit module. After the random read arbitration unit responds to the read request, it will open a read channel in the packet storage array according to the request parameters and return the read packet data to the read user.

[0047] In order to ensure sufficient concurrent data read and write processing bandwidth, the present embodiment can split the packet storage management storage array into multiple dual-port RAM (Random Access Memory) storage particles of equal width and small depth, so that the throughput of the internal concurrent read and write bandwidth increases linearly with the increase of the divisible granularity. Based on this, the present embodiment can also refer to the packet storage management storage array composed of multiple RAM particles as a RAM storage array. In one example, a dual-port RAM with a 256-bit width and a 4096-depth runs at a 200Mhz clock, and its theoretical throughput is 200M*256bit=51.2Gbps. If it is split into 8 dual-port RAMs with a 256-bit width and a 512-depth, its theoretical throughput is 8*200M*256bit=409.6Gbps.

[0048] As the granularity of storage arrays becomes finer and the number increases, the throughput rate increases, but at the same time, the parallel processing complexity and processing logic difficulty of the write arbitration unit and the read arbitration unit increase. Data slices are randomly written into the RAM storage array. After a period of reading and writing, a large number of data fragments are formed in the RAM storage array, which brings great difficulties to the management and recovery of storage resources, and the throughput performance is prone to fluctuations.

[0049] In some scenarios, when the number of users is less than the number of RAM storage arrays (for example, in this embodiment, the number of user read / write channels is 5, and the number of RAM storage arrays is 8), theoretically, an available RAM storage array should be found at every moment to prevent the user channel data reading and writing from being stopped. However, the generation of random fragments will cause frequent channel preemption conflicts in data read / write requests of different user channels. Figure 2 As shown, in the scenario where the memory of the 8RAM storage array 5 user is completely randomized, multiple conflicts in requests for simultaneous access to the same RAM resource block will occur.

[0050] Reference Figure 3 , under the simulation of randomized memory fragmentation, the actual channel efficiency is calculated after removing invalid request conflicts from the requests of different users under a certain number of samples. When the number of users is 1, the channel efficiency is 100% because there will never be a conflict. As the number of users increases, the actual channel efficiency will gradually decrease. When the number of users is 8, the channel efficiency is reduced to 65%. The loss of 35% of the channel efficiency means that the RAM storage array is in an idle state more and more, and the multi-RAM storage array structure is not fully utilized. Therefore, it is necessary to optimize the management method and reduce the losses caused by channel conflicts. In theory, when the total number of users is less than the total RAM storage array, lossless low latency should be achieved to meet all user requests without conflicts.

[0051] According to the above situation, the present disclosure provides a management method based on slice units. For ease of understanding, a read-write structure of a storage management array in a network processor is first provided. Figure 4 As shown, the read-write structure includes: a multi-way write user, a multi-way read user, a write arbitration unit based on a slice management control method, a read arbitration unit based on a slice management control method, and a RAM storage array; wherein the RAM storage array includes a plurality of RAM particles; the multi-way write user is connected to the RAM storage array through the write arbitration unit based on the slice management control method, and the multi-way read user is connected to the RAM storage array through the read arbitration unit based on the slice management control method.

[0052] In a network processor, a multi-channel writer may refer to a packet input management unit (Ingress), a packet processing engine unit (Packet Processing Engine, PPE), and an internal memory migration engine unit (MMPE); a multi-channel reader may refer to a packet output management unit (Egress), a packet processing engine unit PPE, and an internal memory migration engine unit MMPE.

[0053] According to the above network processor, refer to Figure 5The slice-based storage management method provided in this embodiment may include the following steps:

[0054] Step S102: split the original data into SLICEs of preset length as units to obtain multiple data packets; wherein SLICEs can be directly used to represent the data packets.

[0055] Step S104 : for each data packet, divide the data packet based on the RAM storage array including multiple RAM particles, and divide the data packet into multiple RAM particles, or divide the data packet into the same RAM particle.

[0056] Step S106: When receiving a read / write access request from the user, read / write arbitration is performed on the data packet to respond to the read / write access request.

[0057] With respect to the above step S102, in this embodiment, the original data is split into SLICE units of a preset length; for example, for a scene mode in which the RAM storage array granularity is 8, a SLICE is defined as 256B bytes, which can correspond to the transmission of 256 bits of data in 8 clock beats on a 256-bit data bus. By managing the original data in SLICE units, the fragmentation of the storage slice can be reduced, making it easier to manage and recycle. In this management mode, channel conflicts can be reduced, channel efficiency can be improved, and in practical applications, combined with specific hardware structures, the performance of the hardware can be maximized.

[0058] like Figure 6 In the storage management array structure of a general network processor, the traditional round-robin read and write arbitration unit is improved, and the slice management control method is integrated into the arbitration unit to form a write arbitration unit based on the slice management control method and a read arbitration unit based on the slice management control method in this embodiment.

[0059] With respect to the above-mentioned step S104, in one embodiment, dividing each data packet into multiple RAM particles may include: dividing the data packet into multiple RAM particles in the RAM storage array to obtain multiple groups of data slices (data slices may be represented as slices), each group of data slices including multiple clock slices; wherein the same group of data slices is at the same row address of multiple RAM particles, and each clock slice in the data slice corresponds to one RAM particle.

[0060] In the scenario mode where the storage array granularity is 8 RAM particles, Figure 6 As shown, this embodiment provides a way to divide and manage slices. Figure 6Each column corresponds to a RAM particle, with a total of 8 RAM particles, and the size of each particle is 256*2048. Each data packet is interleaved and distributed in 8 RAM particles and is located at the same row address. That is, the entire storage array has a total of 2048 data slices, slice0 is distributed at address 0 of RAM0~RAM7, slice1 is distributed at address 1 of RAM0~RAM7, and so on, slice2047 is distributed at address 2047 of RAM0~RAM7.

[0061] Figure 6 Px_y_z in each grid indicates the zth clock slice of the yth data slice of the xth data packet. That is, P1_2_3 indicates the 3rd clock slice of the 2nd data slice of the 1st data packet. All data subscripts are defined starting from 0, and the clock slices in each slice are numbered from 0 to 7.

[0062] Figure 7 The timing diagram of the slicing division method provided in the above embodiment, with arbitration per clk (clock signal), and multi-user read and write access to the RAM storage array. Multiple users follow the same pace and sequentially access the RAM queue in turn, and no conflict occurs during the access process.

[0063] Based on the above embodiment, each RAM particle is provided with an independent arbitration sub-bridge, and the read and write arbitration of the arbitration sub-bridge is switched with clk as the minimum unit; therefore, for the above step S106, performing read and write arbitration on the data packet to respond to the read and write access request may include:

[0064] When multiple users send read and write access requests to the arbitration sub-bridge of the first RAM particle at the same time, the arbitration sub-bridge makes balanced responses to different users according to a preset priority algorithm, and performs arbitration responses in units of clk.

[0065] Specific as Figure 8 As shown in the figure, the read and write arbitration of the data bridge is switched with each clk beat as the minimum unit. For each user, a complete slice read and write access request can traverse 8 different RAM particles. Each RAM particle is equipped with an independent arbitration sub-bridge corresponding to all user requests. In this way, all users can send requests to all arbitration sub-bridges at the same time. The arbitration sub-bridge achieves balanced response to different users through weighted priority algorithms such as Round Robin. In terms of response speed, this implementation method performs arbitration response in units of clk, which is the fastest response speed. At the same time, it also improves the disadvantage that the clock slices are randomly dispersed to each storage array and are difficult to recover and manage.

[0066] In the above embodiment based on the slice management method, Figure 7The timing of all user channels in an ideal scenario, that is, all data packets are phase synchronized. The actual user's data packet request generally has a phase difference, so the read and write access requests of the data packets sent by the user can be phase tracked and compensated; for example, a phase tracking compensation and synchronization circuit is implanted in the data packet management arbitration controller, so that the data packet requests sent to the RAM storage array after compensation are in a phase synchronized state.

[0067] exist Figure 8 Based on the examples, refer to Fig. 9 A user phase compensation method based on a clk arbiter is provided herein. In this embodiment, before the data packet is read and written arbitrated, phase tracking compensation can be performed on the read and write access request of the data packet sent by the user; wherein, taking the read and write access request including the write access request as an example, the implementation method of the phase tracking compensation is described as follows.

[0068] The users are numbered in the order of entering the arbitration request; an initial phase adjustment amount is determined for the first user with the first number; the data of the first user is written into the RAM storage array based on the initial phase adjustment amount; the phase adjustment amount of the second user is determined based on the current instantaneous phase value of the first user and the number of the second user; wherein the second user is a user not with the first number; after the user with the current number completes the data storage task, the current number is released, and the numbers of other users are corrected; and the step of determining the initial phase adjustment amount for the first user with the first number is re-executed based on the corrected number.

[0069] In the specific implementation, all users entering the arbitration request are uniformly numbered and managed. The above-mentioned users entering the arbitration request are also: write users who send write access requests to the write arbitration unit based on the slice management control method. The first user to enter gets number 0, the second user to enter gets number 1, and so on. When the user with number 0 completes the data storage task, the number is released, and at the same time, all other user numbers in the arbitrator request queue are corrected, and the current number is reduced by 1. That is, the user with number 1 is updated to number 0, the user with number 2 is updated to number 1, and so on.

[0070] On this basis, the user phase adjustment method is that the initial phase adjustment amount obtained by the first user with the first number 0 (referred to as user number 0) is 0, that is, user number 0 is first written into RAM0, and then written into RAM1 at the next moment. After the second user with number 1 enters the queue after a certain delay, according to the current instantaneous phase value of user number 0, assuming it is represented by x, plus the user number 1, then x+1 is the actual phase adjustment amount. After user number 2 enters the queue, according to the current instantaneous phase value x of user number 0, plus the user number 2, then x+2 is the actual phase adjustment amount. By analogy, after the second user with number n (n<=7) enters the queue, according to the current instantaneous phase value x of user number 0, plus the user number n, then x+n is the actual phase adjustment amount. The maximum number of RAM storage arrays is 8, and when calculating the actual phase, 8 needs to be modulo processed. Based on this, the user phase adjustment formula can be referred to as follows: y=(x+n)modN, where x represents the instantaneous phase of user number 0, n is the current user number, and N is the number of channels of the RAM storage array.

[0071] Fig. 9 When the clock slice in each data packet is written into each RAM particle, there should be phase information. For an 8-RAM storage array, the phase information can be represented by 3 bits of data, which is written into the RAM storage array particles together with the 256-bit data information. For more RAM storage arrays, such as a 64-RAM storage array, log2(64)=6 bits of phase information needs to be added.

[0072] When corresponding to the read access request of the data packet, it has a similar processing method to the above-mentioned write access request. After the phase tracking circuit finds its initial phase, the data and phase information of the RAM particles are read out in sequence, and demapped to the receiving cache according to the phase information to recover the data slice sequence group.

[0073] Fig. 9 The phase adjustment algorithm shown can be understood as data packet management, which is the overall order management of data packets. When accessing and reading data packets internally, the RAM particle number and the current random phase are used as the basis for managing phase information, and dynamic phase rotation mapping and demapping management are performed.

[0074] With respect to the above step S104, in another embodiment, dividing each data packet into the same RAM particle may include: dividing each data packet into a plurality of consecutive address spaces within the same RAM particle, and dividing each RAM particle into a plurality of storage areas for storing data packets, and dividing the RAM storage array as an interleaved partition based on a plurality of data packets as a whole.

[0075] Reference Fig.10, this embodiment can divide each data packet into multiple consecutive address spaces of the same RAM particle. Still taking the above-mentioned scene mode with a storage array particle size of 8 RAM as an example, Fig.10 Each data packet is distributed in 8 consecutive address spaces of the same RAM particle. Each RAM particle can be divided into 256 complete storage areas for storing the above data packets, which can be regarded as an interleaving division of the entire RAM storage array with multiple data packets as a whole. Figure 6 similar, Fig.10 Px_y_z in each grid represents the zth clock slice of the yth data slice of the xth data packet.

[0076] Fig.11 This is a timing diagram of a slice management method provided by the above embodiment, with arbitration per clk, and multi-user read and write access to the RAM storage array. Multiple users take data packets as units, maintain the same pace, and sequentially access the RAM storage queue in turn, and no conflict occurs during the access process.

[0077] Based on the above embodiment, multiple RAM particles correspond to the same data bridge, and the read and write arbitration of the data bridge performs switching with each data packet as the minimum unit; therefore, for the above step S106, performing read and write arbitration on the data packet to respond to the read and write access request may include:

[0078] When each user issues a read / write access request for a data slice to the data bridge, the data bridge operates the second RAM particle storing the data slice to respond to the read / write access request based on the second RAM particle.

[0079] For details, please refer to Fig.12 The read and write arbitration of the data bridge performs switching with each data packet as the minimum unit. For each user, a read and write access request for a complete data slice only operates on the same RAM particle, so the arbitration bridge has enough time to perform request queue analysis and time slice division, which reduces the difficulty of implementing the arbitration bridge and has low timing requirements for hardware design.

[0080] In the above solution based on slice management, Fig.11 The timing of all user channels in an ideal scenario, that is, all data packets are phase synchronized. The actual user's data packet request generally has a phase difference, so the read and write access requests of the data packets sent by the user can be phase tracked and compensated; for example, a phase tracking compensation and synchronization circuit is implanted in the data packet management arbitration controller, so that the data packet requests sent to the RAM storage array after compensation are in a phase synchronized state.

[0081] exist Fig.11 Based on the examples, refer to Fig.13A user phase compensation method based on a slice arbiter is provided herein. In this embodiment, before the data packet is read and written arbitrated, phase tracking compensation can be performed on the read and write access request of the data packet sent by the user; wherein, taking the read and write access request including the write access request as an example, the implementation method of the phase tracking compensation is described as follows.

[0082] All users entering the arbitration request are numbered uniformly. The first user to enter gets number 0, the second user to enter gets number 1, and so on. When the user with number 0 completes the data storage task, the number is released, and the numbers of all users in the arbitrator request queue are corrected at the same time, and the current number is reduced by 1. That is, the user with number 1 is updated to number 0, the user with number 2 is updated to number 1, and so on.

[0083] Fig.13 management style and Fig. 9 The management method is basically the same, that is, to ensure that all numbered users entering the queue interact and operate on the 8 RAM particles in an orderly manner according to fixed rules. The difference is, Fig. 9 The phase information of the MCU is in clk as the smallest unit, and a complete interaction is in data packets (ie SLICE) as the conversion unit. Fig.13 The phase sheet information is in the form of a data slice (i.e., a slice) as the smallest unit, and a complete interaction is in the form of a packet as the conversion unit. Therefore, the specific description thereof will not be repeated.

[0084] In the slice-based storage management solutions provided in the above embodiments, Figure 8 The solution design is very suitable for designing on ASIC circuits. Fig.12 In the solution design, arbitration does not need to be completed in each clk, and the hardware design timing requirements for each sub-arbiter are greatly reduced, which is more suitable for implementation on FPGA.

[0085] It can be understood that the storage array is divided into 8 RAM particles in the present disclosure for example only. The granularity of the array can be reduced or increased and the length of the SLICE can be adjusted according to the actual scenario needs to adapt to the actual design scenario. Therefore, the protection scenario of the present disclosure is not limited to the parameters of 8-granularity division and SLICE length 256B.

[0086] In summary, the slice-based storage management method provided by the embodiment of the present disclosure is applied to a network processor, and the network processor includes: a RAM storage array, and the RAM storage array includes multiple RAM particles; the method includes: splitting the original data in units of SLICE of a preset length to obtain multiple data packets; for each data packet, dividing the data packet based on the RAM storage array including multiple RAM particles, dividing the data packet into multiple RAM particles, or dividing the data packet into the same RAM particle; when a user's read and write access request is received, read and write arbitration is performed on the data packet to respond to the read and write access request.

[0087] In this technical solution, the RAM storage array in the network processor includes multiple RAM particles, which refines the storage array granularity and increases the number of storage arrays, which can bring about an increase in throughput; at the same time, by splitting the original data into multiple data packets and dividing the data packets into RAM particles, the processing complexity and difficulty of reading and writing arbitration for the data packets can be reduced. Therefore, the above method can better carry functions such as fast write and read management of high-speed and large-flow data packets, and improve the overall processing concurrency capability and stability of the network processor.

[0088] Reference Fig.14 The schematic diagram of the structure of the management device based on the slice unit shown in the figure is provided in a network processor, and the network processor comprises: a RAM storage array, and the RAM storage array comprises a plurality of RAM particles; the device comprises:

[0089] The splitting module 210 is used to split the original data into SLICE units of a preset length to obtain multiple data packets;

[0090] A partitioning module 220 is used to partition each of the data packets based on the RAM storage array including multiple RAM particles, and partition the data packets into multiple RAM particles, or partition the data packets into the same RAM particle;

[0091] The read / write arbitration module 230 is used to perform read / write arbitration on the data packet when receiving a read / write access request from a user, so as to respond to the read / write access request.

[0092] The implementation principle and technical effects of the device provided in this embodiment are the same as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference may be made to the corresponding contents in the aforementioned method embodiment.

[0093] Fig.15 The structure diagram of an electronic device provided by the embodiment of the present disclosure is shown in FIG. Fig.15As shown, the electronic device 300 includes one or more processors 301 and a memory 302 .

[0094] The processor 301 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 300 to perform desired functions.

[0095] The memory 302 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 301 may run the program instructions to implement the slice-based storage management method and / or other desired functions of the embodiments of the present disclosure described above. Various contents such as input signals, signal components, noise components, etc. may also be stored in the computer-readable storage medium.

[0096] In one example, the electronic device 300 may further include: an input device 303 and an output device 304 , and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).

[0097] In addition, the input device 303 may also include, for example, a keyboard, a mouse, and the like.

[0098] The output device 304 can output various information to the outside, including the determined distance information, direction information, etc. The output device 304 can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, and the like.

[0099] Of course, to simplify, Fig.15 Only some of the components related to the present disclosure in the electronic device 300 are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the electronic device 300 may also include any other appropriate components.

[0100] Furthermore, this embodiment also provides a computer-readable storage medium, which stores a computer program, and the computer program is used to execute the above-mentioned slice-based storage management method.

[0101] The embodiments of the present disclosure provide a slicing-based storage management method, device, electronic device, and medium computer program product, including a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the previous method embodiments. The specific implementation can be found in the method embodiments, which will not be repeated here.

[0102] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0103] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A storage management method based on slices, characterized in that: The method is applied to a network processor, the network processor comprising: a RAM storage array, the RAM storage array comprising a plurality of RAM particles; the method comprising: The original data is split into SLICE units of preset length to obtain multiple data packets; For each of the data packets, the data packets are divided based on the RAM storage array including multiple RAM particles, and the data packets are divided into multiple RAM particles, or the data packets are divided into the same RAM particle; When receiving a read / write access request from a user, performing read / write arbitration on the data packet to respond to the read / write access request; The dividing the data packets into a plurality of RAM particles comprises: Divide the data packet into a plurality of RAM particles in the RAM storage array to obtain a plurality of groups of data slices, each group of the data slices comprising a plurality of clock slices; wherein the same group of the data slices is at the same row address of the plurality of RAM particles, and each of the clock slices in the data slices corresponds to one RAM particle; Each of the RAM particles is provided with an independent arbitration sub-bridge, and the read and write arbitration of the arbitration sub-bridge is switched with clk as the minimum unit; the read and write arbitration of the data packet to respond to the read and write access request includes: When multiple users simultaneously send read and write access requests to the arbitration sub-bridge of the first RAM particle, the arbitration sub-bridge performs balanced responses to different users according to a preset priority algorithm, and performs arbitration responses in units of clk.

2. The method according to claim 1, characterized in that: The read / write access request includes a write access request; before performing read / write arbitration on the data packet, the method further includes: Numbering the users in the order in which they enter the arbitration request; Determine an initial phase adjustment amount for a first user with a first number; writing the data of the first user into the RAM storage array based on the initial phase adjustment amount; Determine the phase adjustment amount of the second user based on the current instantaneous phase value of the first user and the number of the second user; wherein the second user is a user not having the first number; After the user with the current number completes the data storage task, the current number is released and the numbers of other users are corrected; The step of determining the initial phase adjustment amount for the first user with the first number is re-executed based on the revised number.

3. The method according to claim 1, characterized in that The dividing the data packets into the same RAM particle includes: The data packets are divided into a plurality of continuous address spaces within the same RAM particle, and each RAM particle is divided into a plurality of storage areas for storing the data packets, and the RAM storage array is divided as an interleaved whole with a plurality of the data packets.

4. The method according to claim 3, characterized in that The plurality of RAM particles correspond to the same data bridge, and the read-write arbitration of the data bridge is switched with each data packet as the minimum unit; The performing read and write arbitration on the data packet to respond to the read and write access request comprises: When each user issues a read / write access request for the data slice to the data bridge, the data bridge operates the second RAM particle storing the data slice to respond to the read / write access request based on the second RAM particle.

5. The method according to claim 1, characterized in that The network processor further includes: a multi-channel write user, a multi-channel read user, a write arbitration unit based on a slice management control mode, and a read arbitration unit based on a slice management control mode; The multi-way write user is connected to the RAM storage array through the write arbitration unit based on the slice management control method, and the multi-way read user is connected to the RAM storage array through the read arbitration unit based on the slice management control method.

6. A storage management device based on slices, characterized in that: The device is arranged in a network processor, and the network processor comprises: a RAM storage array, and the RAM storage array comprises a plurality of RAM particles; the device comprises: The splitting module is used to split the original data into SLICE units of preset length to obtain multiple data packets; A partitioning module, configured to partition each of the data packets based on the RAM storage array including a plurality of RAM particles, and partition each of the data packets into a plurality of the RAM particles, or partition the data packets into the same RAM particle; A read / write arbitration module, configured to perform read / write arbitration on the data packet upon receiving a read / write access request from a user, so as to respond to the read / write access request; The partitioning module is also used for: Divide the data packet into a plurality of RAM particles in the RAM storage array to obtain a plurality of groups of data slices, each group of the data slices comprising a plurality of clock slices; wherein the same group of the data slices is at the same row address of the plurality of RAM particles, and each of the clock slices in the data slices corresponds to one RAM particle; Each RAM particle is provided with an independent arbitration sub-bridge, and the read-write arbitration of the arbitration sub-bridge is switched with clk as the minimum unit; the read-write arbitration module is also used for: When multiple users simultaneously send read and write access requests to the arbitration sub-bridge of the first RAM particle, the arbitration sub-bridge performs balanced responses to different users according to a preset priority algorithm, and performs arbitration responses in units of clk.

7. An electronic device, characterized in that: The electronic device comprises: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the instructions to implement any method described in any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed on a terminal device, the terminal device implements the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Multi-channel fragment merging processing method and system based on FPGA

    CN110968534A

  • Semiconductor memory device for controlling multi-rank

    KR1020120070446A