Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
CHARGING FOR THE USE OF RESOURCES IN A DISTRIBUTED NETWORK
Document Type and Number:
WIPO Patent Application WO/2021/073758
Kind Code:
A1
Abstract:
An aspect of the invention relates to a computer-implemented method for charging and paying for a use of resources of a distributed network. The distributed network comprises a plurality of nodes, wherein each of the plurality of nodes is configured to run one or more computational units. The one or more computational units comprise one or more application units for providing application services to users of the distributed network. The embodied method comprises steps of running, by each user of the network, one or more local user gas accounts at one or more of the application units and processing, via the local user gas accounts, payments for the use of the resources of the distributed network. Further aspects relate to a distributed network, a node of a distributed network and a corresponding computer program product.

Inventors:
WILLIAMS DOMINIC (CH)
CAMENISCH JAN (CH)
MCCAULEY MACK (CH)
Application Number:
PCT/EP2019/078414
Publication Date:
April 22, 2021
Filing Date:
October 18, 2019
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
DFINITY STIFTUNG (CH)
International Classes:
H04M15/00; G06Q30/00; H04L12/14; H04L29/08
Foreign References:
US20180006872A12018-01-04
US20040117224A12004-06-17
US20190108542A12019-04-11
US20110004690A12011-01-06
US20190251199A12019-08-15
US20140211665A12014-07-31
Attorney, Agent or Firm:
E. BLUM & CO. AG (CH)
Download PDF:
Claims:
Claims

1. A computer-implemented method for charging for a use of resources of a distributed network, the dis- tributed network comprising a plurality of nodes, wherein each of the plurality of nodes is configured to run one or more computational units, the one or more computa- tional units comprising one or more application units for providing application services to users of the distrib- uted network; the method comprising running, by a user of the network, one or more local user gas accounts at one or more of the application units; and processing, via the one or more local user gas accounts, charges for the use of the resources of the dis- tributed network.

2. A computer-implemented method according to claim 1, further comprising sending, by a user of the network, an ingress message for requesting a primary application service to a primary application unit of the one or more application units ; performing, by the primary application unit, the primary application service; and processing, via the local user gas account of the user at the primary application unit, charges for the use of the resources by the primary application service.

3. A computer-implemented method according to claim 2, wherein performing the primary application service comprises issuing, by the primary application unit, one or more calls to one or more secondary application units; and the method further comprises performing, by the one or more secondary application units, one or more sec- ondary application services.

4. A computer-implemented method according to claim 3, wherein performing the one or more secondary applica- tion services comprises issuing, by the one or more sec- ondary application units, one or more calls to further secondary application units; and the method further comprises performing, by the one or more further secondary application units, one or more further secondary application services.

5. A computer-implemented method according to claim 4, wherein the one or more calls are performed suc- cessively, thereby forming a call tree of arbitrary depth.

6. A computer-implemented method according to any of the preceding claims 3 to 5, further comprising processing, via the local user gas account of the primary application unit, payments for the use of the resources by the one or more secondary application ser- vices.

7. A computer-implemented method according to any of the preceding claims 3 to 6, further comprising running, by a user of the network, one or more local user gas accounts at the one or more secondary ap- plication units; and processing, via one or more local user gas ac- counts of the secondary application units, payments for the use of the resources by the one or more secondary application services.

8. A computer-implemented method according to any of the preceding claims, further comprising running, by one or more users of the network, in particular by each user of the network, a wallet compu- tational unit, the wallet computational unit being config- ured to manage a user currency account for the user; and sending a payment message from the wallet com- putational unit to a respective application unit to trans- fer a currency amount from the user currency account to the local user gas account at the respective application unit .

9. A method according to any of the preceding claims, further comprising running, by each application unit, an applica- tion unit gas account.

10. A method according to claim 9, further com- prising sending a payment message between a first ap- plication unit of the one or more application units and a second application unit of the one or more application units to transfer a gas amount from the application unit gas account of the first application unit or a user gas account to the application unit gas account of the second application unit.

11. A method according to any of the preceding claims 2-10, further comprising charging separately for an acceptance of in- gress messages, for read queries, for the execution of accepted ingress messages and/or for the execution of ac- cepted unit-to-unit messages.

12. A method according to claim 11, wherein each of the local user gas accounts comprises an ingress sub-account configured to be charged for an acceptance of the ingress messages; a read query sub-account configured to be charged for read queries; and an execution sub-account configured to be charged for the execution of accepted ingress messages and/or the execution of accepted unit-to-unit messages.

13. A method according to claim 11 or claim 12, further comprising applying different accounting periods and/or charging times for the ingress messages and the read que- ries, in particular charging for the ingress messages upon accept- ing or rejecting them for execution; charging for the read queries subsequently in a bundled way; and/or charging for the execution of the ingress mes- sages in advance, in particular after the issuing of the one or more calls to the secondary application units.

14. A method according to any of the preceding claims, further comprising charging, by the distributed network, for the use of storage resources of the distributed network; and debiting, from a respective application unit gas account, a fee for its use of the storage resources of the distributed network.

15. A method according to any of the preceding claims, further comprising charging, by one or more of the application units, a fixed price for the use of the resources by the corresponding application service.

16. A method according to any of the preceding claims, further comprising processing, by one or more of the application units, an advance payment for the use of the resources by the corresponding application service; and reimbursing, by the one or more application units, unused parts of the advance payment.

17. A method according to claim 16, further comprising topping up, from an application unit gas ac- count of a respective primary and/or secondary application unit, the advance payment to ensure execution of the cor- responding primary and/or secondary application service.

18. A method according to any of the preceding claims, wherein each of the computational units comprises its own unit state; the distributed network comprises a plurality of subnets; each of the plurality of subnets comprises one or more of the plurality of nodes; the method further com- prising assigning each of the application units to one of the plurality of subnets; and replicating the application units across the respective subnet.

19. A method according to claim 18, further comprising providing, a separate read query sub-account for each node of a respective subnet.

20. A distributed network comprising a plural- ity of nodes, wherein each of the plurality of nodes is configured to run one or more computational units, the one or more computational units comprising one or more appli- cation units for providing application services to users of the distributed network; wherein the distributed network is configured to provide resources for the computational units; run, by each user of the network, one or more local user gas accounts at one or more of the application units; and process, via the local user gas accounts, charges for the use of the resources of the distributed network .

21. A distributed network according to claim

20, wherein each of the computational units comprises its own unit state; the distributed network comprises a plurality of subnets; each of the plurality of subnets comprises one or more of the plurality of nodes; wherein the network is configured to assign each of the application units to one of the plurality of subnets; and replicate the application units across the re- spective subnet.

22. A node for a distributed network according to claim 20 or 21, wherein the node is configured to run one or more computational units, the one or more computational units comprising one or more appli- cation units for providing application services to users of the distributed network; run one or more local user gas accounts at one or more of the application units; and process, via the one or more local user gas accounts, charges for the use of the resources of the dis- tributed network.

23. A computer program product for operating a distributed network, the distributed network comprising a plurality of nodes, the computer program product comprising a computer readable storage medium having program instruc- tions embodied therewith, the program instructions execut- able by one or more of the plurality of nodes to cause the one or more of the plurality of nodes to perform a method comprising running, by the plurality of nodes, one or more computational units, the one or more computational units comprising one or more application units for providing ap- plication services to users of the distributed network; running, by a user of the network, one or more local user gas accounts at one or more of the application units; and processing, via the one or more local user gas accounts, charges for the use of the resources of the dis- tributed network.

24. A computer program product for operating a node of a distributed network, the computer program product comprising a computer readable storage medium having pro- gram instructions embodied therewith, the program instruc- tions executable by the node to cause the node to perform a method comprising running, by the node, one or more computational units, the one or more computational units comprising one or more application units for providing application ser- vices to users of the distributed network; running, by the node, one or more local user gas accounts at one or more of the application units; and processing, via the one or more local user gas accounts, charges for the use of the resources of the dis- tributed network.

Description:
Charging for the use of resources in a dis- tributed network

Technical Field

The present invention pertains to a computer- implemented method for charging for a use of resources of a distributed network.

Further aspects relate to a distributed net- work, a node of a distributed network, a corresponding computer program product and a software architecture en- coded on a non-transitory medium.

Background Art

In distributed networks a plurality of nodes are arranged in a distributed fashion. In distributed networks computing, software and data are spread out across the plurality of nodes. The nodes establish compu- ting resources and the distributed networks may use dis- tributed computing techniques.

An example of distributed networks are block- chain networks. Blockchain networks are consensus-based, electronic ledgers based on blocks. Each block comprises transactions and other information. Furthermore, each block contains a hash of the previous block so that blocks become chained together to create a permanent, un- alterable record of all transactions which have been written to the blockchain. Transactions may call small programs known e.g. as smart contracts.

In order for a transaction to be written to the blockchain, it must be "validated" and agreed upon by the network. In other words, the network nodes have to reach consensus on blocks to be written to the block- chain. Such consensus may be achieved by various consen- sus protocols.

In one type of blockchain networks, consensus is achieved by using a proof-of-work algorithm. A proof- of~work consensus protocol generally requires some work from the parties that participate in the consensus proto- col, usually corresponding to processing time by a com- puter. Proof-of-work-based cryptocurrency systems such as Bitcoin involve the solving of computationally intensive puzzles to validate transactions and to create new blocks .

Another type of consensus protocols is based on a proof-of-stake algorithm. Such proof-of-stake proto- cols have the advantage that they do not require time- consuming and energy-intensive computing. In proof-of- stake based blockchain networks e.g. the creator of the next block is chosen via combinations of random selection as well as the stake of the respective node in the net- work .

Consensus protocols used in blockchain net- works can be designed to reach fast finality on transac- tions contained in blocks by applying a "Byzantine fault tolerant" (BFT) agreement protocol. "Synchronous" BFT protocols rely on network synchrony assumptions for safety, while "asynchronous" BFT protocols do not. Asyn- chronous BFT protocols can typically tolerate less than 1/3 (one third) corrupt participating nodes.

Apart from cryptocurrencies, distributed net- works may be used for various other applications. In par- ticular, they may be used for providing decentralized and distributed computing capabilities and services. To this end, distributed networks may use a state machine repli- cation protocol to reliably run applications and store states across multiple nodes even in the presence of crashing nodes and adversarial attacks.

One challenge of such distributed networks which provide distributed computing services is to pro- vide efficient, flexible and secure charging mechanisms to charge users as well as applications for the use of the network resources provided by the distributed net- work.

Disclosure of the Invention

Accordingly, one object of an aspect of the invention is to provide a method for charging for a use of network resources of a distributed network, in partic- ular a method that provides an advantageous resource pay- ment or resource charging for computational resources of the distributed network, in particular in terms of effi- ciency, flexibility and/or security.

According to an embodiment of a first aspect of the invention, there is provided a computer-implemented method for charging or paying for a use of resources of a distributed network. The distributed network comprises a plurality of nodes, wherein each of the plurality of nodes is configured to run one or more computational units. The one or more computational units comprise one or more ap- plication units for providing application services to users of the distributed network. The embodied method comprises steps of running, by a user of the network, in particular by each user of the network, one or more local user gas accounts at one or more of the application units and pro- cessing, via or by the one or more local user gas accounts, charges for the use of the resources of the distributed network. According to such an embodied method local user gas accounts are provided at one or more of the application units. Such local user gas accounts may facilitate an ef- ficient and flexible charging and payment for the use of resources by the user. In particular, the provision of local user gas accounts may effectively reduce the number of messages which are needed to process the payments and hence may effectively reduce the communication traffic and the associated bandwidth of the distributed network.

A local user gas account is an account that is run at the respective application unit, but which is owned by the corresponding user. The local user gas account is used to locally pay for the use of the resources of the distributed network. A local user gas account may also be denoted as local user accounting unit or just as local user account .

A resource may generally be any physical or virtual resource of the distributed network and may also be denoted as network resource. These resources may include computational resources such as the processing power of processors of the distributed network, memory and storage resources as well as network connections and their associ- ated bandwidth, e.g. for the communication between differ- ent application units.

The resources may be provided in particular by the nodes of the network. The nodes of the network may be embodied as computing systems or computing units, e.g. as servers.

The charges or in other words the payments for the use of the resources may be in particular processed in gas or gas units. Gas may be defined as a complementary accounting unit that is used by the distributed network to charge for the use of its resources and is separate from the native currency of the network. Gas may also be denoted as fuel. Providing a complementary accounting unit provides the advantage that the costs for the use of the resources can be kept stable and independent from market fluctuations of the currency. As an analogy to a car, like fuel or gas is needed to run a car, the gas according to embodiments of the invention is needed to run the resources of the distributed network.

The terms "charges" and "payments" shall be understood in a broad sense. They may include payments which are deducted from the local user gas account and transferred to another account, but they may also include application schemes according to which the used gas is not transferred to another account, but just "burned" after its use. In other words, the gas may be "burned" or consumed to "pay" for the use of the resources, but it will be eliminated from the network after its use. In this respect the terms "charges" and "payments" may be used in an in- terchangeable way.

A computational unit may be defined as a piece of software that is running on a node of the network and which has its own unit state. According to embodiments, a computational unit may be defined as a deterministic pro- gram with orthogonal persistence.

An application unit is a computational unit that is configured to provide application services to users of the network. Such application services may encompass e.g. the hosting of a website, the booking of a trip, the provision of a messaging service etc.

According to embodiments, each node of the net- work runs one or more computational units and hence main- tains the unit state of one or more computational units.

According to an embodiment, the method com- prises further steps of sending, by a user of the network, an ingress message for requesting a primary application service to a primary application unit of the one or more application units and performing, by the primary applica- tion unit, the primary application service. A further step includes processing, via or by the local user gas account of the user at the primary application unit, charges or payments for the use of the resources by the primary ap- plication service.

According to such an embodiment, the primary application unit establishes the entry point for the in- gress message of the user. An ingress message shall be understood as a message that is sent by a user of the distributed network to one of the application units of the network, more particularly to a respective primary appli- cation unit. According to such an embodiment, the user needs to have a local user gas account at least at the respective primary application unit. This allows to locally process charges or payments for the use of the resources via or by the local user gas account at the primary appli- cation unit.

According to an embodiment, the step of per- forming the primary application service comprises issuing, by the primary application unit, one or more calls to one or more secondary application units.

Such a secondary application unit shall be un- derstood as an application unit that does not directly receive an ingress message from the user, but a call from the respective primary application unit that has received an ingress message. In other words, in order to perform the primary application service, the primary application unit involves the secondary application unit and requests support of the secondary application unit by means of a call to the secondary application unit.

It should be noted that the role of an appli- cation unit may change over time and may depend in partic- ular on the respective ingress message and the correspond- ing application service. More particularly, the same ap- plication unit may serve in one instance as primary appli- cation unit if it receives an ingress message that requests a primary application service. And in another instance, the same application unit may serve as a secondary appli- cation unit if it receives a call from another application unit serving as primary application unit.

According to such an embodiment, the method may further comprise the steps of performing, by the one or more secondary application units, one or more secondary application services.

According to an embodiment, the method may further comprise processing, via or by the local user gas account of the primary application unit, payments for the use of the resources by the secondary application services.

Hence the secondary application units support the primary application unit by performing the secondary application services, while the primary application unit arranges the payment for the use of the resources which the secondary application units need for the execution of the secondary application services.

This provides an efficient payment scheme. More particu- larly, it avoids that the user needs a separate gas account at the secondary application units and it avoids any mes- sage traffic between e.g. a user currency account and the secondary application units.

According to an embodiment, performing the one or more secondary application services comprises issuing, by the one or more secondary application units, one or more calls to further secondary application units. Furthermore, the method may comprise performing, by the one or more further secondary application units, one or more further secondary application services.

According to an embodiment, the one or more calls may be performed successively, thereby forming a call tree of arbitrary depth. According to another embodiment, the method may comprise steps of running, by a user of the network, a local user gas account at the secondary application unit and processing, via or by the local user gas account of the secondary application unit, payments for the use of the resources by the secondary application service.

According to such an embodiment, the user needs to have a local user gas account at the primary as well as at the secondary application unit. With such a method the secondary application unit may charge for the use of the resources needed for the execution of the secondary appli- cation services directly from the local user gas account held by the respective user at the secondary application unit. Such a scheme provides additional flexibility in the charging, in particular for applications where it is dif- ficult to assess the computational effort for a secondary application service in advance.

According to an embodiment, the method com- prises further steps of running, by each user of the net- work, a wallet computational unit. The wallet computational unit is configured to manage a user currency account for the user. Furthermore, the embodied method may comprise a step of sending a payment message from the wallet computa- tional unit to a respective application unit to transfer a currency amount from the user currency account to the local user gas account at the respective application unit.

Such a method facilitates a flexible and effi- cient resource charging. The user currency account provided by the wallet computational unit may be e.g. charged by the user from a conventional bank account. In this respect it may provide an (external) interface to various external banking applications or external banking accounts. On the other hand, the user currency account may be used to trans- fer a currency amount internally from the user currency account to one or more local user gas accounts held by the respective user. This internal currency transfer may be executed by sending a payment message from the wallet com- putational unit to the application unit which hosts the respective local user gas account.

The wallet computational unit may be run in gas units or in another currency, e.g. in a crypto-currency or a stablecoin pegged to a classical national currency such as US-dollars or Euros. An exchange rate between the crypto-currency or the classical national currency and gas units may be managed by the distributed network, e.g. by a governance system of the distributed network. As an exam- ple, the distributed network may provide a global table with one or more exchange rates. According to embodiments, the distributed network may modulate the exchange rate to give gas an approximately stable cost.

According to a further embodiment, the method comprises a step of running, by each application unit, an application unit gas account.

Such an application unit gas account further facilitates an efficient and flexible charging for the use of resources of the network. The application unit gas ac- count may be used in particular in lieu of or in addition to a local user gas account to pay for application ser- vices. Moreover, it can be charged for resources used by the application unit itself, e.g. for its storage use. In addition, the application unit gas accounts may be used to transfer gas between different application units, in par- ticular between the primary and the secondary application units which are involved in a call.

According to an embodiment, the method further comprises charging separately for the acceptance of ingress messages, for read queries, for the execution of accepted ingress messages and/or the execution of accepted unit-to- unit message that are sent between computational units of the network.

Such a separation of the charging allows to implement different technical charging schemes for the dif- ferent uses of the resources. Furthermore, it can be used to increase the security of the system and to prevent or at least to hinder attacks of adversaries. Furthermore, it facilitates flexible and prompt charging schemes.

According to an embodiment, each of the local user gas accounts may comprise an ingress sub-account con- figured to be charged for an acceptance of the ingress messages, a read query sub-account configured to be charged for the read queries and an execution sub-account config- ured to be charged for the execution of messages, in par- ticular the execution of accepted ingress messages and/or accepted unit-to-unit messages.

This may be used to further improve the secu- rity of the system and limit the potential damage caused by faulty or malicious application units. In particular, the distributed network may be configured to specify a minimum balance which each of the separate sub-accounts need to have before the distributed network starts to use resources for the respective request. As an example, a new ingress message will only be taken into consideration for acceptance if the respective balance of the ingress sub- account is above the specified minimum ingress balance.

According to a further embodiment, the method comprises applying different accounting periods and/or charging times for the ingress messages, the read queries as well as for the unit-to-unit messages. Such different accounting periods further facilitate different technical implementations of charging schemes and they may be used to prevent or hinder attacks on the distributed network.

According to an embodiment, the method may com- prise charging for the ingress messages upon accepting or rejecting them for execution.

According to a further embodiment, the method comprises charging for the execution of the ingress mes- sages in advance, in particular after the issuing of the one or more calls to the secondary application units.

Such embodiments may efficiently prevent or hinder attacks, e.g. by flooding it with ingress messages. More particularly, charging early at different points in time may ensure that the processing of adversary requests stops early, in particular as soon as the respective bal- ance of the sub-account is below the required minimum bal- ance .

According to a further embodiment, the method comprises charging for the read queries subsequently in a bundled way, e.g. only after a predefined number of read queries have been performed.

This facilitates an efficient processing of the read queries. Such an embodiment is in particular useful for distributed networks in which the application units run on a plurality of nodes forming a subnet and are rep- licated across the plurality of nodes of the subnet. In such a network the read queries do not have to be replicated across the plurality of nodes of the subnet and the read queries can be processed independently by a single node of the subnet.

According to a further embodiment, the method comprises providing a separate read query sub-account for each node of a respective subnet. This may prevent or hinder attacks on a single node by flooding it with read queries. More particularly, a node may only execute read requests if its separate read query sub-account has a sufficient balance, although the read request are only charged later in a bundled way.

According to another embodiment, the method further comprises charging, by the distributed network, for the use of storage resources of the distributed network and paying, from a respective application unit gas account, for its use of the storage resources of the distributed network .

According to embodiments the respective appli- cation unit may be charged e.g. for the maximum amount of storage that has been used in a predefined period of time.

According to a further embodiment, the method comprises charging, by an application unit, in particular by a respective primary and/or secondary application unit, a fixed price for the use of the resources by the primary and/or the secondary application service respectively.

Such a fixed price facilitates on the one hand an efficient payment process with a low use of communica- tion bandwidth. On the other hand it facilitates a prompt charging. Furthermore, it allows to process the payments for the secondary application unit via the local user ac- count of the primary application unit in an elegant and simple way.

According to a further embodiment, the method comprises charging, by an application unit, in particular by a respective primary and/or secondary application unit, an advance payment for the use of the resources by the primary and/or the secondary application service respec- tively. In addition, the method may comprise a further step of reimbursing, by the application unit, in particular by the respective primary and/or secondary application unit, unused parts of the advance payment.

This provides further flexibility.

According to a further embodiment, the method comprises topping up, from an application unit gas account of a respective primary and/or secondary application unit, the advance payment to ensure execution of the correspond- ing primary and/or secondary application service.

This provides further flexibility.

According to a further embodiment, the dis- tributed network comprises a plurality of subnets, wherein each of the plurality of subnets comprises one or more of the plurality of nodes. The method further comprises steps of assigning each of the application units to one of the plurality of subnets and replicating the application units across the respective subnet.

Methods according to embodiments of the inven- tion are in particular useful for such distributed networks comprising subnets with replicated application units.

The replication may be in particular facili- tated by performing an active replication in space of the unit state of the computational units on each node of the execution subset. According to embodiments, the unit state may comprise in particular an input queue, an output queue, a system state and an application or user state.

According to an embodiment, the distributed network is configured to replicate the set of computational units, in particular the states of the computational units, across the subnet. As a result, the computational units of a respective subnet have always the same state, provided they behave honestly. The different subnets, in particular the computational units of the different subnets, may com- municate with each other by exchanging inter-subnet mes- sages via a messaging protocol and a consensus protocol.

According to an embodiment of another aspect of the invention, a distributed network is provided.

The distributed network comprises a plurality of nodes, wherein each of the plurality of nodes is con- figured to run one or more computational units. The one or more computational units encompass one or more application units. The application units are configured to provide ap- plication services to users of the distributed network. The distributed network is configured to provide resources for the computational units and to run, by each user of the network, one or more local user gas accounts at one or more of the application units. The distributed network is further configured to process, via or by the local user gas accounts, payments for the use of the resources of the distributed network.

According to an embodiment of another aspect of the invention, a node of a distributed network is pro- vided .

According to an embodiment of another aspect of the invention, a computer program product for operating a distributed network is provided. The computer program product comprises a computer readable storage medium having program instructions embodied therewith, the program in- structions executable by one or more of a plurality of nodes of the distributed network to cause the one or more of the plurality of nodes to perform steps of the method aspect of the invention.

According to an embodiment of another as- pect of the invention, a software architecture encoded on a non-transitory computer readable medium is provided. The software architecture is configured to operate one or more nodes of a distributed network. The encoded software ar- chitecture comprises program instructions executable by one or more of the plurality of nodes to cause the one or more of the plurality of nodes to perform a method com- prising steps of the method aspects of the invention.

Features and advantages of one aspect of the invention may be applied to the other aspects of the in- vention as appropriate.

Other advantageous embodiments are listed in the dependent claims as well as in the description below.

Brief Description of the Drawings

The invention will be better understood and objects other than those set forth above will become ap- parent from the following detailed description thereof. Such description makes reference to the annexed drawings, wherein:

FIG. 1 shows an exemplary diagram of a dis- tributed network according to an embodiment of the inven- tion;

FIG. 2 illustrates in a more detailed way com- putational units running on an exemplary node of the net- work;

FIG. 3 shows an exemplary diagram of a dis- tributed network according to an embodiment of the inven- tion comprising a plurality of subnets;

FIG. 4 illustrates in a more detailed way com- putational units running on the distributed network of FIG. 3; FIG. 5 shows a schematic illustration of inter- subnet messages which are received at a subnet of the net- work of FIG. 3;

FIG. 6 shows a schematic block diagram of pro- tocol components of a subnet protocol client;

Fig. 7 shows an exemplary visualization of a workflow of the messaging protocol and the consensus pro- tocol and the associated components;

FIG. 8 shows a more detailed illustration of an application unit according to an embodiment of the in- vention;

FIG. 9 shows a more detailed illustration of an exemplary local user gas account according to an embod- iment of the invention;

FIG. 10 illustrates a charging/payment scheme according to an embodiment of the invention;

FIG. 11 illustrates another charging/payment scheme according to an embodiment of the invention;

Fig. 12 illustrates how users of a distributed network can recharge their local user gas account;

FIG. 13 illustrates a charging scheme for read queries according to an embodiment of the invention;

FIG. 14 illustrates how a primary application unit may use closures to manage calls to secondary appli- cation units;

FIG. 15 shows a flow chart of method steps of a computer-implemented method according to embodiments of the invention;

FIG. 16 illustrates main processes which are run on each node of the network according to an embodiment of the invention;

FIG. 17 shows a layer model illustrating main layers which are involved in the exchange of inter-subnet and intra-subnet messages;

FIG. 18 illustrates the creation of input blocks by a consensus component according to an exemplary embodiment of the invention; FIG. 19 shows a more detailed view of a net- working component; and

FIG. 20 shows an exemplary embodiment of a node according to an embodiment of the invention.

Modes for Carrying Out the Invention

At first, some general aspects and terms of em- bodiments of the invention will be introduced.

According to embodiments, a distributed net- work comprises a plurality of nodes that are arranged in a distributed fashion. In such a distributed network com- puting, software and data is distributed across the plu- rality of nodes. The nodes establish computing resources and the distributed network may use in particular dis- tributed computing techniques.

According to embodiments, distributed net- works may be embodied as blockchain networks. The term "blockchain" shall include all forms of electronic, com- puter- based, distributed ledgers.

FIG. 1 shows an exemplary block diagram of a distributed network 100 according to an embodiment of the invention .

The distributed network 100 comprises a plu- rality of nodes 10, which may also be denoted as network nodes 10 or computing nodes 10. Each of the plurality of nodes 10 is configured to run one or more computational units. According to embodiments a computational unit shall be understood as a piece of software, in particular as a piece of software that comprises or has its own unit state. The plurality of nodes 10 of the network 100 may be allocated to different subsets and/or subnets. Such allocations may change over time.

According to this embodiment, the network 100 comprises a consensus subset SSI of nodes 10 and an execu- tion subset SS2 of nodes 10.

The computational units that run on the nodes 100 can be used by a user of the network 100 to perform or request computational tasks or services, in particular ap- plication services. The computational units of the network 100 may execute in particular execution messages from a current set of execution messages. The execution messages may comprise in particular unit-to-unit messages which are exchanged between the computational units of the network and/or ingress messages, i.e. messages which are received from external sources, in particular from users of the network. The network 100 is configured such that at first a consensus protocol is performed to reach a consensus on a selection and processing order of execution messages from a respective current set of execution messages. Depending on the number of nodes 10 in the network 100, the consensus protocol is advantageously not performed by all nodes of the network, but by only a subset of the nodes 10 of the network 100, which is in the following denoted as consensus subset SSI. The consensus subset SSI may also be denoted as consensus subset. The nodes of the consensus subset SSI are accordingly configured to run the consensus protocol to reach a consensus on a selection and processing order of execution messages from the current set of execution messages.

The execution of the execution messages may also advantageously not be performed by all nodes of the network 100, but only by a subset of the nodes 10 of the network 100. This subset is in the following denoted as execution subset SS2 and may be also denoted as execution subset SS2. The computational units of the execution subset SS2 then execute individually the selection of the execu- tion messages in the processing order as agreed in the previous consensus step. Each of the computational units of the execution subset SS2 performs the execution in a deterministic manner and thereby mutates the unit states of the corresponding computational units of the execution subset SS2.

According to embodiments, a unit state shall be understood as all the data or information that is used by the computational unit, in particular the data that the computational unit stores in variables, but also data which the computational units get from remote calls. The unit state may represent in particular storage locations in the respective memory locations of the respective node. The contents of these memory locations, at any given point in the execution of the computational units, is called the unit state according to embodiments. The computational units may be in particular embodied as stateful computa- tional units, i.e. the computational units are designed according to embodiments to remember preceding events or user interactions.

According to embodiments it is assumed that each node of the network keeps a local clock that is roughly synchronized with the clocks of the other nodes.

FIG. 2 illustrates in a more detailed way com- putational units 15 running on nodes 10 of the network 100. More particularly, FIG. 2 shows a node 10 of the subset SS2 of FIG. 1 on which five computational units 15 are run, more particularly the set of computational units CU 21 ,CU 22 , CU 23 , CU 24 and CU 25 .The set of computational units CU 21 ,CU 22 , CU 23 , CU 24 and CU 25 runs on each node 10 of the subset SS2. Furthermore, the set of computational units CU 21 ,CU 22, CU 23 , CU 24 and CU 25 is replicated across the whole subset SS2 such that each of the computational units CU 21 ,CU 22, CU 23 , CU 24 and CU 25 eventually has the same unit state, provided they behave honestly. This may be implemented in particular by performing an active replication in space of the unit state of the computational units CU 21 ,CU 22, CU 23 , CU 24 and CU 25 on each of the nodes 10 of the subset SS2.

The computational units CU may serve differ- ent functions and may be of different types. One type of computational units are application computational units which are configured to provide application services to users of the distributed network. The application compu- tational units will be in the following denoted as appli- cation units or AUs for simplicity reasons. Another type of computational units are wallet computational units which may be configured to manage user currency accounts of users of the network. And yet another type of computa- tional units are system computational units. Such system computational units may provide system or managing func- tions for the distributed network.

FIG. 3 shows an exemplary block diagram of a distributed network 300 according to an embodiment of the invention .

The distributed network 300 comprises a plu- rality of nodes 10.

According to this embodiment, the plurality of nodes 10 are distributed over a plurality of subnets 11. In the example of FIG. 1, four subnets 11 denoted with SNA, SNB, SNC and SND are provided. The network 100 comprises communication links 12 for intra-subnet communication within the respective subnet 11 as well as communication links 13 for inter-subnet communication between different ones of the subnets 11. Accordingly, the communication links 12 may also be denoted as intra-subnet or Peer-to- Peer (P2P) communications .links and the communication links 13 may also be denoted as inter-subnet or Subnet-to-Subnet (SN2SN) communications links. Each of the plurality of subnets 11 is config- ured to run a set of computational units on each node 10 of the respective subnet 11.

According to embodiments of the invention the subnets 11 are configured to replicate the set of computa- tional units across the respective subnet 11. More partic- ularly, the subnets 11 are configured to replicate the unit state of the computational units across the respective subnet 11.

The network 100 may be in particular a proof- of-stake blockchain network.

Proof-of-stake (PoS) describes a method by which a blockchain network reaches distributed consensus about which node is allowed to create the next block of the blockchain. PoS-methods may use a weighted random se- lection, whereby the weights of the individual nodes may be determined in particular in dependence on the assets (the "stake") of the respective node.

According to embodiments of asynchronous BFT consensus protocols it is assumed that less than 1/3 (a third) of the nodes in each subnet are corrupt so that artifacts generated and signed by the subnet can be fully trusted.

FIG. 4 illustrates in a more detailed way com- putational units 15 running on nodes 10 of the network 300. More particularly, FIG. 2 shows on the left side 401 a node 10 of the subset SNA of FIG. 1 on which five computational units 15 are run, more particularly the set of computa- tional units CU A1 ,CU A2, CU A3 , CU A4 and CU A5 . The set of computational units CU A1 ,CU A2, CU A3 , CU A4 and CU A5 runs on each node 10 of the subnet SNA. Furthermore, the set of computational units CU A1 ,CU A2, CU A3 , CU A4 and CU A5 is repli- cated across the whole subnet SNA such that each of the computational units CU A1 ,CU A2, CU A3 , CU A4 and CU A5 has the same unit state. This may be implemented in particular by performing an active replication in space of the unit state of the computational units CU A1 ,CU A2, CU A3 , CU A4 and CU A5 on each of the nodes 10 of the subnet SNA.

Furthermore, FIG. 4 shows on the right side 402 a node 10 of the subnet SNB of FIG. 1 on which four compu- tational units 15 are run, more particularly the set of computational units CU B1 ,CU B2, CU B3 and CU B4 . The set of com- putational units CU B1 ,CU B2, CU B3 and CU B4 runs on each node 10 of the subnet SNB. Furthermore, the set of computational units CU B1 ,CU B2, CU B3 and CU B4 is replicated across the whole subnet SNB such that each of the computational units CU B1 , CU B2, CU B3 and CU B4 has the same unit state, e.g. by performing an active replication in space of the unit state as men- tioned above.

Referring back to FIG. 3, the network 300 is configured to exchange inter-subnet messages 16 between the subnets SNA, SNB, SNC and SND via a messaging protocol and a consensus protocol. The consensus protocol is con- figured to reach a consensus on the processing order of the inter-subnet messages 16 at the respective receiving subnet. Referring e.g. to the subnet SNB, it receives in- ter-subnet messages 16 from the subnets SNA, SNC and SND. The consensus protocol receives and processes these inter- subnet messages 16 and performs a predefined consensus al- gorithm or consensus mechanism to reach a consensus on the processing order of the received inter-subnet messages 16.

According to embodiments, the network 300 may be configured to run the consensus protocol separately on each subnet. In other words, each of the subnets SNA, SNB, SNC and SND run its own consensus protocol separately and independently from the other subnets. Accordingly, each of the subnets SNA, SNB, SNC and SND can decide, to a prede- fined extent, on its own and independently from the other subnets which received messages to process and in which order. Hence each of the subnets SNA, SNB, SNC and SND reaches a consensus on a per-subnet basis on the processing order of the received inter-subnet messages 16. Such a consensus may also be considered as a local consensus or a subnet-consensus .

This concept is illustrated in more detail with reference to FIG. 5.

FIG. 5 shows a schematic illustration of inter- subnet messages 16 which are received at the subnet 11, SNB of FIG. 3

The subnet SNB receives inter-subnet messages SNA-SNB from the subnet SNA, inter-subnet messages SNC-SNB from the subnet SNC and inter-subnet messages SND-SNB from the subnet SND. These pool of inter-subnet messages is processed by a consensus component 30, CSNB which runs locally a consensus protocol on the subnet SNB. Hence the consensus component 30 may be denoted as subnet consensus component .

The consensus component 30 generates a queue of input blocks IB from the inter-subnet messages according to a predefined consensus algorithm or mechanism and pro- vides the queue of input blocks IB to a messaging component 31, MSNB which is configured to run a messaging protocol and to further process the input blocks IB.

According to embodiments each of the nodes 10 of a respective subnet 11 may participate in the consensus protocol. According to such embodiments, each of the sub- nets 11 may comprise e.g. 10 to 100 nodes, in particular 20 to 50 nodes. Such numbers may provide an advantageous compromise between security and efficiency.

According to other embodiments, the consensus protocol may be configured to elect members of a committee from the plurality of nodes 10 of the respective subnet 11 according to a predefined election scheme and to perform the consensus protocol only with the elected members of the committee. Such an approach is in particular useful for subnets with a larger number of nodes, e.g. for subnets with 1000 or more nodes.

FIG. 6 shows a schematic block diagram of pro- tocol components 600 of a subnet protocol client, e.g. of the subnet protocol client 42 as shown in FIG. 16.

Full arrows in FIG. 6 are related to execution messages which comprises unit-to-unit messages and ingress messages. Ingress messages may be in particular mutating- queries from a user. Dashed arrows relate to system infor- mation .

The protocol components 600 comprise a messag- ing component 61 which is configured to run the messaging protocol and an execution component 62 configured to run an execution protocol for executing execution messages, in particular for executing unit-to-unit messages and/or mu- tating queries. The protocol components 600 further com- prise a consensus component 63 configured to run a consen- sus protocol, a networking component 64 configured to run a networking protocol, a state manager component 65 con- figured to run a state manager protocol, an X-Net component 66 configured to run a cross-subnet transfer protocol and an ingress message handler component 67 configured to han- dle ingress messages received from an external user of the network. The protocol components 600 comprise in addition a crypto component 68. The crypto component 68 co-operates with a security component 611, which may be e.g. embodied as the security application 43 as will be described subse- quently with reference to FIG. 16. The protocol components 600 further comprise a state reader component 69 which is configured to receive read queries or in other word read requests from a user.

The state reader component 69 is configured to cooperate with the state manager component 65. The read queries which are received and handled by the state reader component 69 are in particular embodied as non-mutating queries, i.e. they do not change persis- tently the unit state of the computational units. On the other hand, the ingress messages which are received from the ingress message handler component 67 and go through the consensus component 63, may be in particular embodied as mutating queries, i.e. they change the unit state of the respective computational unit that is executing the mutating query. As the read queries do not have to go through the consensus component 63, they can be made asyn- chronously on any node of the respective subnet and can hence be much faster.

Furthermore, the subnet-protocol client 42 may cooperate with a reader component 610, which may be a part of the mainnet protocol client 41 as described with refer- ence to FIG. 16. The mainnet reader component 610 may pro- vide information that is stored and distributed by the mainnet to the respective subnet protocol client 42. This includes the assignment of nodes to subnets, node public keys, assignment of computational units to subnets etc.

The messaging component 61 and the execution component 62 are configured such that all computation, data and state in these components is identically replicated across all nodes of the respective subnet, more particu- larly all honest nodes of the respective subnet. This is indicated by the wave-pattern background of these compo- nents.

Such an identical replication is achieved ac- cording to embodiments on the one hand by virtue of the consensus component 63 that ensures that the stream of inputs to the messaging component 61 is agreed upon by the respective subnet and thus identical for all nodes, more particularly by all honest nodes. On the other hand, this is achieved by the fact that the messaging component 61 and the execution component 62 are configured to perform a deterministic and replicated computation.

The X-Net Transfer component 66 sends message streams to other subnets and receives message streams from other subnets.

Most components will access the crypto compo- nent 68 to execute cryptographic algorithms and the mainnet reader 610 for reading configuration information.

The execution component 62 receives from the messaging component 61 a unit state of the computational unit and an incoming message for the computational unit, and returns an outgoing message and the updated unit state of the computational unit. While performing the execution, it may also measure a gas or fuel consumption of the pro- cessed message (query).

The messaging component 61 is clocked by the input blocks received from the consensus component 63. That is, for each input block, the messaging component 61 performs steps as follows. It parses the respective input blocks to obtain the messages for its computational units. Furthermore, it routes the messages to the respective input queues of the different computational units and schedules, by a scheduler, messages to be executed according to the capacity each computational unit got assigned. Then it uses the execution component 62 to process a message by the corresponding computational unit, resulting in messages to be sent being added to an output queue of the respective computational unit. However, when the message is destined to a computational unit on the same subnet it may be put directly in the input queue of the corresponding computa- tional unit. The messaging component 61 finally routes the messages of the output queues of the computational units into message streams for subnets on which the receiving computational units are located and forwards these message streams to the state manager component 65 to be certified, i.e., signed by the respective subnet.

The state manager component 65 comprises a cer- tification component 65a. The certification component 65a is configured to certify the output streams of the respec- tive subnet. This may be performed e.g. by a group signa- ture of the computational units of the respective subnet.

The certification component 65a may be further configured to certify certain variables of the unit state, in particular certain variables of snapshots of the unit state as will be described below in more detail.

Fig. 7 shows an exemplary visualization of a workflow 700 of the messaging protocol and the consensus protocol and the associated components, e.g. of the mes- saging component 61 and the consensus component 63 of Fig. 6. More particularly, Fig. 7 visualizes the workflow of inter-subnet messages exchanged between a subnet SNB and subnets SNA and SNC. Furthermore, the subnet SNB exchanges ingress messages with a plurality of users U.

Starting from the bottom right of FIG. 7, a plurality of input streams 701, 702 and 703 is received by a consensus component 63. The consensus component 63 is a subnet consensus component that is run by a subnet client of the subnet SNB. The input stream 701 comprises inter- subnet messages 711 from the subnet SNA to the Subnet SNB. The input stream 702 comprises inter-subnet messages 712 from the subnet SNC to the Subnet SNB. The input stream 703 comprises ingress messages 713 from the plurality of users U to the subnet SNB.

The inter-subnet messages 711 and 712 comprise unit-to-unit messages to be exchanged between the computa- tional units of the different subnets as well as signalling messages. The signalling messages are used to acknowledge or not acknowledge a receipt of unit-to-unit messages. The messaging component 61 is configured to send the signalling messages from a receiving subnet to a corresponding sending subnet, i.e. in this example from the subnet SNB to the subnets SNA and SNC. The messaging component 61 is accord- ing to this example configured to store the sent unit-to- unit messages until an acknowledgement message has been received for the respective unit-to-unit message. This pro- vides a guaranteed delivery.

The consensus component 63 is configured to receive and process the inter-subnet messages 711, 712 of the subnets SNA, SNC and the ingress messages 713 of the users U and to generate a queue of input blocks 720 from the inter-subnet messages 711, 712 and the ingress messages 713 according to a predefined consensus mechanism that is executed by the corresponding consensus protocol. Each in- put block 720 produced by consensus contains a set of in- gress messages 713, a set of inter-subnet messages 711, 712 and execution parameters 714, EP. The execution param- eters 714, EP may include in particular a random seed, a designated execution time and/or a height index. The con- sensus component 63 may also vary the number of messages in every input block based on the current load of the subnet .

The consensus component 63 provides the queue of input blocks 720 then to the messaging component 61 which is configured to execute the messaging protocol and to process the input blocks 720.

The messaging protocol and the messaging com- ponent 61 are clocked by the input blocks 720 received from the consensus component 63.

Before processing the received input blocks, the messaging component 61 may perform one or more pre- processing steps including one or more input checks. The input checks may be performed by an input check component 740.

The input checks may be performed with differ- ent granularity according to embodiments. At first, the input checks may be performed for the whole input block. Such checks may also be denoted as input block checks. These may comprise a check of the height of the next input block. If the height of the next input block is lower than expected next in sequence, then it is discarded. If the input block is not the expected next in sequence, then the messaging component 61 may trigger a node catch up proto- col. If the input block is the next in sequence, then it is further processed by the messaging component 61.

The different types of messages (signalling messages, ingress messages, unit-to-unit messages) in the input blocks may be grouped together.

The input checks may further comprise an over- load check to check whether the messaging component is currently overloaded and does not have enough capacity to perform the processing. If e.g. the relevant queue in the induction pool is full, the corresponding message may be rejected. Further input checks may comprise an in-order delivery check. To satisfy the in-order delivery require- ment, messages can be annotated e.g. with sequence numbers. If a message with a sequence number is received, the mes- saging component 61 may check whether it has the expected number, and if not, may reject it. Furthermore, the input check component 740 may perform a validity check of the target destination, i.e. whether a message targets a com- putational unit that is active on the corresponding subnet.

If the input checks have been passed success- fully, the messages of the respective input block 720 may be further processed by the messaging component 61 and the corresponding messages may be appended to a corresponding queue in an induction pool of an induction pool component 731. The induction pool component 731 of the messaging component 61 receives input blocks and input messages that have been successfully passed the input check component 740 and have accordingly been accepted by the messaging component 61 for further processing.

In general, the messaging component 61 pre- processes the input blocks 720 by placing ingress messages, signalling messages and inter-subnet messages into the in- duction pool component 731 as appropriate. Signalling mes- sages in the incoming subnet streams are treated as acknowledgements of messages of the output queues which can then be purged.

In this example, the induction pool component 731 comprises unit-to-unit queues A1-B1, C1-B1, A2-B2 and C1-B2 as well as user-to-unit queues U-B1 and U-B2.

Following these pre-processing steps, the mes- saging component 61 invokes the execution component 62 (see FIG. 6) to execute as much of the induction pool as is feasible during a single execution cycle, providing the designated execution time and the random seed as additional inputs. Following the execution cycle, a resulting output queue of messages is fed to an output queue component 733. Initially the output queue component 733 comprises unit- to-unit and unit-to-user output queues, in this example the unit-to-unit output queues B1-A1, B1-C2, B2-A2 and B2- C3 and the unit-to-user output queues B1-U1 and B2-U4. As an example, the messages B1-A1 denote messages from the computational unit B1 of subnet SNB to the computational unit A1 of subnet SNA. As another example, the messages B1-U1 denote messages from the computational unit B1 of subnet SNB to the user U1.

The output queue component 733 post-processes the resulting output queue of the messages by forming a set of per-subnet output streams to be certified, e.g. by the certification component 65a as shown in FIG. 6, and disseminated by other components. In this example, the per- subnet output streams SNB-SNA, SNB-SNC and SNB-U are pro- vided. The messaging component 61 further comprises a state storage component 732 that is configured to store the state/unit state of the computational units of the respective subnet, in this example the states of the com- putational units B1 and B2 of the subnet SNB. The corre- sponding unit state is the working memory of each computa- tional unit.

The messaging component 61 revolves around mu- tating certain pieces of system state deterministically. In each round, the execution component 61 will execute certain messages from the induction pool by reading and updating the state of the respective computational unit and return any outgoing messages the executed computational unit wants to send. These messages go into the output queue component 733, which initially contains unit-to-user mes- sages and unit-to-unit messages between computational units of the network. While intra-subnet messages between computational units of the same subnet may be routed and distributed internally within the respective subnet, in- ter-subnet messages are routed into output streams sorted by subnet-destinations.

In addition, two pieces of state may be main- tained according to embodiments to inform the rest of the system about which messages have been processed. A first piece may be maintained for inter-subnet messages and a second piece of state for ingress messages.

FIG. 8 shows an exemplary application (compu- tational) unit 800 according to an embodiment of the in- vention.

The application unit 800 comprises an input queue 801, an output queue 802, a user or application state 803 and a system state 804. All input queues 801 of the application units (on a given subnet) collectively make up the induction pool, but the input queues are part of the state of the application computational unit. The output queues 802 con- tain messages that need to be delivered to other applica- tion computational units, possibly on other subnetworks.

The application state 803 comprises a main Web Assembly (Wasm) module which implements the functionality of the application computational unit and its dependent modules, together with an instance of each of the modules. A Wasm module instance consists of memories, global vari- ables and tables.

The system state 804 cannot be freely modified by code of the application computational unit. It includes meta-data, other state maintained by system on behalf of the application computational units, notably the compiled form of the Wasm modules, and context and callbacks for outstanding messages.

In addition, the system state 804 comprises an application unit gas account for the respective application computational unit 800 as well as one or more local user gas accounts, which are denoted in this example with UGAl, UGA2, ... , UGAN. The user gas accounts comprise the current gas balance of the respective users U1, U2, ..., UN at the application computational unit unit 800.

FIG. 9 shows a more detailed illustration of an exemplary local user gas account UGAX according to an embodiment of the invention.

The local user gas account UGAX comprises an ingress sub-account 901, a read query sub-account 902 and an execution sub-account 903. The ingress sub-account 901 is configured to pay for ingress messages that have been accepted or rejected for further processing, in particular JJ for ingress messages that have been placed in the induction pool 731 as described above with reference to FIG. 7. Fur- thermore, if an ingress message makes it all the way through consensus, but does not pass the input check 740, it has already used network resources. Hence according to embodiments the user also needs to pay for rejected ingress messages .

The read query sub-account 902 is configured to pay for read queries. Such read queries may be sent by a user of the network to one or more of the nodes of a respective subnet. According to embodiments the nodes make regularly read snapshot of the unit states of the applica- tion units of a respective subnet and a user may access the read snapshots by means of the read queries. Each of the nodes of a respective subnet have a separate read query sub-account RQSA N1 , RQSA N2 , RQSA NN for charging its read queries .

The execution sub-account 903 is configured to pay for the execution of messages, in particular the exe- cution of ingress messages. Furthermore, it may be config- ured to pay for the execution of unit-to-unit messages according to embodiments.

According to embodiments each of the respective sub-accounts needs to have a sufficient balance. Otherwise the corresponding request/execution will not be performed. As an example, if the ingress-sub-account 901 does not have a sufficient balance, a corresponding ingress message will not be accepted.

FIG. 10 illustrates a charging/payment scheme according to an embodiment of the invention. In the example of FIG. 10 it is assumed that only a single exemplary application unit AU1 of a distributed network 1000 is in- volved in an exemplary transaction and the associated charging/payment. The application unit AU1 comprises an application unit gas account AGA which is owned by the application unit AU1 and which is used by the application unit AUl to pay for the use of network resources as well as to receive payments.

The application unit AU1 further comprises a local user gas account UGA for a user U of the distributed network. The network is configured to process via or by the local user gas account UGA the resource payments of the network resources which are caused by a request of the user U. According to embodiments, a local user gas account may be embodied as counter or counting unit. In the illus- trated example of FIG. 10 it is assumed that a user U is connected to the distributed network via a user interface UI .

At a step 1001, the user U sends an ingress message IM to the application unit AU1. The ingress message IM is embodied as message which requests a primary appli- cation service. The application unit AUl serves as primary application unit and establishes the entry point of the distributed network 1000 for the ingress message. The pri- mary application unit AUl performs the primary application service requested by the user. The primary application service may be generally any kind of service, e.g. provid- ing an access to a website, booking a trip, providing a postcard application etc. In the example of FIG. 10 it is assumed that the primary application unit AUl can handle the ingress message IM independently without the need to involve other (not shown) application units of the dis- tributed network 1000.

At a step 1002, the application unit AU1 pro- cesses the charge or payment for the use of the network resources caused or used by the primary application ser- vice. More particularly, a respective gas amount GA is deducted from the local user gas account UGA. According to some embodiments, the gas amount GA may be just "burned", i.e. it is removed or eliminated from the system without a transfer to another account, or it may be transferred to a system account of the distributed network. According to other embodiments, the gas amount may be transferred to the application unit gas account AGA.

Furthermore, at a step 1003, the application unit AU1 returns a response message RM to the ingress mes- sage IM via the user interface UI to the user U. The re- sponse message RM may be e.g. a requested webpage and may also be considered as a result that is provided to the user in response to the ingress message.

FIG. 11 illustrates a charging/payment scheme with reference to a distributed network 1100. FIG. 11 shows 8 exemplary application units of the distributed network 1100 which are involved in an exemplary transaction and the associated charging/payment for the use of network re- sources involved in the transaction. More particularly, FIG. 11 shows the application units AU1, AU2, AU3, AU4, AU5, AU6, AU7 and AU8. Each of the application units AU1, AU2, AU3, AU4, AU5, AU6, AU7 and AU8 comprise an application unit gas account AGA. The application unit gas accounts AGA are gas accounts which are owned by the corresponding application units AU1, AU2, AU3, AU4, AU5, AU6, AU7 and AU8 and which are used by the respective application units to pay for the use of resources of the distributed network 1100 as well as to receive payments.

According to embodiments the distributed net- work 1100 also charges for the use of storage resources it provides. The respective application unit gas accounts AGA may hence be used to pay for the use of the storage re- sources of the network by the respective application unit. These storage costs may be charged e.g. periodically, e.g. by a high-water mark billing scheme. According to such a scheme the respective application unit will be charged for the maximum amount of storage space which it has used in a predefined period of time. In addition to the application unit gas ac- counts AGA, the application units AU X may comprise local user gas accounts UGA for the users of the distributed network. These local user gas accounts UGA are configured to process the payments for the use of network resources of the corresponding users of the distributed network 1100.

According to embodiments, a user needs to have a user gas account UGA at each primary application unit to which he wants to send an ingress message for requesting a primary application service.

In the illustrated example of FIG. 11 it is assumed that a user U is connected to the distributed net- work via a user interface UI.

According to embodiments, the user U is in- formed beforehand, e.g. by a browser plugin, on which fur- ther application units AU, in the following denoted as secondary application units, she needs to have a user gas account for requesting a respective primary application service. This may differ in dependence on the respective primary application service. According to some embodi- ments, no further user gas accounts at secondary applica- tion units may be needed, while for some primary applica- tion services a separate user gas account at each of the secondary applications units involved in the respective primary application service may be required. Such a browser plugin may also regularly check whether the respective user gas accounts are sufficiently charged. Otherwise, the user's ingress message may be rejected.

According to embodiments, application units may be written in a way that takes care of out of gas situations such that one does not have to start from scratch and such that the user is informed when the call tree/execution tree of a respective request hits an ap- plication unit for which the user needs to have a local user gas account, but the local user gas account does no longer have a sufficient balance. According to embodi- ments, the user interface UI may then also provide the possibility to arrange a refill of the respective user gas account from the wallet computational unit of the user .

In this example the user U needs to have and actually has a local user gas account UGA at the applica- tion unit AUl and at the application unit AU5.

An exemplary process flow of a charging scheme may operate as follows.

At a step 1101, the user U sends an ingress message IM to the application unit AU1. The ingress message IM is embodied as a message which requests a primary ap- plication service. The application unit AU1 serves as pri- mary application unit and establishes the entry point of the distributed network for the ingress message IM. The primary application unit AUl performs the primary applica- tion service request by the user. The primary application service may be generally any kind of service, e.g. provid- ing an access to a website, booking a trip, providing a postcard application etc.

According to this example, the requested pri- mary application service cannot be performed solely by the primary application unit AU1, but requires the involvement of a plurality of further application units, more partic- ularly the involvement of the application units AU2, AU3, AU4, AU5, AU6, AU7 and AU8. The further application units will in the following be denoted as secondary application units.

The involvement of the secondary application units AU2, AU3, AU4, AU5, AU6, AU7 and AU8 is triggered or performed by issuing, at steps 1102 and 1103, by the pri- mary application unit AU1 calls to one or more secondary application units, in this example to the application units AU2 and AU3. The calls may encompass the sending of a call message CM. The call message CM, which may be considered as an embodiment of a unit-to-unit message, may include a payment message PM.

According to other embodiments the payment mes- sage PM may also be sent separately. The call messages to the secondary application units comprise a request to per- form secondary application services by the secondary ap- plication units.

In this example the secondary application unit AU3 issues further calls to further secondary application units. More particularly, the secondary application unit AU3 issues, at a step 1104, a call to the secondary appli- cation unit AU4 and, at a step 1105, a call to the secondary application unit AU5.

And the secondary application unit AU5 issues, at steps 1106, 1107 and 1108, call messages CM to the secondary application units AU6, AU7 and AU8 respectively. These call messages establish a multi-call.

The entire calls or call messages CM that are triggered by the ingress message IM may be denoted as call tree. More particularly, the call or call messages issued at the steps 1102-1108 including the initial ingress mes- sage issued at step 1101 may be considered as call tree.

As mentioned above, the secondary application unit AU5 comprises also a local user gas account UGA. This local user gas account UGA of the secondary application unit AU5 can be used to process charges or payments for the use of the network resources which are needed by the secondary application unit AU5 for performing its secondary application services. These payments may include payments for the secondary services of the secondary application units AU6, AU7 and/or AU8 which are requested by the cor- responding multi-call. The call tree of this example illustrates dif- ferent payment schemes of the various application units which are involved in the call.

More particularly, the application unit AU2 charges a fixed price of e.g. 10 gas units and the appli- cation unit AU3 charges a fixed price of e.g. 20 gas units for the performance of its secondary application services.

The respective amount of gas is transferred between the application units by sending, at the step 1102, a payment message PM comprising a fixed payment of 10 gas units from the application unit AU1 to the application unit AU2 and by sending, at the step 1103, a payment message PM comprising a fixed payment of 20 gas units from the appli- cation unit AU1 to the application unit AU3. More partic- ularly, these payment messages PM perform a transfer of a currency amount, in particular an amount of gas units, from the application unit gas account AGA of the application unit AU1 to the application unit gas accounts AGA of the application units AU2 and AU3.

The application unit AU4 charges an advance payment for the use of the network resources to perform its secondary application service. The advance payment may be considered as a minimal amount of gas which need to be put on messages. The specified amount of the advance pay- ment may be in particular chosen such that it will be almost all the time sufficient to get the execution of the corresponding primary or secondary application service done, e.g. with a probability of 99%. In order to even further increase this probability, primary or secondary application units may use their own application unit gas account AGA to top up the respective advance payment to ensure execution of the corresponding primary and/or sec- ondary application service with an even higher probability, e.g. with a probability of 99.999%. In this example it is assumed that the application unit AU3 tops up the advance payment of 5 gas units as specified by the application unit AU4 by another 5 gas units from its own application unit gas account so that in total 10 gas units are available for the application unit AU4 for paying the network re- sources which are needed for the execution of its secondary application service.

The respective amount of gas of e.g. 10 gas units is transferred from the application unit AU3 to the application unit AU4 by sending, at the step 1104, a pay- ment message PM comprising an advance payment of 5 gas units and a top up payment of 5 gas units from the appli- cation unit AU3 to the application unit AU4. Furthermore, according to this example, the payment message PM which is sent at the step 1103 would also comprise the advance pay- ment of 5 gas units which would be transferred from the application unit gas account of the application unit AU1 to the application unit gas account of the application unit AU3 .

As opposed to the payment messages PM sent at steps 1102, 1103, 1106, 1107 and 1108, the amount of 10 gas transferred to application unit AU4 by the payment message PM at step 1104 may be not credited according to embodiments to the application user gas account of the receiving application unit. However, the amount may be used to directly pay for the actual use of the network resource, to which end it may e.g. be "burned", i.e. removed or eliminated from the system. Assuming e.g. that the second- ary application unit AU4 in the actual case needs only 4 gas units for its secondary application service, 6 gas units may be reimbursed.

The reimbursement may be performed by sending from the application unit AU4 a reimbursement message RIM comprising a reimbursement of 6 gas units to the applica- tion unit AU3. The reimbursement message RIM may be sent at a step 1123 together with a response message RM or it may also be embodied as separate message. The application unit AU3 may then keep 5 gas units, more particularly the amount of 5 gas units it has topped up from its own AGA, and transfer it back to its own AGA. Furthermore, the application unit AU3 may reim- burse the remaining unused part of the advance payment (1 gas unit in this example) back to the application unit AU1, e.g. by sending, at a step 1124, a reimbursement message RIM (again e.g. as part of a response message or sepa- rately) to the application unit AU1. The application unit AU1 may then reimburse this 1 gas unit to the local user gas account UGA of the user U.

The call embodied as call message CM which is issued, at step 1105, to the secondary application unit AU5, involves a variable payment. More particularly, the application unit AU5 has not specified a fixed price for the secondary services, but a variable price that it will charge directly from the user gas account UGA run by the user at the application unit AU5.

According to this example, the call message CM which is issued at step 1106 also involves a variable charge or payment. Accordingly, the application unit AU6 comprises also a local user gas account UGA and charges a variable price directly from its user gas account UGA, e.g. at step 1136.

On the other hand, the secondary application units AU7 and AU8 charge a fixed price. More particularly, the application unit AU7 charges a fixed price of 5 gas units and the application unit AU8 charges a fixed price of 7 gas units. The respective amount of gas is transferred from the application unit AU5 to the application units AU7 and AU8 by sending, e.g. at the steps 1107 and 1108 corre- sponding payment messages PM from the application unit AU5 to the application units AU7 and AU8. According to other embodiments, the payment messages PM may be send at sepa- rate steps. In response to the multi-call that has been issued to the application units AU6, AU7 and AU8, the ap- plication unit AU5 receives, at commonly denoted steps 1121, response messages RM from the application units AU6, AU7 and AU8.

After having executed the respective secondary application services, the secondary application unit AU5 sends, at a step 1122, a response message RM to the appli- cation unit AU3. Furthermore, the secondary application unit AU4 sends, at a step 1123, a response message RM to the application unit AU3. This may include a reimbursement message RIM of e.g. 6 gas units as explained above. Then the secondary application unit AU3 sends, at a step 1124, a response message RM to the primary application unit AU1. This may include e.g. a reimbursement message RIM of e.g. 1 gas unit. The secondary application unit AU2 sends, at a step 1125, a response message RM to the primary application unit AU1. And the primary application unit AU1 provides, at a step 1126, a response message RM to the user U via the user interface UI.

According to embodiments, the distributed net- work is configured to charge separately for the ingress messages, in particular the acceptance of the ingress mes- sage for execution, and the execution of messages. In this respect different accounting periods may be implemented for the ingress messages and the execution of the ingress messages. As an example, if the distributed network is embodied as described with reference to FIG. 7, the ingress messages may be charged once they have successfully passed the input check 740 and have entered the induction pool 731. Furthermore, the execution of the ingress messages may be charged already according to embodiments after the primary application unit has performed some initial pro- cessing. According to embodiments the execution of the in- gress messages may be charged after the primary application unit has issued the one or more calls to the secondary application units which are required to execute the re- spective ingress message.

Referring to the example as presented above, the primary application unit AU1 may charge, at a step 1131, for the acceptance of the ingress message IM, more particularly once it has entered the induction pool. This may be e.g. a fee depending on the size of the IM, and the respective gas units are in particular deducted from the ingress sub-account 901 (see FIG. 9) of the user gas ac- count. Furthermore, it may process at a step 1132 the charge or payment for the use of the network resources caused by the ingress message IM. The respective payment may be deducted from the user gas account UGA of the primary application unit AU1 and may encompass the fixed price of e.g. 10 gas units for the application unit AU2, the fixed price of 20 gas units for the application unit AU3, the advance payment of 5 gas units for the application unit AU4 as well as e.g. a fixed price of 20 gas units for the execution of the primary application service by the appli- cation unit AU1. Hence in this example after the issuance of the calls, the primary application unit AUl may deduct, at the step 1132, 55 gas units from the local user gas account at the primary application unit AUl for the execu- tion of the ingress message IM. This deduction of the re- spective gas units is in particular taken from the execu- tion sub-account 903 (see FIG. 9) of the user gas account.

The step 1132 may be e.g. performed immediately before or after the steps 1102-1103.

Hence in the step 1132 the user pays from his execution sub-account for the individual instructions be- ing executed by the primary application unit AU1 as well as for the calls made to other application units which provide no own user account. The charged costs may include the gas sent with the call for the fixed payments as well as the advanced payments. According to embodiments the costs may also include an advance payment for the execution of a closure that handles the eventual response(s)/re- sult/ (s). According to embodiments a change (unused amount of gas units) from execution of the closure can be returned to the execution sub-account of the user gas account. Ac- cording to embodiments a developer may choose not to pro- vide a closure to handle the response/result of a call, in which case she is not billed for it. A closure may be specially configured such that if its execution costs over- flow a minimum closure cost then this additional cost is deducted from the execution sub-account.

Further referring to the example as presented above, at a step 1133, the secondary application unit AU5 may process the charge or payment for the use of the network resources by AU7 and AU8 as well as for its own use by deducting the total costs from the user gas account UGA of the application unit AU5. According to other embodiments, the costs may be deducted from the application unit gas account AGA. The step 1133 may be performed immediately before or after sending the call messages CM at the steps 1106, 1107 and 1108.

Similarly, at further steps 1134, 1135, 1137 and 1138, the secondary application units AU2, AU3, AU7 and AU8 may process the charge or payment for their own respective use of the network resources.

According to embodiments, the respective gas that is charged at the steps 1131 to 1138 may be burned.

According to embodiments, the respective pay- ment method for the respective application may be specified in an interface description language (IDL) of the applica- tion units and can hence be specified by the respective programmer/developer of the application units. In partic- ular, the interface description of the respective applica- tion unit may specify whether users are expected to have a local user gas account with the application unit and what the expected balance should be. In the latter case, if the application unit serves e.g. as secondary application unit, no gas needs to be put on call messages sent to that sec- ondary application unit by other application units, in particularly by primary application units. According to embodiments the user and/or the respective primary appli- cation unit is enabled to calculate the call tree. In ad- dition, it may be specified in the IDL that a fixed price is to be paid to execute the function/call, and for which it guarantees execution, provided the application unit gas account of the application unit is not exhausted by it.

According to embodiments, the fixed price will be always charged, irrespective of the actual cost of ex- ecution or whether it was successful.

In addition, the interface description may specify that an advance payment is needed for the execution of a respective function/call and that this "minimal" amount of gas (specified as advanced payment) needs to be put on corresponding call messages. According to embodi- ments this minimal amount of gas may be calculated dynam- ically by recording the maximum amount of gas ever con- sumed, and then e.g. multiplying it with a predefined fac- tor, e.g. by 1.5.

Fig. 12 illustrates how users of a distributed network can upload their local user gas account. The il- lustration is provided with reference to the distributed network 1100 comprising the application units AU1, AU2, AU3, AU4, AU5, AU6, AU7 and AU8 as described above.

As shown in FIG. 12, a user U1 runs a wallet computational unit WCU1. The wallet computational unit WCUl is configured to manage a user currency account for the user U1.

In order to refill the local user gas accounts UGA from the user currency account provided by WCUl, the user U1 sends, at a step 1201, a refill request RR to her wallet computational unit WCU1. Then the wallet computa- tional unit WCUl sends, at a step 1202, a payment message PM to the application unit AU1, at a step 1203 a payment message PM to the application unit AU5, and, at a step 1204, a payment message PM to the application unit AU6. This allows to transfer a currency amount from the user currency account to the local user gas accounts UGA at the application units AU1, AU5 and AU6.

The user currency account provided by the wal- let computational unit WCUl may be e.g. recharged/refilled by the user from a conventional bank account. In this re- spect it may provide an interface to external banking ap- plications or external banking accounts. The wallet compu- tational unit WCUl may be run in gas units or in another currency, e.g. in a crypto-currency, a stablecoin, or in a classical national currency such as in US-dollars or Euros.

An exchange rate between the crypto-currency or the classical national currency and gas units may be managed by the distributed network 1100 according to the respective needs of the application.

It should be noted that the application unit gas accounts AGA may be refilled e.g. by the owner of the respective application unit. For this purpose the owner of the respective application unit may also have a user cur- rency account, which may also be denoted as owner currency account.

FIG. 13 illustrates a charging scheme for read queries according to an embodiment of the invention. A subnet 11 may comprise 5 nodes Nl, N2, N3, N4 and N5. Each of the nodes N1, N2, N3, N4 and N5 may run a set of appli- cation units having their own unit states. The unit states of the set of application units are replicated across the subnet 11.

The nodes N1, N2, N3, N4 and N5 regularly make a read snapshot of the unit states of the application units of the subnet 11. In order to get access to the read snap- shots, a user may send read queries to one or more of the nodes N1, N2, N3, N4 or N5. The read queries are not charged at once, but subsequently in a bundled way.

Furthermore, according to embodiments, each of the nodes N1, N2, N3, N4 and N5 may have a separate read query sub-account RQSA (see also FIG. 9) for charging read queries it has received and processed.

In this example it is assumed that the user sends 4 read queries RQ1, RQ2, RQ3 and RQ4 to the node N1. Furthermore, the user electronically signs each read query. More particularly, the read queries RQ1, RQ2, RQ3 and RQ4 are signed with a signature sig1, sig2, sig3 and sig4 re- spectively.

Afterwards the user is charged for the 4 read queries subsequently in a bundled way. For this node N1 may send the aggregated amount of gas units to be charged for the bundle of read queries RQ1, RQ2, RQ3 and RQ4, together with an aggregated signature, as system ingress message to the other nodes N2, N3, N4 or N5 of the subnet 11.

Then the aggregated amount of gas units is de- ducted collectively from the read sub-account 902 of the respective user (see FIG. 9).

As shown in FIG. 9, each of the nodes N1, N2, N3, N4 and N5 may have a separate read query sub-account RQSA N1 ,RQSA N2 , RQSA N3 , RQSA N4 and RQSA N5 respectively. Accord- ing to embodiments the node N1 may only execute the read queries RQ1, RG2, RQ3 and RQ4 if its separate read query sub-account RQSA N1 has a sufficient balance. This may pre- vent or hinder attacks on a single node, in this example on the node N1, e.g. by flooding the node N1 with read queries.

FIG. 14 illustrates how the primary application unit AU1 that receives an ingress message may use closures to manage calls to secondary application units. At a step 1401, the user U sends an ingress message to the application unit AU1. The application unit AU1 serves as primary application unit. At one or more steps 1402, the application unit AUl sends further calls to one or more secondary application units.

At a step 1403, the application unit AUl stores its current state including the call context as closure.

At one or more steps 1404, the secondary ap- plication units send one or more responses/results as re- sponse messages back to the application unit AU1. The ap- plication unit AUl uses then the state stored in the clo- sure to process the response messages and provides, at a step 1405, a response message back to the user U.

FIG. 15 shows a flow chart of method steps of a computer- implemented method for charging for a use of network re- sources of a distributed network according to an embodiment of the invention.

At a step 1510, the distributed network runs on each of the plurality of nodes one or more application (computational) units.

At a step 1520, a user of the network runs a local user gas account at a primary application unit.

At a step 1530, a user of the network sends an ingress message to the primary application unit.

At a step 1540, the primary application unit issues a call to a secondary application unit

At a step 1550, the local user gas account of the primary application unit processes payments for the use of network resources by the primary and the secondary application unit.

At a step 1560, the secondary application unit performs the secondary application service and sends results of the secondary application service back to the primary application unit. At a step 1570, the primary application unit performs the primary application service, including the use of the results of the secondary application service, and sends a response message back to the user.

Hence according to such a method the payments for the use of the network resources may be done locally from the local user gas account at the primary application unit. Furthermore, the payment may be processed before the call tree is fully executed.

FIG. 16 illustrates main processes which are run on each node 10 of the networks 100, 300, 1100 and 1300 according to an embodiment of the invention. A network client of networks according to embodiments of the inven- tion is the set of protocol components that are necessary for a node 10 to participate in the network. According to embodiments, each node 10 is a member of a mainnet and typically one subnet, which means that each node runs a client for the mainnet and possibly a client for the sub- net.

A node manager 40 is configured to start, re- start and update a mainnet protocol client 41, a subnet protocol client 42 and a security application 43.

According to embodiments, each of the plurality of subnets 11 is configured to run a separate subnet pro- tocol client 42 on its corresponding nodes 10. The mainnet protocol client 41 is in particular configured to distrib- ute configuration data to and between the plurality of subnets 11. The mainnet protocol client 41 may be in par- ticular configured to run only system computational units, but not any user-provided computational units. The mainnet protocol client 41 is the local client of the mainnet and the subnet protocol client 42 is the local client of the subnet.

The security application 43 stores secret keys of the nodes 10 and performs all operations with them. The security application 43 is configured to protect the secret keys held by a node. More particularly, the secret keys are held and processed in a separate exe- cution environment (either a separate process or a separate virtual machine (VM)). The security application 43 is con- figured to operate with limited and controlled interfaces such that the secret keys cannot be extracted via these interfaces. According to embodiments, the security appli- cation is configured to operate like a hardware security module (HSM) or similar to a HSM. Hence the security ap- plication 43 may be denoted as a Software HSM.

FIG. 17 shows a layer model 1700 illustrating main layers which are involved in the exchange of inter- subnet and intra-subnet messages. The layer model 1700 comprises a messaging layer 51 which is configured to serve as an upper layer for the inter-subnet communication. More particularly, the messaging layer 51 is configured to route inter subnet messages between computational units of dif- ferent subnets. Furthermore, the messaging layer 51 is configured to route ingress messages from users of the network to computational units of the network.

The layer model 1700 further comprises a plu- rality of consensus layers 52 which are configured to re- ceive inter-subnet messages from different subnets as well as ingress messages and to organize them, in particular by agreeing on a processing order, in a sequence of input blocks which are then further processed by the respective subnet. In addition, the layer model 1700 comprises a peer- to-peer (P2P) layer 53 that is configured to organize and drive communication between the nodes of a single subnet.

According to embodiments, the network may com- prise a plurality of further layers, in particular an ex- ecution layer which is configured to execute execution messages on the computational units of the network. In the following the interactions between the mainnet protocol clients 41 and the subnet protocol clients 42 is described in more detail (see FIG. 16). The mainnet protocol clients 41 manage a number of registries that contain configuration information for the subnets. These registries are implemented by computational units on the mainnet and, as all nodes are participating in the mainnet, access to these registries can simply be implemented by a state read operation.

That is, the mainnet reader 610 (see FIG. 6) may be in fact a sub-component of the mainnet protocol client 41 and therefore interaction with this component results in interaction between the two isolated environ- ments in which the mainnet and subnet clients run.

FIG. 18 illustrates the creation of blocks in distributed networks according to embodiments of the in- vention. The blocks may be in particular the input blocks 720 shown in FIG. 7 which are created by the consensus component 63 that runs the consensus protocol, in partic- ular a local subnet consensus protocol.

In this exemplary embodiment three input blocks 1801, 1802 and 1803 are illustrated. Block 1801 comprises a plurality of transactions, namely the transactions tx1.1, tx1.2 and possibly further transactions indicated with dots. Block 1802 comprises also a plurality of transac- tions, namely the transactions tx2.1, tx2.2 and possibly further transactions indicated with dots. Block 1803 also comprises a plurality of transactions, namely the transac- tions tx3.1, tx3.2 and possibly further transactions indi- cated with dots. The input blocks 1801, 1802 and 1803 are chained together. More particularly, each of the blocks comprises a block hash of the previous block. This crypto- graphically ties the current block to the previous block (s). According to embodiments the transactions may be inter-subnet messages, ingress messages and signalling messages .

According to embodiments, the input blocks 1801, 1802 and 1803 may be created by a proof-of-stake consensus-protocol .

However, it should be noted that the input blocks generated by the consensus component do not need to be chained together according to embodiments. Rather any consensus protocol that reaches some kind of consensus be- tween the nodes of a subnet on the processing order of received messages may be used according to embodiments.

FIG. 19 shows a more detailed view of a net- working component 1900, which is configured to run a net- working protocol. The networking component 1900 may be e.g. a more detailed embodiment of the networking component 64 shown in FIG. 6. The networking component 1900 comprises a unicast component 1910 configured to perform a node-to- node communication, a broadcast component 1920 configured to perform an intra-subnet communication and a cross-net component 1930 configured to perform an inter-subnet com- munication .

Referring now to Fig. 20, a more detailed block diagram of a network node 10 according to embodiments of the invention is shown, e.g. of the network 100 of FIG. 1. The network node 10 establishes a computing node that may perform computing functions and may hence be generally em- bodied as computing system or computer. The network node 10 may be e.g. a server computer. The network node 10 may be configured to perform a computer-implemented method for charging a use of network resources of a distributed net- work. The network node 10 may be operational with numerous other general purpose or special purpose computing system environments or configurations. The network node 10 may be described in the general context of computer system-executable instruc- tions, such as program modules, being executed by a com- puter system. Generally, program modules may include rou- tines, programs, objects, components, logic, data struc- tures, and so on that perform particular tasks or implement particular abstract data types. The network node 10 is shown in the form of a general-purpose computing device. The components of network node 10 may include, but are not limited to, one or more processors or processing units 2015, a system memory 2020, and a bus 2016 that couples various system components including system memory 2020 to processor 2015.

Bus 2016 represents one or more of any of sev- eral types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, Enhanced ISA (EISA) bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component In- terconnect (PCI) bus.

Network node 10 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by network node 10, and it includes both volatile and non-volatile media, removable and non-removable media.

System memory 2020 can include computer system readable media in the form of volatile memory, such as random access memory (RAM) 2021 and/or cache memory 2022. Network node 2010 may further include other removable/non- removable, volatile/non-volatile computer system storage media. By way of example only, storage system 2023 can be provided for reading from and writing to a non-removable, non-volatile magnetic media (not shown and typically called a "hard drive"). Although not shown, a magnetic disk drive for reading from and writing to a removable, non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable, non- volatile optical disk such as a CD-ROM, DVD-ROM or other optical media can be provided. In such instances, each can be connected to bus 2016 by one or more data media inter- faces. As will be further depicted and described below, memory 2020 may include at least one computer program prod- uct having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodi- ments of the invention.

Program/utility 2030, having a set (at least one) of program modules 2031, may be stored in memory 2020 by way of example, and not limitation, as well as an oper- ating system, one or more application programs, other pro- gram modules, and program data. Each of the operating sys- tem, one or more application programs, other program mod- ules, and program data or some combination thereof, may include an implementation of a networking environment. Pro- gram modules 2031 generally carry out the functions and/or methodologies of embodiments of the invention as described herein. Program modules 2031 may carry out in particular one or more steps of a computer-implemented method for providing a user of a distributed network access to compu- tational results computed by the distributed network, e.g. of one or more steps of the methods as described above.

Network node 10 may also communicate with one or more external devices 2017 such as a keyboard or a pointing device as well as a display 2018. Such communica- tion can occur via Input/Output (I/O) interfaces 2019. Still yet, network node 10 can communicate with one or more networks 40 such as a local area network (LAN), a general wide area network (WAN), and/or a public network (e.g., the Internet) via network adapter 2041. According to em- bodiments the network 2040 may be in particular a distrib- uted network comprising a plurality of network nodes 10, e.g. the network 100 as shown in FIG. 1. As depicted, network adapter 2041 communicates with the other components of network node 10 via bus 2016. It should be understood that although not shown, other hardware and/or software components could be used in conjunction with network node 10.

The network node 10 provides network resources for the corresponding distributed network. The network re- sources include in particular the processing unit 2015 and the memory 2020 including the storage system 2023.

Aspects of the present invention may be embod- ied as a system, in particular a distributed network com- prising a plurality of subnets, a method, and/or a computer program product. The computer program product may include a computer readable storage medium (or media) having com- puter readable program instructions thereon for causing a processor to carry out aspects of the present invention.

The computer readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device. The computer read- able storage medium may be, for example, but is not limited to, an electronic storage device, a magnetic storage de- vice, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. A computer readable storage medium, as used herein, is not to be construed as being transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses passing through a fiber-optic cable), or electrical signals transmitted through a wire.

Computer readable program instructions de- scribed herein can be downloaded to respective compu- ting/processing devices from a computer readable storage medium or to an external computer or external storage de- vice via a network, for example, the Internet, a local area network, a wide area network and/or a wireless network. The network may comprise copper transmission cables, opti- cal transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and/or edge serv- ers. A network adapter card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium within the respective com- puting/processing device.

Computer readable program instructions for carrying out operations of the present invention may be assembler instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine dependent in- structions, microcode, firmware instructions, state-set- ting data, or either source code or object code written in any combination of one or more programming languages, in- cluding an object oriented programming language such as Smalltalk, C++ or the like, and conventional procedural programming languages, such as the "C" programming language or similar programming languages.

Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, networks, apparatus (systems), and computer program products according to embodiments of the invention.

Computer readable program instructions accord- ing to embodiments of the invention may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other pro- grammable data processing apparatus, create means for im- plementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer read- able program instructions may also be stored in a computer readable storage medium that can direct a computer, a pro- grammable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable storage medium having instructions stored therein comprises an article of manufacture including instructions which implement aspects of the function/act specified in the flowchart and/or block diagram block or blocks.

The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a com- puter implemented process, such that the instructions which execute on the computer, other programmable apparatus, or other device implement the functions/acts specified in the flowchart and/or block diagram block or blocks.

The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of networks, systems, methods, and computer program products according to various embod- iments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the spec- ified logical function (s). In some alternative implementa- tions, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality in- volved.

While there are shown and described presently preferred embodiments of the invention, it is to be dis- tinctly understood that the invention is not limited thereto but may be otherwise variously embodied and prac- ticed within the scope of the following claims.