A remote service handling system and a transaction process full-process trace method

By using the CUSUM algorithm to identify and locate abnormal stages in the record-keeping process of remote business transactions, the problem of untimely identification of record-keeping in traditional methods is solved, thus achieving the integrity and traceability of record-keeping.

CN123181128APending Publication Date: 2026-11-27WUHAN RUIMINGSI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611376666.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-07
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In traditional remote business transaction processing, as the write latency of the log records gradually increases with continuous transaction events, it may not reach the abnormal judgment conditions, resulting in the log records being unable to be identified and located in a timely manner under abnormal circumstances, causing the record persistence problem to be incomplete.

Method used

The CUSUM algorithm is used to calculate the write latency of the trace records, establish a latency benchmark and judgment threshold, continuously accumulate the latency changes of transaction events, identify and locate abnormal stages of the trace records, and associate them with existing records.

Benefits of technology

It effectively identifies and locates abnormal stages in the trace records, reducing the number of cases where the status of a single write or the amount of lag is not determined, thus improving the integrity and traceability of the trace records.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123181128A_ABST
    Figure CN123181128A_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of data security, in particular to a remote service handling system and a transaction process whole-process trace method. The present application forms a trace writing lag amount by acquiring a business processing receiving time of a transaction event and a record writing confirmation time of a corresponding trace record, and forms a trace writing lag sequence according to the business processing receiving time. On this basis, a trace writing lag benchmark and a judgment threshold are established. Then, the CUSUM algorithm is used to continuously accumulate the trace writing lag amount of the detection period, so that the changes in the continuous transaction events that have not yet reached the single obvious abnormal degree but continuously deviate from the trace writing lag benchmark can be gradually accumulated in the accumulation and statistical amount, and the lag judgment transaction event is determined accordingly. Then, the accumulation and statistical amount sequence is traced back from the lag judgment transaction event, the lag starting event and the trace lag interval are determined, and the trace lag interval is associated with the existing trace record and written into the transaction archive.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data security technology, and in particular to a remote business processing system and a method for recording the entire transaction process. Background Technology

[0002] The field of data security technology mainly involves the security management of the use and flow of data in business activities. Its focus usually includes how data is identified and processed by the system after it is generated by users, how data is transferred and stored between different business entities, and how related operational behaviors form verifiable records.

[0003] In data security management, it is often necessary to keep a complete record of remote business transactions to ensure traceability and integrity. Traditional methods of keeping a complete record of remote business transactions typically involve generating a corresponding record after the business processing program receives a transaction event, writing the record to a recording storage medium, and judging the record writing status by whether the write was successful or whether the time taken for a single write exceeded a preset limit. While this traditional method can detect record writing failures or situations where the time taken for a single write significantly exceeds the limit, individual transaction events may still fail to meet the anomaly detection criteria even when the record writing continues and the write latency gradually increases with consecutive transaction events. For example, if the write latency for consecutive transaction events gradually increases from 50 milliseconds to 100 milliseconds, 180 milliseconds, and 260 milliseconds, each transaction event may continue to complete the write to the recording storage medium. Therefore, within a continuous transaction process, each event may still be treated as a transaction event that has not triggered an anomaly, even though the record writing time has gradually lagged behind the business processing reception time. As this lag accumulates, the number of transaction events that have been received by the business processing program but whose corresponding trace records have not yet been written and confirmed may increase continuously. If a process abnormality, a stored procedure abnormality, or a trace record that has not yet been written cannot continue to be persisted at this stage, the trace records corresponding to multiple consecutive transaction events may be in a state of incomplete persistence. Summary of the Invention

[0004] To achieve the above objectives, the present invention adopts the following technical solution: a remote business processing system includes: The trace collection module obtains the business processing reception time of transaction events and the record writing confirmation time of the corresponding trace records during the remote business processing process to calculate the trace writing hysteresis. The trace writing hysteresis is used as the observation in the CUSUM algorithm and then arranged in the order of business processing reception time to form a trace writing hysteresis sequence. The benchmark determination module continuously reads observations from the starting position of the trace writing hysteresis sequence, determines the number of samples based on the observations, and establishes a trace writing hysteresis benchmark; it then accumulates the observations sequentially according to the trace writing hysteresis benchmark to determine the determination threshold. The hysteresis accumulation module selects the observations during the detection period from the hysteresis sequence written to the trace, and performs continuous accumulation through the CUSUM algorithm. The accumulated hysteresis accumulation values ​​are recorded as cumulative sum statistics and arranged in the order of accumulation as a cumulative sum statistics sequence. The hysteresis determination module compares each cumulative sum statistic with the determination threshold in the order of the cumulative sum statistic sequence, and determines the hysteresis determination transaction event based on the comparison results. The trace marking module backtracks the cumulative and statistical sequences from the location of the delayed transaction event, and generates a trace delay mark corresponding to the existing trace record based on the backtracking result, so as to realize the association record of the abnormal stage of the trace record during the remote business transaction process.

[0005] As a further aspect of the present invention, in the trace acquisition module, when the business processing program receives the transaction event, the current time of the server clock is recorded as the business processing reception time. When the trace record corresponding to the transaction event completes the writing to the trace storage medium and returns a write success status, the current time of the server clock is recorded as the record write confirmation time. The difference between the record write confirmation time and the business processing reception time is calculated to obtain the trace write hysteresis. At the same time, the correspondence between the observation and the transaction event is established, and the observations are arranged in the order of the business processing reception time to form the trace write hysteresis sequence.

[0006] As a further aspect of the present invention, the number of samples is obtained by continuously reading the already formed observations from the starting position of the trace writing hysteresis sequence and counting the number of the read observations; then, the average value of all the observations corresponding to the number of samples is taken as the benchmark average value, and the benchmark average value is used as the trace writing hysteresis benchmark.

[0007] As a further aspect of the present invention, in the benchmark determination module, determining the determination threshold includes: A baseline standard deviation is obtained by calculating the standard deviation of all observations corresponding to the specified sample size. This baseline standard deviation is used as the mean offset. Half of this mean offset is calculated to obtain a reference value. A CUSUM recursive rule is established to determine the hysteresis cumulative value based on the baseline mean, the reference value, and the acceptance value. The CUSUM recursive rule includes: calculating the difference between the current observation and the baseline mean to obtain the hysteresis offset; calculating the difference between the hysteresis offset and the reference value to obtain the hysteresis correction; adding the hysteresis correction to the acceptance value to obtain the hysteresis cumulative update value; when the hysteresis cumulative update value is less than zero, the corresponding hysteresis cumulative value is set to zero; when the hysteresis cumulative update value is greater than or equal to zero, the hysteresis cumulative update value is used as the corresponding hysteresis cumulative value. Then, according to the order of the trace written hysteresis sequence, the observations corresponding to the number of samples are selected sequentially. When selecting for the first time, zero is used as the accepting value. When selecting for subsequent times, the baseline hysteresis cumulative value corresponding to the previously selected observation is used as the accepting value. The baseline hysteresis cumulative value corresponding to each observation is obtained according to the CUSUM recursive rule. Each baseline hysteresis cumulative value is recorded as a baseline cumulative sum statistic, and the maximum value among them is selected as the judgment threshold.

[0008] As a further aspect of the present invention, in the hysteresis accumulation module, performing continuous accumulation using the CUSUM algorithm includes: The observations following the last observation corresponding to the number of samples are selected sequentially from the trace writing hysteresis sequence as the observations for the detection period. For the first selection, zero is used as the accepting value; for subsequent selections, the cumulative trace hysteresis value corresponding to the observations of the previous detection period is used as the accepting value. Based on the baseline mean, the reference value, and the accepting value, the cumulative trace hysteresis value corresponding to the observations of the current detection period is obtained according to the CUSUM recursive rule. The cumulative value of the trace hysteresis is recorded as the cumulative sum statistic. The cumulative sum statistic is arranged in the order of the selected observations during the detection period to form the cumulative sum statistic sequence.

[0009] As a further aspect of the present invention, in the hysteresis determination module, determining the hysteresis-determined transaction event includes: The cumulative sum statistics are selected sequentially according to the cumulative sum statistics sequence. The transaction event associated with the observation of the detection period corresponding to the current cumulative sum statistics is recorded as the first transaction event. When selected for the first time, zero is used as the comparison value. When selected for other times, the transaction event that was last compared before the first transaction event is recorded as the second transaction event. The cumulative sum statistics corresponding to the second transaction event are used as the comparison value. When the comparison value is greater than zero and the cumulative sum statistics corresponding to the first transaction event is greater than or equal to the judgment threshold, the first transaction event is determined as the hysteresis judgment transaction event and the current round of hysteresis judgment accumulation ends.

[0010] As a further aspect of the present invention, determining the delayed transaction event also includes: When the comparison value is equal to zero and the cumulative sum statistic corresponding to the first transaction event is greater than or equal to the determination threshold, the first transaction event after the first transaction event is selected as the third transaction event, and the cumulative sum statistic corresponding to the third transaction event is read from the cumulative sum statistic sequence; when the cumulative sum statistic corresponding to the third transaction event is greater than zero, the first transaction event is determined as the hysteresis determination transaction event and the current round of hysteresis determination accumulation ends; Furthermore, when the cumulative sum statistic corresponding to the third transaction event is equal to zero, the cumulative sum statistic is selected sequentially from the third transaction event onwards according to the order of the cumulative sum statistic sequence. When the selected cumulative sum statistic is less than the determination threshold, the next cumulative sum statistic is selected. When the selected cumulative sum statistic is greater than or equal to the determination threshold, the corresponding transaction event is re-recorded as the first transaction event, and the comparison value is determined based on the cumulative sum statistic corresponding to the last transaction event that was compared before the first transaction event, and the delayed determination transaction event is determined.

[0011] As a further aspect of the present invention, the backtracking cumulative and statistical sequence in the trace marker module includes: Using the position of the cumulative sum statistic corresponding to the delayed judgment transaction event in the cumulative sum statistic sequence as the backtracking endpoint, the cumulative sum statistic is selected sequentially in reverse order along the cumulative sum statistic sequence. The transaction event position corresponding to the first cumulative sum statistic equal to zero is recorded as the zero position. The cumulative sum statistic is read sequentially from the zero position. The transaction event corresponding to the first cumulative sum statistic greater than zero is recorded as the delayed start event. The continuous transaction events between the delayed start event and the delayed judgment transaction event are defined as the traced delayed interval according to the chronological order of the business processing reception time.

[0012] As a further aspect of the present invention, in the trace marking module, forming a trace hysteresis mark includes: Based on the correspondence between the transaction events and the observations, the trace writing hysteresis amount corresponding to each transaction event within the trace hysteresis interval is read, and a transaction file containing the trace records corresponding to each transaction event is obtained. The hysteresis start event and the hysteresis determination transaction event are associated with the corresponding trace records in the transaction file, and the trace hysteresis interval and the trace writing hysteresis amount corresponding to each transaction event within the interval are written into the transaction file to form a trace hysteresis mark corresponding to the existing trace records.

[0013] A method for full-process traceability of transactions in a remote business processing system includes the following steps: The business processing reception time of the transaction event and the record writing confirmation time of the corresponding trace record are obtained during the remote business processing to calculate the trace writing hysteresis. The trace writing hysteresis is used as the observation in the CUSUM algorithm and then arranged in the order of business processing reception time to form a trace writing hysteresis sequence. Observations are continuously read from the starting position of the trace writing hysteresis sequence, the number of samples is determined based on the observations, and a trace writing hysteresis benchmark is established; the observations are accumulated sequentially according to the trace writing hysteresis benchmark to determine the judgment threshold. The observations during the detection period are selected from the trace writing hysteresis sequence, and continuous accumulation is performed through the CUSUM algorithm. The accumulated trace hysteresis cumulative values ​​are recorded as cumulative sum statistics and arranged in the order of accumulation as a cumulative sum statistics sequence. The cumulative sum statistics are compared with the judgment threshold in sequence according to the cumulative sum statistics sequence, and the delayed judgment transaction event is determined based on the comparison results. By tracing back the cumulative and statistical sequences from the location of the delayed transaction event, and forming a delayed trace marker corresponding to the existing trace records based on the tracing results, the association of trace records during the abnormal stage of remote business transaction processing can be realized.

[0014] Compared with the prior art, the advantages and positive effects of the present invention are as follows: This invention generates a trace write lag by acquiring the business processing reception time of a transaction event and the record writing confirmation time of the corresponding trace record, and forms a trace write lag sequence according to the business processing reception time. Based on this, a trace write lag benchmark and a judgment threshold are established. Then, the CUSUM algorithm is used to continuously accumulate the trace write lag during the detection period, so that changes in continuous transaction events that have not yet reached a single obvious abnormality but continuously deviate from the trace write lag benchmark can be gradually accumulated in the cumulative sum and statistics, and the lag judgment transaction event is determined accordingly. Subsequently, the cumulative sum and statistics sequence is traced back from the lag judgment transaction event to determine the lag start event and the trace lag interval, and the trace lag interval is associated with the existing trace record and written into the transaction file. Thus, it is possible to identify continuous trace write lag when the trace record is still being written but the write time has been continuously lagging behind the business processing process, and further locate the continuous transaction range from the start of continuous lag to the reaching of the judgment condition, thereby reducing the situation where continuous lag remains unjudged for a long time due to reliance on a single write state or a single lag amount.

[0015] Furthermore, this invention uses the write hysteresis corresponding to a transaction event as the observation in the CUSUM algorithm, and continuously calculates the cumulative state of the observation relative to the benchmark mean and reference value. This allows sporadic single hysteresis changes and hysteresis changes in the same direction formed by multiple consecutive transaction events to exhibit different cumulative results during the accumulation process. Therefore, even before a single transaction event exhibits a sudden and significant hysteresis, the hysteresis changes formed by consecutive transaction events can still be continuously retained through accumulation and statistics, extending the determination of the write status from the instantaneous state of a single transaction event to the hysteresis change state of the continuous transaction process.

[0016] Furthermore, after the judgment condition is met, this invention continues to backtrack along the cumulative sum and statistical sequence, and determines the hysteresis initiation event through the zero position. The continuous transaction events between the hysteresis initiation event and the hysteresis judgment transaction event are defined as the traceable hysteresis interval. Then, the traceable hysteresis interval and the traceable hysteresis amount corresponding to each transaction event within the interval are written into the transaction file. Thus, the transaction file can correspondingly store when the current round of continuous hysteresis began, at which transaction event the judgment condition was met, and which continuous transaction events were involved during this period. This expands the abnormal correlation of the traceable records from a single abnormal transaction event to a continuous hysteresis interval with a start position and an end judgment position. Attached Figure Description

[0017] Figure 1 A schematic diagram illustrating the overall data interaction of the remote business processing system; Figure 2 A schematic diagram illustrating the correspondence between transaction events, time records, and observations; Figure 3A schematic diagram illustrating the segmentation and cumulative sum statistic changes in the hysteresis sequence for trace recording; Figure 4 This is a schematic diagram of the state transition for hysteresis determination; Figure 5 This is a schematic diagram illustrating the backtracking of the lag interval for record keeping and the association of transaction files. Detailed Implementation

[0018] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.

[0019] Please see Figure 1-5 The present invention provides a technical solution, a remote business processing system comprising: The trace collection module acquires the business processing reception time of transaction events during remote business processing and the record writing confirmation time of the corresponding trace records to calculate the trace writing hysteresis. The trace writing hysteresis is used as the observation in the CUSUM algorithm and then arranged in the order of business processing reception time to form a trace writing hysteresis sequence.

[0020] The trace acquisition module continuously receives transaction events during remote business processing. When the business processing program receives a transaction event, it triggers a server clock read, establishing a corresponding record between the server clock's current time value and the transaction event being processed, forming the business processing reception time. Subsequently, the association between the transaction event and the corresponding trace record is maintained. After the trace record enters the trace storage medium's writing process, the corresponding write status is read until the trace storage medium returns a write success status. At the moment the write success status returns, the server clock is read again, and the time value read again is established with the same transaction event, forming the record write confirmation time. After both the business processing reception time and the record write confirmation time are formed, the two time values ​​corresponding to the same transaction event are read, and the business processing reception time is subtracted from the record write confirmation time. The resulting time interval is recorded as the trace write hysteresis. Each trace write hysteresis is used as an observation received by the CUSUM algorithm, maintaining the correspondence between the observation and the transaction event that generated the observation. Subsequently, the business processing reception time corresponding to each observation is read one by one, and the arrangement position of the observations is determined in the order of the business processing reception time from first to last, while keeping the correspondence between the observations and the transaction events unchanged, and finally forming a trace writing hysteresis sequence.

[0021] The trace acquisition module immediately reads the server clock when the business processing program receives the current transaction event, records the current read value at the business processing reception time position corresponding to the current transaction event, and continues to maintain the association between the current transaction event and the corresponding trace record. During the writing of the corresponding trace record to the trace storage medium, the business processing program continuously reads the write status corresponding to the current trace record; when the trace storage medium returns a write success status, it immediately reads the server clock again and records the reread time value at the record write confirmation time position corresponding to the same transaction event. Subsequently, it extracts the record write confirmation time and the business processing reception time from the time records of the same transaction event, subtracts the business processing reception time from the record write confirmation time, and records the resulting time difference as the trace write hysteresis corresponding to the current transaction event, and registers the trace write hysteresis as the observation corresponding to the current transaction event. After the observations are formed, the correspondence of the current transaction events is retained at the observation record position. Then, the business processing reception time corresponding to each of the formed observations is read one by one. Starting from the observation with the business processing reception time at the beginning, the arrangement position is determined sequentially. Each time a business processing reception time position is determined, the corresponding observation is placed in the same order position. Finally, a trace written hysteresis sequence is formed in which the observations and transaction events correspond one by one and are arranged in the order of business processing reception time.

[0022] The benchmark determination module continuously reads observations from the starting position of the trace writing hysteresis sequence, determines the number of samples based on the observations, and establishes a trace writing hysteresis benchmark; it then accumulates the observations sequentially according to the trace writing hysteresis benchmark to determine the determination threshold.

[0023] The benchmark determination module continuously reads the established observations starting from the beginning of the trace writing hysteresis sequence. Each time an observation is read, the reading count is accumulated, and the module continues reading the immediately following observation along the trace writing hysteresis sequence. After completing this continuous reading, the accumulated number of observations is fixed, and the continuously read observations are used as the calculation range for establishing the trace writing hysteresis benchmark. Then, observations are read again from the beginning of the calculation range. First, all observations are averaged to form the benchmark mean. Then, all observations within the same calculation range are used to form the benchmark standard deviation. The benchmark standard deviation is used to further form the mean offset and reference value. After the reference value is formed, the CUSUM algorithm is continuously accumulated item by item starting from the first observation within the calculation range, according to the order of the trace writing hysteresis sequence. Each time accumulation is completed, the corresponding benchmark hysteresis accumulated value is saved until all observations within the calculation range have been processed. Finally, the maximum value is selected from all the accumulated benchmark hysteresis values, ultimately forming the sample size, the trace writing hysteresis benchmark, and the determination threshold.

[0024] The baseline determination module sets a read count starting from the beginning of the hysteresis sequence and reads the established observations sequentially. Each time an observation is read, the read count is incremented by 1, and the module moves to the next adjacent observation to continue reading. After continuous reading is complete, the final read count value is recorded as the sample size. Once the sample size is formed, the observations read in this continuous reading are used as the averaging objects. Starting from the first observation, the observation values ​​are read sequentially and accumulated. After all observations have been accumulated, the accumulated values ​​are averaged according to the sample size, and the resulting average time value is recorded as the baseline mean. After the baseline mean is formed, the range of observations and the sample size participating in this averaging process remain unchanged. Finally, the baseline mean is recorded as the hysteresis baseline.

[0025] The benchmark determination module continues to call all observations corresponding to the sample size. Starting from the first observation, it sequentially reads the current observation and the established benchmark mean, obtains the difference between each observation and the benchmark mean, squares each difference, and continuously accumulates all the squared results. After processing all observations corresponding to the sample size, it averages the cumulative values ​​of the squared results according to the sample size, takes the square root of the average, and records the resulting time value as the benchmark standard deviation. Subsequently, the benchmark standard deviation is recorded as the mean offset, and the mean offset is divided into two equal parts, with one part being used as the reference value. After the reference value is formed, the observations corresponding to the sample number are selected sequentially according to the order in which the traces are written into the hysteresis sequence. When the observation is selected for the first time, there is no baseline hysteresis cumulative value corresponding to the previously selected observation, so 0 is written into the accepting value position. When the observation is selected for the second time, the baseline hysteresis cumulative value that has been formed for the previously selected observation is read, and the read baseline hysteresis cumulative value is written into the accepting value position corresponding to the current observation. Finally, the baseline standard deviation, mean offset, reference value, and accepting value used for each baseline hysteresis cumulative value are formed.

[0026] Within the benchmark determination module, the continuous accumulation program calls the CUSUM algorithm according to the order of observations corresponding to the number of samples. The continuous accumulation process adopts the CUSUM recursive rule. When the current observation enters the accumulation process, the current observation and the benchmark mean are read. The benchmark hysteresis offset is generated by subtracting the benchmark mean from the current observation. Then, the benchmark hysteresis correction is generated by subtracting the reference value from the benchmark hysteresis offset. Subsequently, the corresponding carryover value of the current observation is read, and the current observation, benchmark mean, reference value, and carryover value are fed into the continuous accumulation relation for calculation. ;in, Indicates the first The baseline hysteresis cumulative value corresponding to the current accumulation of each observation; This represents the cumulative baseline hysteresis value corresponding to the previously selected observation, and the first cumulative value corresponding to... Set to 0; Indicates the number of samples within the corresponding range. Individual observations; Indicates the baseline mean; Indicates a reference value; This indicates the order in which the number of samples corresponds to the selection of the observations.

[0027] According to the formula A baseline hysteresis cumulative update value is generated. When the baseline hysteresis cumulative update value is less than 0, the current... Set to 0; when the baseline hysteresis cumulative update value is greater than or equal to 0, the current... Take the baseline hysteresis cumulative update value. Each After it is formed, Record the baseline cumulative sum statistic corresponding to the current observation, and when processing the immediately following observation, include the current... Write the position of the next observation's continuation value. After all baseline cumulative sum statistics corresponding to the sample size are formed, start comparing the maximum values ​​from the first baseline cumulative sum statistic. If the current reading is greater than the previously retained maximum value, replace the previously retained maximum value with the current reading. If the current reading is equal to or less than the previously retained maximum value, retain the previously retained maximum value. This process continues until all baseline cumulative sum statistics have been compared. ;in, Indicates the threshold for judgment; Indicates the first Each baseline cumulative sum statistic; Indicates the number of samples; Indicates the order of the baseline cumulative sum and statistics, ultimately... The record is the threshold for judgment.

[0028] The hysteresis accumulation module selects the observations during the detection period from the hysteresis sequence written to the trace, and performs continuous accumulation through the CUSUM algorithm. The accumulated hysteresis accumulation values ​​are recorded as cumulative sum statistics and arranged in the order of accumulation as a cumulative sum statistics sequence.

[0029] The hysteresis accumulation module first locates the last observation corresponding to the number of samples in the hysteresis sequence. Then, starting from the position immediately following the last observation corresponding to the number of samples, it selects observations one by one according to the order of the hysteresis sequence. The selected observations are then sent to the continuous accumulation process as observations for the detection period. During the execution of the CUSUM algorithm, the already formed baseline mean and reference value are continuously called. When the observations of the first detection period enter the accumulation, 0 is used as the acceptor value. Starting from the observations of the second detection period, the hysteresis accumulation value corresponding to the observations of the previous detection period is read and written to the current acceptor value position. Each accumulation first processes the hysteresis offset of the current detection period's observations relative to the baseline mean, then uses the reference value to form the hysteresis correction amount, and finally sends the hysteresis correction amount and the acceptor value together into the continuous accumulation relationship of the CUSUM algorithm. After each accumulation is completed, the resulting trace hysteresis cumulative value is matched with the observations of the current detection period and recorded as a cumulative sum statistic. Then, the observations of the next detection period are processed, and finally a sequence of cumulative sum statistic arranged in the order of accumulation is formed.

[0030] The hysteresis accumulation module executes a continuous accumulation program that reads observations sequentially from the last observation corresponding to the sample size after the current observation. When selecting an observation for the first time in the detection period, the acceptor value is set to 0. For observations not selected for the first time in the detection period, the accumulated hysteresis value from the previous detection period is read and written to the current acceptor value position. After the current observation enters the processing, the hysteresis offset is generated by subtracting the baseline mean from the current observation. Then, the hysteresis correction is generated by subtracting the reference value from the hysteresis offset. Finally, the CUSUM algorithm is executed continuously for accumulation according to the CUSUM recursive rule. ;in, Indicates the first The cumulative value of the hysteresis corresponding to the completion of the current accumulation of the observations in each detection period; This represents the cumulative trace hysteresis value corresponding to the observations in the previous detection period, and the first cumulative value corresponding to... Set to 0; This indicates the order in which the samples were selected according to the testing period. Observations during the detection period; Indicates the baseline mean; Indicates a reference value; This indicates the sequential position of the observed measurements during the continuous accumulation process. According to the formula... This generates a cumulative update value for the hysteresis loop. When the cumulative update value for the hysteresis loop is less than 0, the current... Set to 0; when the cumulative update value of the hysteresis trace is greater than or equal to 0, the current... Retrieve the cumulative update value of the hysteresis trace. Each time a trace is formed... ,Will Record the cumulative sum and statistics corresponding to the observations during the current monitoring period, and... Write the corresponding value position of the observation in the next detection period, process the observations in subsequent detection periods in the same selection order, and finally form a cumulative sum statistic sequence arranged in the order of observation selection in the detection period.

[0031] The hysteresis determination module compares each cumulative sum statistic with the determination threshold in the order of the cumulative sum statistic sequence, and determines the hysteresis determination transaction event based on the comparison results.

[0032] The hysteresis determination module reads the cumulative sum statistics sequentially, starting from the first position of the cumulative sum statistics sequence. For each cumulative sum statistics read, it simultaneously locates the current observation in the detection period based on the correspondence between the cumulative sum statistics and the observations in the detection period, and then locates the corresponding transaction event based on the correspondence between the observation and the transaction event, ensuring that the cumulative sum statistics used for each comparison always maintain the same sequence position as the corresponding transaction event. Subsequently, it reads the established determination thresholds, compares each cumulative sum statistics sequentially with the determination thresholds, and continues reading the corresponding transaction event and comparison value at the position where the subsequent determination condition is met, ultimately forming the hysteresis-determined transaction event.

[0033] The hysteresis determination module selects cumulative sum statistics sequentially according to the cumulative sum statistics sequence. For each selected cumulative sum statistics, it locates the corresponding observation in the detection period based on the correspondence between the current cumulative sum statistics and the observations in the detection period. Then, it records the corresponding transaction event as the first transaction event based on the correspondence between the observation and the transaction event. When selecting the cumulative sum statistics for the first time, if there are no preceding transaction events that have already been compared, 0 is written to the comparison value position. When selecting cumulative sum statistics for subsequent times, it searches for the closest compared transaction event to the first transaction event from among the transaction events that have already been compared before the first transaction event, following the business processing reception time sequence. The transaction event that was last compared is recorded as the second transaction event. Then, the cumulative sum statistics corresponding to the second transaction event are read and written to the comparison value position. If the comparison value is greater than 0, continue to read the cumulative sum statistics and judgment threshold corresponding to the first transaction event; if the cumulative sum statistics corresponding to the first transaction event is greater than or equal to the judgment threshold, stop the hysteresis judgment processing of the subsequent cumulative sum statistics in this round and end the hysteresis judgment accumulation in this round. Finally, the first transaction event that satisfies the condition that the comparison value is greater than 0 and the corresponding cumulative sum statistics are greater than or equal to the judgment threshold is determined as a hysteresis judgment transaction event.

[0034] When the hysteresis determination module reads that the comparison value is equal to 0 and the cumulative sum statistic corresponding to the first transaction event is greater than or equal to the determination threshold, it moves backward from the position of the first transaction event according to the order of business processing reception time to the position of the first transaction event. The first transaction event after the first transaction event is recorded as the third transaction event. Then, following the correspondence between the third transaction event and the cumulative sum statistic, the cumulative sum statistic corresponding to the third transaction event is read from the already formed cumulative sum statistic sequence.

[0035] When the cumulative sum statistic corresponding to the third transaction event is greater than 0, the current round of lag determination accumulation is stopped, and the first transaction event is determined as the lag determination transaction event; when the cumulative sum statistic corresponding to the third transaction event is equal to 0, the cumulative sum statistic is selected sequentially according to the order of the cumulative sum statistic sequence after the position of the cumulative sum statistic corresponding to the third transaction event in the cumulative sum statistic sequence.

[0036] When selecting a cumulative sum statistic, the currently selected cumulative sum statistic is compared with the judgment threshold. If the currently selected cumulative sum statistic is less than the judgment threshold, the next nearest cumulative sum statistic is selected. If the currently selected cumulative sum statistic is greater than or equal to the judgment threshold, the corresponding transaction event is located along the correspondence between the current cumulative sum statistic, the observations during the detection period, and the transaction events, and the corresponding transaction event is re-recorded as the first transaction event.

[0037] After re-recording the first transaction event, from the transaction events that have been compared before the new first transaction event, the cumulative sum statistic corresponding to the last completed comparison is read as the comparison value, and this comparison value is compared with 0. If the comparison value is greater than 0, the hysteresis determination process corresponding to the comparison value being greater than 0 is performed; if the comparison value is equal to 0, the first transaction event after the new first transaction event is selected as the third transaction event, and the cumulative sum statistic corresponding to the third transaction event is read from the cumulative sum statistic sequence, until a hysteresis determination transaction event is determined.

[0038] The trace marking module backtracks the cumulative and statistical sequences from the location of the delayed transaction event, and generates a trace delay mark corresponding to the existing trace record based on the backtracking result, so as to realize the association record of the abnormal stage of the trace record during the remote business transaction process.

[0039] After receiving a hysteresis-determined transaction event, the trace marking module searches the sequence of cumulative sums and statistics item by item along the established correspondence between the hysteresis-determined transaction event and the cumulative sums and statistics. It locates the position of the cumulative sum and statistics corresponding to the hysteresis-determined transaction event and reads item by item in the reverse direction of the sequence formation, starting from the located position. During the reverse reading, the correspondence between the cumulative sums and statistics and the transaction event is continuously maintained. After locating the zero position, the forward reading resumes from the zero position, locating the hysteresis start event by continuously reading the cumulative sums and statistics. Subsequently, it reads the continuous transaction events from the hysteresis start event to the hysteresis-determined transaction event according to the chronological order of the business processing reception time, maintaining the established correspondence between the continuous transaction events and their corresponding observations. The range of the continuous transaction events and the corresponding trace written to the hysteresis quantity are then associated with the existing trace records, ultimately forming a trace hysteresis mark corresponding to the abnormal stage of the trace record during the remote business transaction process.

[0040] The traceability module records the position of the cumulative sum and statistics corresponding to the delayed transaction event in the cumulative sum and statistics sequence as the backtracking endpoint, and selects cumulative sum and statistics item by item in reverse order from the backtracking endpoint along the cumulative sum and statistics sequence. When the currently selected cumulative sum and statistics is greater than 0, the reading position continues to move towards the next cumulative sum and statistics; when the first cumulative sum and statistics equals 0 is selected, the reverse movement stops, and the transaction event position corresponding to the first cumulative sum and statistics equal to 0 is recorded as the zero position. After the zero position is formed, starting from the first cumulative sum and statistics after the zero position, items are read item by item according to the order of business processing reception time; when the currently read cumulative sum and statistics equals 0, the next cumulative sum and statistics is read; when the first cumulative sum and statistics greater than 0 is read, the search for the starting position stops, and the transaction event corresponding to the first cumulative sum and statistics greater than 0 is recorded as the delayed start event. After the hysteresis initiation event is formed, transaction events are read continuously from the hysteresis initiation event in the order of business processing reception time until the hysteresis determination transaction event is read. The continuous arrangement of each transaction event between the hysteresis initiation event and the hysteresis determination transaction event is maintained, and finally a traceable hysteresis interval is formed by the continuous transaction events between the hysteresis initiation event and the hysteresis determination transaction event.

[0041] After the trace marking module forms the trace hysteresis interval, it reads transaction events within the interval sequentially according to the business processing reception time, starting from the hysteresis initiation event. For each transaction event read, it locates the corresponding observation along the established correspondence between the transaction event and the observation, then reads the trace write hysteresis recorded by the corresponding observation, maintaining the original correspondence between the transaction event, observation, and trace write hysteresis. Subsequently, it retrieves the transaction archive containing the trace records corresponding to each transaction event. During retrieval, the current transaction event is used as the location object; the module searches the transaction archive item by item along the established correspondence between the transaction event and the trace record to locate the existing trace record corresponding to the current transaction event, and completes the location of the trace records corresponding to each transaction event within the trace hysteresis interval in the same way. After locating the trace record corresponding to the hysteresis initiation event, it establishes an association between the hysteresis initiation event and the corresponding trace record; after locating the trace record corresponding to the hysteresis determination transaction event, it establishes an association between the hysteresis determination transaction event and the corresponding record. Subsequently, the range of consecutive transaction events from the hysteresis initiation event to the hysteresis determination transaction event is written into the transaction file according to the order of business processing reception time. Then, the hysteresis amount is read item by item according to the correspondence between each transaction event and the observation and written into the corresponding transaction file position, and finally a hysteresis mark corresponding to the existing hysteresis record is formed.

[0042] A method for full-process traceability of transactions in a remote business processing system includes the following steps: S1: Obtain the business processing reception time of the transaction event and the record writing confirmation time of the corresponding trace record during the remote business processing to calculate the trace writing hysteresis. Use the trace writing hysteresis as the observation in the CUSUM algorithm, and then arrange them in the order of business processing reception time to form a trace writing hysteresis sequence. S2: Continuously read observations from the starting position of the trace writing hysteresis sequence, determine the number of samples based on the observations and establish a trace writing hysteresis benchmark; accumulate the observations sequentially according to the trace writing hysteresis benchmark to determine the judgment threshold; S3: Select the observations during the detection period from the trace writing hysteresis sequence, and perform continuous accumulation through the CUSUM algorithm. Record the accumulated trace hysteresis cumulative values ​​as cumulative sum statistics, and arrange them in the order of accumulation as a cumulative sum statistics sequence. S4: Compare each cumulative sum statistic with the judgment threshold in the order of the cumulative sum statistic sequence, and determine the delayed judgment transaction event based on the comparison results; S5: Backtrack the cumulative and statistical sequence from the location of the delayed transaction event, and form a delayed trace marker corresponding to the existing trace record based on the backtracking result, so as to realize the association record of the abnormal stage of the trace record in the process of remote business transaction.

[0043] The remote business processing system provided by this invention is used to execute the above-mentioned method for full traceability of the transaction process of the remote business processing system. It has the same or corresponding technical features and effects. The traceability acquisition module is used to execute step S1, the benchmark determination module is used to execute step S2, the hysteresis accumulation module is used to execute step S3, the hysteresis determination module is used to execute step S4, and the traceability marking module is used to execute step S5. Therefore, it will not be described in detail.

[0044] The above are merely preferred embodiments of the present invention and are not intended to limit the present invention in any other way. Any person skilled in the art may make changes or modifications to the above-disclosed technical content to create equivalent embodiments that can be applied to other fields. However, any simple modifications, equivalent changes, and modifications made to the above embodiments based on the technical essence of the present invention without departing from the scope of the present invention shall still fall within the protection scope of the present invention.

Claims

1. A remote business processing system, characterized in that, The system includes: The trace collection module obtains the business processing reception time of transaction events and the record writing confirmation time of the corresponding trace records during the remote business processing process to calculate the trace writing hysteresis. The trace writing hysteresis is used as the observation in the CUSUM algorithm and then arranged in the order of business processing reception time to form a trace writing hysteresis sequence. The benchmark determination module continuously reads observations from the starting position of the trace writing hysteresis sequence, determines the number of samples based on the observations, and establishes a trace writing hysteresis benchmark; it then accumulates the observations sequentially according to the trace writing hysteresis benchmark to determine the determination threshold. The hysteresis accumulation module selects the observations during the detection period from the hysteresis sequence written to the trace, and performs continuous accumulation through the CUSUM algorithm. The accumulated hysteresis accumulation values ​​are recorded as cumulative sum statistics and arranged in the order of accumulation as a cumulative sum statistics sequence. The hysteresis determination module compares each cumulative sum statistic with the determination threshold in the order of the cumulative sum statistic sequence, and determines the hysteresis determination transaction event based on the comparison results. The trace marking module backtracks the cumulative and statistical sequences from the location of the delayed transaction event, and generates a trace delay mark corresponding to the existing trace record based on the backtracking result, so as to realize the association record of the abnormal stage of the trace record during the remote business transaction process.

2. The remote business processing system according to claim 1, characterized in that, In the trace collection module, when the business processing program receives the transaction event, it records the current time of the server clock as the business processing reception time. When the trace record corresponding to the transaction event completes the writing to the trace storage medium and returns a write success status, it records the current time of the server clock as the record writing confirmation time. The difference between the record write confirmation time and the business processing reception time is calculated to obtain the trace write hysteresis. At the same time, the correspondence between the observation and the transaction event is established, and the observations are arranged in chronological order according to the business processing reception time to form the trace write hysteresis sequence.

3. The remote business processing system according to claim 2, characterized in that, The number of samples is obtained by continuously reading the already formed observations from the starting position of the hysteresis sequence and counting the number of the read observations; then, the average value of all the observations corresponding to the number of samples is taken as the baseline mean, and the baseline mean is used as the hysteresis baseline for the hysteresis sequence.

4. The remote business processing system according to claim 3, characterized in that, In the benchmark determination module, determining the determination threshold includes: A baseline standard deviation is obtained by calculating the standard deviation of all observations corresponding to the specified sample size. This baseline standard deviation is used as the mean offset. Half of this mean offset is calculated to obtain a reference value. A CUSUM recursive rule is established to determine the hysteresis cumulative value based on the baseline mean, the reference value, and the acceptance value. The CUSUM recursive rule includes: calculating the difference between the current observation and the baseline mean to obtain the hysteresis offset; calculating the difference between the hysteresis offset and the reference value to obtain the hysteresis correction; adding the hysteresis correction to the acceptance value to obtain the hysteresis cumulative update value; when the hysteresis cumulative update value is less than zero, the corresponding hysteresis cumulative value is set to zero; when the hysteresis cumulative update value is greater than or equal to zero, the hysteresis cumulative update value is used as the corresponding hysteresis cumulative value. Then, according to the order of the trace written hysteresis sequence, the observations corresponding to the number of samples are selected sequentially. When selecting for the first time, zero is used as the accepting value. When selecting for subsequent times, the baseline hysteresis cumulative value corresponding to the previously selected observation is used as the accepting value. The baseline hysteresis cumulative value corresponding to each observation is obtained according to the CUSUM recursive rule. Each baseline hysteresis cumulative value is recorded as a baseline cumulative sum statistic, and the maximum value among them is selected as the judgment threshold.

5. The remote business processing system according to claim 4, characterized in that, In the hysteresis accumulation module, performing continuous accumulation using the CUSUM algorithm includes: The observations following the last observation corresponding to the number of samples are selected sequentially from the trace writing hysteresis sequence as the observations for the detection period. For the first selection, zero is used as the accepting value; for subsequent selections, the cumulative trace hysteresis value corresponding to the observations of the previous detection period is used as the accepting value. Based on the baseline mean, the reference value, and the accepting value, the cumulative trace hysteresis value corresponding to the observations of the current detection period is obtained according to the CUSUM recursive rule. The cumulative value of the hysteresis is recorded as the cumulative sum statistic. The cumulative sum statistic is arranged in the order of the selected observations during the detection period to form the cumulative sum statistic sequence.

6. The remote business processing system according to claim 5, characterized in that, In the hysteresis determination module, the hysteresis determination transaction events include: The cumulative sum statistics are selected sequentially according to the cumulative sum statistics sequence. The transaction event associated with the observation of the detection period corresponding to the current cumulative sum statistics is recorded as the first transaction event. When selected for the first time, zero is used as the comparison value. When selected for other times, the transaction event that was last compared before the first transaction event is recorded as the second transaction event. The cumulative sum statistics corresponding to the second transaction event are used as the comparison value. When the comparison value is greater than zero and the cumulative sum statistics corresponding to the first transaction event is greater than or equal to the judgment threshold, the first transaction event is determined as the hysteresis judgment transaction event and the current round of hysteresis judgment accumulation ends.

7. The remote business processing system according to claim 6, characterized in that, Determining delayed transaction events also includes: When the comparison value is equal to zero and the cumulative sum statistic corresponding to the first transaction event is greater than or equal to the determination threshold, the first transaction event after the first transaction event is selected as the third transaction event, and the cumulative sum statistic corresponding to the third transaction event is read from the cumulative sum statistic sequence; when the cumulative sum statistic corresponding to the third transaction event is greater than zero, the first transaction event is determined as the hysteresis determination transaction event and the current round of hysteresis determination accumulation ends; Furthermore, when the cumulative sum statistic corresponding to the third transaction event is equal to zero, the cumulative sum statistic is selected sequentially from the third transaction event onwards according to the order of the cumulative sum statistic sequence. When the selected cumulative sum statistic is less than the determination threshold, the next cumulative sum statistic is selected. When the selected cumulative sum statistic is greater than or equal to the determination threshold, the corresponding transaction event is re-recorded as the first transaction event, and the comparison value is determined based on the cumulative sum statistic corresponding to the last transaction event that was compared before the first transaction event, and the delayed determination transaction event is determined.

8. The remote business processing system according to claim 7, characterized in that, In the traceability marker module, the backtracking cumulative and statistical sequence includes: Using the position of the cumulative sum statistic corresponding to the delayed judgment transaction event in the cumulative sum statistic sequence as the backtracking endpoint, the cumulative sum statistic is selected sequentially in reverse order along the cumulative sum statistic sequence. The transaction event position corresponding to the first cumulative sum statistic equal to zero is recorded as the zero position. The cumulative sum statistic is read sequentially from the zero position. The transaction event corresponding to the first cumulative sum statistic greater than zero is recorded as the delayed start event. The continuous transaction events between the delayed start event and the delayed judgment transaction event are defined as the traced delayed interval according to the chronological order of the business processing reception time.

9. The remote business processing system according to claim 8, characterized in that, In the trace marking module, forming a trace hysteresis mark includes: Based on the correspondence between the transaction events and the observations, the trace writing hysteresis amount corresponding to each transaction event within the trace hysteresis interval is read, and a transaction file containing the trace records corresponding to each transaction event is obtained. The hysteresis start event and the hysteresis determination transaction event are associated with the corresponding trace records in the transaction file, and the trace hysteresis interval and the trace writing hysteresis amount corresponding to each transaction event within the interval are written into the transaction file to form a trace hysteresis mark corresponding to the existing trace records.

10. A method for full-process traceability of transactions in a remote business processing system, characterized in that, Includes the following steps: The business processing reception time of the transaction event and the record writing confirmation time of the corresponding trace record are obtained during the remote business processing to calculate the trace writing hysteresis. The trace writing hysteresis is used as the observation in the CUSUM algorithm and then arranged in the order of business processing reception time to form a trace writing hysteresis sequence. Observations are continuously read from the starting position of the trace writing hysteresis sequence, the number of samples is determined based on the observations, and a trace writing hysteresis benchmark is established; the observations are accumulated sequentially according to the trace writing hysteresis benchmark to determine the judgment threshold. The observations during the detection period are selected from the trace writing hysteresis sequence, and continuous accumulation is performed through the CUSUM algorithm. The accumulated trace hysteresis cumulative values ​​are recorded as cumulative sum statistics and arranged in the order of accumulation as a cumulative sum statistics sequence. The cumulative sum statistics are compared with the judgment threshold in sequence according to the cumulative sum statistics sequence, and the delayed judgment transaction event is determined based on the comparison results. By tracing back the cumulative and statistical sequences from the location of the delayed transaction event, and forming a delayed trace marker corresponding to the existing trace records based on the tracing results, the association of trace records during the abnormal stage of remote business transaction processing can be realized.