《计算机应用》唯一官方网站 ›› 2022, Vol. 42 ›› Issue (11): 3421-3428.DOI: 10.11772/j.issn.1001-9081.2021111935
所属专题: 2021 CCF中国区块链技术大会(CCF CBCC 2021)
• 2021 CCF中国区块链技术大会(CCF CBCC 2021) • 上一篇 下一篇
李杉杉1,2, 王岩泽1,2, 邹英龙1,2, 陈焕雷3, 张贺1,2(), 吴欧1,2
收稿日期:
2021-11-14
修回日期:
2022-01-21
接受日期:
2022-02-28
发布日期:
2022-05-07
出版日期:
2022-11-10
通讯作者:
张贺
作者简介:
李杉杉(1990—),女,山东平度人,助理研究员,博士,CCF会员,主要研究方向:微服务架构、区块链、软件工程基金资助:
Shanshan LI1,2, Yanze WANG1,2, Yinglong ZOU1,2, Huanlei CHEN3, He ZHANG1,2(), Ou WU1,2
Received:
2021-11-14
Revised:
2022-01-21
Accepted:
2022-02-28
Online:
2022-05-07
Published:
2022-11-10
Contact:
He ZHANG
About author:
LI Shanshan, born in 1990, Ph. D., assistant research fellow. Her research interests include microservice architecture, blockchain, software engineering.Supported by:
摘要:
联盟链缺少展示各个节点资源使用情况、健康状态、互相关系、共识交易流程等方面的可视化方法,为此提出一种基于自定义日志的Fabric共识交易轨迹追踪方法(FTL)。首先,以典型联盟链框架Hyperledger Fabric为基础设施实现区块链底层构建;然后,利用ELK工具链收集与解析Fabric的自定义共识交易日志,并利用Spring Boot作为业务逻辑处理框架;最后,采用专注于图分析领域的Graphin实现共识交易轨迹的可视化。实验结果表明,与原生Fabric应用相比,基于FTL的Fabric的应用框架在实现可视化追踪基础后,平均性能仅下降了8.8%,未造成显著延迟,可以为监管方提供更加智能的区块链监管方案。
中图分类号:
李杉杉, 王岩泽, 邹英龙, 陈焕雷, 张贺, 吴欧. 基于自定义日志的Fabric的共识交易轨迹可视化追踪方法[J]. 计算机应用, 2022, 42(11): 3421-3428.
Shanshan LI, Yanze WANG, Yinglong ZOU, Huanlei CHEN, He ZHANG, Ou WU. Consensus transaction trajectory visualization tracking method for Fabric based on custom logs[J]. Journal of Computer Applications, 2022, 42(11): 3421-3428.
字段 | 字段说明 | 示例 |
---|---|---|
log_type | 标识位,为了区分 Fabric 原有的日志 | for_trace_log |
trace_txid | 交易 ID | 6645e8d225b40f29769b |
trace_channelid | 通道 ID | mychannel |
source_ip | 发送方信息 | 172.20.0.1:36444 |
dest_ip | 接收方信息 | orderer.example.com |
event_type | 事件类型,判断共识 交易处于哪个环节中 | broadcast |
表1 自定义日志字段格式
Tab. 1 Customized log field format
字段 | 字段说明 | 示例 |
---|---|---|
log_type | 标识位,为了区分 Fabric 原有的日志 | for_trace_log |
trace_txid | 交易 ID | 6645e8d225b40f29769b |
trace_channelid | 通道 ID | mychannel |
source_ip | 发送方信息 | 172.20.0.1:36444 |
dest_ip | 接收方信息 | orderer.example.com |
event_type | 事件类型,判断共识 交易处于哪个环节中 | broadcast |
组件 | 版本信息 |
---|---|
Filebeat | docker.elastic.co/beats/filebeat:7.10.2 |
Logstash | docker.elastic.co/logstash/logstash:7.10.2 |
Elasticsearch | docker.elastic.co/elasticsearch/elasticsearch:7.10.2 |
Prometheus | prom/prometheus:v2.25.1 |
Grafana | grafana/grafana:7.4.3 |
Spring Boot | 2.4.2 |
Ant Design Pro | 4.5.0 |
Graphin | 2.0.1 |
表2 FTL工具开发涉及组件或框架的版本信息
Tab. 2 Version information of components or frameworks involved in FTL tool development
组件 | 版本信息 |
---|---|
Filebeat | docker.elastic.co/beats/filebeat:7.10.2 |
Logstash | docker.elastic.co/logstash/logstash:7.10.2 |
Elasticsearch | docker.elastic.co/elasticsearch/elasticsearch:7.10.2 |
Prometheus | prom/prometheus:v2.25.1 |
Grafana | grafana/grafana:7.4.3 |
Spring Boot | 2.4.2 |
Ant Design Pro | 4.5.0 |
Graphin | 2.0.1 |
环境项 | 说明 | 环境项 | 说明 |
---|---|---|---|
虚拟机 | VMware Workstation 14 Pro | Docker 版本 | 19.03.12 |
操作系统 | CentOS 7 | Fabric 版本 | 2.3.0 |
内存 | 6G | Tape 版本 | 0.1.1 |
CPU | 2 核 |
表3 性能测试环境
Tab. 3 Environment of performance testing
环境项 | 说明 | 环境项 | 说明 |
---|---|---|---|
虚拟机 | VMware Workstation 14 Pro | Docker 版本 | 19.03.12 |
操作系统 | CentOS 7 | Fabric 版本 | 2.3.0 |
内存 | 6G | Tape 版本 | 0.1.1 |
CPU | 2 核 |
1 | NAKAMOTO S. Bitcoin: a peertopeer electronic cash system[EB/OL]. (2008-11-31) [2022-01-07]. . 10.2139/ssrn.3065723 |
2 | KHETTRY A R, PATIL K R, BASAVARAJU A C. A detailed review on blockchain and its applications[J]. SN Computer Science, 2021, 2(1): 30. 10.1007/s42979-020-00366-x |
3 | GHOSH A, GUPTA S, DUA A, et al. Security of cryptocurrencies in blockchain technology: stateofart, challenges and future prospects[J]. Journal of Network and Computer Applications, 2020, 163: 102635. 10.1016/j.jnca.2020.102635 |
4 | LUND E H, JACCHERI L, LI J, et al. Blockchain and sustainability: a systematic mapping study[C]// Proceedings of the 2019 IEEE/ACM 2nd International Workshop on Emerging Trends in Software Engineering for Blockchain. Piscataway: IEEE, 2019: 16-23. 10.1109/wetseb.2019.00009 |
5 | POURNADER M, SHI Y, SEURING S, et al. Blockchain applications in supply chains, transport and logistics: a systematic review of the literature[J]. International Journal of Production Research, 2020, 58(7): 2063-2081. 10.1080/00207543.2019.1650976 |
6 | HAN M, LI Z, HE J S, et al. A novel blockchainbased education records verification solution[C]// Proceedings of the 19th Annual SIG Conference on Information Technology Education. New York: ACM, 2018: 178-183. 10.1145/3241815.3241870 |
7 | NARIKIMILLI N R S, KUMAR A, ANTU A D, et al. Blockchain applications in healthcare — a review and future perspective[C]// Proceedings of the 2020 International Conference on Blockchain. Cham: Springer. 2020: 198-218. 10.1007/978-3-030-59638-5_14 |
8 | 邹萍, 李艳东, 王肖, 等. 区块链监管的现状与展望 [J]. 网络空间安全, 2019, 10(6): 51-56. |
ZOU P, LI Y D, WANG X, et al.The status quo and future trends of blockchain regulation[J].Cyberspace Security,2019, 10(6): 51-56. | |
9 | QAYYUM A, QADIR J, JANJUA M U, et al. Using blockchain to rein in the new post‑truth world and check the spread of fake news[J]. IT Professional, 2019, 21(4): 16-24. 10.1109/mitp.2019.2910503 |
10 | IQBAL M, MATULEVIČIUS R. Blockchainbased application security risks: A systematic literature review[C]// Proceedings of the 2019 International Conference on Advanced Information Systems Engineering. Cham: Springer, 2019: 176-188. 10.1007/978-3-030-20948-3_16 |
11 | TAYLO P J, DARGAHI T, DEHGHANTANHA A, et al. A systematic literature review of blockchain cyber security[J]. Digital Communications and Networks, 2020, 6(2): 147-156. 10.1016/j.dcan.2019.01.005 |
12 | 洪学海, 汪洋, 廖方宇. 区块链安全监管技术研究综述 [J]. 中国科学基金, 2020,34(1): 18-24. 10.16262/j.cnki.1000-8217.20200313.005 |
HONG X H, WANG Y, LIAO F Y. Review on the Technology Research of Blockchain Security Supervision[J]. Bulletin of National Natural Science Foundation of China, 2020, 34(1): 18-24. 10.16262/j.cnki.1000-8217.20200313.005 | |
13 | 袁勇, 王飞跃. 区块链技术发展现状与展望 [J]. 自动化学报, 2016, 42(4): 481-494. 10.16383/j.aas.2016.c160158 |
YUAN Y, WANG F Y. Blockchain: the state of the art and future trends[J].Acta Automatica Sinica, 2016, 42(4): 481-494. 10.16383/j.aas.2016.c160158 | |
14 | 郭上铜,王瑞锦,张凤荔.区块链技术原理与应用综述[J].计算机科学,2021,48(2):271-281. 10.11896/jsjkx.200800021 |
GUO S T, WANG R J, ZHANG F L. Summary of principle and application of blockchain[J]. Computer Science, 2021, 48(2): 271-281. 10.11896/jsjkx.200800021 | |
15 | LIN I C, LIAO T C. A survey of blockchain security issues and challenges[J]. International Journal of Network Security, 2017, 19(5): 653-659. |
16 | KAUR G, GANDHI C. Scalability in blockchain: challenges and solutions[M]// Handbook of Research on Blockchain Technology. Pittsburgh: Academic Press, 2020: 373-406. 10.1016/b978-0-12-819816-2.00015-0 |
17 | 邵奇峰, 张召, 朱燕超, 等.企业级区块链技术综述 [J]. 软件学报, 2019, 30(9): 2571– 2592. |
SHAO Q F, ZHANG Z, ZHU Y C, et al. Survey of enterprise blockchains[J]. Journal of Software,2019, 30(9): 2571-2592. | |
18 | YANG C‑T, KRISTIANI E, WANG Y‑T, et al. On construction of a network log management system using ELK Stack with Ceph [J]. The Journal of Supercomputing, 2020, 76(8): 6344-6360. 10.1007/s11227-019-02853-2 |
19 | SHAH J, DUBARIA D. Building modern clouds: using Docker, Kubernetes & Google cloud platform[C]// Proceedings of the 2019 IEEE 9th Annual Computing and Communication Workshop and Conference. Piscataway: IEEE. 2019: 0184 - 0189. 10.1109/ccwc.2019.8666479 |
20 | KO K, LEE C, JEONG T, et al. Design of RPCbased blockchain monitoring agent[C]// Proceedings of the 2018 International Conference on Information and Communication Technology Convergence. Piscataway: IEEE, 2018: 1090-1095. 10.1109/ictc.2018.8539456 |
21 | LEE C, KIM H, MAHARJAN S, et al. Blockchain explorer based on RPCbased monitoring system[C]// Proceedings of the 2019 IEEE International Conference on Blockchain and Cryptocurrency. Piscataway: IEEE, 2019: 117-119. 10.1109/bloc.2019.8751468 |
22 | ZHENG P, ZHENG Z, LUO X, et al. A detailed and realtime performance monitoring framework for blockchain systems[C]// Proceedings of the 2018 IEEE/ACM 40th International Conference on Software Engineering: Software Engineering in Practice Track. New York: ACM, 2018: 134-143. 10.1145/3183519.3183546 |
23 | KANGA D B, AZZOUAZI M, GHOUMRARI M Y EL, et al. Management and monitoring of blockchain systems [J]. Procedia Computer Science, 2020, 177: 605-612. 10.1016/j.procs.2020.10.086 |
24 | HELEBRANDT P, BELLUS M, RIES M, et al. Blockchain adoption for monitoring and management of enterprise networks [C]// Proceedings of the 2018 IEEE 9th Annual Information Technology, Electronics and Mobile Communication Conference. Piscataway: IEEE, 2018: 1221-1225. 10.1109/iemcon.2018.8614960 |
[1] | 陈廷伟, 张嘉诚, 王俊陆. 面向联邦学习的随机验证区块链构建[J]. 《计算机应用》唯一官方网站, 2024, 44(9): 2770-2776. |
[2] | 雷芳, 牛永才. 基于改进广义正交匹配追踪的低地球轨道卫星MIMO-OTFS系统的信道估计方法[J]. 《计算机应用》唯一官方网站, 2024, 44(8): 2514-2520. |
[3] | 孙晓玲, 王丹辉, 李姗姗. 基于区块链的动态密文排序检索方案[J]. 《计算机应用》唯一官方网站, 2024, 44(8): 2500-2505. |
[4] | 黄河, 金瑜. 基于投票和以太坊智能合约的云数据审计方案[J]. 《计算机应用》唯一官方网站, 2024, 44(7): 2093-2101. |
[5] | 赵雅娟, 孟繁军, 徐行健. 在线教育学习者知识追踪综述[J]. 《计算机应用》唯一官方网站, 2024, 44(6): 1683-1698. |
[6] | 徐月梅, 胡玲, 赵佳艺, 杜宛泽, 王文清. 大语言模型的技术应用前景与风险挑战[J]. 《计算机应用》唯一官方网站, 2024, 44(6): 1655-1662. |
[7] | 李皎, 张秀山, 宁远航. 降低跨分片交易比例的区块链分片方法[J]. 《计算机应用》唯一官方网站, 2024, 44(6): 1889-1896. |
[8] | 赵莉朋, 郭兵. 基于BDLS的区块链共识改进算法[J]. 《计算机应用》唯一官方网站, 2024, 44(4): 1139-1147. |
[9] | 陈美宏, 袁凌云, 夏桐. 基于主从多链的数据分类分级访问控制模型[J]. 《计算机应用》唯一官方网站, 2024, 44(4): 1148-1157. |
[10] | 高改梅, 张瑾, 刘春霞, 党伟超, 白尚旺. 基于区块链与CP-ABE策略隐藏的众包测试任务隐私保护方案[J]. 《计算机应用》唯一官方网站, 2024, 44(3): 811-818. |
[11] | 马海峰, 李玉霞, 薛庆水, 杨家海, 高永福. 用于实现区块链隐私保护的属性基加密方案[J]. 《计算机应用》唯一官方网站, 2024, 44(2): 485-489. |
[12] | 王震, 张珊珊, 邬斌扬, 苏万华. 基于自适应粒子群优化算法的串联复合涡轮储能优化策略[J]. 《计算机应用》唯一官方网站, 2024, 44(2): 611-618. |
[13] | 陈姿芊, 牛科迪, 姚中原, 斯雪明. 适用于物联网的区块链轻量化技术综述[J]. 《计算机应用》唯一官方网站, 2024, 44(12): 3688-3698. |
[14] | 高婷婷, 姚中原, 贾淼, 斯雪明. 链上链下一致性保护技术综述[J]. 《计算机应用》唯一官方网站, 2024, 44(12): 3658-3668. |
[15] | 贾淼, 姚中原, 祝卫华, 高婷婷, 斯雪明, 邓翔. 零知识证明赋能区块链的进展与展望[J]. 《计算机应用》唯一官方网站, 2024, 44(12): 3669-3677. |
阅读次数 | ||||||
全文 |
|
|||||
摘要 |
|
|||||