Professional Documents
Culture Documents
Major Report
Major Report
Major Report
CHAPTER 1
INTRODUCTION
1.1 Introduction
The power grid is transitioning from a centralised grid, where electric power plants
were connected to the transmission system, to a decentralised grid, where dispersed
renewable generating units were directly connected to distribution networks close to
demand consumption. Applications for microgrids have grown dramatically over the
past few years, and they may soon be implemented more extensively, according to
predictions. This deployment was made possible by the growing interest in smart grid
technology, which may be conceptualised as a network of connected smart microgrids.
It has been demonstrated that the network's dependability, resiliency, and
sustainability are all greatly improved when the main power grids are represented by a
collection of linked microgrids. Consequently, the networked microgrid operation has
received a lot of attention recently. Different energy profiles may cause some
microgrids to experience energy deficits while others experience surpluses. Therefore,
it becomes crucial to construct coalition-building and energy-trading negotiating
methods when the utility grid tie is unavailable to assure enough power sharing across
networked microgrids to balance local power generation and demand.
One of the primary motivations behind this work is this. For many different
businesses, centralised energy trading methods are difficult to expand, and the
centralised system is vulnerable to cyberattacks. Additionally, a lot of people are
interested in utilising blockchain technology inside the information infrastructure to
ensure secure and decentralised energy trade as a result of the introduction of the
technology and the attention it has received. This fact is regarded as a secondary
motivator for this work. The Brooklyn Microgrid project is an illustration of a first
successful peer-to-peer (P2P) blockchain system running through smart metres, where
prosumers are able to exchange energy based on a set bid price.
The blockchain concept, which may be summed up as a chain made up of
numerous blocks that each carry information, was initially put forth in 2008 [34]. So
that every peer (node in the network) maintains a record of the same ledger, all
information is then updated synchronously across the entire network. Without the
involvement of a third authority, its consensus method can guarantee the integrity of
VBIT-EEE Page 1
A BLOCKCHAIN-ENABLED DECENTRALIZED ENERGY TRADING MECHANISM FOR INTERCONNECTED MICROGRIDS
the data recorded in the ledger. The development of several consensus algorithms has
included PoW, PoS, Delegated Proof of Stake (DPoS), Ripple Protocol Consensus
Algorithm (RPCA), and AlgoRand. Because the effectiveness of the consensus
algorithm directly affects the performance of the blockchain, it is the most crucial
component of the entire system.
This technology's key feature is its ability to keep track of every linked block
that is generated, making it impossible to remove or alter any blocks. With no need for
a reliable third party, this makes blockchain technology a particularly secure and
reliable decentralised method for exchanging money and contracts. The immutability
of the blockchain record and the consensus techniques used to approve information
added to the chain make the blockchain a popular choice for safe transactions in
decentralised networks. The identify of the parties involved in the transaction, the value
of the items being transacted, the timestamp of the transaction's execution, and an
alphanumeric string known as a hash are all included in a block's contents.
The blocks are chained together by these individually produced hashes since
each block in the chain contains its own hash. A chained block will be broken if any of
the data in the block is changed, as the hash associated with that block will change and
no longer match the hash used in the following block. A smart contract is a
computerised transaction mechanism that carries out a contract's terms. By encoding
contractual terms as code and embedding them into a piece of property, trusted
transactions and agreements between various anonymous nodes can self-execute
without the need for a centralised authority. Smart contracts are scripts that are hashed
uniquely and saved on the blockchain for use in blockchain applications.
VBIT-EEE Page 2
A BLOCKCHAIN-ENABLED DECENTRALIZED ENERGY TRADING MECHANISM FOR INTERCONNECTED MICROGRIDS
CHAPTER 2
LITERATURE SURVEY
2.1 Introduction
This chapter chronicles about the different literature reviews about decentralized
energy trading mechanism for interconnected microgrids.
2.2 Literature Survey
T. M. Masaud and J. Warner[1] has proposed that among other blockchain energy
applications, Transactive Grid has recently drawn a lot of interest. This article presents
a two-layer protected smart contract-based energy trading system that enables
microgrids to collaborate, alter the price at which electricity is exchanged, and carry
out transparent and decentralised secure transactions without the aid of a third party.
Because reliability advantages are the main criteria that drive islanded microgrid
operation, a new decentralised energy trading model based on smart contracts is
proposed in the first layer for islanded networked microgrids with the aim of attaining
demand generation balance.
S. Maharjan [2] integrating blockchain techniques in energy trading for
networked microgrids is relatively a new area that has gained lots of interest recently.
In the literature, numerous models have been developed for P2P energy trading without
integrating blockchain technology, the following section will shed the light on the most
related work. An energy trading model for community-based microgrid in the presence
of the utility grid was proposed in [2], in which a market operator determines the spot
price by intersecting the demand and the ascending plot of the submitted bids where all
offered bids are compared with utility price.
Authors in [4] developed a two-stage bidding strategy for P2P trading of
Nanogrid. In the first stage, a two-step price predictor with an objective to promote the
utilization of local renewable energy is developed for transaction adjustment; whereas
a game theoretic technique is developed in stage two to increase the social welfare.
The trading model in [3] is designed as an auction game to trade energy between
energy demanders and producer within a grid connected community based DC
microgird. In this case, the demander submits bits to complete for DC power packets.
VBIT-EEE Page 3
A BLOCKCHAIN-ENABLED DECENTRALIZED ENERGY TRADING MECHANISM FOR INTERCONNECTED MICROGRIDS
VBIT-EEE Page 4
A BLOCKCHAIN-ENABLED DECENTRALIZED ENERGY TRADING MECHANISM FOR INTERCONNECTED MICROGRIDS
VBIT-EEE Page 5
A BLOCKCHAIN-ENABLED DECENTRALIZED ENERGY TRADING MECHANISM FOR INTERCONNECTED MICROGRIDS
VBIT-EEE Page 6
A BLOCKCHAIN-ENABLED DECENTRALIZED ENERGY TRADING MECHANISM FOR INTERCONNECTED MICROGRIDS
CHAPTER 3
PLANNED PROPOSED WORK
3.1 Introduction
This chapter discusses about the software description and design of micro grid energy
trading mechanism using blockchain. The software description involves studying the
flowchart used in software building and block diagram analysis of the system
model. Design part talks about architecture building and software analogy.
3.2 Description of System Model
Each agent (MG) is a node in the distributed multi-agent network model of the
interconnected islanded microgrids system. A multi-agent coalition is a mechanism for
agents to work together to finish a job when none of them can do so on their own. This
definition was used to make the assumption that each MG (agent) only consists of
distributed renewable generation and electricity demand. Since the electrical grid is not
connected to any MGs, there is no grid backup because all MGs are connected to one
another. To balance local renewable generation and demand, all MG's operators in the
islanded system must therefore work together. Therefore, reaching zero net load is
utilized to gauge how satisfied each P2P trading participant is. It should be remembered
that demand is determined by subtracting renewable generation from the total load. Due
to their shared interest in completing their net load, all MGs in the islanded system have
decided to cooperate in order to complete their net load. Additionally, it was thought
that each MG lacked enough non-renewable local resources (e.g., dispatchable units,
storage, controllable loads). Fig. 1 indicates the proposed flow chart.
Each MG is therefore strongly encouraged to engage in P2P trade in order to
balance their net load. Based on the fact that reliability advantages are one of the key
factors influencing microgrid operation, this incentive mechanism can be justified.
Local resources' limited capacity can only be used as a backup if the power traded
during peer-to-peer trading is inadequate to balance their net load. Therefore, since
dispatchable units, storage, and controllable loads are not largely used to balance the
net load, it is not necessary to design a scheduling optimization issue. According to the
model's architecture, each node represents a microgrid made up of layered architectures
of renewable generators, power demand, local controllers, and trade controllers. The
physical resource layer is where renewable distributed generation and electricity
VBIT-EEE Page 7
A BLOCKCHAIN-ENABLED DECENTRALIZED ENERGY TRADING MECHANISM FOR INTERCONNECTED MICROGRIDS
demand are found. Additionally, the local controller (LC), whose responsibility it is to
handle demand and renewable generation data (forecasting hourly net load), is present.
When there is an energy shortage or excess, the local controller notifies the trade
controller (TC), whose job it is to buy or sell energy to meet the microgrid's hourly net
load for the next 24 hours fig. 2 provides a graphic representation of the system model.
VBIT-EEE Page 8
A BLOCKCHAIN-ENABLED DECENTRALIZED ENERGY TRADING MECHANISM FOR INTERCONNECTED MICROGRIDS
one another. Peers who are willing to participate in trading frequently use the
marketplace concept for contract matching, especially on significant stock exchanges
like the NYSE. Energy selling smart contracts with predetermined prices are provided
by microgrids with surplus power for each round r in the time interval t (hourly time
interval) in the 24-hour day ahead scenario, and energy buying contracts with fixed
prices are offered by microgrids with power deficit. Since there is no grid backup, both
sellers and buyers strive to have their contracts matched and carried through in order to
satisfy their net loads.
VBIT-EEE Page 9
A BLOCKCHAIN-ENABLED DECENTRALIZED ENERGY TRADING MECHANISM FOR INTERCONNECTED MICROGRIDS
to satisfy its net load if they did not sell their excess power. This is a reasonable
adjustment since the microgrid will have to pay these costs if the trading scheme is
unavail able. The seller will go back and adjust its selling price after each round until
it gets its contract matched and executed.
3.4 Two-phase Blockchain Consensus Protocol
To enable a trusted settlement of electricity trading transactions, a smart blockchain
based-contracts protocol for transaction settlement is developed. The proposed
blockchain method uses a traditional distributed ledger consisting of blocks of data that
are connected in a single chain. These blocks of data contain the details of the finalized
contract from the trading marketplace, including the network address of the buyer and
seller, the amount of energy being trading, the price per kilowatt of the contract, the
timestamp when the contract was executed, the hash from the previous block, and a
new hash generated using the SHA-256 hashing algorithm. Because this ledger chain
is a distributed ledger, each node of the network maintains a copy of the ledger.
Additionally, for a variety of microgrids in the network, the average
computation time needed to finish discrete actions (price adjustment, contract offering
for potential matching) necessary to execute a final contract is documented. In the
example of 20 microgrids, the average computation time to complete all contracts is
determined to be less than one second (about 15.25ms), demonstrating the effectiveness
of the suggested trading methodology. Additionally, it should be emphasised that there
is a nearly linear relationship between the average contract matching time and the
number of microgrids in the network.
VBIT-EEE Page 10
A BLOCKCHAIN-ENABLED DECENTRALIZED ENERGY TRADING MECHANISM FOR INTERCONNECTED MICROGRIDS
phase, a pBFT is adopted. pBFT has been proposed in recent years as a viable
alternative to popular consensus methods such as PoW and PoS. Byzantine Fault
Tolerance (BFT) refers to the ability for a distributed network to reach an assured
consensus despite the presence of faulty or malicious nodes that propagate false data.
The consensus process developed in this work is shown in Fig.3.
3.5 Summary
In this chapter we have discussed about the block diagram of microgrid system along
with the software description and the specifications of the software used while
designing the system model. The software development cycle consisted of blockchain.
VBIT-EEE Page 11
A BLOCKCHAIN-ENABLED DECENTRALIZED ENERGY TRADING MECHANISM FOR INTERCONNECTED MICROGRIDS
CHAPTER 4
CONCLUSION
4.1 Conclusion
A two-layer energy trading algorithm for a collection of disconnected yet connected
microgrids is suggested in this research. The first layer of the two-layer algorithm
creates a preconditioned smart contract-based energy trading system, and the second
layer creates a model two-phase blockchain-based contract settlement protocol. In
order to ensure system dependability when the grid backup is unavailable, it was
discovered that the proposed electricity trading mechanism can effectively promote
energy trading between isolated networked microgrids. It also provides a mechanism
for price fairness negotiation for all peers in the network. Additionally, it encourages
the usage of clean energy. Additionally, the network's microgrids privacy will be
preserved because the proposed smart contract trading mechanism operates in a local
energy market where peers do not exchange data. Results have also demonstrated that,
when compared to conventional peer-to-peer price negotiation protocols found in the
literature, the suggested strategy is more time-effective. A revolutionary two-phase
consensus mechanism is also used to verify the transactions before they are added to
the blockchain.
VBIT-EEE Page 12
A BLOCKCHAIN-ENABLED DECENTRALIZED ENERGY TRADING MECHANISM FOR INTERCONNECTED MICROGRIDS
REFERENCES
1. T. M. Masaud, J. Warner and E. F. El-Saadany, "A Blockchain-Enabled Decentralized
Energy Trading Mechanism for Islanded Networked Microgrids," in IEEE Access, vol.
8, pp. 211291-211302, 2020, doi: 10.1109/ACCESS.2020.3038824.
2. K. Anoh, S. Maharjan, A. Ikpehai, Y. Zhang, and B. Adebisi, ‘‘Energy Peer-to-peer
trading in virtual microgrids in smart grids: A game-theoretic approach,’’ IEEE Trans.
Smart Grid, vol. 11, no. 2, pp. 1264–1275, Mar. 2020.
3. H. Zhang, H. Zhang, L. Song, Y. Li, Z. Han, and H. V. Poor, ‘‘Peer-to-peer energy
trading in DC packetized power microgrids,’’ IEEE J. Sel. Areas Commun., vol. 38,
no. 1, pp. 17–30, Jan. 2020.
4. Z. Zhang, H. Tang, P. Wang, Q. Huang, and W.-J. Lee, ‘‘Two-stage bidding strategy
for Peer-to-peer energy trading of nanogrid,’’ IEEE Trans. Ind. Appl., vol. 56, no. 2,
pp. 1000–1009, Mar. 2020.
5. W. Tushar, T. K. Saha, C. Yuen, D. Smith, and V. Poor, ‘‘Peer-to-peer Trading in
Electricity Networks: An Overview,’’ IEEE Trans. Smart Grid, vol. 1, no. 99, early
access pp. 1- 1, Jan. 2020.
6. M. . Hu, Y.-W. Wang, X. Lin, and Y. Shi, ‘‘A decentralized periodic energy trading
framework for pelagic islanded microgrids,’’ IEEE Trans. Ind. Electron., vol. 67, no. 9,
pp. 7595–7605, Sep. 2020.
7. W. Hou, L. Guo, and Z. Ning, ‘‘Local electricity storage for blockchainbased energy
trading in industrial Internet of Things,’’ IEEE Trans. Ind. Informat., vol. 15, no. 6, pp.
3610–3619, Jun. 2019.
8. . S. Musleh, G. Yao, and S. M. Muyeen, ‘‘Blockchain applications in smart Grid–
Review and frameworks,’’ IEEE Access, vol. 7, pp. 86746–86757, 2019.
9. F. Yang, W. Zhou, Q. Wu, R. Long, N. N. Xiong, and M. Zhou, ‘‘Delegated proof of
stake with downgrade: A secure and efficient blockchain consensus algorithm with
downgrade mechanism,’’ IEEE Access, vol. 7, pp. 118541–118555, Aug. 2019.
10. W. Zhong, K. Xie, Y. Liu, C. Yang, and S. Xie, ‘‘Auction mechanisms for energy
trading in multi-energy systems,’’ IEEE Trans. Ind. Informat., vol. 14, no. 4, pp. 1511–
1521, Apr. 2018.
11. S. Cui, Y.-W. Wang, and N. Liu, ‘‘Distributed game-based pricing strategy for energy
sharing in microgrid with PV prosumers,’’ IET Renew. Power Gener., vol. 12, no. 3,
VBIT-EEE Page 13
A BLOCKCHAIN-ENABLED DECENTRALIZED ENERGY TRADING MECHANISM FOR INTERCONNECTED MICROGRIDS
VBIT-EEE Page 14