Next Article in Journal
A Geometric Approach for Real-Time Forward Kinematics of the General Stewart Platform
Previous Article in Journal
Influence of the Shod Condition on Running Power Output: An Analysis in Recreationally Active Endurance Runners
Previous Article in Special Issue
Smart Grid Stability Prediction Model Using Neural Networks to Handle Missing Inputs
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Blockchain-Based Peer-to-Peer Transactive Energy Management Scheme for Smart Grid System

1
Department of Computer Science and Engineering, Institute of Technology, Nirma University, Ahmedabad 382481, Gujarat, India
2
Computer Science and Engineering Department, R. N. G. Patel Institute of Technology, Bardoli, Surat 394620, Gujarat, India
3
National Research and Development Institute for Cryogenic and Isotopic Technologies—ICSI Rm. Valcea, Uz-inei Street, No. 4, P.O. Box 7 Raureni, 240050 Ramnicu Valcea, Romania
4
Software Engineering Department, College of Computer and Information Sciences, King Saud University, Riyadh 12372, Saudi Arabia
5
Computer Science Department, Community College, King Saud University, Riyadh 11437, Saudi Arabia
6
Centre for Inter-Disciplinary Research and Innovation, University of Petroleum and Energy Studies, Dehradun 248007, Uttarakhand, India
7
Ioan Aşchilean Faculty of Civil Engineering, Civil Engineering and Management Department & Research, Technological Development and Innovation Centre in Civil and Building Services Engineering, Technical University of Cluj—Napoca, C-tin Daicoviciu Street, No. 15, 400020 Cluj-Napoca, Romania
8
Traian Candin Mihălţan Faculty of Building Services Engineering, Technical University of Cluj—Napoca, Bd. 21 Decembrie 1989, No. 128-130, 400604 Cluj-Napoca, Romania
*
Authors to whom correspondence should be addressed.
Sensors 2022, 22(13), 4826; https://doi.org/10.3390/s22134826
Submission received: 19 April 2022 / Revised: 12 June 2022 / Accepted: 24 June 2022 / Published: 26 June 2022
(This article belongs to the Special Issue Resilience Engineering for Smart Energy Systems)

Abstract

:
In Smart Grid (SG), Transactive Energy Management (TEM) is one of the most promising approaches to boost consumer participation in energy generation, energy management, and establishing decentralized energy market models using Peer-to-Peer (P2P). In P2P, a prosumer produces electric energy at their place using Renewable Energy Resources (RES) such as solar energy, wind energy, etc. Then, this generated energy is traded with consumers (who need the energy) in a nearby locality. P2P facilitates energy exchange in localized micro-energy markets of the TEM system. Such decentralized P2P energy management could cater to diverse prosumers and utility business models. However, the existing P2P approaches suffer from several issues such as single-point-of-failure, network bandwidth, scalability, trust, and security issues. To handle the aforementioned issues, this paper proposes a Decentralized and Transparent P2P Energy Trading (DT-P2PET) scheme using blockchain. The proposed DT-P2PET scheme aims to reduce the grid’s energy generation and management burden while also increasing profit for both consumers and prosumers through a dynamic pricing mechanism. The DT-P2PET scheme uses Ethereum-blockchain-based Smart Contracts (SCs) and InterPlanetary File System (IPFS) for the P2P energy trading. Furthermore, a recommender mechanism is also introduced in this study to increase the number of prosumers. The Ethereum SCs are designed and deployed to perform P2P in real time in the proposed DT-P2PET scheme. The DT-P2PET scheme is evaluated based on the various parameters such as profit generation (for prosumer and consumer both), data storage cost, network bandwidth, and data transfer rate in contrast to the existing approaches.

1. Introduction

With the advancement of technologies, the penetration of rooftop Solar PhotoVoltaics (SPV) [1] and Distributed Energy Resources (DER) such as Electric Vehicles (EVs) and Battery Energy Storage Systems (BESS) has increased consumer participation in energy generation and management in the Smart Grid (SG) system [2,3,4,5]. In SG, one of the most crucial approaches, i.e., Peer-to-Peer (P2P) transactive energy trading, reduces the burden on electric utility companies. P2P increases renewable energy deployment, balances demand–response, and adds flexibility to the grid. In traditional energy supply, consumers purchase energy from retailers/utilities through time-of-use/fixed tariffs. In line with this, prosumers (who produce as well as consume or self-consumers) [6] can sell excess energy back to the SG using the buy-back rate. Nevertheless, tariffs for energy supply to consumers are higher than the buy-back rates for the prosumers. Here, the involvement of retailers/utility companies is required for energy trading. Furthermore, P2P establishes decentralized energy market models by generating energy from renewable energy sources such as SPV and windmills [7]. In P2P, two or more SG-connected prosumers and consumers transact energy without the involvement of grid or utility companies [8]. Numerous research work has already been done in this regard [9,10,11,12,13]. Javadi et al.  [9] analyzed a fully decentralized model for energy trading inside a Transactive Energy Management (TEM) system and presented a P2P trading framework. Consumers receive get a good offer from prosumers at a reasonable price in a decentralized system. So, P2P necessitates transparency while dealing with the consumers in a decentralized system [14].
Based on the available literature on P2P energy trading, energy markets can be categorized into four categories: (i) Full P2P market: Here, energy is traded directly between prosumers and consumers. It has scaling issues (i.e., determining a target price) related to the P2P negotiating process and the local energy balance that SG operators manage. For example, Sorin et al. [15] advocated for a comprehensive P2P network for both prosumers and consumers without the need for a centralized body. (ii) Community-based markets: Here, the SG community coordinator is responsible for negotiating prices among all prosumers and consumers to have an equilibrium price. Next, a P2P trading model for microgrid demand–response was proposed by Liu et al. utilizing a dynamic internal pricing model in which intrinsic prices are used for trading among local prosumers and consumers [10]. The price change can be influenced by a consumer’s perception of how much they are willing to pay for an item at a particular time, competing pricing, and other variables [16]. (iii) Hybrid P2P energy market: Here, consumers and prosumers exchange energy with one another and with the grid also without relying on a third party. This local energy market can be implemented using the P2P mechanism. This P2P approach manages the market’s local trading and manages the prosumer to grid energy transfers [17]. (iv) Localized P2P market: It is designed for Plug-in Hybrid Electric Vehicle (PHEVs) and does not rely on a trusted third party. In this concept, an interactive double auction process for charging and discharging PHEVs is designed to improve societal welfare. It also offers great security and privacy protection [18]. Then, there is the micro-market, which maintains competition among utility providers for social welfare and ensures network restrictions [11].
In SG, decentralized energy could form a TEM system and revolutionize the marketplace. Several research works have been conducted so far for P2P energy trading, but they have not been explored fully [11,12,13]. The existing infrastructure accomplished a centralized platform (easy to deploy, design, and control) for P2P energy trading to satisfy the energy needs of consumers [19,20]. It also minimizes duplicacy, is easy to access, and is cost-effective [21,22]. However, when trading requests and consumer energy demands rise, the typical centralized SG systems performance (computation and communication costs), delay, network bandwidth, and dependability deteriorate [2]. Many other issues, for instance, single-point-failure, trust, privacy, and security issues also exist [23,24].
Motivated by the aforementioned gap, this paper proposes the DT-P2PET scheme, which is a blockchain-based Decentralized and Transparent P2P Energy Trading scheme. Blockchain is a digital ledge technique that has proven its effectiveness in various applications such as healthcare and cryptocurrencies. Figure 1 represents the growth of the cryptocurrencies market based on blockchain technology, which is growing exponentially and will reach USD 2.96 million by 2030 [25]. The existing blockchain-based energy trading system stores the energy transactions on the blockchain inefficiently, as the cost of storing data on it is high. However, DT-P2PET incorporates the InterPlanetary File System (IPFS) mechanism (off-chain storage system) to store data in a decentralized way that resulted in higher throughput [21,26,27,28]. Furthermore, DT-P2PET can design Smart Contracts (SCs) in Solidity using a Remix Integrated Development Environment (IDE) with different roles and permissions to all stakeholders of the P2P trading such as prosumers, consumers, and SG administrators.
In DT-P2PET, stakeholders are registered on the Ethereum blockchain through the Ethereum client and communicate remotely using 5G-enabled Tactile Internet (TI) to provide high bandwidth during communication and handle data redundancy in the Ethereum-blockchain network [29,30,31]. Next, based on the P2P trading results, DT-P2PET proposes a recommender system to increase energy generation through SPV (by increasing the number of prosumers) in the nearby locality of a particular region to reduce the demand–response gap.

1.1. Research Contributions

The following are the research contributions of this paper.
  • In this paper, we have proposed a blockchain-based decentralized and transparent P2P energy trading scheme, i.e., DT-P2PET.
  • SCs are designed to minimize the energy generation burden on the grid and benefit consumers as well as prosumers through profit generation in real time.
  • The performance of the proposed DT-P2PET scheme is evaluated in contrast with existing approaches based on different evaluation metrics such as profit generation and low bandwidth utilization. Next, data storage cost is also reduced using IPFS (an off-chain storage system) with Ethereum blockchain.

1.2. Organization of the Paper

The rest of the paper is structured as follows. First, Section 2 narrates the existing works on P2P energy trading and presents a comparative analysis of the proposed DT-P2PET scheme with state-of-the-art blockchain-based P2P approaches. Then, the system model and problem formulation of the proposed DT-P2PET scheme is discussed in Section 3. Next, Section 4 highlights the workflow of the proposed DT-P2PET scheme. Furthermore, the performance evaluation of DT-P2PET is discussed in detail in Section 5, and Section 6 concludes the entire research work with future advancements.

2. Related Work

Recently, distributed P2P energy trading has been investigated at the microgrid level. Liu et al. [24] proposed a P2P paradigm for neighboring microgrids to save the energy bill and improve DER utilization. Next, Long et al. [11] proposed a P2P trading system and used a game-theoretic approach for the decision-making process. The strategy accomplishes both the optimality and fairness in P2P energy trading, but it necessitates batteries. Dorri et al. [12] demonstrated the Secure Private Energy Trading (SPB) platform as a Proof of Concept (PoC) by using blockchain. For energy trading, SPB minimizes the cost and processing time. However, it lacks scalability by using a bigger testbed in which various energy consumers and providers negotiate and trade energy.
Seven et al. [13] introduced a SC-enabled public Ethereum network for P2P trading. To enable blockchain-based energy trading, the authors proposed an auction-based bidding platform that connects multiple technologies, such as Solidity, Remix, Metamask, Infuro.io, and Ropsten. Then, Han et al. [32] introduced a novel blockchain platform framework to connect producers’ resources with consumers’ needs. Here, more than twenty-five people can trade energy simultaneously using the SC. However, it does not consider expanding the platform’s capabilities, which leads to scalability issues. In light of the blockchain trilemma’s characteristics, Wongthongtham et al. [33] investigated the most effective application of blockchain for P2P energy trading. The result shows that the method is cost-effective.
Moreover, Li He et al. [34] proposed an energy pawn (EP)-based energy sharing structure in a community market with prosumers and consumers. It increases the revenue generated by the EP. Here, customized dynamic pricing and forecasting-based energy capacity scheduling mechanism are presented. However, it lacks the implementation for more accurate energy forecasting, which would improve market efficiency even more. Mehdinejad et al. [35] have proposed blockchain technology-based mechanism for P2P energy token trading. The proposed approach ensures a worldwide and realistic solution while demanding no personal information from consumers and prosumers. However, it lacks implementation in real-life applications. Several works exist for P2P energy trading, but still, it has not been explored fully [7,36]. So, we propose the DT-P2PET scheme, which is a blockchain-based decentralized and transparent P2P energy trading scheme.
In the proposed DT-P2PET scheme, prosumers and consumers are connected to the Ethereum blockchain and perform P2P energy trading. It helps to maximizes the SG revenue, profits of consumer and prosumer, and reduce burden on the grid. Next, the proposed scheme improves the scalability and latency of the system during trade. Then, an off-chain storage system, i.e., IPFS, is incorporated with the Ethereum blockchain that reduces energy data storage cost. More, Table 1 presents a comparative analysis of the proposed DT-P2PET scheme and existing approaches.

3. System Model and Problem Formulation

This section presents the system model of the proposed DT-P2PET scheme with problem formulation of P2P energy trading in the SG system.

3.1. System Model

Figure 2 shows the DT-P2PET’s system model, which comprises several stakeholders such as SG { S S G , S c o n s u m e r , S p r o s u m e r } , prosumers ( S p r o s u m e r ) , consumers ( S c o n s u m e r ), IPFS protocol, wallets, and the communication link between S p r o s u m e r and S c o n s u m e r .
In the beginning, all stakeholders, i.e., { S S G , S c o n s u m e r , S p r o s u m e r } are registered on the Ethereum blockchain for the community-based transactive energy market. Wallet addresses with public and private keys are created; the consumer’s wallet balance is denoted by W C , and for prosumers, it is denoted by W P . Then, a prosumer generates energy using SPV (at their place) and first consumes energy by himself ( ξ n , c ). Then, the prosumer initiates a trading request to sell excessive energy in the transactive energy market through a decentralized Ethereum-blockchain platform using SC. The S G administrator verifies the request; then, the amount of energy needed to be traded is published on the blockchain.
The published information on energy is accessible by all buyers (i.e., consumers/prosumers/grid). The prosumers select any type of consumer (residential houses, commercial buildings, EV owners, etc.) based on the shortest distance and minimum battery charging time. The proposed DT-P2PET scheme incorporates a user interface and decentralized apps that engage all stakeholders with the SC. The DT-P2PET scheme publishes trading information and maintains different information of prosumer and consumer, location details, consumers’ energy requirement, and prosumers’ energy capacity to transact. Here, three different scenarios are captured for trading: (i) prosumers to consumer trading, (ii) prosumers to another prosumer, and (iii) prosumers to grid.
The prosumers-to-consumer trading takes place when excessive energy is required to sell to the needed consumer. Then, prosumer-to-prosumer trading will be executed when a particular prosumer energy demand is higher than the energy he is generating for a particular day. The generated energy is insufficient to meet his own demand; in that scenario, he can use the DT-P2PET scheme to purchase energy from another available prosumer. For instance, if the generated energy is 9 kWh and the required energy is 12 kWh, he could purchase 3 kWh from another prosumer using the DT-P2PET scheme. Next, the grid can acquire energy through traditional methods or the proposed DT-P2PET scheme in case blackout or disruption of energy supply is there. In such a case, the grid will act as a consumer, and trading will be executed between prosumer to the grid using the same approach for energy trading.
As the Ethereum blockchain is not designed to store huge files, hence, we employed the IPFS mechanism in the proposed DT-P2PET scheme. To manage the demand of consumers in the TEM system and motivate the prosumer for P2P, a dynamic pricing mechanism is applied based on the mean of the buying and selling price of the energy from the grid. The DT-P2PET scheme reduces the energy demand of consumers from the grid and allows them to voluntarily reduce their energy usage (from the grid) during peak hours [39]. The proposed scheme designed a unique SC for this P2P mechanism. When SC requirements are met, the energy transaction is completed; otherwise, the transaction is reverted, and an error notice is published to the Ethereum blockchain.
Once the P2P trading request is approved, the public key is generated for both traders (consumer/prosumer). The private key is generated from the public key, and the user’s wallet address is created using both keys. Wallet addresses are exchanged by the prosumer and consumer so that consumers can pay for the transacted energy. Here, a wallet must contain a sufficient amount of E t h e r (i.e., Ethereum cryptocurrency), W C > α . Here, α is the actual amount to be paid by the consumer to the prosumer. Next, the consumer has to pay the amount α in the prosumer’s wallet W P . The wallet’s balance is updated according to the DT-P2PET scheme, which is as follows:
W P = W P + α
W C = W C α

3.2. Problem Formulation

In the proposed DT-P2PET scheme, P2P energy trading guarantees energy transaction security using a distributed ledger system Ethereum blockchain that can handle various issues of centralized systems such as single-point-failure, security, privacy issues, etc. The DT-P2PET scheme comprises peers in a decentralized database, each with a digital ledger, i.e., Ethereum blockchain. A consensus algorithm is used by the network to validate each energy transaction between two peers participating in P2P. Energy (E) is traded between c o n s u m e r s and p r o s u m e r s for generated energy ( E p r o s u m e r s G ) through SPV using price ( E p r i c e ) and also emphasis on the distance ( d i s t ) between c o n s u m e r s (buyers) and p r o s u m e r s (sellers). The objectives of the proposed DT-P2PET scheme are to minimize the energy generation and supply ( χ ) burden on the grid. Next, it intends to increase the profit ( p r o f i t ) of both consumers and prosumers using a dynamic pricing mechanism.
Therefore, the objective of the proposed DT-P2PET scheme can be denoted as follows.
Θ = m i n ( χ ) + m a x ( p r o f i t )
Subject to the following constraints.
C 1 : E c o n s u m e r > ϕ C 2 : E p r o s u m e r s G > ϕ C 3 : E p r i c e 0 C 4 : χ { f i n i t e , E t h r e s }
Next, a p r o s u m e r publishes energy data ( ξ n , p > 0 ) on the Ethereum blockchain for trading; then, the difference between revenues and expenditure is considered as the monetary advantage ( φ ) to the group of prosumers, which is as follows
φ = ω g , p [ E d ] ω g , c [ E s ]
Here, E s and E p show the energy supply and energy demand with respect to prosumers and consumers. Then, the energy buying price by the grid is ω g , p , and the selling price by the grid is ω g , c . Next, ω g , p > ω g , c as merchants (utility supplier) pay prosumers less for their surplus generation since it is considered as non-executable. Hence, a P2P trading price may benefit prosumers while transacting energy with the consumer instead of the grid. So, to achieve it, the proposed DT-P2PET scheme uses a mid-market rate for the pricing mechanism for P2P energy trading. Abbreviation Table shows all abbreviations used in this paper.

4. The Proposed Approach: DT-P2PET

Figure 3 represent the workflow of the proposed DT-P2PET scheme, which is divided into three phases: (i) Energy Generation, (ii) Energy Data Publishing, and (iii) Energy Trading using P2P. The first phase comprises energy generation, the second phase is data publishing over the Ethereum blockchain for trading, and the third phase is mainly composed of P2P energy trading.

4.1. Energy Generation

The first and most important step is to generate energy to consume and trade. The solar panels on the prosumer’s rooftop will generate energy for the prosumer. Prosumers may also use other RES to generate energy. Several factors can determine the amount of energy produced using solar panels [40,41] such as SPV capacity, time of the day, weather, and the location of the SPV. To generate a high amount of energy, the prosumer needs to install a higher capacity SPV. Following the energy generation, the prosumer must decide how much energy to consume and how much energy to use for P2P trading. The more energy used for trading, the more profit the prosumer will receive. If the prosumer lacks sufficient energy for trading, then the prosumer needs to generate the lacking energy for trading.
A prosumer can calculate the energy generation with the help of the following equation:
S P k W × S H × C = D k W h
where S P k W represents the prosumer’s SPV capacity (in kWh), S H represents the average number of sunlight hours received by SPV each day, C is the system-dependent parameter ranges between 0 and 1, and D K W h represents the prosumer’s daily energy generation (in kWh). Considering that the prosumer owns 2.5 KW of SPV and receives 6 h of sunlight each day on average, the prosumer’s daily energy generation would be 2.5 × 6 × 0.75 = 11.25 kWh. Here, D k W h is the summation of ξ n , c and ξ n , s .

4.2. Energy Data Publishing

After the generation of energy, the prosumer must publish details concerning surplus energy to perform trading. Other information about the prosumer, such as location, transaction history, etc. are retrieved from IPFS. A decentralized storage system can be utilized by integrating IPFS with the Ethereum blockchain. IPFS is a peer-to-peer file-sharing network that employs the Merkle direct acyclic graph data structure. It handles data de-duplication and speeds up the energy data-storing process. It hashes the energy data files that are uploaded and then allows users to search for files using the hashes. The proposed scheme uses IPFS to store data files and only broadcasts hashes on the Ethereum blockchain. Algorithm 1 shows the detailed steps for publishing energy data on the Ethereum blockchain and P2P trading.
The reason to use IPFS instead of the Ethereum blockchain for data storage is due to the high data storage cost of Ethereum, which is equivalent to 17,100 USD for 1 M B of data. A word in the Ethereum blockchain comprises 256 bits, and the Ethereum gas required to write a word on the Ethereum blockchain is 20,000 gas.
1 KB = 2 10 2 5 × 2000 gas
Let G be the current gas price and U be the current price of E t h e r (Ethereum’s cryptocurrency). Thus, the total cost for x words storage can be calculated as follows:
T = ( G × U × ( x × 20 , 000 ) 1 , 000 , 000 , 000 ) U S D

4.3. Energy Trading Using P2P

Once the energy data are published over the Ethereum blockchain, the prosumer must select a consumer from among the requested consumers with whom to trade energy depending on certain criteria, such as distance and amount of energy. These parameters are discussed as follows.

4.3.1. Distance

The prosumer must consider the distance (min( d i s t . )) between his/her place to the consumer’s place with whom the prosumer wishes to make a deal. The buyer (consumer/ another prosumer) must charge their batteries at the prosumer’s location, so distance is indeed a concern. As a result, both the consumer (buyer) and the producer (seller) must consider the distance between them due to the hidden traveling cost. If the distance between them is greater, the consumer’s travel costs will rise, reducing the profit claimed under the proposed scheme. Hence, the distance parameter is one of the crucial parameters in case of the proposed DT-P2PET scheme.
Algorithm 1 Publishing Energy Data on Ethereum blockchain and P2P Trading.
Input: Type of prosumer/consumer, location, σ , ϵ
{ ψ 1 , ψ 2 , ψ 3 , , ψ i } ψ denotes the list of prosumers and i denotes the number of prosumers.
{ θ 1 , θ 2 , θ 3 , , θ j } θ represents the consumers list and j denotes the number of consumers.
σ Purchasing price per unit for electric utility companies from prosumers.
ϵ Purchasing price per unit for consumers from electric utility companies.
μ Distance.
Output: α Dynamic price used for P2P trading.
1:
procedurePrice_mechanism( ψ , θ )
2:
     α = σ + ϵ 2
3:
    Update α
4:
end procedure
5:
p e e r [ e t h . a d d r e s s ] type, location
6:
if p e e r [ e t h . a d d r e s s ] upload for the first time then
7:
    if  p e e r [ e t h . a d d r e s s ] is prosumer then
8:
         ψ i p e e r [ e t h . a d d r e s s ] , i++
9:
    else
10:
         θ j p e e r [ e t h . a d d r e s s ] , j++
11:
    end if
12:
else
13:
    if  p e e r [ e t h . a d d r e s s ] is prosumer then
14:
        Update ψ
15:
    else
16:
        Update θ
17:
    end if
18:
end if// Procedure for selecting consumer.
19:
procedureCONSUMER( μ )
20:
    for  θ i θ  do
21:
        if  μ < T h r e s h o l d  then
22:
           Y= p e e r [ e t h . a d d r e s s ]
23:
           break
24:
           if Balance[Y] > = α  then
25:
               Trade with the consumer Y
26:
           else
27:
               CALL_CONSUMER()
28:
               Trade_Energy_and_Wallet_Update() using Equation (1).
29:
           end if
30:
        end if
31:
    end for
32:
end procedure

4.3.2. Amount of Energy

Aside from distance, the prosumer must consider that the consumer should have a battery/plug-in point to transfer the energy as well as how long the consumer’s battery takes to charge (i.e., amount of energy). Furthermore, the prosumer prefers a consumer who charges the battery in the shortest amount of time (min(charging time)). The amount of energy is a system-dependent parameter whose upper limit needs to be set by the grid.
If all conditions are met and both parties agree, then SC is executed on the Ethereum blockchain. Next, a token amount is transferred from the consumer’s E-wallet to the prosumer’s E-wallet. SC powers the accounting mechanism in P2P energy trading. The remaining payment will be instantly debited from the consumer’s e-wallet and sent to the prosumer’s e-wallet to ensure transparent transactions. The time-frame is defined as hourly for execution of energy trade for a particular price in the proposed scheme.
Energy trading prices are driven by three scenarios:
  • Scenario 1: This scenario describes the situation in which the total available surplus energy equals the demand ( ξ n , s = ξ n , d ). In other words, if prosumers engage in P2P trading, they will avoid having energy exchange with electric utility companies (due to low profit generation). The P2P trade price is calculated as follows:
    Ω c = Ω p = ω g , c + ω g , p 2
  • Scenario 2: In this scenario, the total accessible surplus energy exceeds the total demand ( ξ n , s > ξ n , d ). In other words, by participating in P2P trading, prosumers can not only supply energy to energy-deficient consumers but also trade a portion of energy to the different consumers or the electric utility company. The P2P trading buying price is determined in this scenario as follows.
    Ω c = ω g , c + ω g , p 2
    However, the selling price of energy to the utility company is calculated as follows:
    Ω p = Ω p Σ n η c ξ n , d + ω g , c E s Σ n η p ξ n , s .
  • Scenario 3: Here, the total available surplus energy is less than the total demand ( ξ n , s < ξ n , d ). In other words, if prosumers engage in P2P trading, they will be unable to fulfill the demand of consumers experiencing energy outages, compelling them to acquire extra energy by producing more or asking the consumer to acquire the energy from the utility companies themselves.
To motivate prosumers to participate in large amounts, a recommender system is presented where demanded energy exceeds surplus energy: for example, if a particular region has less surplus energy due to various reasons such as a low number of prosumers, high energy demand, weather conditions, and so on. So, to reduce the demand–supply gap, the recommender system will play a crucial role here to recommend more SPV installations in a particular area to generate a huge amount of energy.
Algorithm 1 shows the details steps for P2P trading, and Algorithm 2 explains the recommender mechanism to boost the number of prosumers in the proposed DT-P2PET scheme. The next section discusses the experimental result obtained from the proposed DT-P2PET scheme.
Algorithm 2 Recommender system for SPV installation.
ξ 1 , s , ξ 2 , s , ξ 3 , s , . , ξ n , s Surplus energy of respective prosumer
ξ 1 , d , ξ 2 , d , ξ 3 , d , . , ξ n , d energy demand of respective consumer
a 1 , a 2 , a 3 , . , a N represents various areas
D Total energy demand of any particular area.
S Total surplus energy of any particular area.
1:
To calculate total energy demand and total surplus energy of any particular area.
2:
for i 1 to N do
3:
    for  j 1 to n do
4:
        if location of ξ j , d = a i  then
5:
            D [ i ] = ξ j , d + D [ i ]
6:
        end if
7:
        if location of ξ j , s = a i  then
8:
            S [ i ] = ξ j , s + S [ i ]
9:
        end if
10:
    end for
11:
end for// Check location of consumer and recommend
12:
for i 1 to N do
13:
    if  D [ i ] > S [ i ]  then
14:
        for  j 1 to n do
15:
           if location of ξ j , d = a i  then
16:
               Recommend to install SPV to ξ j , d consumer.
17:
           end if
18:
        end for
19:
    end if
20:
end for

5. Performance Evaluation

Ethereum is one of the benchmarking tools used for the blockchain network. In this paper, Ethereum SC is designed, and the Mythril tool is used to verify the execution of SC and evaluate the performance of the DT-P2PET scheme. Various parameters such as latency, throughput, data storage cost, network bandwidth, etc., are included for evaluation. The system configuration parameters are restricted as per assessment, such as block time, block size, channel, endorsement policy, ledger database, resource allocation, etc. The DT-P2PET scheme is evaluated in the windows PC with the following configurations:
  • Intel(R) Core(TM) CPU (Intel Core i7 @ 2.6 GHz);
  • 16 GB memory;
  • 250 GB SSD;
  • 1 Gbit/s network.
The proposed scheme is evaluated using the energy data [42] provided by Open Energy Information (OpenEI). Table 2 shows the simulation parameters that are used for the performance evaluation of the proposed DT-P2PET scheme.

5.1. Dataset Description

The proposed DT-P2PET scheme referred to a standard benchmarked dataset, i.e., the OpenEI dataset, which has open-source real-time energy data (freely available) for energy traders, researchers, technology enthusiasts, and policymakers to extract useful information for effective decision making in SG systems. The dataset comprises hourly consumption data of various home appliances such as AC, Basic Facilities, Light, and Miscellaneous (Misc) (considered for the experiment) for Alaska-based residential houses [42]. Next, it has a time-series attribute that specifies the time and date of energy consumption of home appliances. Then, the data are pre-processed, and total hourly consumption is calculated for further analysis.

5.2. Experimental Setup and Tools

The proposed scheme is developed using different frameworks and tools, for instance, Truffle suite, Metamask, Remix-IDE, and Ganache network. These tools help in formulating the DT-P2PET scheme and phases of the proposed scheme. Next, communication between each stakeholder of the proposed scheme is enabled by wired or wireless networks. Ethereum SC is designed using solidity programming language along with different user-defined functions for buyer, sellers, and administrators. A few of the implemented functions are registerMeter() to fetch the prosumer/consumer identity (ID), addEnergy() to add the energy for trading in the Ethereum, getRole() to assign a specific role to the prosumer, consumer, and SG administrator. Next, a few functions are associated with the trading request, such as getSellersIds(), getTradeCount(), getTransactionsCount(), and many more. The SCs are compiled using Truffle-suite, which is a development and testing environment for blockchain-based applications. Once the SC is compiled, it is tested on the Ganache network. If the SC validates the information of the prosumer, consumer, and SG administrator, the energy data are stored inside the IPFS-based Ethereum blockchain. The IPFS converts the energy trading data into the hashed data that improves the data storage cost and data transfere rate of the proposed scheme. The subsequent subsection discusses the performance of the proposed DT-P2PET scheme in terms of profit generation, network bandwidth, data storage cost, and data transfer rate.

5.3. Profit Generation

One of the major parameters to motivate prosumers and consumers to participate in the proposed P2P energy trading is profit generation. Therefore, the proposed scheme is designed in such a way that it will generate profit for the consumers as well as prosumers. Figure 4i shows how the prosumer benefits by receiving a higher price for the same amount of energy. Similarly, Figure 4ii illustrates that consumers receive benefits by paying less for the same amount of energy. This happens as the DT-P2PET scheme works by taking the mean value of the energy price per unit for buying and selling from the grid, which retains for an hour to perform P2P trading. Consider the case where the prosumer is paid Rs 5 for 1 unit of energy, and the consumer is charged Rs 9 for 1 unit of energy while trading from grid/utility companies. However, in the case of the proposed scheme, the prosumer potentially receives Rs 7 instead of Rs 5 for a single unit, and the consumer has to pay only Rs 7 instead of Rs 9 for a single unit of energy, benefiting both the consumer and the prosumer.
Table 3 illustrates the profit generation for prosumers and consumers using the DT-P2PET scheme based on the selling price of 1 kWh as 5 Rs and the buying price of 1 kWh energy for a consumer as 9 Rs for a particular consumer and prosumer. There are three scenarios on which the prosumer’s and consumer’s profit depends, as shown in the previous section. In the first scenario, the total surplus energy with prosumers is equal to the consumer’s demand. As a result, both the prosumer and the customer make identical profits (in Rs). In the second case, the prosumer has more surplus energy to trade than a single consumer would require. As a result, the prosumer will benefit from trading with multiple consumers based on their demand. It can be shown that if a particular prosumer P 6 has 14 kWh of surplus energy for trading and trades with two consumers, C 8 and C 9 , he still has 2 kWh of energy remaining. The prosumer now has two options in this case: First, with the electric-utility company, trade the remaining 2 kWh of energy. Second, conserve energy and trade it with other consumers during the subsequent trading session. In the third scenario, the surplus energy available for trade is lower than the demand of a single consumer. As a result, to meet their demand, the consumer will have to trade with more than one prosumer.

5.4. Network Bandwidth and Data Storage Cost

Each transaction uploaded to the Ethereum blockchain is relatively expensive; hence, we employed IPFS in parallel with the Ethereum network. IPFS enables high throughput and efficient storage. IPFS yields a hash that is 46 bytes long. As a result, transaction data are stored in IPFS, and IPFS generates a hash for each transaction and is kept in a blockchain block to reduce storage space. The stored transaction can be accessed using the IPFS’s unique hash value, which is known as content-addressable access. The IPFS content-addressed mechanisms denote the significance of the transaction and offer peers confidence that they are accessing the precise information that the prosumer or consumer has saved. Transactions are credible and persistent due to the hash generated through IPFS.
Figure 5 shows the network bandwidth used by the IPFS while performing energy trading. The blue area depicts the network’s download bandwidth, while the orange area depicts the network’s upload bandwidth. Figure 6 depicts the energy trading transactions data storage cost in the proposed DT-P2PET scheme using the IPFS mechanism while performing energy trading and comparing the same with existing blockchain-based approaches (not including IPFS). It depicts from the figure that the proposed DT-P2PET scheme has low cost (compared to the existing approach) even with the increasing number of words.

5.5. Data Transfer Rate

The competition to develop a more sophisticated energy trading mechanism is heating up. However, the blockchain system needs a higher-speed network communications service. Fifth-generation (5G) technology is intended to be completely deployed to deliver more reliable, consistent, and faster connection for communication. To fully utilize the IPFS and blockchain’s capabilities, a 5G technology network is required, as greater bandwidth can be accomplished with the help of 5G technology (a communication platform that can provide incredibly low latency and great reliability). This enables energy transactions to be executed quickly and efficiently.
Figure 7 compares network statics in the proposed DT-P2PET scheme and existing 4G-based approaches. This figure depicts that the proposed approach outperforms the existing approaches in every transaction, regardless of transaction size.

5.6. Scalability

Figure 8 illustrates the system scalability comparison of the proposed DT-P2PET scheme with existing 4G-based approaches. Here, the x-axis represents the number of transactions per minute, while the vertical axis represents the number of users that can be increased by the system. When the number of transactions is low, the proposed scheme does not have much impact in terms of scalability; however, as the number of transactions increases, the suggested DT-P2PET scheme continues to gain scalability, using the IPFS system and 5G network with Ethereum, but the existing approaches quickly hit bottlenecks.

6. Conclusions

In this paper, we proposed a P2P energy trading scheme, i.e., the DT-P2PET scheme using the Ethereum blockchain. The DT-P2PET scheme is a decentralized, transparent, and secure P2P trading approach with the real-time settlement of trades based on blockchain technology. An Ethereum client is utilized in the DT-P2PET scheme, and SCs are employed to carry out the energy trading. The development of SCs facilitated P2P energy trading using a dynamic pricing mechanism. Here, DT-P2PET also used the IPFS method for off-chain energy data storage that handles data storage costs and improves the scalability of the system. Furthermore, by employing a dynamic pricing mechanism, DT-P2PET strives to benefit both consumers and prosumers. The DT-P2PET technique is developed and deployed using the Truffle suite, and block verification is completed in Remix IDE. The performance of the proposed DT-P2PET scheme is evaluated by comparing it to existing blockchain-based techniques in terms of data storage cost, scalability and data transfer rate. The experimental result proved the effectiveness of the DT-P2PET scheme.
In the future, we will verify user latency and privacy in the proposed scheme on different blockchain platforms as an extension of this research work. Next, the proposed P2P energy trading scheme for different load profiles will be studied in depth in the near future.

Author Contributions

Conceptualization: A.K. and U.C.S.; writing—original draft preparation: S.T. and R.S.; methodology: I.A. and T.C.M.; writing—review and editing: F.A. and A.T.; Investigation: A.K., M.S.R. and U.C.S.; Supervision: A.K. and S.T.; Visualization; F.A., T.C.M. and I.A.; Software; A.T., M.S.R. and R.S. All authors have read and agreed to the published version of the manuscript.

Funding

This work was funded by the Researchers Supporting Project No. (RSP2022R509) King Saud University, Riyadh, Saudi Arabia.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Acknowledgments

This work was funded by the Researchers Supporting Project No. (RSP2022R509) King Saud University, Riyadh, Saudi Arabia, and partially supported by the Subprogram 1.1. Institutional performance-Projects to finance excellence in RDI, Contract No. 19PFE/30.12.2021 and a grant of the National Center for Hydrogen and Fuel Cells (CNHPC)—Installations and Special Objectives of National Interest (IOSIN) Romania, UEFISCDI Romania and MCI through projects AISTOR, FinSESco, CREATE, I-DELTA, DEFRAUDIFY, Hydro3D, FED4FIRE-SO-SHARED, AIPLAN-STORABLE, EREMI and by European Union’s Horizon 2020 research and innovation program under grant agreements No. 872172 (TESTBED2) and No. 777996 (SealedGRID).

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
SymbolsDescriptions
ξ n , s Surplus energy of prosumer
ξ n , d Energy demand of consumer
E s After trade, the total surplus energy in SG
E d After trade, total excess energy demand in SG
φ Coalition
η p Set of prosumers
η c Set of consumers
Ω p P2P selling price
Ω c P2P buying price
ω g , c Buying prices by the grid
ω g , p Selling prices by the grid
ξ n , c Energy consumed by the prosumer itself

References

  1. Farrar-Foley, N.; Rongione, N.A.; Wu, H.; Lavine, A.S.; Hu, Y. Total solar spectrum energy converter with integrated photovoltaics, thermoelectrics, and thermal energy storage: System modeling and design. Int. J. Energy Res. 2022, 46, 5731–5744. [Google Scholar] [CrossRef]
  2. AlSkaif, T.; Crespo-Vazquez, J.L.; Sekuloski, M.; van Leeuwen, G.; Catalao, J.P.S. Blockchain-Based Fully Peer-to-Peer Energy Trading Strategies for Residential Energy Systems. IEEE Trans. Ind. Inform. 2022, 18, 231–241. [Google Scholar] [CrossRef]
  3. Lopez-Santiago, D.M.; Caicedo Bravo, E.; Jimenez-Estevez, G.; Valencia, F.; Mendoza-Araya, P.; Marin, L.G. A novel rule-based computational strategy for a fast and reliable energy management in isolated microgrids. Int. J. Energy Res. 2022, 46, 4362–4379. [Google Scholar] [CrossRef]
  4. Lopez Gonzalez, D.M.; Garcia Rendon, J. Opportunities and challenges of mainstreaming distributed energy resources towards the transition to more efficient and resilient energy markets. Renew. Sustain. Energy Rev. 2022, 157, 112018. [Google Scholar] [CrossRef]
  5. Hui, H.; Siano, P.; Ding, Y.; Yu, P.; Song, Y.; Zhang, H.; Dai, N.Y. A Transactive Energy Framework for Inverter-based HVAC Loads in a Real-time Local Electricity Market Considering Distributed Energy Resources. IEEE Trans. Ind. Inform. 2022. [Google Scholar] [CrossRef]
  6. Khorasany, M.; Shokri Gazafroudi, A.; Razzaghi, R.; Morstyn, T.; Shafie-khah, M. A framework for participation of prosumers in peer-to-peer energy trading and flexibility markets. Appl. Energy 2022, 314, 118907. [Google Scholar] [CrossRef]
  7. Paudel, A.; Sampath, L.P.M.I.; Yang, J.; Gooi, H.B. Peer-to-Peer Energy Trading in Smart Grid Considering Power Losses and Network Fees. IEEE Trans. Smart Grid 2020, 11, 4727–4737. [Google Scholar] [CrossRef]
  8. Zhang, C.; Wu, J.; Zhou, Y.; Cheng, M.; Long, C. Peer-to-Peer energy trading in a Microgrid. Appl. Energy 2018, 220, 1–12. [Google Scholar] [CrossRef]
  9. Javadi, M.S.; Esmaeel Nezhad, A.; Jordehi, A.R.; Gough, M.; Santos, S.F.; Catalão, J.P. Transactive energy framework in multi-carrier energy hubs: A fully decentralized model. Energy 2022, 238, 121717. [Google Scholar] [CrossRef]
  10. Liu, N.; Yu, X.; Wang, C.; Li, C.; Ma, L.; Lei, J. Energy-Sharing Model With Price-Based Demand Response for Microgrids of Peer-to-Peer Prosumers. IEEE Trans. Power Syst. 2017, 32, 3569–3583. [Google Scholar] [CrossRef]
  11. A game theoretic approach for peer to peer energy trading. Energy Procedia 2019, 159, 454–459. [CrossRef]
  12. Dorri, A.; Hill, A.; Kanhere, S.; Jurdak, R.; Luo, F.; Dong, Z.Y. Peer-to-Peer EnergyTrade: A Distributed Private Energy Trading Platform. In Proceedings of the 2019 IEEE International Conference on Blockchain and Cryptocurrency (ICBC), Seoul, Korea, 14–17 May 2019; pp. 61–64. [Google Scholar] [CrossRef] [Green Version]
  13. Seven, S.; Yao, G.; Soran, A.; Onen, A.; Muyeen, S.M. Peer-to-Peer Energy Trading in Virtual Power Plant Based on Blockchain Smart Contracts. IEEE Access 2020, 8, 175713–175726. [Google Scholar] [CrossRef]
  14. Kumari, A.; Vekaria, D.; Gupta, R.; Tanwar, S. Redills: Deep learning-based secure data analytic framework for smart grid systems. In Proceedings of the 2020 IEEE International Conference on Communications Workshops (ICC Workshops), Dublin, Ireland, 7–11 June 2020; pp. 1–6. [Google Scholar]
  15. Sorin, E.; Bobo, L.; Pinson, P. Consensus-Based Approach to Peer-to-Peer Electricity Markets With Product Differentiation. IEEE Trans. Power Syst. 2018, 34, 994–1004. [Google Scholar] [CrossRef] [Green Version]
  16. Zhang, M.; Eliassen, F.; Taherkordi, A.; Jacobsen, H.A.; Chung, H.M.; Zhang, Y. Energy Trading with Demand Response in a Community-based P2P Energy Market. In Proceedings of the 2019 IEEE International Conference on Communications, Control and Computing Technologies for Smart Grids (SmartGridComm), Beijing, China, 21–23 October 2019; pp. 1–6. [Google Scholar] [CrossRef]
  17. Khalid, R.; Javaid, N.; Javaid, S.; Imran, M.; Naseer, N. A blockchain-based decentralized energy management in a P2P trading system. In Proceedings of the ICC 2020—2020 IEEE International Conference on Communications (ICC), Dublin, Ireland, 7–11 June 2020; pp. 1–6. [Google Scholar] [CrossRef]
  18. 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]
  19. Kumari, A.; Tanwar, S.; Tyagi, S.; Kumar, N.; Parizi, R.M.; Choo, K.K.R. Fog data analytics: A taxonomy and process model. J. Netw. Comput. Appl. 2019, 128, 90–104. [Google Scholar] [CrossRef]
  20. A motivational game-theoretic approach for peer-to-peer energy trading in the smart grid. Appl. Energy 2019, 243, 10–20. [CrossRef]
  21. Pham, V.D.; Tran, C.T.; Nguyen, T.; Nguyen, T.T.; Do, B.L.; Dao, T.C.; Nguyen, B.M. B-Box—A Decentralized Storage System Using IPFS, Attributed-based Encryption, and Blockchain. In Proceedings of the 2020 RIVF International Conference on Computing and Communication Technologies (RIVF), Ho Chi Minh City, Vietnam, 14–15 October 2020; pp. 1–6. [Google Scholar] [CrossRef]
  22. Kaur, K.; Kaddoum, G.; Zeadally, S. Blockchain-Based Cyber-Physical Security for Electrical Vehicle Aided Smart Grid Ecosystem. IEEE Trans. Intell. Transp. Syst. 2021, 22, 5178–5189. [Google Scholar] [CrossRef]
  23. Kumari, A.; Tanwar, S.; Tyagi, S.; Kumar, N. Verification and validation techniques for streaming big data analytics in internet of things environment. IET Netw. 2018, 8, 92–100. [Google Scholar] [CrossRef]
  24. Liu, T.; Tan, X.; Sun, B.; Wu, Y.; Guan, X.; Tsang, D.H.K. Energy management of cooperative microgrids with P2P energy sharing in distribution networks. In Proceedings of the 2015 IEEE International Conference on Smart Grid Communications (SmartGridComm), Miami, FL, USA, 2–5 November 2015; pp. 410–415. [Google Scholar] [CrossRef]
  25. Markets.; Markets.Cryptocurrency Market. Available online: https://www.marketsandmarkets.com/Market-Reports/cryptocurrency-market-158061641.html#:~:text=%5B188%20Pages%20Report%5D%20The%20cryptocurrency,the%20growth%20of%20the%20market (accessed on 18 April 2022).
  26. Kumari, A.; Gupta, R.; Tanwar, S.; Tyagi, S.; Kumar, N. When Blockchain Meets Smart Grid: Secure Energy Trading in Demand Response Management. IEEE Netw. 2020, 34, 299–305. [Google Scholar] [CrossRef]
  27. Steichen, M.; Fiz, B.; Norvill, R.; Shbair, W.; State, R. Blockchain-Based, Decentralized Access Control for IPFS. In Proceedings of the 2018 IEEE International Conference on Internet of Things (iThings) and IEEE Green Computing and Communications (GreenCom) and IEEE Cyber, Physical and Social Computing (CPSCom) and IEEE Smart Data (SmartData), Halifax, NS, Canada, 30 July–3 August 2018; pp. 1499–1506. [Google Scholar] [CrossRef]
  28. Zhang, P.; Hong, Y.; Kumar, N.; Alazab, M.; Alshehri, M.; Jiang, C. BC-EdgeFL: Defensive Transmission Model Based on Blockchain Assisted Reinforced Federated Learning in IIoT Environment. IEEE Trans. Ind. Inf. 2021, 18, 3551–3561. [Google Scholar] [CrossRef]
  29. Zhang, K.; Mao, Y.; Leng, S.; Maharjan, S.; Zhang, Y.; Vinel, A.; Jonsson, M. Incentive-Driven Energy Trading in the Smart Grid. IEEE Access 2016, 4, 1243–1257. [Google Scholar] [CrossRef]
  30. Kumari, A.; Shukla, A.; Gupta, R.; Tanwar, S.; Tyagi, S.; Kumar, N. ET-DeaL: A P2P Smart Contract-based Secure Energy Trading Scheme for Smart Grid Systems. In Proceedings of the IEEE Infocom 2020—IEEE Conference on Computer Communications Workshops (INFOCOM WKSHPS), Toronto, ON, Canada, 6–9 July 2020; pp. 1051–1056. [Google Scholar] [CrossRef]
  31. Kebande, V.; Awaysheh, F.; Adeyemi, I.; Alawadi, S.; Alshehri, M. A Blockchain-Based Multi-Factor Authentication Model for Cloud-Enabled Internet of Vehicles. Sensors 2021, 21, 6018. [Google Scholar] [CrossRef]
  32. Smart contract architecture for decentralized energy trading and management based on blockchains. Energy 2020, 199, 117417. [CrossRef]
  33. Wongthongtham, P.; Marrable, D.; Abu-Salih, B.; Liu, X.; Morrison, G. Blockchain-enabled Peer-to-Peer energy trading. Comput. Electr. Eng. 2021, 94, 107299. [Google Scholar] [CrossRef]
  34. Peer-to-peer energy sharing with battery storage: Energy pawn in the smart grid. Appl. Energy 2021, 297, 117129. [CrossRef]
  35. Mehdinejad, M.; Shayanfar, H.; Mohammadi-Ivatloo, B. Decentralized blockchain-based peer-to-peer energy-backed token trading for active prosumers. Energy 2022, 244, 122713–122731. [Google Scholar] [CrossRef]
  36. Garulli, A.; Paoletti, S.; Vicino, A. Models and Techniques for Electric Load Forecasting in the Presence of Demand Response. IEEE Trans. Control. Syst. Technol. 2015, 23, 1087–1097. [Google Scholar] [CrossRef]
  37. Morstyn, T.; Teytelboym, A.; Mcculloch, M.D. Bilateral Contract Networks for Peer-to-Peer Energy Trading. IEEE Trans. Smart Grid 2019, 10, 2026–2035. [Google Scholar] [CrossRef]
  38. Musleh, A.S.; Yao, G.; Muyeen, S.M. Blockchain Applications in Smart Grid–Review and Frameworks. IEEE Access 2019, 7, 86746–86757. [Google Scholar] [CrossRef]
  39. Singh, A.R.; Ding, L.; Raju, D.K.; Raghav, L.P.; Kumar, R.S. A swarm intelligence approach for energy management of grid-connected microgrids with flexible load demand response. Int. J. Energy Res. 2022, 46, 4301–4319. [Google Scholar] [CrossRef]
  40. Rathod, A.P.S.; Mittal, P.; Kumar, B. Analysis of factors affecting the solar radiation received by any region. In Proceedings of the 2016 International Conference on Emerging Trends in Communication Technologies (ETCT), Dehradun, India, 18–19 November 2016; pp. 1–4. [Google Scholar] [CrossRef]
  41. Bertolini, M.; D’Alpaos, C.; Moretto, M. Do Smart Grids boost investments in domestic PV plants? Evidence from the Italian electricity market. Energy 2018, 149, 890–902. [Google Scholar] [CrossRef]
  42. OpenEI. Open Energy Information. Available online: https://openei.org/datasets/dataset?sectors=smartgrid (accessed on 5 January 2020).
Figure 1. Blockchain-based cryptocurrency market value.
Figure 1. Blockchain-based cryptocurrency market value.
Sensors 22 04826 g001
Figure 2. System model of the proposed DT-P2PET scheme.
Figure 2. System model of the proposed DT-P2PET scheme.
Sensors 22 04826 g002
Figure 3. The workflow of the proposed DT-P2PET scheme.
Figure 3. The workflow of the proposed DT-P2PET scheme.
Sensors 22 04826 g003
Figure 4. Prosumer/Consumer’s profit using the proposed DT-P2PET scheme. (i) Prosumer’s profit. (ii) Consumer’s profit.
Figure 4. Prosumer/Consumer’s profit using the proposed DT-P2PET scheme. (i) Prosumer’s profit. (ii) Consumer’s profit.
Sensors 22 04826 g004
Figure 5. IPFS Network Status.
Figure 5. IPFS Network Status.
Sensors 22 04826 g005
Figure 6. IPFS Storage Cost.
Figure 6. IPFS Storage Cost.
Sensors 22 04826 g006
Figure 7. Transfer rate comparison.
Figure 7. Transfer rate comparison.
Sensors 22 04826 g007
Figure 8. Scalability comparison.
Figure 8. Scalability comparison.
Sensors 22 04826 g008
Table 1. A comparative analysis of the proposed DT-P2PET scheme with the existing approaches.
Table 1. A comparative analysis of the proposed DT-P2PET scheme with the existing approaches.
ApproachesYearShort DescriptionMeritsDemerits
Long et al. [11]2018A game-theoretic-based framework for energy trading and decision-making processThe approach achieves both optimality and fairness for P2P tradingThe model works on
batteries only
Morstyn et al. [37]2019A P2P energy-trading contract networks, which is bilateral and scalableEmphasizes trading strategies for real-time and forward contractsNeed to be implement for practical aspect
Musleh et al. [38]2019It examined emerging blockchain applications and its utilization in the SGIt demonstrated benefits of blockchain in the electrical network and SG frameworkScalability and latency issue
Dorri et al. [12]2019Presented a Secure Private Blockchain-based (SPB) energy trade architecture as a PoCSPB minimizes energy trading costs, blockchain size, and processing time.It lacks the scalability, and SPB implementation requires a bigger testbed
Seven et al. [13]2019A public and SC-enabled auction-based bidding platform is proposed for energy tradingAuction-based energy-trading platformNeed to improve optimal and efficient functioning of the proposed approach
Han et al. [32]2020A blockchain-based framework to bridge the demand–response gap of producers’ energy production and consumers’ needs in P2P energy tradingIt allows more than 25 users to trade energy at the
same time
Lacks the consideration of enriching the functions of the platform and testing the same in different environments
Wongthongtham
et al. [33]
2021Examines the most effective use of blockchain technology for P2P energy tradingThe approach is cost effective for blockchain transactionData storage cost issue on blockchain and
scalability issue
L He et al. [34]2021In a community market with a shareholder energy storage system, prosumers, and consumers; it suggested an energy-sharing framework which is based on energy pawn (EP)Maximizes the energy pawn’s revenue generationFor efficient outcomes, netload forecasting must be improved
Mehdinejad et al. [35]2022Leverage blockchain platform to achieve P2P energy
token trading
The proposed approach ensures a worldwide and realistic solution while demanding no personal information from the participantsThe efficiency of the approach needs to be improved
The proposed DT-P2PET scheme2022A blockchain-based decentralized and transparent P2P energy-trading schemeMaximizes the SG revenue, profits of consumer and prosumer, reduces burden
on grid
-
Table 2. Simulation Parameters Setting.
Table 2. Simulation Parameters Setting.
ParametersConfiguration
Transactions1000 per round
Rounds5
Transactions modeRead/Write
Rate50 to 250 tps
Varied factorBlock size with transaction rate
Table 3. Profit generation for prosumer and consumer.
Table 3. Profit generation for prosumer and consumer.
ScenarioProsumerTotal Production
(kWh)
Surplus Energy
(kWh)
Profit
(Rs)
ConsumerTotal Demand
(kWh)
Profit
(Rs)
P111510C1510
ξ n , s = ξ n , d P215918C2918
P3231224C31224
P411816C4510
C536
ξ n , s > ξ n , d P5151020C6612
C748
P6231424C8224
C91020
P712714C101428
P810714
ξ n , s < ξ n , d P915612C111020
P101858
P11948C12918
P1223710
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Kumari, A.; Chintukumar Sukharamwala, U.; Tanwar, S.; Raboaca, M.S.; Alqahtani, F.; Tolba, A.; Sharma, R.; Aschilean, I.; Mihaltan, T.C. Blockchain-Based Peer-to-Peer Transactive Energy Management Scheme for Smart Grid System. Sensors 2022, 22, 4826. https://doi.org/10.3390/s22134826

AMA Style

Kumari A, Chintukumar Sukharamwala U, Tanwar S, Raboaca MS, Alqahtani F, Tolba A, Sharma R, Aschilean I, Mihaltan TC. Blockchain-Based Peer-to-Peer Transactive Energy Management Scheme for Smart Grid System. Sensors. 2022; 22(13):4826. https://doi.org/10.3390/s22134826

Chicago/Turabian Style

Kumari, Aparna, Urvi Chintukumar Sukharamwala, Sudeep Tanwar, Maria Simona Raboaca, Fayez Alqahtani, Amr Tolba, Ravi Sharma, Ioan Aschilean, and Traian Candin Mihaltan. 2022. "Blockchain-Based Peer-to-Peer Transactive Energy Management Scheme for Smart Grid System" Sensors 22, no. 13: 4826. https://doi.org/10.3390/s22134826

APA Style

Kumari, A., Chintukumar Sukharamwala, U., Tanwar, S., Raboaca, M. S., Alqahtani, F., Tolba, A., Sharma, R., Aschilean, I., & Mihaltan, T. C. (2022). Blockchain-Based Peer-to-Peer Transactive Energy Management Scheme for Smart Grid System. Sensors, 22(13), 4826. https://doi.org/10.3390/s22134826

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop