Blockchain Enabled Credible Energy Trading at the Edge of the Internet of Things
Abstract
:1. Introduction
- This paper proposes a blockchain-based energy trading framework at the Edge of the Internet of Things, enabling energy trading to be executed in a decentralized centralized, transparent and secure environment. Each ECS collects surplus energy from multiple IoTDs in order to provide it to the IoTDs that need it urgently at a given moment. Without a central authority, we adopt blockchain to enable automatic, efficient and verified transactions in the energy trading framework. More specifically, we propose smart contract-based trading mechanisms to enhance the system efficiency of automatic transactions.
- The corresponding task valuation depreciation function is proposed based on the variation of the task valuation of energy collection of ECS with the degree of urgency of energy consumption.
- We designed ESWM-StM based on smart contracts to automatically activate the transactions with the aim of enhancing the expected social welfare while maximizing the energy demand of ECS and attracting IoTDs to participate in energy sharing in the long term. We prove that the proposed The ESWM-StM mechanism is computationally efficient and is individually rational, budget balanced and truthful. Furthermore, ESWM-StM can improve the expected social welfare compared with the traditional double auction mechanism.
- Simulation results show that the incentive mechanism proposed in this paper can distribute ECS’s energy collection tasks to multiple IoTDs to better meet energy demand, and compared to the baseline approach [9], the incentive mechanism in this paper can attract more users to participate and enhance the expected social welfare.
2. Related Research
3. Transaction Framework
3.1. The Entities for the Framework
- ECS: There are two types of ECS: energy collectors and blockchain nodes. As shown in Figure 1, the energy collector is the ECS that conducts energy transactions with the IoTDs. It is in charge of collecting idle energy resources and utilizing a mechanism to ensure that the entire energy trading framework operates properly and efficiently. The blockchain node is responsible for providing a secure and trusted environment for energy transactions between the ECS and the IoTDs through smart contracts that record the detailed auction process. Furthermore, in our framework, only the blockchain node can be a trusted authority, which generates keys for each gaming player by using asymmetric encryption algorithms.
- IoTD: Different IoTDs provide idle energy resources to ECS that are closer to them. Depending on the amount of energy required by ECS, IoTDs dynamically share energy with ECS on a one-to-one or multi-to-one basis.
3.2. The Key Operations for the Framework
- System initialization: Each player joins the framework and receives their own dedicated address and public and private key in the blockchain system. Then, they will be given a set number of resource coins, which are the virtual digital currency used in the blockchain system.
- Resource allocation and payment: Each transaction has its own smart contract for automatically recording player allocations and payments, thus ensuring player security. Details of the smart contract design can be found in Section 5.
- Detail transaction and block generation: Any operations in the smart contract will be broadcast to the blockchain network as transactions. After that, each blockchain node adds transactions to its transaction pool. A blockchain node may have the opportunity to construct some transactions into a new block over time using a consensus mechanism such as Proof-of-Work or Proof-of-Stake.
- Public auditing: After a successful block construction, it is broadcasted to the blockchain network and audited by all blockchain nodes to determine whether the transactions in the block are correct or not. A correct block will be added to the blockchain’s tail.
4. System Model and Problem Statement
- (1)
- ECS:
- (2)
- IoTD:
- (3)
- Crowdsourcing Platform:
5. Algorithm Design
5.1. Ideal Economic Properties
- Personal rationality: incentives are personally rational if the auction parties have non-negative utility in reporting their true valuations and costs.
- Budget balanced: The incentive is said to be budget balanced if the fee charged by the platform to ECSs at the end of the auction process is not less than the fee paid to IoTDs.
- Computational efficiency: An incentive is said to be computationally efficient if it runs in polynomial time and is computationally effective.
- Truthfulness: An incentive is said to be truthful if neither party to the auction can obtain a higher utility by altering their bidding information.
5.2. Specific Steps of Algorithm Design
5.2.1. Winner Selection
Algorithm 1 ECS Winner Algorithm |
Input:, K, Output:,
|
Algorithm 2 IoTD Winner Algorithm |
Input:, K, Output:,
|
5.2.2. Matching Algorithm
Algorithm 3 Dynamic Matching Algorithms to meet electricity demand |
Input:, , , , Output:, ,
|
5.2.3. Price Allocation Strategy
Algorithm 4 Pricing Optimization Algorithm |
Input:, , Output:,
|
Algorithm 5 ESWM-StM |
|
6. Performance Analysis
6.1. Individual Rationality
6.2. Budget Balance
6.3. Computational Efficiency
6.4. Truthfulness
7. Simulation Analysis
7.1. Simulation Model
- (1)
- An “upload” function that enables ECSs and IoTDs to upload messages to smart contracts.
- (2)
- A “double auction” function that enables the ECSs to purchase the IoTDs’ energy.
7.2. Algorithm Complexity Analysis
7.3. Experiment Setting
7.4. Results and Discussion
8. Conclusions
Author Contributions
Funding
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Gubbi, J.; Buyya, R.; Marusic, S.; Palaniswami, M. Internet of Things (IoT): A vision, architectural elements, and future directions. Future Gener. Comput. Syst. 2013, 29, 1645–1660. [Google Scholar] [CrossRef] [Green Version]
- Kumar, K.; Liu, J.; Lu, Y.H.; Bhargava, B. A survey of computation offloading for mobile systems. Mob. Netw. Appl. 2013, 18, 129–140. [Google Scholar] [CrossRef]
- Patel, M.; Naughton, B.; Chan, C.; Sprecher, N.; Abeta, S.; Neal, A. Mobile-edge computing introductory technical white paper. White Pap. Mob.-edge Comput. MEC Ind. Initiat. 2014, 29, 854–864. [Google Scholar]
- Satyanarayanan, M.; Bahl, P.; Caceres, R.; Davies, N. The case for vm-based cloudlets in mobile computing. IEEE Pervasive Comput. 2009, 8, 14–23. [Google Scholar] [CrossRef]
- Kumar, K.; Lu, Y.H. Cloud computing for mobile users: Can offloading computation save energy? Computer 2010, 43, 51–56. [Google Scholar] [CrossRef]
- Sudevalayam, S.; Kulkarni, P. Energy harvesting sensor nodes: Survey and implications. IEEE Commun. Surv. Tutorials 2010, 13, 443–461. [Google Scholar] [CrossRef] [Green Version]
- Aitzhan, N.Z.; Svetinovic, D. Security and privacy in decentralized energy trading through multi-signatures, blockchain and anonymous messaging streams. IEEE Trans. Dependable Secur. Comput. 2016, 15, 840–852. [Google Scholar] [CrossRef]
- Wu, S.; Chen, Y.; Wang, Q.; Li, M.; Wang, C.; Luo, X. CReam: A smart contract enabled collusion-resistant e-auction. IEEE Trans. Inf. Forensics Secur. 2018, 14, 1687–1701. [Google Scholar] [CrossRef]
- Zhang, X.; Xue, G.; Yu, R.; Yang, D.; Tang, J. Truthful incentive mechanisms for crowdsourcing. In Proceedings of the 2015 IEEE Conference on Computer Communications (INFOCOM), Kowloon, Hong Kong, 26 April–1 May 2015; pp. 2830–2838. [Google Scholar]
- Liang, C.W.; Hsu, J.Y.J.; Lin, K.J. Auction-based resource access protocols in IoT service systems. In Proceedings of the 2014 IEEE 7th International Conference on Service-Oriented Computing and Applications, Matsue, Japan, 17–19 November 2014; pp. 49–56. [Google Scholar]
- Choi, Y.; Lim, Y. Optimization approach for resource allocation on cloud computing for iot. Int. J. Distrib. Sens. Netw. 2016, 12, 3479247. [Google Scholar] [CrossRef] [Green Version]
- Li, Z.; Yang, Z.; Xie, S.; Chen, W.; Liu, K. Credit-based payments for fast computing resource trading in edge-assisted Internet of Things. IEEE Internet Things J. 2019, 6, 6606–6617. [Google Scholar] [CrossRef]
- Sun, W.; Liu, J.; Yue, Y.; Zhang, H. Double auction-based resource allocation for mobile edge computing in industrial internet of things. IEEE Trans. Ind. Inform. 2018, 14, 4692–4701. [Google Scholar] [CrossRef]
- Jin, A.L.; Song, W.; Zhuang, W. Auction-based resource allocation for sharing cloudlets in mobile cloud computing. IEEE Trans. Emerg. Top. Comput. 2015, 6, 45–57. [Google Scholar] [CrossRef]
- Baek, D.; Chen, J.; Choi, B.J. Small profits and quick returns: An incentive mechanism design for crowdsourcing under continuous platform competition. IEEE Internet Things J. 2019, 7, 349–362. [Google Scholar] [CrossRef]
- Liu, S.; Yu, Y.; Guo, L.; Yeoh, P.L.; Ni, Q.; Vucetic, B.; Li, Y. Truthful Online Double Auctions for Mobile Crowdsourcing: An On-demand Service Strategy. IEEE Internet Things J. 2022, 9, 16096–16112. [Google Scholar] [CrossRef]
- He, Y.; Li, H.; Cheng, X.; Liu, Y.; Yang, C.; Sun, L. A blockchain based truthful incentive mechanism for distributed P2P applications. IEEE Access 2018, 6, 27324–27335. [Google Scholar] [CrossRef]
- Kang, J.; Yu, R.; Huang, X.; Maharjan, S.; Zhang, Y.; Hossain, E. Enabling localized peer-to-peer electricity trading among plug-in hybrid electric vehicles using consortium blockchains. IEEE Trans. Ind. Inform. 2017, 13, 3154–3164. [Google Scholar] [CrossRef]
- Yao, H.; Mai, T.; Wang, J.; Ji, Z.; Jiang, C.; Qian, Y. Resource trading in blockchain-based industrial Internet of Things. IEEE Trans. Ind. Inform. 2019, 15, 3602–3609. [Google Scholar] [CrossRef]
- Aggarwal, S.; Kumar, N. A consortium blockchain-based energy trading for demand response management in vehicle-to-grid. IEEE Trans. Veh. Technol. 2021, 70, 9480–9494. [Google Scholar] [CrossRef]
- Gao, M.; Yu, X.; Ren, L.; Cai, H.; Wang, Z.; Zhou, Y. A Renewable Energy Certificate Trading System Based on Blockchain. In Proceedings of the 2021 IEEE 20th International Conference on Trust, Security and Privacy in Computing and Communications (TrustCom), Shenyang, China, 20–22 October 2021; pp. 1514–1518. [Google Scholar]
- Kalakova, A.; Zhanatbekov, A.; Surash, A.; Nunna, H.K.; Doolla, S. Blockchain-based decentralized transactive energy auction model with demand response. In Proceedings of the 2021 IEEE Texas Power and Energy Conference (TPEC), College Station, TX, USA, 2–5 February 2021; pp. 1–6. [Google Scholar]
- Thompson, M.J.; Sun, H.; Jiang, J. Blockchain-based peer-to-peer energy trading method. CSEE J. Power Energy Syst. 2021, 8, 1318–1326. [Google Scholar]
- Yang, J.; Dai, J.; Gooi, H.B.; Nguyen, H.D.; Wang, P. Hierarchical Blockchain Design for Distributed Control and Energy Trading within Microgrids. IEEE Trans. Smart Grid 2022, 13, 3133–3144. [Google Scholar] [CrossRef]
- Doan, H.T.; Cho, J.; Kim, D. Peer-to-peer energy trading in smart grid through blockchain: A double auction-based game theoretic approach. IEEE Access 2021, 9, 49206–49218. [Google Scholar] [CrossRef]
- Hou, D.; Zhang, J.; Huang, S.; Peng, Z.; Ma, J.; Zhu, X. Privacy-Preserving Energy Trading Using Blockchain and Zero Knowledge Proof. In Proceedings of the 2022 IEEE International Conference on Blockchain (Blockchain), Espoo, Finland, 22–25 August 2022; pp. 412–418. [Google Scholar]
- Jogunola, O.; Tsado, Y.; Adebisi, B.; Hammoudeh, M. VirtElect: A peer-to-peer trading platform for local energy transactions. IEEE Internet Things J. 2021, 9, 6121–6133. [Google Scholar] [CrossRef]
- Lin, H.; Yang, Z.; Hong, Z.; Li, S.; Chen, W. Smart contract-based hierarchical auction mechanism for edge computing in blockchain-empowered IoT. In Proceedings of the 2020 IEEE 21st International Symposium on “A World of Wireless, Mobile and Multimedia Networks” (WoWMoM), Cork, Ireland, 31 August–3 September 2020; pp. 147–156. [Google Scholar]
- Friedman, D.; Friedman, D.P.; Rust, J. The Double Auction Market: Institutions, Theories, and Evidence; Westview Press: Boulder, CO, USA, 1993; Volume 14. [Google Scholar]
Papers | Architectures | Game or Auction | Trading Resources | Security of Transactions | Quantitative Relationship between Trading Parties | Utilities for Maximization | Considered QoS |
---|---|---|---|---|---|---|---|
[12] | ECA | Iterative double auction | Computing resource | Yes | one to more | Social welfare | Efficiency of computing, Participants’ privacies |
[15] | None | Double auction | None | None | one to one | Expected social welfare | Long-term attraction |
[18] | ECA | Iterative double auction | Electricity | Yes | one to more | Social welfare | Security and privacy |
[19] | CBA | Stackelberg game | Computing resource | Yes | more to more | Individual utility | The power and computation |
[20] | ECA | Double auction | Energy | Yes | one to more | Social welfare | Security and privacy |
[22] | CBA | Double auction | Energy | Yes | one to one | Social welfare | Preferences and needs of the peers, Efficiency of the system |
[23] | CBA | Double auction | Energy | Yes | one to one | Social welfare | Energy costs, Empowers consumers |
[25] | CBA | Double auction, Stackelberg game | Energy | Yes | one to one | Social welfare | Security and privacy |
[26] | CBA | Double auction | Energy | Yes | one to one | Social welfare | Security and privacy |
This paper | ECA | Double auction | Energy | Yes | one to more | Expected social welfare | Long-term attraction, Variation of the task valuation, Energy costs |
Parameters | Meaning |
---|---|
A j-th ECS | |
A set of ECSs | |
A bidding information submitted by | |
The energy required for | |
The amount of energy gets from | |
The variation of the task valuation of energy collection of | |
The moment when the task valuation starts to depreciate | |
The moment when the task valuation is zero | |
Depreciation rate of the task valuation after the deadline | |
A i-th IoTD | |
A set of IoTDs | |
cost per unit of energy provided by | |
The punctuality level of in providing the required energy | |
K | Maximum number of task requests |
The winning ECSs | |
The winning IoTDs | |
The temporary fee for | |
The temporary payment for | |
The efficiency of the energy transfer between and | |
The transmission distance between and | |
Output power of | |
Receiving power of | |
Total energy received by | |
The moment completed the energy collection task | |
Remaining energy of |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Wang, D.; Du, X.; Zhang, H.; Wang, Q. Blockchain Enabled Credible Energy Trading at the Edge of the Internet of Things. Mathematics 2023, 11, 630. https://doi.org/10.3390/math11030630
Wang D, Du X, Zhang H, Wang Q. Blockchain Enabled Credible Energy Trading at the Edge of the Internet of Things. Mathematics. 2023; 11(3):630. https://doi.org/10.3390/math11030630
Chicago/Turabian StyleWang, Dongdong, Xinyu Du, Hui Zhang, and Qin Wang. 2023. "Blockchain Enabled Credible Energy Trading at the Edge of the Internet of Things" Mathematics 11, no. 3: 630. https://doi.org/10.3390/math11030630
APA StyleWang, D., Du, X., Zhang, H., & Wang, Q. (2023). Blockchain Enabled Credible Energy Trading at the Edge of the Internet of Things. Mathematics, 11(3), 630. https://doi.org/10.3390/math11030630