A data transmission system and resource configuration method thereof
By using the neural network model to dynamically adjust the arbiter setting parameters in the data transmission system, the problem that the arbiter setting cannot be adjusted in the existing technology is solved, the data transmission efficiency is improved and human intervention is reduced, and more efficient resource allocation and Access sequence optimization.
Patent Information
- Application Number
- CN202010082532.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-02-07
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2040-02-07
AI Technical Summary
The settings of the arbiter in the existing data transmission system cannot be dynamically adjusted, resulting in low data transmission efficiency, and the existing method requires manual adjustment of parameters and restarting the system, which is a waste of time and inefficient.
The neural network model is used to obtain the resource information and performance information of the master control device and the controlled device, and the arbiter setting parameters are dynamically adjusted to optimize resource configuration and access sequence.
Through the dynamic adjustment of the neural network model, the data transmission efficiency is improved, the need for human intervention and system restart is reduced, and the automation and real-time nature of resource configuration are improved.
Smart Images

Figure CN113259977B
Abstract
Description
Technical Field
[0001] The present invention relates to a data transmission system and a resource configuration method thereof, and in particular to a data transmission system and a resource configuration method thereof for dynamically setting an arbitrator. Background Art
[0002] In the prior art, an arbiter determines the access order of a master device to a slave device according to the resource requirements of the master device. Therefore, the setting of the arbiter will affect the data transmission efficiency.
[0003] In the existing data transmission process, the arbitrator settings are mostly immutable after being determined. Even if they can be fine-tuned, it is necessary for humans to determine what needs to be adjusted, input parameters, and restart the system. In addition to wasting extra operation time, this method may also lead to worse data transmission efficiency. Summary of the invention
[0004] Therefore, an object of the present invention is to provide a resource configuration method for a data transmission system, comprising: obtaining resource information of a master control device and performance information of a controlled device; determining at least one arbitrator setting parameter based on the resource information of the master control device and the performance information of the controlled device based on a neural network model; and determining the resource configuration setting of at least one master control device based on the at least one arbitrator setting parameter.
[0005] The present invention also provides a data transmission system, comprising an arbitrator parameter generation module and an arbitrator. The arbitrator parameter generation module comprises a processing unit and a storage unit. The storage unit stores a neural network model and a program. After the program is executed, the processing unit is caused to perform the following operations: obtaining resource information of a master control device and performance information of a controlled device; and determining at least one arbitrator setting parameter according to the resource information of the master control device and the performance information of the controlled device based on the neural network model. The arbitrator is electrically connected to the arbitrator parameter generation module to determine the resource configuration setting of at least one master control device according to the at least one arbitrator setting parameter.
[0006] The present invention also provides an arbitrator parameter generation module, comprising a processing unit and a storage unit. The storage unit stores a neural network model and a program. After the program is executed, the processing unit is caused to perform the following operations: obtaining the resource information of the master control device and the performance information of the controlled device; and determining at least one arbitrator setting parameter according to the resource information of the master control device and the performance information of the controlled device based on the neural network model. BRIEF DESCRIPTION OF THE DRAWINGS
[0007] The embodiments of the present invention will be best understood by reading the following detailed description in conjunction with the accompanying drawings. It should be noted that various features may not be drawn to scale. In fact, the size of various features may be arbitrarily increased or reduced for the sake of clarity of discussion.
[0008] Figure 1A is a block diagram of a data transmission system according to some embodiments of the present invention.
[0009] Figure 1B Schematic diagram of the operation of the data transmission system according to some embodiments of the present invention.
[0010] Figure 2A is a block diagram of a data transmission system according to some embodiments of the present invention.
[0011] Figure 2B Schematic diagram of the operation of the data transmission system according to some embodiments of the present invention.
[0012] Figure 3 The present invention is a flowchart of a resource configuration method according to some embodiments of the present invention.
[0013] FIG. 4A to FIG. 4B The present invention is a flowchart of a resource configuration method according to some embodiments of the present invention. DETAILED DESCRIPTION
[0014] Embodiments of the present invention are discussed in more detail below. However, it should be understood that the present invention provides many applicable concepts that can be embodied in a wide variety of specific contexts. The specific embodiments discussed are merely illustrative and do not limit the scope of the present invention.
[0015] In order to dynamically adjust the setting parameters of the arbiter according to the real-time data transmission status between the master device and the slave device to improve the access efficiency, the present invention provides a data transmission system 10. Figure 1A , which is a block diagram of a data transmission system 10 according to some embodiments of the present invention. The data transmission system 10 comprises an arbitrator parameter generation module 101 and an arbitrator 103 .
[0016] The arbiter parameter generation module 101 includes a processing unit 101P and a storage unit 101S. The processing unit 101P and the storage unit 101S are electrically connected via a bus 101B. Through the bus 101B, the processing unit 101P can execute a program PG1 stored in the storage unit 101S. When the program PG1 is executed, the processing unit 101P is triggered to execute a dynamic resource configuration function. The relevant dynamic resource configuration function will be further described below.
[0017] Please also read Figure 1B, which is an operation diagram of the data transmission system 10 of the present invention. As shown in the figure, the arbitrator 103 of the data transmission system 10 is electrically connected to at least one master control device M1 and at least one controlled device S1 through a data transmission interface (not shown), so as to allocate resources of at least one controlled device S1 to at least one master control device M1 for use according to the access requirements of at least one master control device M1. The arbitrator 103 further allocates resources of at least one controlled device S1 to at least one master control device M1 for use based on the relevant setting parameters transmitted by the arbitrator parameter generation module 101.
[0018] Specifically, when the program PG1 of the arbitrator parameter generation module 101 is executed, the processing unit 101P is triggered to obtain the master control device resource information 90 related to at least one master control device M1, and obtain the controlled device performance information 80 related to at least one controlled device S1. Then, the processing unit 101P determines at least one arbitrator setting parameter 100 according to the master control device resource information 90 and the controlled device performance information 80 based on the neural network model NN1 stored in the storage unit 101S.
[0019] Accordingly, since the arbitrator parameter generation module 101 and the arbitrator 103 are electrically connected via a data transmission interface (not shown), the arbitrator parameter generation module 101 can transmit at least one arbitrator setting parameter 100 to the arbitrator 103 via the data transmission interface. In this way, the arbitrator 103 can determine the resource configuration setting of at least one master device M1 based on the at least one arbitrator setting parameter 100. In other words, the arbitrator 103 determines the order in which at least one master device M1 accesses at least one controlled device S1 based on the at least one arbitrator setting parameter 100.
[0020] It should be noted that the neural network model NN1 is mainly trained to take the master device resource information and the controlled device performance information as input and output the corresponding arbitrator setting parameters. In detail, during the training process of the neural network model NN1, multiple sets of data are used to train the neural network model NN1. Each set of data includes the master device resource information of a certain time interval, the controlled device performance information of the same time interval, and the arbitrator setting parameters used by the arbitrator 103 in the same time interval.
[0021] Furthermore, taking the master device resource information, controlled device performance information and arbitrator setting parameters of the same set of data as an example, when the arbitrator 103 configures the resources of the controlled device to the master device based on the master device resource information of the master device and uses the arbitrator setting parameters, the controlled device will have the corresponding controlled device performance information.
[0022] Subsequently, the resource information of the master device and the performance information of the controlled device are fed back to the neural network model NN1, and the neural network model NN can calculate and update the arbitrator setting parameters accordingly to try to improve the controlled device performance information of the controlled device.
[0023] In some implementations, the present invention provides a data transmission system 20. Figure 2A , which is a block diagram of a data transmission system 20 of some embodiments of the present invention. The data transmission system 10 comprises an arbitrator parameter generation module 201, an arbitrator 203, a master device monitor 205, a controlled device monitor 207 and a controlled device performance calculation unit 209. The arbitrator parameter generation module 201, the arbitrator 203, the master device monitor 205, the controlled device monitor 207 and the controlled device performance calculation unit 209 are electrically connected through a data transmission interface.
[0024] The arbiter parameter generation module 201 includes a processing unit 201P and a storage unit 201S. The processing unit 201P and the storage unit 201S are electrically connected via a bus 201B. Through the bus 201B, the processing unit 201P can execute a program PG2 stored in the storage unit 201S. When the program PG2 is executed, the processing unit 201P is triggered to execute a dynamic resource configuration function. The relevant dynamic resource configuration function will be further described below.
[0025] Please also read Figure 2B , which is an operation diagram of the data transmission system 20 of the present invention. As shown in the figure, the arbitrator 203 of the data transmission system 20 is electrically connected to multiple master control devices M2 and multiple controlled devices S2 through a data transmission interface (not shown). The arbitrator 203 allocates the resources of the controlled device S2 to the master control device M2 for use based on the relevant setting parameters transmitted by the arbitrator parameter generation module 201.
[0026] Specifically, the master control device monitor 205 is electrically connected to a plurality of master control devices M2 via a data transmission interface (not shown) to monitor the master control devices M2 to generate master control device resource information 70. The master control device resource information 70 includes bandwidth requirement information of each master control device M2 and access time tolerance value of each master control device M2. The bandwidth requirement information mainly refers to the requirement of the master control device M2 for data bandwidth, and the access time tolerance value mainly refers to the maximum allowable value of the time consumed by the master control device M2 for access operations.
[0027] On the other hand, the controlled device monitor 207 is electrically connected to the plurality of controlled devices S2 via a data transmission interface, and is used to monitor the controlled devices S2 to generate controlled device resource information 60. The controlled device resource information 60 includes the total access bandwidth of each controlled device S2, the maximum access completion time of each controlled device S2 to each master device M2, and the average access completion time of each controlled device S2 to each master device M2.
[0028] The total access bandwidth is mainly the total access bandwidth provided by the controlled device S2. The maximum access completion time is mainly the time value that consumes the most time in all access operations of the controlled device S2 for each master control device M2. The average access completion time is mainly the average time value that the controlled device S2 consumes for all access operations of each master control device M2.
[0029] Next, the controlled device performance calculation unit 209 calculates the controlled device performance information 50 of the controlled device S2 according to the controlled device resource information 60. Specifically, the controlled device performance calculation unit 209 stores a plurality of weight values corresponding to the total access bandwidth, the maximum access completion time, and the average access completion time of the controlled device resource information 60.
[0030] Accordingly, the controlled device performance calculation unit 209 can calculate the controlled device performance information 50 according to the total access bandwidth and its weight value, the maximum access completion time and its weight value, and the average access completion time and its weight value. In some embodiments, the sum of the weight values corresponding to the total access bandwidth, the maximum access completion time, and the average access completion time is one, and the controlled device performance information 50 can be the sum of the product of the total access bandwidth and its weight value, the product of the maximum access completion time and its weight value, and the product of the average access completion time and its weight value. In some embodiments, the controlled device performance information 50 includes quantified information such as scores or percentages, and the higher the value, the better the performance of the master control device M2 in accessing the controlled device S2.
[0031] Next, when the program PG2 of the arbitrator parameter generation module 201 is executed, the processing unit 201P is triggered to periodically obtain the master device resource information 70 from the master device monitor 205, and periodically receive the controlled device performance information 50 from the controlled device performance calculation unit 209. Subsequently, the processing unit 201P determines at least one arbitrator setting parameter 200 based on the neural network model NN2 stored in the storage unit 201S, the master device resource information 70 and the controlled device performance information 50. Among them, the at least one arbitrator setting parameter 200 includes an access priority parameter.
[0032] Accordingly, since the arbitrator parameter generation module 201 and the arbitrator 203 are electrically connected via a data transmission interface (not shown), the arbitrator parameter generation module 201 can transmit at least one arbitrator setting parameter 200 to the arbitrator 203 via the data transmission interface. In this way, the arbitrator 203 can determine the resource configuration settings of the master device M2 based on the access priority parameter included in the at least one arbitrator setting parameter 200. In other words, the arbitrator 203 determines the priority order of each master device M2 to access the controlled device S2 based on the access priority parameter.
[0033] It should be noted that the neural network model NN2 is mainly trained to take the resource information of the master control device (i.e., the bandwidth requirement information and access time tolerance value of the master control device) and the performance information of the controlled device (calculated using the total access bandwidth, maximum access completion time, average access completion time and corresponding weight values of the controlled device) as input, and output the corresponding arbitrator setting parameters.
[0034] Specifically, during the training process, the neural network model NN2 uses multiple sets of data to train the neural network model NN2. Each set of data includes bandwidth requirement information and access time tolerance of the master device in a certain time interval, performance information of the controlled device in the same time interval, and arbitrator setting parameters used by the arbitrator 203 in the same time interval.
[0035] Furthermore, taking the bandwidth requirement information and access time tolerance value of the master device, the performance information of the controlled device and the arbitrator setting parameters of the same set of data as an example, when the arbitrator 203 configures the resources of the controlled device to the master device based on the bandwidth requirement information and access time tolerance value of the master device using the arbitrator setting parameters, the controlled device performance calculation unit 209 will calculate the controlled device performance information of the controlled device based on the total access bandwidth, maximum access completion time, average access completion time and corresponding weight value of the controlled device.
[0036] Subsequently, the bandwidth requirement information, access time tolerance value and controlled device performance information of the master device are fed back to the neural network model NN2, and the neural network model NN2 can calculate and update the arbitrator setting parameters accordingly to try to improve the controlled device performance information of the controlled device.
[0037] In some embodiments, when the program PG2 of the arbitrator parameter generation module 201 is executed, the processing unit 201P is triggered to automatically adjust the weight values used in the neural network model NN2 so that the neural network model NN2 can complete optimized self-learning.
[0038] Specifically, after the master control device resource information (bandwidth requirement information of the master control device, access time tolerance value) and the controlled device performance information are fed back to the neural network model NN2, the arbitrator parameter generation module 201 can obtain the controlled device performance information generated by the master control device resource information (bandwidth requirement information of the master control device, access time tolerance value) and the weight value. For example, when the corresponding master control device resource information Data Set A and controlled device performance information Data Set B are fed back to the neural network model NN2, the arbitrator parameter generation module 201 can obtain the operation of the master control device resource information Data Set A and the weight value Data Set W to generate the controlled device performance information DataSet B.
[0039] Next, the arbitrator parameter generation module 201 can automatically adjust the weight values used by the neural network model NN2 (corresponding to the bandwidth requirement information and the weight values of the access time tolerance value of the master device) according to different network environment parameters, in an attempt to obtain higher controlled device performance information. For example, when the bandwidth requirement information and the access time tolerance value of the master device resource information are combined with the weight values 0.7 and 0.3 to generate a customized quantized controlled device performance information of 85 points, the arbitrator parameter generation module 201 adjusts the ratio of the weight values 0.7 and 0.3 according to different network environment parameters (for example, adjusting the bandwidth requirement information to 0.8 and adjusting the weight value of the access time tolerance value to 0.2) to try to obtain a controlled device performance information higher than the controlled device performance information of 85 points (for example: 90 points) in subsequent operations.
[0040] In this way, by repeatedly adjusting the weight values to try to improve the performance information of the controlled device, the arbitrator setting parameters of the neural network model NN2 of the arbitrator parameter generation module 201 can be optimized. In other words, through the aforementioned self-learning operation, the adjusted arbitrator setting parameters of the neural network model NN2 should be able to improve the performance information of the controlled device.
[0041] Some embodiments of the present invention include a resource configuration method, the flow chart of which is as follows: Figure 3 The resource configuration methods of these embodiments are implemented by a data transmission system (such as the data transmission system 10 of the aforementioned embodiment). The detailed operation of the method is as follows.
[0042] First, execute step S301 to obtain the resource information of the master control device and the performance information of the controlled device. Execute step S302 to determine at least one arbitrator setting parameter based on the resource information of the master control device and the performance information of the controlled device based on the neural network model. In detail, the neural network model receives the resource information of the master control device and the performance information of the controlled device as input, and outputs at least one arbitrator setting parameter. Execute step S303 to determine the resource configuration setting of at least one master control device based on at least one arbitrator setting parameter. In other words, the order in which at least one master control device accesses at least one controlled device is determined based on at least one arbitrator setting parameter.
[0043] Some embodiments of the present invention include a network packet processing method, the flow chart of which is as follows: FIG. 4A to FIG. 4B The network packet processing methods of these embodiments are implemented by a data transmission system (such as the data transmission system 20 of the aforementioned embodiment). The detailed operation of the method is as follows.
[0044] First, execute step S401A and step S401B. The master control device resource information includes bandwidth requirement information and access time tolerance value. Step S401A is to periodically receive the master control device resource information from the master control device monitor. Step S401B is to periodically receive the controlled device performance information from the controlled device performance calculation unit. In some embodiments, the master control device resource information includes bandwidth requirement information and access time tolerance value of multiple master control devices.
[0045] It should be noted that in some embodiments, the performance information of the controlled device is calculated in step A. Please refer to Figure 4B , step A includes step A1 and step A2. Specifically, step A1 is executed to obtain the controlled device resource information. The controlled device resource information may be received from a controlled device monitor for monitoring a plurality of controlled devices. The controlled device resource information includes the total access bandwidth, the maximum access completion time, and the average access completion time associated with the plurality of controlled devices.
[0046] In some embodiments, the total amount of access bandwidth, the maximum access completion time, and the average access completion time have corresponding weight values, and accordingly, step A2 is performed to calculate the controlled device performance information according to the controlled device resource information and its corresponding weight value. In other words, the controlled device performance information is calculated according to the total amount of access bandwidth and its weight value, the maximum access completion time and its weight value, and the average access completion time and its weight value related to multiple controlled devices.
[0047] After obtaining the master control device resource information and the controlled device performance information, step S402 is executed to determine at least one arbitrator setting parameter based on the neural network model according to the master control device resource information and the controlled device performance information. The at least one arbitrator setting parameter includes an access priority parameter. Accordingly, step S403 is executed to determine the priority order of the master control device accessing the controlled device according to the access priority parameter of the arbitrator setting parameter.
[0048] It should be noted that in some embodiments, the main control device includes a computing device (for example, a central processing unit CPU, a graphics processing unit GPU, etc.), and the controlled device includes a memory device (for example, a random access memory RAM, a double data rate synchronous random access memory DDR SRAM, etc.), but these examples are not intended to limit the implementation methods of the main control device and the controlled device of the present invention.
[0049] The present invention may be implemented in any suitable form, including hardware, software, firmware or any combination thereof. At least part of the present invention may be selectively implemented as computer software running on one or more data processors and / or digital signal processors or configurable module components (e.g., FPGA).
[0050] The above description briefly presents the features of certain embodiments of the present invention, so that those skilled in the art can more fully understand the various forms of the present invention. Those skilled in the art should understand that they can easily use the present invention as a basis to design or change other processes and structures to achieve the same purpose and / or achieve the same advantages as the embodiment herein. Those skilled in the art should understand that these equivalent embodiments still belong to the spirit and scope of the present invention, and they can be variously changed, substituted and modified without departing from the spirit and scope of the present invention.
[0051] Explanation of symbols
[0052] 10: Data transmission system
[0053] 20: Data transmission system
[0054] 50:Controlled device performance information
[0055] 60: controlled device resource information
[0056] 70: Master device resource information
[0057] 80:Controlled device performance information
[0058] 90: Master device resource information
[0059] 100: Arbitrator setting parameters
[0060] 101: Arbitrator parameter generation module
[0061] 101P: Processing Unit
[0062] 101S: Storage Unit
[0063] 101B: Bus
[0064] 103: Arbitrator
[0065] 200: Arbitrator setting parameters
[0066] 201: Arbitrator parameter generation module
[0067] 201P: Processing Unit
[0068] 201S: Storage Unit
[0069] 201B: Bus
[0070] 203: Arbitrator
[0071] 205: Master device monitor
[0072] 207:Controlled device monitor
[0073] 209: controlled device performance calculation unit
[0074] A1~A2: Steps
[0075] M1: Master control device
[0076] M2: Master control device
[0077] NN1: Neural network model
[0078] NN2: Neural Network Model
[0079] PG1: Procedure
[0080] PG2: Procedure
[0081] S1: controlled device
[0082] S2: Controlled device
[0083] S301~S303: Steps
[0084] S401A~S403: Steps
Claims
1. A resource configuration method, comprising: Acquire master control device resource information related to at least one master control device and controlled device performance information related to at least one controlled device; Based on the neural network model, determining at least one arbitrator setting parameter according to the resource information of the master control device and the performance information of the controlled device; as well as Determining the order in which the at least one master control device accesses the at least one controlled device according to the at least one arbitrator setting parameter; The neural network model is trained using multiple sets of data, each set of data including resource information of the master control device in a certain time interval, performance information of the controlled device in the same time interval, and arbitrator setting parameters used by the arbitrator in the same time interval.
2. The resource allocation method according to claim 1, wherein: Acquiring the resource information of the master control device and the performance information of the controlled device further includes: periodically receiving the master device resource information from a master device monitor; and The controlled device performance information is periodically received from a controlled device performance calculation unit.
3. The resource allocation method according to claim 2, wherein: The master control device resource information includes bandwidth requirement information and access time tolerance value.
4. The resource allocation method according to claim 2, further comprising: Acquiring controlled device resource information related to the at least one controlled device; The controlled device performance information is calculated according to the controlled device resource information.
5. The resource allocation method according to claim 4, wherein: The controlled device resource information includes: total access bandwidth, maximum access completion time, and average access completion time.
6. The resource allocation method according to claim 5, wherein: The total access bandwidth, the maximum access completion time, and the average access completion time have corresponding weight values, and calculating the controlled device performance information according to the controlled device resource information further includes: The performance information of the controlled device is calculated according to the total access bandwidth, the maximum access completion time, the average access completion time and the corresponding weight value.
7. The resource allocation method according to claim 6, wherein: The sum of the weight values corresponding to the total access bandwidth, the maximum access completion time, and the average access completion time is one.
8. The resource allocation method according to claim 1, wherein: The at least one arbitrator setting parameter includes an access priority parameter, and determining the order in which the at least one master device accesses the at least one controlled device further includes: The order in which the at least one master device accesses the at least one controlled device is determined according to the access priority parameter.
9. The resource allocation method according to claim 1, wherein: The at least one host device includes a computing device.
10. A data transmission system, comprising: Arbitrator parameter generation module, including: a processing unit; and A storage unit is used to store the neural network model and the program, wherein: After the program is executed, the processing unit is caused to perform the following operations: Acquire master control device resource information related to at least one master control device and controlled device performance information related to at least one controlled device; as well as Based on the neural network model, determining at least one arbitrator setting parameter according to the master control device resource information and the controlled device performance information; an arbitrator, electrically connected to the arbitrator parameter generating module, for determining the order in which the at least one master control device accesses the at least one controlled device according to the at least one arbitrator setting parameter; And wherein the neural network model is trained using multiple sets of data, each set of data includes resource information of the master control device in a certain time interval, performance information of the controlled device in the same time interval, and arbitrator setting parameters used by the arbitrator in the same time interval.
Citation Information
Patent Citations
Methods and apparatus for a resource sharing platform having resource quality estimation
US10048987B1
Dynamically reconfigurable networked virtual neurons for neural network processing
US20190130246A1
