TW202022605A - Computational-component-based method and system for allocating computer resource - Google Patents
Computational-component-based method and system for allocating computer resource Download PDFInfo
- Publication number
- TW202022605A TW202022605A TW107145249A TW107145249A TW202022605A TW 202022605 A TW202022605 A TW 202022605A TW 107145249 A TW107145249 A TW 107145249A TW 107145249 A TW107145249 A TW 107145249A TW 202022605 A TW202022605 A TW 202022605A
- Authority
- TW
- Taiwan
- Prior art keywords
- computing
- computer resource
- computer
- resource allocation
- chip
- Prior art date
Links
Images
Abstract
Description
一種電腦資源的分配技術,特別是指通過區塊鏈技術進行電腦資源分配並記錄在區塊鏈的電腦資源分配方法以及系統。 A computer resource distribution technology, in particular, refers to a computer resource distribution method and system that distributes computer resources through blockchain technology and records them on the blockchain.
在個人電腦的時代,個人電腦中的處理器愈來愈強大,儲存空間也愈來愈大,然而,在一般應用中,並不會完全應用這些強大的處理能力與儲存空間,使得有些資源被隱藏,習知技術中也沒有有效分配這些資源的技術。 In the era of personal computers, the processors in personal computers have become more and more powerful, and the storage space has also become larger. However, in general applications, these powerful processing capabilities and storage space are not fully used, making some resources Hidden, there is no technology to effectively allocate these resources in the conventional technology.
直到網路時代來臨,使得個人電腦資源可以通過網路分享出去,衍生出的技術如電腦叢集(computer cluster),每個參與叢集的電腦形成一個節點,通過網路將多個電腦連結,可以共同執行一些計算的任務,如分散式計算、網格計算等,多個節點之間也可以達到高可用性(high availability)與負載平衡(load balance)的目的。 Until the advent of the Internet era, personal computer resources can be shared through the Internet, and derived technologies such as computer clusters. Each computer participating in the cluster forms a node, and multiple computers are connected through the network. Performing some computing tasks, such as distributed computing, grid computing, etc., can also achieve high availability and load balance among multiple nodes.
所述習知利用網路提供算力的應用例如在加密資料傳遞所需要計算的雜湊(hash)演算、人工智慧應用需要的演算法、大數據分析需要的演算法等。這些已知需求需要網路節點提供算力,但是潛在有安全性不高、運算來源不明以及節點不穩定(如電力)的種種問題,這些問題需要有改善方案。 The conventional applications that use the network to provide computing power include, for example, hash calculations required for encrypted data transmission, algorithms required for artificial intelligence applications, and algorithms required for big data analysis. These known requirements require network nodes to provide computing power, but there are potential problems such as low security, unknown computing sources, and node instability (such as electricity). These problems require solutions.
揭露書提出一種基於計算元件的電腦資源分配方法與系統,提出一個平台,用於根據有計算或是儲存空間需求分配他人所提出可以分享出來的計算力或是儲存空間,並且應用區塊鏈的技術,能讓參與電腦資源分配的賣方獲得報償,也能有效分配到具有高可用性的電腦資源。 The disclosure paper proposes a computer resource allocation method and system based on computing components, and proposes a platform for allocating computing power or storage space proposed by others that can be shared according to computing or storage space requirements, and applying blockchain Technology allows sellers who participate in the distribution of computer resources to obtain compensation, and can also effectively allocate computer resources with high availability.
根據所述基於計算元件的電腦資源分配方法的實施例,方法運行於多個節點之間,系統提出一或多個計算晶片,形成提供電腦資源的一或多個供應節點,各個計算晶片主動發布可分配電腦資源的資訊至中央系統。 According to the embodiment of the computing element-based computer resource allocation method, the method runs between multiple nodes, the system proposes one or more computing chips to form one or more supply nodes that provide computer resources, and each computing chip actively releases The information of computer resources can be distributed to the central system.
之後,由中央系統接收各供應節點發布的計算晶片的可分配電腦資源,並根據一電腦資源需求分配至少一可分配電腦資源,形成交付給至少一個計算晶片的任務,對應分配電腦資源的供應節點將接收中央系統的任務後,再以計算晶片執行演算,之後,由中央系統接收一或多個計算晶片的運算結果。 After that, the central system receives the allocatable computer resources of the computing chips issued by each supply node, and allocates at least one allocatable computer resource according to a computer resource demand to form a task to be delivered to at least one computing chip, corresponding to the supply node that allocates the computer resources After receiving the tasks of the central system, the calculation chip is used to perform calculations. After that, the central system receives the calculation results of one or more calculation chips.
在另一實施例中,計算晶片可連線區塊鏈,計算晶片提出可分配電腦資源,形成供應端節點,主動發布可分配電腦資源的資訊,並通過智能合約記錄於區塊鏈。接著,需求端節點提交電腦資源需求,通過一智能合約寫入區塊鏈。 In another embodiment, the computing chip can be connected to the blockchain. The computing chip proposes to allocate computer resources to form a supply-side node, actively releases information about the allocation of computer resources, and records it on the blockchain through a smart contract. Then, the demand-end node submits the computer resource demand and writes it into the blockchain through a smart contract.
進一步地,計算晶片以外接或內建方式結合終端裝置,由終端裝置提供電力,形成參與電腦資源分配的節點,參與電腦資源分配的節點通過計算晶片中執行的軟體程式主動提交可分配電腦資源,並連線智能合約,有中央系統可根據區塊鏈中記錄的電腦資源需求與至少一可分配電腦資源進行分配,形成交付給供應節點的計算晶片的任務。分配完成後,由各計算晶片執行任務,之後,通過智能合約,可以取得電腦資源的使用數據,並寫入區塊鏈,再根據區塊鏈記錄中使用電腦資源的證明,提供報償給至少一供應端節點。 Further, the computing chip is connected to the terminal device in an external or built-in manner, and the terminal device provides power to form a node participating in the computer resource allocation. The node participating in the computer resource allocation actively submits the assignable computer resource through the software program executed in the computing chip. And connect the smart contract, there is a central system that can allocate at least one assignable computer resource according to the computer resource demand recorded in the blockchain, and form the task of the computing chip delivered to the supply node. After the allocation is completed, each computing chip performs the task. After that, through the smart contract, the computer resource usage data can be obtained and written into the blockchain, and then based on the proof of the use of computer resources in the blockchain record, compensation is provided to at least one Supply-side node.
進一步地,所述電腦資源需求與可分配電腦資源為算力或儲存空間,而供應端節點提供可分配電腦資源時,更包括費用以及幣別。相似地,提出電腦資源需求時,還包括報償,報償以一幣別寫入供應端節點提供之一錢包位址。 Further, the computer resource demand and the allocatable computer resource are computing power or storage space, and when the supply-end node provides the allocatable computer resource, the cost and currency are also included. Similarly, when a computer resource requirement is proposed, it also includes compensation. The compensation is written into a wallet address provided by the supply-end node in a currency.
根據基於計算元件的電腦資源分配系統實施例,系統主要由多個節點組合,其中包括一需求端節點以及至少一供應端節點,其中,各節點可以內建或外接計算晶片,形成提供算力或儲存空間的供應端節點。 According to an embodiment of a computer resource allocation system based on computing components, the system is mainly composed of multiple nodes, including a demand-side node and at least one supply-side node, where each node can be built-in or externally connected to a computing chip to provide computing power or The supply node of the storage space.
進一步地,需求端節點可通過特定軟體程式產生指令,以通過中央系統使用經過分配的在供應端節點的電腦資源,在特定方式中,可通過智能合約將使用電腦資源的數據寫入區塊鏈,作為報償計算之用。 Further, the demand-side node can generate instructions through a specific software program to use the allocated computer resources at the supply-side node through the central system. In a specific way, the data using computer resources can be written into the blockchain through smart contracts. , Used as compensation calculation.
其中由一中央系統執行所述的基於計算元件的電腦資源分配方法,能根據電腦資源需求與可分配電腦資源進行分配,形成交付給計算晶片的任務,之後可呼叫智能合約以取得電腦資源的使用數據,再根據區塊鏈記錄中使用電腦資源的證明,提供報償給供應端節點。 Among them, a central system executes the computer resource allocation method based on computing components, which can be allocated according to computer resource requirements and allocatable computer resources to form a task delivered to the computing chip, and then call smart contracts to obtain the use of computer resources The data, based on the proof of the use of computer resources in the blockchain record, provide compensation to the supply-side node.
為了能更進一步瞭解本發明為達成既定目的所採取之技術、方法及功效,請參閱以下有關本發明之詳細說明、圖式,相信本發明之目的、特徵與特點,當可由此得以深入且具體之瞭解,然而所附圖式僅提供參考與說明用,並非用來對本發明加以限制者。 In order to further understand the technology, methods and effects of the present invention to achieve the established objectives, please refer to the following detailed descriptions and drawings about the present invention. I believe that the objectives, features and characteristics of the present invention can be thoroughly and concretely obtained. It is understood that, however, the accompanying drawings are only provided for reference and illustration, and are not intended to limit the present invention.
10‧‧‧網路 10‧‧‧Internet
101‧‧‧需求端節點 101‧‧‧Demand end node
102‧‧‧區塊鏈 102‧‧‧Blockchain
11‧‧‧儲存器 11‧‧‧Storage
12‧‧‧運算系統 12‧‧‧Computer system
13,14‧‧‧終端節點 13,14‧‧‧Terminal node
131,141‧‧‧計算晶片 131,141‧‧‧Compute chip
20‧‧‧計算晶片 20‧‧‧Compute chip
201‧‧‧處理單元 201‧‧‧Processing unit
202‧‧‧記憶單元 202‧‧‧Memory Unit
203‧‧‧儲存單元 203‧‧‧Storage unit
204‧‧‧任務排程單元 204‧‧‧Task scheduling unit
206‧‧‧加密計算單元 206‧‧‧Encrypted Computing Unit
208‧‧‧介面控制單元 208‧‧‧Interface Control Unit
205‧‧‧通訊單元 205‧‧‧Communication Unit
31‧‧‧需求端 31‧‧‧Demand side
33‧‧‧中央系統 33‧‧‧Central System
35‧‧‧中繼節點 35‧‧‧Relay Node
37‧‧‧終端節點 37‧‧‧Terminal node
371‧‧‧計算晶片 371‧‧‧Compute chip
373‧‧‧處理單元 373‧‧‧Processing unit
375‧‧‧儲存單元 375‧‧‧Storage Unit
377‧‧‧通訊單元 377‧‧‧Communication Unit
39‧‧‧智能合約 39‧‧‧Smart Contract
41,42,43,44‧‧‧中央系統節點 41,42,43,44‧‧‧ Central System Node
401,402,403,404,405,406,407,408‧‧‧電腦節點 401,402,403,404,405,406,407,408‧‧‧computer node
411,412,413,414,415,416,417,418,419,420‧‧‧終端節點 411,412,413,414,415,416,417,418,419,420‧‧‧terminal node
45‧‧‧智能合約 45‧‧‧Smart Contract
71‧‧‧需求端 71‧‧‧Demand side
72‧‧‧中央系統 72‧‧‧Central System
73‧‧‧計算晶片一 73‧‧‧Compute chip one
74‧‧‧計算晶片二 74‧‧‧Compute chip 2
75‧‧‧智能合約 75‧‧‧Smart Contract
步驟S501~S509‧‧‧電腦資源分配流程 Steps S501~S509‧‧‧Computer resource allocation process
步驟S601~S623‧‧‧電腦資源分配流程 Steps S601~S623‧‧‧Computer resource allocation process
步驟701~712‧‧‧電腦資源分配流程
圖1顯示電腦資源分配系統的系統架構實施例示意圖;圖2顯示終端節點使用計算晶片的電路方塊實施例圖;圖3顯示終端節點連接網路參與電腦資源分配的實施例示意圖; 圖4顯示具有中央系統的電腦資源分配系統的架構實施例示意圖;圖5顯示電腦資源分配方法的實施例之一流程圖;圖6顯示電腦資源分配方法的實施例之二流程圖;圖7顯示電腦資源分配方法的實施例之三流程圖。 Figure 1 shows a schematic diagram of an embodiment of the system architecture of a computer resource allocation system; Figure 2 shows an embodiment diagram of a circuit block in which a terminal node uses a computing chip; Figure 3 shows a schematic diagram of an embodiment in which a terminal node is connected to a network to participate in computer resource allocation; Figure 4 shows a schematic diagram of an embodiment of the computer resource allocation system with a central system; Figure 5 shows a flowchart of one embodiment of a computer resource allocation method; Figure 6 shows a flowchart of the second embodiment of a computer resource allocation method; Figure 7 shows A flowchart of the third embodiment of the computer resource allocation method.
根據說明書所公開的基於計算元件的電腦資源分配方法與系統實施例,運用區塊鏈技術與智能合約的機制,能在區域網路或是網際網路上進行電腦資源分配的運作,並可提供交易與分潤的機制。所述電腦資源指的是算力與儲存空間的其中之一或其組合,包括可通過網路交易的可分享的電腦處理器算力與儲存空間,其中電腦處理器算力可包括電腦系統中圖形處理器(GPU)或中央處理器(CPU)的算力,儲存空間則可指電腦系統中快閃記憶體、硬碟與隨機存取記憶體(RAM)等的儲存空間。當系統運用區塊鏈技術,參與區塊鏈的節點之間維持著區塊鏈彼此驗證的特徵,其中檔案具有不可竄改性而具備不可否認的特性。 According to the computer resource allocation method and system embodiments based on computing components disclosed in the specification, using blockchain technology and smart contract mechanisms, computer resource allocation operations can be performed on the local network or the Internet, and transactions can be provided And the mechanism of profit sharing. The computer resource refers to one or a combination of computing power and storage space, including computer processor computing power and storage space that can be shared through network transactions, where computer processor computing power can include computer systems The computing power of graphics processing unit (GPU) or central processing unit (CPU), and storage space can refer to the storage space of flash memory, hard disk, and random access memory (RAM) in a computer system. When the system uses blockchain technology, the nodes participating in the blockchain maintain the characteristics of mutual verification of the blockchain, and the files are non-modifiable and have undeniable characteristics.
在基於計算元件的電腦資源分配方法實施例中,由電腦資源分配系統實現一個區塊鏈平台,讓使用者在平台上撰寫智能合約(smart contract),用於與各端節點中運行的軟體程式溝通,特別是可以通過內建或外接方式結合終端節點的計算晶片連線智能合約,並存取區塊鏈記錄,使得參與區塊鏈的各節點可以利用區塊鏈技術,讓參與此電腦資源分配的雙方(買方與賣方)可以提出需求與供應,其中由買方提出需求與報償,將需求與報償以區塊鏈技術記錄在每個區塊鏈節點上,形成分散式記錄,由計算晶片實現的賣方在區塊鏈上提出可以供應資源分配的電腦處理器算力以及/或是儲存空間,並提出交易費用,通過智能合約記載在區塊鏈上;需求端則可將需要使用的電腦資源需求通過智能合約記錄 在區塊鏈上。於是,電腦資源分配系統通過各節點上的計算晶片連結智能合約,例如以一中央系統的方式,能根據買方提出的報償條件以及賣方提出的費用進行分配,將分配結果同樣寫入區塊鏈。 In the embodiment of the computer resource allocation method based on computing components, a block chain platform is implemented by the computer resource allocation system, allowing users to write smart contracts on the platform to communicate with software programs running in each end node Communication, especially the smart contract can be connected to the computing chip of the terminal node through the built-in or external method, and access to the blockchain record, so that each node participating in the blockchain can use the blockchain technology to participate in this computer resource The two parties (buyer and seller) of the distribution can propose demand and supply. The buyer proposes demand and compensation, and records the demand and compensation on each blockchain node using blockchain technology to form a distributed record, which is realized by computing chips Of sellers propose computer processor computing power and/or storage space that can provide resource allocation on the blockchain, and propose transaction costs, which are recorded on the blockchain through smart contracts; the demand side can use computer resources Requirements are recorded through smart contracts On the blockchain. Therefore, the computer resource distribution system connects the smart contract through the computing chip on each node. For example, in a central system, it can distribute according to the compensation conditions proposed by the buyer and the expenses proposed by the seller, and the distribution results are also written into the blockchain.
根據基於計算元件的電腦資源分配系統的實施例,網路架構如圖1所示,參與此電腦資源分配系統的各方主要有需求端節點101以及供應端節點,供應端節點如圖中顯示的儲存器11、運算系統12與各種形式的終端節點13,14,此例中,終端節點13,14示意表示各種物聯網裝置,可以通過連結所提出的計算晶片131,141成為可以參與電腦資源分配的節點。
According to an embodiment of a computer resource allocation system based on computing components, the network architecture is shown in Figure 1. The parties participating in the computer resource allocation system mainly include demand-
值得一提的是,所述計算晶片的設計適用將分布於網路上不同位置的物聯網裝置,並將這個物聯網裝置成為參與電腦資源分配的終端節點,物聯網裝置主要是提供內建或外接的計算晶片運作時所需要的電力,必要時也提供通訊功能,而揭露書所提出的分配電腦資源的系統則是使用計算晶片本身提供的算力,或在特定實施例中可以提供其中的儲存空間。 It is worth mentioning that the design of the computing chip is suitable for IoT devices that will be distributed in different locations on the network, and this IoT device becomes a terminal node participating in the distribution of computer resources. The IoT device mainly provides built-in or external The power required for the operation of the computing chip of, when necessary, also provides communication functions, and the system for allocating computer resources proposed in the disclosure uses the computing power provided by the computing chip itself, or in certain embodiments, it can provide storage space.
所述各端裝置通過網路10互聯,並可參與區塊鏈102,可成為區塊鏈建立分散式記錄的節點,並在各自的作業系統(OS)中運行電腦資源分配的軟體程式,具有區塊鏈識別資訊(blockchain ID)以及存取區塊鏈資料的密鑰(KEY,如系統提供的私鑰),使得彼此互聯的資料符合特定格式與協定。
The various end devices are interconnected through the
當需求端節點101提出電腦資源需求,包括運算需求,如處理器算力,以及/或儲存空間的需求,即通過其中軟體程式向區塊鏈102發布需求,通過特定軟體程式發布需求,包括提出一定的報償(如提供加密貨幣與對應電子錢包位址),其他節點,如可供應儲存空間的儲存器11、提供算力的運算系統12,以及可提供中央處理器(CPU)與圖形處理器(GPU)算力(或包括儲存空間)的各式終端節點13,14,可以成為提供可分配電腦資源的供應端節
點。
When the demand-
所述電腦資源可以為專門提供儲存空間的節點,如圖示的儲存器11,可以實現一種雲端硬碟或是網路上的磁碟陣列等;電腦資源可以為專門提供算力的節點,例如圖示的運算系統12,這類系統如提供算力的電腦叢集、高速電腦、挖礦的礦機等;電腦資源可以為一般電腦系統或是具有運算能力的電子裝置中的算力,或可加上儲存空間,例如圖示中的終端節點13,實施例為通過特定晶片或軟體程序連接網路並能提供可分配電腦資源的電子裝置,此例顯示為電視機,可以通過外接計算晶片131的方式參與分配電腦資源的系統;如終端節點14,此例顯示為電冰箱,可以通過內建的計算晶片141參與系統。特別的是,若以供應端節點為例,各種節點通過計算晶片形成一供應端節點,不論是內建或外接的計算晶片由這些物聯網節點提供電力,計算晶片連線區塊鏈,計算晶片提出可分配電腦資源,並通過其中運行的軟體程序主動發布可分配電腦資源的資訊,再通過智能合約記錄於區塊鏈上。
The computer resource can be a node dedicated to providing storage space, such as the storage 11 shown in the figure, which can implement a cloud drive or a disk array on the network, etc.; the computer resource can be a node dedicated to providing computing power, such as The
除了專門用來提供他人運算或儲存需求的運算系統或各種形式的運算節點,計算晶片可獨立參與分配電腦資源的系統,根據實施例,計算晶片可以內建或外接方式結合於電子裝置,實施例如圖2所示的計算晶片20,計算晶片20可以內建電路模組的方式,或是以外接裝置連接參與這個電腦資源分配系統,如此,使用此計算晶片20的終端節點還可通過其中運行的程序取得由需求端提供的報償。
In addition to computing systems or various types of computing nodes specifically used to provide computing or storage requirements for others, computing chips can independently participate in the system for allocating computer resources. According to embodiments, computing chips can be integrated with electronic devices in a built-in or external manner, such as In the
根據揭露書所提出的計算晶片20的實施方式,可以採用一種特殊應用積體電路(Application-specific integrated circuit,ASIC),利用其中多種加密電路的多種邏輯組合執行各種運算需求,包括可以支援多種加密演算法的加密雜湊運算,如加密貨幣演算,除了可以方便實現在一個連接於物聯網終端裝置上的內建
或外接元件外,更具備省電的效果,並可因為特殊應用積體電路的架構而可針對特定運算目的而設計。
According to the implementation of the
圖2顯示為計算晶片20的主要電路單元,如設有處理智能合約來往指令的處理單元201,本身為具有可分配運算能力的處理器;包括儲存運行此系統的軟體程式的記憶單元202,並可以包括可以貢獻為儲存節點的儲存單元203;通訊單元205為計算晶片20對外通訊的電路,使得計算晶片20可以獨立連接網路,但仍可通過所連接的終端節點連網,而對外通訊主要是能夠主動發布計算晶片20中可參與分配的算力、記憶體中的儲存空間等,以通過智能合約記錄於區塊鏈上。計算晶片20更包括處理各種由智能合約安排任務的任務排程單元204,任務排程單元204主要是根據智能合約的指示執行運算任務,處理來往的資料流,包括回應智能合約使用電腦資源的數據證明;計算晶片20另包括執行特定目的的加密解密任務的加密計算單元206,計算晶片提供所運行環境的加密貨幣執行對應的一加密演算法,而其中可支援一或多種加密演算法,而因此可以針對各節點支援的加密貨幣而執行對應的加密演算法,並能根據各種運算需求執行對應的演算法。例如在挖礦時,需要加密計算單元206執行特定幣別所需的演算工作,以及與特定電子裝置連結的介面控制單元208,因此,當計算晶片20應用在特定加密需求時,可以控制改變當中的加密演算法。
Figure 2 shows the main circuit units of the
在一實施例中,所述供應端節點或需求端節點可以通過計算晶片20連線區塊鏈,在供應端節點上,計算晶片20可通過介面控制單元208連接節點裝置,相關連接介面如通用序列匯流排(USB)。
In an embodiment, the supply-end node or the demand-end node can be connected to the blockchain through the
圖3接著顯示終端節點連接網路參與電腦資源分配的實施例示意圖。 Figure 3 then shows a schematic diagram of an embodiment in which a terminal node is connected to a network to participate in computer resource allocation.
參與此基於計算元件的電腦資源分配系統的各終端節點例如圖中顯示提供可分配電腦資源的終端節點37,終端節點37可為一
般電腦裝置、物聯網裝置或一般電子裝置,其中內嵌圖2所述計算晶片371,以參與電腦資源分配系統。終端節點37中的計算晶片371運行一存取區塊鏈記錄與處理智能合約的軟體程序,在一實施例中,計算晶片371可為內建或外接的裝置,使得終端節點37通過計算晶片中運行的軟體程序參與電腦資源分配。另外,終端節點37仍可包括可提供算力的處理單元373、可提供儲存空間的儲存單元375,以及通訊單元377。
Each terminal node participating in this computing component-based computer resource allocation system, for example, the
此例中,終端節點37藉由計算晶片371可通過中繼節點35連接智能合約39,通過中繼節點35,終端裝置37可以主動將可分配的電腦資源提供給智能合約33,由智能合約寫入區塊鏈,或由智能合約33取得分配給需求端31的對應電腦資源的指令。更者,終端節點37可通過中繼節點35連接處理電腦資源分配程序的中央系統33,如圖4所示的實施例。
In this example, the
需求端31則是可以將需求傳送到中央系統33,經由中央系統33處理運算或儲存需求,將需求通過智能合約39記錄在區塊鏈中,由中央系統33分配電腦資源,指派運算(或儲存)任務,再將分配結果通過智能合約39記錄在區塊鏈中,由參與電腦資源分配的各終端節點37取得運算(或儲存)任務後,開始執行,終端節點37通過其中(或計算晶片)運行的軟體程序主動告知智能合約39算力或儲存空間的使用狀況,並由智能合約39進行計時,能根據報償與費用派發報償給提供電腦資源的各終端節點37,報償如加密貨幣。
The
在圖4所示的電腦資源分配系統的架構實施例示意圖中,所提出的實施架構下,具有多個節點,多個節點參與區塊鏈,其中可以包括一或多個需求端節點以及一或多個供應端節點,各節點將執行一軟體程式,使之進行區塊鏈認證與存取記錄。 In the schematic diagram of the structural embodiment of the computer resource allocation system shown in FIG. 4, the proposed implementation structure has multiple nodes, and multiple nodes participate in the blockchain, which may include one or more demand-end nodes and one or Multiple supply-side nodes, each node will execute a software program to perform blockchain authentication and access records.
此例中,參與電腦資源分配的多個節點中,有部分節點(可稱超級節點),如圖中的中央系統節點41,42,43,44,可以形成一
中央系統,這些超級節點相互同步所記載的資訊,而其週邊可以包括各式的電腦節點401,402,403,404,405,406,407,408,例如可包括專門提供儲存空間的儲存器與專門提供算力的運算系統,特別是通過計算晶片成為參與電腦資源分配的的節點。中央系統節點41,42,43,44可通過週邊的電腦節點401,402,403,404,405,406,407,408同步資訊而得知各終端節點的連線狀況,並包括可分配電腦資源以及使用電腦資源的狀態。
In this example, among the multiple nodes participating in the distribution of computer resources, some nodes (may be called super nodes), such as the
參與電腦資源分配的節點還可如圖中顯示最外圍的終端節點411,412,413,414,415,416,417,418,419,420,這些終端節點可以為一般電子裝置,,可用以連接計算晶片,藉此提供電腦資源,並通過電腦節點401,402,403,404,405,406,407,408連線中央系統節點41,42,43,44,參與電腦資源分配。
The nodes participating in computer resource allocation can also display the outermost terminal nodes 411,412,413,414,415,416,417,418,419,420 as shown in the figure. These terminal nodes can be general electronic devices, which can be used to connect to computing chips to provide computer resources and connect to the central system through computer nodes 401,402,403,404,405,406,407,408
在此實施例中,可由中央系統根據區塊鏈中記錄的電腦資源需求與可分配電腦資源進行分配,分配的條件還可進一步包括供應端節點提供的費用,與需求端節點提供的報償,進行各種電腦資源與相關資訊的統合後,執行分配,需求端節點最後得到的分配結果可能包括多個供應端節點提供的不同算力或儲存空間的組合。而需求端節點仍可同時為供應端節點,供應端節點也可能隨時成為需求端節點。 In this embodiment, the central system can allocate according to the computer resource demand and allocatable computer resources recorded in the blockchain. The allocation conditions can further include the cost provided by the supply-side node and the compensation provided by the demand-side node. After the integration of various computer resources and related information, the allocation is performed. The final allocation result obtained by the demand-end node may include a combination of different computing power or storage space provided by multiple supply-end nodes. The demand-side node can still be the supply-side node at the same time, and the supply-side node may also become the demand-side node at any time.
所述各節點會連線到智能合約45,藉此存取區塊鏈上的記錄,中央系統用於電腦資源分配,智能合約45用於計算需求端節點使用電腦資源的時間,並於固定時間派發報償(特定幣別的加密貨幣)給供應端節點。
The nodes are connected to the
根據圖5所示電腦資源分配方法的實施例流程,開始如步驟S501,中央系統接收各終端節點內建或外接的計算晶片的算力資訊,或包括儲存空間的狀態,計算晶片可以直接提供中央系統各自的可分配電腦資源,或是通過連接區塊鏈而記錄在區塊鏈上。這時,如步驟S503,中央系統節點即同步得知各計算晶片的連線 狀況與可分配電腦資源的狀態等資訊。在一實施例中,若各計算晶片的可分配電腦資源為記錄在區塊鏈上,使得中央系統可自區塊鏈同步而獲得這些資訊,並可通過智能合約在區塊鏈形成可提供算力或儲存空間的節點記錄。 According to the flow of the embodiment of the computer resource allocation method shown in FIG. 5, starting with step S501, the central system receives the computing power information of the built-in or external computing chips of each terminal node, or includes the status of the storage space, and the computing chips can directly provide the central The respective computer resources of the system can be allocated or recorded on the blockchain by connecting to the blockchain. At this time, in step S503, the central system node synchronizes the connection of each computing chip Information such as the status and the status of allocable computer resources. In one embodiment, if the allocatable computer resources of each computing chip are recorded on the blockchain, the central system can synchronize the information from the blockchain to obtain this information, and can provide computing resources on the blockchain through smart contracts. Nodal records of force or storage space.
之後,如步驟S505,中央系統接收某個需求端提出的運算(或儲存)需求,在步驟S507,中央系統中運行的軟體程序根據各終端節點提供算力或儲存空間的狀態指派任務,如運算任務,再如步驟S509,各執行運算的節點連線智能合約,當計算晶片連接智能合約時,則可由智能合約計時,並提供運算報償。 Then, in step S505, the central system receives a computing (or storage) request from a certain demand end. In step S507, the software program running in the central system assigns tasks based on the state of the computing power or storage space provided by each terminal node, such as computing For the task, in step S509, each node that performs calculations is connected to a smart contract. When the computing chip is connected to the smart contract, the smart contract can be timed and provide calculation compensation.
其中執行分散演算的細節實施例可參考圖6所示電腦資源分配方法的實施例流程圖,在此流程之前各計算晶片已經通過智能合約提交可分配電腦資源,同時,還可設定使用這些電腦資源的費用,費用可以為特定幣別的加密貨幣,還包括對應的電子錢包位址,通過智能合約記錄在區塊鏈上。其中,參與這個區塊鏈的計算晶片具有區塊鏈上的識別資料(blockchain ID)以及存取資料的密鑰,讓計算晶片經過認證與授權後,可以將所述供應的電腦資源寫入區塊鏈。 For the detailed embodiment of the implementation of decentralized calculations, please refer to the flowchart of the embodiment of the computer resource allocation method shown in Figure 6. Before this process, each computing chip has been submitted through smart contracts to allocate computer resources, and at the same time, these computer resources can be set to use The fee can be a cryptocurrency of a specific currency, and also includes the corresponding e-wallet address, which is recorded on the blockchain through a smart contract. Among them, the computing chip participating in this blockchain has the identification data (blockchain ID) on the blockchain and the key to access the data. After the computing chip is authenticated and authorized, the supplied computer resources can be written into the area. Block chain.
流程一開始,計算晶片啟動(步驟S601),計算晶片通過本身的通訊能力,或是通過所聯接的電子裝置的通訊功能連線網路,包括設定網路(步驟S603),在電腦資源分配的目的下,中央系統根據電腦資源需求的任務分配電腦資源,其中需要通過必要的認證程序(步驟S605),這些計算晶片形成一個提供算力的算力池,如礦池。 At the beginning of the process, the computing chip is activated (step S601), and the computing chip connects to the network through its own communication capability or the communication function of the connected electronic device, including setting the network (step S603), in the computer resource allocation For the purpose, the central system allocates computer resources according to the tasks required by the computer resources, which need to pass the necessary authentication procedures (step S605), and these computing chips form a computing power pool, such as a mining pool.
另一方面,由中央系統接收特定需求端產生的運算需求(步驟S615),中央系統自區塊鏈取得各計算晶片的算力等資訊,能根據所同步的可分配電腦資源執行分配任務(步驟S617),各計算晶片接收經過分配的運算任務(步驟S607)。 On the other hand, the central system receives the computing demand generated by the specific demand end (step S615). The central system obtains information such as the computing power of each computing chip from the blockchain, and can execute the allocation task according to the synchronized assignable computer resources (step S615). S617), each computing chip receives the assigned computing task (step S607).
中央系統呼叫智能合約,使得智能合約開始運作,由各計算 晶片根據分配的任務執行運算之後(步驟S609),並於運算完成後回報結果至智能合約(步驟S611),另一方面,中央系統連接智能合約(步驟S619),通過智能合約計算運算時間與記錄使用資源(步驟S621),經過區塊鏈節點驗證後得到使用證明,得出各計算晶片可得報償,由智能合約派送報償(步驟S623),計算晶片即從智能合約接收報償(步驟S613),報償一般可以特定加密貨幣實現。 The central system calls the smart contract to start the operation of the smart contract. After the chip performs calculations according to the assigned tasks (step S609), and returns the result to the smart contract after the calculation is completed (step S611), on the other hand, the central system connects to the smart contract (step S619), and calculates the calculation time and records through the smart contract Use the resource (step S621), obtain the proof of use after verification by the blockchain node, and obtain the compensation available for each computing chip, which is sent by the smart contract (step S623), and the computing chip receives the compensation from the smart contract (step S613), Compensation can generally be realized in a specific cryptocurrency.
圖7顯示以中央系統運行電腦資源分配的相關流程實施例,所示流程運作於需求端71、中央系統72、計算晶片一73、計算晶片二74與智能合約75之間,流程同樣可適用在儲存空間分配的應用上。
Fig. 7 shows an embodiment of the related process of running computer resource allocation with a central system. The process shown is running between the
圖中示意以計算晶片一73與計算晶片二74表示參與電腦資源分配的多個運算節點,可為連接到各式電子裝置的外接裝置或是內嵌系統。例如,計算晶片一73中運行的軟體程序主動通知晶片中可分配算力至中央系統72(步驟701),同樣地,計算晶片二74中運行的軟體程序主動通知其中算力至中央系統72(步驟702)。中央系統72可以通過智能合約72將各參與分配電腦資源的節點、費用等資訊記錄在區塊鏈上。
In the figure, computing chip one 73 and computing chip two 74 represent multiple computing nodes involved in computer resource allocation, which can be external devices connected to various electronic devices or embedded systems. For example, the software program running in computing chip one 73 actively informs the chip that the computing power can be allocated to the central system 72 (step 701). Similarly, the software program running in computing chip two 74 actively notifies the computing power to the central system 72 ( Step 702). The
之後,需求端71向中央系統72提供電腦資源的使用需求,並支付算力費用(步驟703),由中央系統72分配算力後,開始向各計算晶片發出運算任務(經過加密、雜湊運算的題目),接收中央系統72的任務的各計算晶片執行演算。以挖礦為例,中央系統72將可分配算力連線到礦池中,並填入需求端71的需求以及相關錢包資訊。根據實施例,也就是在特定任務需求下,需求端節點提出電腦資源需求,可以設定使用他人電腦資源的報償,以及適用的特定加密貨幣幣別,當中也可提供對應電子錢包位址。這些需求將通過智能和寫入區塊鏈。此例顯示中央系統72指派運算任務至提供算力的計算晶片一73(步驟704),以及指派運算任務至計算晶片二74(步驟705)。
After that, the
在各計算晶片運算中或是完成運算,計算晶片一73通過特定通訊協定向智能合約75提供運算狀態,並記錄於區塊鏈(步驟706),讓智能合約75開始對各樣電腦資源的使用開始計時、計數,並提供報償,如將加密貨幣(如專屬挖礦的代幣)寫入計算晶片提供的錢包位址(步驟707),計算晶片一73也可將相關資訊通知中央系統72(步驟708);同理,計算晶片二74也向智能合約75提供運算狀態(步驟709),智能合約75同樣對各樣電腦資源的使用開始計時、計數,以提供報償(步驟710),計算晶片二74同樣地通知中央系統72(步驟711)。
In each computing chip calculation or completion of the calculation, the
最後,中央系統72在各計算晶片運算中或是完成運算時,接收各計算晶片的運算數據,並在集結這些運算結果後,通知需求端71(步驟712)。
Finally, the
是以,根據以上描述基於計算元件的電腦資源分配方法與系統的實施方式,提出可以通過網路分配電腦資源的一種共享機制,各節點應用計算晶片提交可分配電腦資源,並通過區塊鏈技術記錄當中的供應與需求,包括分配與使用的記錄,使得電腦資源分配成為可實施且具有高可用度的應用。如此,通過智能合約與區塊鏈的技術,讓具有電腦資源需求的一方可以在提出報償的前提下,讓具有可分配電腦資源的一方,甚至是專門提供電腦資源的任一方能夠在提供電腦資源時,又獲得合理的報償,實現整體資源共享與商業運轉的生態。 Therefore, according to the implementation of the computer resource allocation method and system based on computing components described above, a sharing mechanism that can allocate computer resources through the network is proposed. Each node applies computing chips to submit allocable computer resources and uses blockchain technology. The supply and demand in the record, including the record of allocation and use, makes the allocation of computer resources an implementable and highly available application. In this way, through smart contracts and blockchain technology, the party with computer resource needs can provide computer resources to the party with allocable computer resources, or even any party that specifically provides computer resources, on the premise of submitting compensation. At the same time, reasonable compensation was obtained to realize the ecology of overall resource sharing and commercial operation.
惟以上所述僅為本發明之較佳可行實施例,非因此即侷限本發明之專利範圍,故舉凡運用本發明說明書及圖示內容所為之等效結構變化,均同理包含於本發明之範圍內,合予陳明。 However, the above descriptions are only the preferred and feasible embodiments of the present invention, and are not limited to the scope of the patent of the present invention. Therefore, all equivalent structural changes made by using the description and illustrations of the present invention are included in the present invention in the same way. Within the scope, together to Chen Ming.
10‧‧‧網路 10‧‧‧Internet
101‧‧‧需求端節點 101‧‧‧Demand end node
102‧‧‧區塊鏈 102‧‧‧Blockchain
11‧‧‧儲存器 11‧‧‧Storage
12‧‧‧運算系統 12‧‧‧Computer system
13,14‧‧‧終端節點 13,14‧‧‧Terminal node
131,141‧‧‧計算晶片 131,141‧‧‧Compute chip
Claims (20)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW107145249A TWI695321B (en) | 2018-12-14 | 2018-12-14 | Computational-component-based method and system for allocating computer resource |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW107145249A TWI695321B (en) | 2018-12-14 | 2018-12-14 | Computational-component-based method and system for allocating computer resource |
Publications (2)
Publication Number | Publication Date |
---|---|
TWI695321B TWI695321B (en) | 2020-06-01 |
TW202022605A true TW202022605A (en) | 2020-06-16 |
Family
ID=72175852
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW107145249A TWI695321B (en) | 2018-12-14 | 2018-12-14 | Computational-component-based method and system for allocating computer resource |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI695321B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI827953B (en) * | 2020-12-09 | 2024-01-01 | 美商戴爾產品有限公司 | System and method for performing workloads using composed systems |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI742774B (en) * | 2020-07-22 | 2021-10-11 | 財團法人國家實驗研究院 | System for computing and method for arranging nodes thereof |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI592805B (en) * | 2010-10-01 | 2017-07-21 | 傅冠彰 | System and method for sharing network storage and computing resource |
US11270298B2 (en) * | 2014-04-14 | 2022-03-08 | 21, Inc. | Digital currency mining circuitry |
-
2018
- 2018-12-14 TW TW107145249A patent/TWI695321B/en active
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI827953B (en) * | 2020-12-09 | 2024-01-01 | 美商戴爾產品有限公司 | System and method for performing workloads using composed systems |
Also Published As
Publication number | Publication date |
---|---|
TWI695321B (en) | 2020-06-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108810137B (en) | Alliance block chain system | |
JP7450339B2 (en) | Systems, methods, and computer programs for resource fairness for blockchain | |
CN111213340B (en) | Selecting attestation delegation for cryptographic functions and making it secure | |
KR102289612B1 (en) | Parallel execution of transactions in a distributed ledger system | |
TW202023224A (en) | Event-driven blockchain workflow processing | |
CN111324446A (en) | Multi-access edge computing node and method for deploying distributed accounting application | |
Sabry et al. | The road to the blockchain technology: Concept and types | |
US11789767B2 (en) | Cooperative cloud infrastructure using blockchains for hardware ownership and access | |
CN101158935B (en) | South bridge system and method | |
CN112988369A (en) | Computer resource allocation method and system based on computing element | |
US20190259007A1 (en) | Systems and methods for facilitating a time varying cryptocurrency transfer over a decentralized network through smart contracts associated with cryptocurrency blockchain technology | |
TW201822033A (en) | Resource processing method and apparatus | |
US20210135865A1 (en) | Computer-implemented system and method | |
TW202008195A (en) | Benefit distribution method and device, electronic device | |
JP5862359B2 (en) | Thin client system, connection management server, connection management method, and connection management program | |
US20190164136A1 (en) | Beacon network with enterprise smart contracts having a centralized ledger | |
US20210073177A1 (en) | Blockchain-as-a-service integrated hybrid object storage system in multi-cloud computing environment | |
TWI695321B (en) | Computational-component-based method and system for allocating computer resource | |
US20190095910A1 (en) | Secure cryptocurrency exchange | |
WO2020015448A1 (en) | Method, device, and equipment for processing account of blockchain network, and storage medium | |
CN110546629A (en) | System and method for operating a blockchain network | |
CN112163950A (en) | Block chain network construction method and system convenient for expansion and node resource reuse and terminal equipment | |
CN112997469A (en) | Intelligent, decentralized and autonomous marketplace for distributed computing and storage | |
KR102439351B1 (en) | Non-mining blockchain network system for ESG and method of operating of server node participating in the system | |
CN115695058A (en) | System, apparatus and method for power communication according to CXL |