CN116955090B - Calling chain monitoring system and method for chain service - Google Patents

Calling chain monitoring system and method for chain service Download PDF

Info

Publication number
CN116955090B
CN116955090B CN202311204303.0A CN202311204303A CN116955090B CN 116955090 B CN116955090 B CN 116955090B CN 202311204303 A CN202311204303 A CN 202311204303A CN 116955090 B CN116955090 B CN 116955090B
Authority
CN
China
Prior art keywords
call chain
call
chain
monitoring
event
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202311204303.0A
Other languages
Chinese (zh)
Other versions
CN116955090A (en
Inventor
严松
孙晓宇
刘利科
黄奎
陈俊林
何超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jixian Information Technology Co ltd
Original Assignee
Beijing Jixian Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jixian Information Technology Co ltd filed Critical Beijing Jixian Information Technology Co ltd
Priority to CN202311204303.0A priority Critical patent/CN116955090B/en
Publication of CN116955090A publication Critical patent/CN116955090A/en
Application granted granted Critical
Publication of CN116955090B publication Critical patent/CN116955090B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3006Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Quality & Reliability (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a call chain monitoring system and a method for chain service, which belong to the technical field of data processing, wherein the system comprises an abnormal event acquisition unit, an intelligent contract generation unit and a call chain monitoring unit; the abnormal event acquisition unit is used for acquiring call chain data when an abnormal request is received, and extracting event sets with time stamps corresponding to the call chain data; the intelligent contract generating unit is used for generating intelligent contracts according to the calling chain data and the event set with the time stamp; and the call chain monitoring unit is used for monitoring the event set according to the intelligent contract to complete the monitoring of the call chain. The call chain monitoring system generates an intelligent contract through the parameter analysis of the event and the call chain, and the intelligent contract can embody the relation between the event and the call chain parameter so as to be convenient for carrying out link monitoring.

Description

Calling chain monitoring system and method for chain service
Technical Field
The invention belongs to the technical field of data processing, and particularly relates to a call chain monitoring system and method for chain service.
Background
As computer systems become larger in size, the application architecture of the computer system evolves from centralized to distributed. After the application architecture of the computer system evolves from centralized to distributed, the overall call relationship of the distributed computer system becomes complex. After the call relations become complex, how to perform distributed call link monitoring becomes a problem. The existing monitoring technology for the call chain does not use intelligent contracts, and the intelligent contracts are greatly helpful for event monitoring of the call chain.
Disclosure of Invention
The invention provides a call chain monitoring system and a call chain monitoring method for chain service.
The technical scheme of the invention is as follows: the call chain monitoring system of the chain service comprises an abnormal event acquisition unit, an intelligent contract generation unit and a call chain monitoring unit;
the abnormal event acquisition unit is used for acquiring call chain data when an abnormal request is received, and extracting event sets with time stamps corresponding to the call chain data;
the intelligent contract generating unit is used for generating intelligent contracts according to the calling chain data and the event set with the time stamp;
and the call chain monitoring unit is used for monitoring the event set according to the intelligent contract to complete the monitoring of the call chain.
Further, the call chain data includes a request identification, a call initiation time, and a call chain length.
Further, the smart contract generation unit generating the smart contract includes the steps of:
encrypting the request identifier to generate an encrypted request identifier;
generating a calling time index according to the encryption request identification and the calling initiation time;
generating a call length index according to the encryption request identification and the call chain length;
and generating the intelligent contract according to the calling time index, the calling length index and the event set with the time stamp.
Further, the generation method of the encryption request identifier specifically comprises the following steps: the request identification is converted into a binary form, a binary request identification is generated, an event identification encryption function is constructed, the binary request identification is used as input of the event identification encryption function, and an encryption request identification is generated.
Further, the expression of the event identification encryption function F is:
the method comprises the steps of carrying out a first treatment on the surface of the Wherein R represents the number of the binary request identification values, hash (·) represents a hash function, and d r Representing the r-th value in the binary request identification.
Further, the calculation formula of the calling time index x is as follows:
the method comprises the steps of carrying out a first treatment on the surface of the In the formula, S represents the number of numerical values of the encryption request identification, T represents the call initiation time, e represents an exponent, and mod (·) represents a remainder operation.
Further, the calculation formula of the calling length index y is as follows:
the method comprises the steps of carrying out a first treatment on the surface of the In the formula, S represents the number of numerical values of the encryption request identification, L represents the call chain length, and e represents the exponent.
Further, the intelligent contract generation method specifically comprises the following steps: the method comprises the steps of obtaining a blank contract template, taking a calling time index as a first random number of the blank contract template, taking a calling length index as a second random number of the blank contract template, filling event sets with time stamps into the blank contract template according to a time stamp sequence, and generating an intelligent contract.
Further, the method for calling the chain monitoring unit to monitor specifically comprises the following steps: the set of events is monitored using the web3j framework.
The beneficial effects of the invention are as follows: the call chain monitoring system generates an intelligent contract through the parameter analysis of the event and the call chain, and the intelligent contract can embody the relation between the event and the call chain parameter so as to be convenient for carrying out link monitoring; the call chain monitoring system also monitors the event set by adopting the web3j framework, and the web3j framework can monitor the corresponding event after the intelligent contract is executed, so that the performance monitoring of the call chain of the distributed computer system is realized.
Based on the system, the invention also provides a call chain monitoring method of the chain service, which comprises the following steps:
collecting call chain data when an abnormal request is received, and extracting event sets with time stamps corresponding to the call chain data;
generating an intelligent contract according to the call chain data and the event set with the time stamp;
and monitoring the event set according to the intelligent contract to complete monitoring of the call chain.
The beneficial effects of the invention are as follows: the call chain monitoring method realizes performance monitoring of the call chain of the distributed computer system through the intelligent contract and the web3j framework.
Drawings
Fig. 1 is a schematic diagram of a call chain monitoring system of a chain service.
FIG. 2 is a flow chart of a call chain monitoring method of a chain service.
Detailed Description
Embodiments of the present invention are further described below with reference to the accompanying drawings.
As shown in fig. 1, the present invention provides a call chain monitoring system for a chain service, which includes an abnormal event acquisition unit, an intelligent contract generation unit and a call chain monitoring unit;
the abnormal event acquisition unit is used for acquiring call chain data when an abnormal request is received, and extracting event sets with time stamps corresponding to the call chain data;
the intelligent contract generating unit is used for generating intelligent contracts according to the calling chain data and the event set with the time stamp;
and the call chain monitoring unit is used for monitoring the event set according to the intelligent contract to complete the monitoring of the call chain.
The call chain is made up of a series of time-stamped events, so that upon receipt of an exception request, several events are generated, generating an event set.
In the embodiment of the invention, the call chain data comprises a request identification, a call initiation time and a call chain length.
In an embodiment of the present invention, the smart contract generation unit generates a smart contract including the steps of:
encrypting the request identifier to generate an encrypted request identifier;
generating a calling time index according to the encryption request identification and the calling initiation time;
generating a call length index according to the encryption request identification and the call chain length;
and generating the intelligent contract according to the calling time index, the calling length index and the event set with the time stamp.
In the embodiment of the invention, the generation method of the encryption request identifier specifically comprises the following steps: the request identification is converted into a binary form, a binary request identification is generated, an event identification encryption function is constructed, the binary request identification is used as input of the event identification encryption function, and an encryption request identification is generated.
Upon receipt of an exception request, an identification of the request call is generated, which is unique across the network, for identifying the request. The request identifier has a corresponding ASCII encoded value, converts the ASCII encoded value to an int type, and then converts the int type to a binary form.
In the embodiment of the present invention, the expression of the event identification encryption function F is:
the method comprises the steps of carrying out a first treatment on the surface of the Wherein R represents the number of the binary request identification values, hash (·) represents a hash function, and d r Representing the r-th value in the binary request identification.
The request identity in binary form consists of several values of 0 or 1, so d r 0 or 1.
In the embodiment of the invention, the calculation formula of the calling time index x is as follows:
the method comprises the steps of carrying out a first treatment on the surface of the In the formula, S represents the number of numerical values of the encryption request identification, T represents the call initiation time, e represents an exponent, and mod (·) represents a remainder operation.
When encrypting the request identifier, the request identifier is firstly converted into a binary form and then encrypted, so that the generated encrypted request identifier is also in the binary form, and a plurality of numerical values of 0 or 1 exist in the encrypted request identifier.
In the embodiment of the invention, the calculation formula of the calling length index y is as follows:
the method comprises the steps of carrying out a first treatment on the surface of the In the formula, S represents the number of numerical values of the encryption request identification, L represents the call chain length, and e represents the exponent.
In the embodiment of the invention, the method for generating the intelligent contract specifically comprises the following steps: the method comprises the steps of obtaining a blank contract template, taking a calling time index as a first random number of the blank contract template, taking a calling length index as a second random number of the blank contract template, filling event sets with time stamps into the blank contract template according to a time stamp sequence, and generating an intelligent contract.
The user can determine the format of the blank contract template according to the actual situation. In order to meet the requirement of the smart contract on randomness, random numbers are often used in the development of the smart contract, so that the random numbers used in the development of the smart contract need to be limited.
In the embodiment of the invention, the method for calling the chain monitoring unit to monitor specifically comprises the following steps: the set of events is monitored using the web3j framework.
web3j is a highly modular, flexible and secure Java class library and Android class library for handling smart contracts. And establishing connection to the chain service through the web3j, and monitoring the event on the chain according to the specific event to realize an effect of cross-service subscription.
Based on the above system, the invention also provides a call chain monitoring method of the chain service, as shown in fig. 2, comprising the following steps:
collecting call chain data when an abnormal request is received, and extracting event sets with time stamps corresponding to the call chain data;
generating an intelligent contract according to the call chain data and the event set with the time stamp;
and monitoring the event set according to the intelligent contract to complete monitoring of the call chain.
Those of ordinary skill in the art will recognize that the embodiments described herein are for the purpose of aiding the reader in understanding the principles of the present invention and should be understood that the scope of the invention is not limited to such specific statements and embodiments. Those of ordinary skill in the art can make various other specific modifications and combinations from the teachings of the present disclosure without departing from the spirit thereof, and such modifications and combinations remain within the scope of the present disclosure.

Claims (7)

1. The call chain monitoring system of the chain service is characterized by comprising an abnormal event acquisition unit, an intelligent contract generation unit and a call chain monitoring unit;
the abnormal event acquisition unit is used for acquiring call chain data when an abnormal request is received and extracting event sets with time stamps corresponding to the call chain data;
the intelligent contract generating unit is used for generating intelligent contracts according to the calling chain data and the event set with the time stamp;
the call chain monitoring unit is used for monitoring the event set according to the intelligent contract to complete the monitoring of the call chain;
the call chain data comprises a request identifier, call initiation time and call chain length;
the smart contract generation unit generating a smart contract includes the steps of:
encrypting the request identifier to generate an encrypted request identifier;
generating a calling time index according to the encryption request identification and the calling initiation time;
generating a call length index according to the encryption request identification and the call chain length;
generating an intelligent contract according to the calling time index, the calling length index and the event set with the time stamp;
the intelligent contract generation method specifically comprises the following steps: the method comprises the steps of obtaining a blank contract template, taking a calling time index as a first random number of the blank contract template, taking a calling length index as a second random number of the blank contract template, filling event sets with time stamps into the blank contract template according to a time stamp sequence, and generating an intelligent contract.
2. The call chain monitoring system of a chain service according to claim 1, wherein the encryption request identification generation method specifically comprises: the request identification is converted into a binary form, a binary request identification is generated, an event identification encryption function is constructed, the binary request identification is used as input of the event identification encryption function, and an encryption request identification is generated.
3. The call chain monitoring system of a chain service according to claim 2, wherein the expression of the event identification encryption function F is:
the method comprises the steps of carrying out a first treatment on the surface of the Wherein R represents the number of the binary request identification values, hash (·) represents a hash function, and d r Representing the r-th value in the binary request identification.
4. The call chain monitoring system of a chain service according to claim 1, wherein the calculation formula of the call time index x is:
the method comprises the steps of carrying out a first treatment on the surface of the In the formula, S represents the number of numerical values of the encryption request identification, T represents the call initiation time, e represents an exponent, and mod (·) represents a remainder operation.
5. The call chain monitoring system of a chain service according to claim 1, wherein the calculation formula of the call length index y is:
the method comprises the steps of carrying out a first treatment on the surface of the In the formula, S represents the number of numerical values of the encryption request identification, L represents the call chain length, and e represents the exponent.
6. The call chain monitoring system of a chain service according to claim 1, wherein the method for monitoring by the call chain monitoring unit specifically comprises: the set of events is monitored using the web3j framework.
7. A call chain monitoring method of chain service is characterized by comprising the following steps:
collecting call chain data when an abnormal request is received, and extracting event sets with time stamps corresponding to the call chain data;
generating an intelligent contract according to the call chain data and the event set with the time stamp;
monitoring the event set according to the intelligent contract to complete monitoring of the scheduling chain;
the call chain monitoring method of the chain service utilizes a call chain monitoring system of the chain service, and the system comprises an abnormal event acquisition unit, an intelligent contract generation unit and a call chain monitoring unit;
the abnormal event acquisition unit is used for acquiring call chain data when an abnormal request is received and extracting event sets with time stamps corresponding to the call chain data;
the intelligent contract generating unit is used for generating intelligent contracts according to the calling chain data and the event set with the time stamp;
the call chain monitoring unit is used for monitoring the event set according to the intelligent contract to complete the monitoring of the call chain;
the call chain data comprises a request identifier, call initiation time and call chain length;
the smart contract generation unit generating a smart contract includes the steps of:
encrypting the request identifier to generate an encrypted request identifier;
generating a calling time index according to the encryption request identification and the calling initiation time;
generating a call length index according to the encryption request identification and the call chain length;
generating an intelligent contract according to the calling time index, the calling length index and the event set with the time stamp;
the intelligent contract generation method specifically comprises the following steps: the method comprises the steps of obtaining a blank contract template, taking a calling time index as a first random number of the blank contract template, taking a calling length index as a second random number of the blank contract template, filling event sets with time stamps into the blank contract template according to a time stamp sequence, and generating an intelligent contract.
CN202311204303.0A 2023-09-19 2023-09-19 Calling chain monitoring system and method for chain service Active CN116955090B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311204303.0A CN116955090B (en) 2023-09-19 2023-09-19 Calling chain monitoring system and method for chain service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311204303.0A CN116955090B (en) 2023-09-19 2023-09-19 Calling chain monitoring system and method for chain service

Publications (2)

Publication Number Publication Date
CN116955090A CN116955090A (en) 2023-10-27
CN116955090B true CN116955090B (en) 2023-11-28

Family

ID=88458628

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311204303.0A Active CN116955090B (en) 2023-09-19 2023-09-19 Calling chain monitoring system and method for chain service

Country Status (1)

Country Link
CN (1) CN116955090B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107306196A (en) * 2016-04-20 2017-10-31 中兴通讯股份有限公司 Virtualization services monitoring method and device
CN109284197A (en) * 2018-10-25 2019-01-29 中思博安科技(北京)有限公司 Distributed Application platform and implementation method based on intelligent contract
CN109447799A (en) * 2018-10-08 2019-03-08 全链通有限公司 Intelligent contract method of commerce and system based on block chain network
CN110708212A (en) * 2019-09-10 2020-01-17 中国平安财产保险股份有限公司 Method and device for tracking call link in distributed system
CN110865927A (en) * 2019-11-20 2020-03-06 腾讯科技(深圳)有限公司 Block chain call link abnormity detection method and device and computer equipment
CN110908813A (en) * 2019-11-18 2020-03-24 深圳前海环融联易信息科技服务有限公司 Intelligent contract calling method, device, system, computer equipment and storage medium
CN111522746A (en) * 2020-04-23 2020-08-11 腾讯科技(深圳)有限公司 Data processing method, device, equipment and computer readable storage medium
CN111756601A (en) * 2020-06-24 2020-10-09 中国平安财产保险股份有限公司 Microservice architecture monitoring method and device, computer equipment and readable storage medium
CN112015769A (en) * 2020-09-01 2020-12-01 平安付科技服务有限公司 Data processing method and device, computer equipment and storage medium
CN112612555A (en) * 2020-12-24 2021-04-06 深圳赛安特技术服务有限公司 Method, device, equipment and storage medium for acquiring call chain of third-party library
CN112685500A (en) * 2020-12-28 2021-04-20 山东浪潮质量链科技有限公司 Link tracking and evidence storing method and device based on block chain and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11263315B2 (en) * 2018-12-03 2022-03-01 Ebay Inc. System level function based access control for smart contract execution on a blockchain

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107306196A (en) * 2016-04-20 2017-10-31 中兴通讯股份有限公司 Virtualization services monitoring method and device
CN109447799A (en) * 2018-10-08 2019-03-08 全链通有限公司 Intelligent contract method of commerce and system based on block chain network
CN109284197A (en) * 2018-10-25 2019-01-29 中思博安科技(北京)有限公司 Distributed Application platform and implementation method based on intelligent contract
CN110708212A (en) * 2019-09-10 2020-01-17 中国平安财产保险股份有限公司 Method and device for tracking call link in distributed system
CN110908813A (en) * 2019-11-18 2020-03-24 深圳前海环融联易信息科技服务有限公司 Intelligent contract calling method, device, system, computer equipment and storage medium
CN110865927A (en) * 2019-11-20 2020-03-06 腾讯科技(深圳)有限公司 Block chain call link abnormity detection method and device and computer equipment
CN111522746A (en) * 2020-04-23 2020-08-11 腾讯科技(深圳)有限公司 Data processing method, device, equipment and computer readable storage medium
CN111756601A (en) * 2020-06-24 2020-10-09 中国平安财产保险股份有限公司 Microservice architecture monitoring method and device, computer equipment and readable storage medium
CN112015769A (en) * 2020-09-01 2020-12-01 平安付科技服务有限公司 Data processing method and device, computer equipment and storage medium
CN112612555A (en) * 2020-12-24 2021-04-06 深圳赛安特技术服务有限公司 Method, device, equipment and storage medium for acquiring call chain of third-party library
CN112685500A (en) * 2020-12-28 2021-04-20 山东浪潮质量链科技有限公司 Link tracking and evidence storing method and device based on block chain and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
聚力普惠金融:齐商银行供应链金融服务实体经济——访齐商银行副行长邹倩;叶纯青 等;金融科技时代(第第6期期);10-14 *

Also Published As

Publication number Publication date
CN116955090A (en) 2023-10-27

Similar Documents

Publication Publication Date Title
WO2019153735A1 (en) Data processing method, device and system
CN112035404B (en) Medical data monitoring and early warning method, device, equipment and storage medium
CN112688822B (en) Edge computing fault or security threat monitoring system and method based on multi-point cooperation
CN106326461B (en) A kind of real-time processing support method and system based on network signal record
CN112333342B (en) Intelligent voice calling method, device, equipment and storage medium
CN111338247A (en) Simulation control system and method based on Internet of things
CN116955090B (en) Calling chain monitoring system and method for chain service
CN113806191A (en) Data processing method, device, equipment and storage medium
CN111860911A (en) Intelligent supervision reservation system for large-scale fixed scientific research equipment and use method thereof
CN113887964B (en) Production line simulation system based on man-machine method
CN108304293A (en) A kind of software systems monitoring method based on big data technology
CN117097753B (en) Data acquisition system based on industrial Internet identification
CN113032358B (en) Water affair data processing method and device and terminal equipment
CN113408752A (en) Garbage recovery supervision system and method based on block chain
CN112818047A (en) Data storage method and device based on distributed database and electronic equipment
CN112162951A (en) Information retrieval method, server and storage medium
CN111914215A (en) Advertisement data statistical method, device and system
CN106713496A (en) Method for managing equipment of internet of things and server
CN117201501A (en) Intelligent engineering sharing management system and operation method
CN111526171B (en) Industrial Internet platform based on protocol nodes
CN110648417A (en) Attendance reminding method, system, medium and attendance equipment
CN108989116B (en) Big data collection and analysis system and method
CN110635951A (en) Electric power safety monitoring standardized communication method, safety monitoring device and master station management platform
CN116089508A (en) System and method based on data acquisition and account checking
CN115422259A (en) Data processing method, system, equipment and storage medium of time sequence database

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant