Skip to main content

Elastic Resource Allocation in Sharding-Based Blockchains

  • Chapter
  • First Online:
Blockchain Scalability

Abstract

This chapter studies the PBFT-based sharded permissioned blockchain, which executes in either a local datacenter or a rented cloud platform. In such permissioned blockchain, the transaction (TX) assignment strategy could be malicious such that the network shards may possibly receive imbalanced transactions or even bursty-TX injection attacks. An imbalanced transaction assignment brings serious threats to the stability of the sharded blockchain. A stable sharded blockchain can ensure that each shard processes the arrived transactions timely. Since the system stability is closely related to the blockchain throughput, how to maintain a stable sharded blockchain becomes a challenge. To depict the transaction processing in each network shard, we adopt the Lyapunov Optimization framework. Exploiting drift-plus-penalty (DPP) technique, we then propose an adaptive resource-allocation algorithm, which can yield the near-optimal solution for each network shard while the shard queues can also be stably maintained. We also rigorously analyze the theoretical boundaries of both the system objective and the queue length of shards. The numerical results show that the proposed algorithm can achieve a better balance between resource consumption and queue stability than other baselines. We particularly evaluate two representative cases of bursty-TX injection attacks, i.e., the continued attacks against all network shards and the drastic attacks against a single network shard. The evaluation results show that the DPP-based algorithm can well alleviate the imbalanced TX assignment, and simultaneously maintain high throughput while consuming fewer resources than other baselines.

â’¸ 2022 IEEE https://doi.org/10.1109/TPDS.2022.3141737.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 129.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Hardcover Book
USD 169.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. L. Luu, V. Narayanan, C. Zheng, K. Baweja, S. Gilbert, P. Saxena, A secure sharding protocol for open blockchains, in ACM SIGSAC Conference on Computer and Communications Security (CCS’16) (ACM, 2016), pp. 17–30

    Google Scholar 

  2. M. Castro, B. Liskov et al., Practical byzantine fault tolerance, in OSDI, vol. 99 (1999), pp. 173–186

    Google Scholar 

  3. E. Kokoris-Kogias, P. Jovanovic, L. Gasser, N. Gailly, E. Syta, B. Ford, Omniledger: A secure, scale-out, decentralized ledger via sharding, in IEEE Symposium on Security and Privacy (SP) (2018), pp. 583–598

    Google Scholar 

  4. M. Zamani, M. Movahedi, M. Raykova, RapidChain: scaling blockchain via full sharding, in ACM SIGSAC Conference on Computer and Communications Security (CCS’18) (2018)

    Google Scholar 

  5. J. Wang, H. Wang, Monoxide: Scale out blockchains with asynchronous consensus zones, in 16th USENIX Symposium on Networked Systems Design and Implementation (NSDI 19), Boston, MA, February (USENIX Association, 2019), pp. 95–112

    Google Scholar 

  6. L.N. Nguyen, T.D.T. Nguyen, T.N. Dinh, M.T. Thai, Optchain: optimal transactions placement for scalable blockchain sharding, in IEEE 39th International Conference on Distributed Computing Systems (ICDCS) (IEEE, 2019), pp. 525–535

    Google Scholar 

  7. T. Nguyen, M.T. Thai, Denial-of-service vulnerability of hash-based transaction sharding: Attacks and countermeasures. arXiv:2007.08600 (2020)

    Google Scholar 

  8. M.J. Neely, Stochastic network optimization with application to communication and queueing systems. Synthesis Lectures Commun. Netw. 3(1), 1–211 (2010)

    Article  MATH  Google Scholar 

  9. Q.L. Li, J.Y. Ma, Y.X. Chang, Blockchain queue theory, in International Conference on Computational Social Networks (Springer, 2018), pp. 25–40

    Google Scholar 

  10. S. Ricci, E. Ferreira, D.S. Menasche, A. Ziviani, J.E. Souza, A.B. Vieira, Learning blockchain delays: a queueing theory approach. ACM SIGMETRICS Perform. Eval. Rev. 46(3), 122–125 (2019)

    Article  Google Scholar 

  11. R.A. Memon, J. Li, J. Ahmed, A. Khan, M.I. Nazir, M.I. Mangrio, Modeling of blockchain based systems using queuing theory simulation, in 2018 15th International Computer Conference on Wavelet Active Media Technology and Information Processing (ICCWAMTIP) (IEEE, 2018), pp. 107–111

    Google Scholar 

  12. Y. Kawase, S. Kasahara, A batch-service queueing system with general input and its application to analysis of mining process for bitcoin blockchain, in 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) (2018), pp. 1440–1447

    Google Scholar 

  13. J. Misic, V.B. Misic, X. Chang, S.G. Motlagh, M.Z. Ali, Block delivery time in bitcoin distribution network, in IEEE International Conference on Communications (ICC) (2019), pp. 1–7

    Google Scholar 

  14. Y. Jiao, P. Wang, D. Niyato, Z. Xiong, Social welfare maximization auction in edge computing resource allocation for mobile blockchain, in IEEE International Conference on Communications (ICC) (2018), pp. 1–6

    Google Scholar 

  15. N.C. Luong, Z. Xiong, P. Wang, D. Niyato, Optimal auction for edge computing resource management in mobile blockchain networks: A deep learning approach, in IEEE International Conference on Communications (ICC) (2018), pp. 1–6

    Google Scholar 

  16. M. Fang, J. Liu, Toward low-cost and stable blockchain networks, in IEEE International Conference on Communications (2020), pp. 1–6

    Google Scholar 

  17. H.W. Wang, Ethereum sharding: Overview and finality (2017). Accessed 8 Sept 2019

    Google Scholar 

  18. D. Dasgupta, J.M. Shrein, K.D. Gupta, A survey of blockchain from security perspective. J. Banking Financial Technol. 3(1), 1–17 (2019)

    Article  Google Scholar 

  19. H. Huang, S. Guo, W. Liang, K. Wang, Y. Okabe, Coflow-like online data acquisition from low-earth-orbit datacenters. IEEE Trans. Mobile Comput. 19(12), 2743–2760 (2020)

    Article  Google Scholar 

  20. S.T. Maguluri, R. Srikant, Scheduling jobs with unknown duration in clouds. IEEE/ACM Trans. Netw. (ToN) 22(6), 1938–1951 (2014)

    Google Scholar 

  21. J. Koo, J. Yi, J. Kim, M.A. Hoque, S. Choi, Seamless dynamic adaptive streaming in LTE/Wi-Fi integrated network under smartphone resource constraints. IEEE Trans. Mobile Comput. 18(7), 1647–1660 (2019)

    Article  Google Scholar 

Download references

Acknowledgements

This Work is partially supported by National Key R&D Program of China (No.2020YFB1006005), National Natural Science Foundation of China (61902445), Guangdong Basic and Applied Basic Research Foundation (2019A1515011798), Guangzhou Basic and Applied Basic Research Foundation (202102020613), Pearl River Talent Recruitment Program (No. 2019QN01X130), CCF-Huawei Populus euphratica forest fund (CCF-HuaweiBC2021004), Hong Kong RGC Research Impact Fund (RIF) with the Project No. R5060-19, General Research Fund (GRF) with the Project No. 152221/19E, 152203/20E, and 152244/21E, the National Natural Science Foundation of China (61872310), and Shenzhen Science and Technology Innovation Commission (R2020A045).

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Huawei Huang .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Huang, H. et al. (2023). Elastic Resource Allocation in Sharding-Based Blockchains. In: Chen, W., Zheng, Z., Huang, H. (eds) Blockchain Scalability. Springer, Singapore. https://doi.org/10.1007/978-981-99-1059-5_7

Download citation

  • DOI: https://doi.org/10.1007/978-981-99-1059-5_7

  • Published:

  • Publisher Name: Springer, Singapore

  • Print ISBN: 978-981-99-1058-8

  • Online ISBN: 978-981-99-1059-5

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics