A method and system for tracing the source of instructions in prison emergency incidents
By establishing a joint constraint relationship between link identifiers and path numbers in the traceability of prison emergency event instructions, and combining the collaborative verification of location sequence numbers and timestamps, abnormal numbers can be identified and corrected, thus solving the problem of incorrect path splicing in existing technologies and realizing the continuity and accuracy of instruction flow paths.
Patent Information
- Application Number
- CN202611501553.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-24
- Publication Date
- 2026-11-17
AI Technical Summary
In the current technology for tracing the source of instructions in prison emergency incidents, the multidimensional changes in link identifiers and path numbers lack unified constraints, which leads to misconnections or omissions in the path splicing process, reducing the structural integrity and judgment accuracy of the tracing path.
By acquiring data from the prison command center's dispatch terminal and the relay nodes in the prison area, instruction identifiers, link identifiers, and path numbers are extracted, joint constraint relationships are established, and abnormal segments are identified and their numbers are corrected by combining the collaborative verification of location sequence numbers and timestamps. Based on link consistency judgment and segment replacement strategies, path splicing processing is completed.
It improves the coherence of the path structure and the stability of the tracing results in complex transmission environments, ensuring the continuity and accuracy of the instruction flow path.
Smart Images

Figure CN123116233A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data traceability and analysis technology, and in particular to a method and system for tracing the source of instructions in prison emergency events. Background Technology
[0002] The field of data source tracing and analysis technology encompasses data acquisition and recording technology, log sequence management technology, instruction transmission path recording technology, timestamp marking technology, and multi-source data correlation analysis technology. It primarily focuses on the full-process recording and tracking of data generation, transmission, storage, and retrieval within information systems. Through unified management and correlation analysis of operation logs, communication records, instruction execution records, and time-series data, it achieves traceable descriptions of data sources, flow paths, and processing procedures. Its core content involves structured log storage, chained recording mechanisms, time-series data organization, and the construction of cross-node data correlation relationships.
[0003] Among them, prison emergency incident command tracing refers to the process of recording the path and tracing the source of emergency commands in the prison information system from generation and issuance to execution. The technical matters involved in this patent subject include the collection and management of emergency command generation records, communication data records during command transmission, node reception and forwarding records, execution feedback records, and time sequence identifier data. By constructing a data record sequence containing command identifiers, sending node identifiers, receiving node identifiers, and time stamps, combined with a log storage method based on a chain structure and the establishment of cross-record associations, the flow path of commands between different nodes can be reconstructed and located.
[0004] Existing technologies rely on log sequential recording and cross-node association for path reconstruction. However, when there are multi-dimensional changes in link identifiers and path numbers, there is a lack of unified constraints to support the process, making it difficult to form a stable basis for segmentation. When local anomalies or number jumps occur in the node forwarding path, it is difficult to distinguish between actual breaks and record offsets based solely on time relationships. For example, when multiple links are transmitting alternately, the recording order remains continuous, but the path has actually switched, leading to misconnections or omissions in the path splicing process, thereby reducing the structural integrity and accuracy of the tracing path. Summary of the Invention
[0005] To address the technical problems existing in the prior art, embodiments of the present invention provide a method and system for tracing the source of prison emergency event commands. The technical solution is as follows: A method for tracing the source of prison emergency response instructions includes the following steps: S1: Obtain instruction information sent by the prison command center dispatch terminal, extract data received by relay nodes, extract instruction identifier, link identifier and path number, match the consistency of adjacent link identifiers to determine the link change location, compare the path number to determine the abnormal number location, match to form a segment identifier set, and obtain the instruction transmission segment identifier set. S2: Divide the segments based on the instruction transmission segment identifier set, extract the position number and timestamp, compare the position number to determine the break position, compare the timestamp to filter the time continuous positions, filter the corresponding relationship, and obtain the instruction chain break candidate set. S3: Extract the node identifiers before and after the break and the instruction identifiers according to the instruction chain break candidate set, compare the node identifiers to filter the matching positions, form the number adjustment relationship by referring to the path number, bind the number adjustment relationship with the instruction identifier, and obtain the instruction path number corresponding relationship set; S4: Based on the instruction path number correspondence set, extract the link identifiers and path numbers before and after the break, match the consistency of the link identifiers, if they are consistent, then splice the path number; if they are inconsistent, locate the consistent record of the adjacent link according to the instruction transmission segment identifier set and replace the starting position, adjust the abnormal position according to the position before and after the path number, form continuous path content, and obtain the instruction flow path sequence.
[0006] S5: The instruction flow path sequence is called to extract the instruction identifier, communication link identifier and timestamp. The consecutive numbered content is filtered by comparing the position before and after the path number, and the consecutive time content is filtered by comparing the position before and after the timestamp. The filtering results are rearranged according to the position of the path number to obtain the instruction tracing path result set.
[0007] As a further embodiment of the present invention, the instruction transmission segment identifier set includes link segment number, segment start and end nodes, and segment type identifier; the instruction chain break candidate set includes break node combination, break location identifier, and candidate segment label; the instruction path number correspondence set includes path number mapping pair, number adjustment identifier, and associated node group; the instruction flow path sequence includes path node sequence, link connection relationship, and path continuity identifier; and the instruction tracing path result set includes tracing path node, valid path segment, and path time sequence.
[0008] As a further aspect of the present invention, the step of obtaining the instruction transmission segment identifier set is as follows: S101: Obtain instruction information sent by the prison command center dispatch terminal and instruction information received by the communication equipment of the prison area relay node, parse the instruction frame fields and extract the instruction identifier, communication link identifier and path number, perform timestamp alignment on the data frames corresponding to the same instruction identifier, form a communication link identifier sequence and a path number sequence based on the time sequence, and obtain a link path sequence set. S102: Based on the link path sequence set, perform a comparison operation on adjacent communication link identifiers to identify the corresponding positions where communication link identifiers have changed. At the same time, perform a continuity check on the path number to identify the corresponding positions where the path number is abnormal. Match the link change positions with the abnormal path number positions to obtain a location association index group. S103: Based on the location association index group, perform corresponding location matching operations for link change locations and abnormal path number locations, divide data segment boundaries according to the location correspondence and assign segment numbers, classify the segment numbers and associate them with instruction identifiers to obtain a set of instruction transmission segment identifiers.
[0009] As a further aspect of the present invention, the step of obtaining the instruction chain break candidate set is as follows: S201: Obtain the instruction transmission segment identifier set, perform segment division operation for each segment identifier and extract the data frame position number and timestamp within the segment, perform timestamp alignment processing on the data frames corresponding to the same segment identifier, and form a position number sequence and timestamp sequence according to the time evolution relationship to obtain the segment position time sequence set; S202: Based on the time series set of the segment location, perform item-by-item comparison operation on the adjacent position numbers, identify the corresponding position of the interruption of the number according to the number progression relationship, and at the same time perform the continuity check of the timestamp before and after, identify the corresponding position of the continuous time according to the time progression relationship, and perform position matching processing on the corresponding position of the interruption of the number and the corresponding position of the continuous time to obtain the index group corresponding to the break time. S203: Based on the index group corresponding to the fracture time, perform a position filtering operation on the position corresponding to the sequence number interruption and the position corresponding to the time continuity, extract the intersection position according to the position correspondence and associate it with the segmentation identifier, perform classification processing on the filtered position and associate it with the instruction identifier to obtain the instruction chain fracture candidate set.
[0010] As a further aspect of the present invention, the step of obtaining the instruction path number correspondence set is as follows: S301: Obtain the command chain fracture candidate set, perform node information parsing operation on the candidate positions, extract the node identifier before fracture, the node identifier after fracture and the command identifier, perform alignment processing according to the association relationship of the same candidate position, form a node identifier pairing sequence, and obtain a node identifier pairing sequence set. S302: Based on the node identifier pairing sequence set, perform a consistency comparison operation on the node identifier before and after the breakage, filter the matching position according to the identifier equality relationship, extract the path number corresponding to the matching position, perform before and after position comparison processing on the path number, form a number correspondence sequence, and obtain a number correspondence sequence set. S303: Based on the number correspondence sequence set, perform association processing between the number correspondence and the instruction identifier, classify and group them according to the instruction identifier, and obtain the instruction path number correspondence set.
[0011] As a further aspect of the present invention, the step of obtaining the instruction flow path sequence is as follows: S401: Obtain the set of correspondences of the instruction path numbers, parse the communication link identifier before the breakage and the communication link identifier after the breakage and the path number, perform item-by-item comparison processing on the link identifier corresponding to the same instruction identifier, distinguish the link connection status according to the identifier equality relationship, and extract the path number to form a link number pairing sequence to obtain a set of link number pairing sequences. S402: Based on the link number pairing sequence set, perform consistency determination on the communication link identifier, perform path number concatenation processing when the identifiers are equal, and call the instruction to transmit the segment identifier set when the identifiers are not equal. Search the positions where the communication link identifiers are equal in adjacent segments and replace the starting position after the break. Perform before and after position comparison processing on the path number and correct abnormal positions to obtain the path number connection sequence set. S403: Based on the path number connection sequence set, perform corresponding matching processing between the path number and the instruction identifier, perform connection processing according to the number continuity relationship, maintain the stability of the connection relationship between the path numbers before and after and perform position correspondence correction processing, form a continuous path content structure and associate it with the instruction identifier to obtain the instruction flow path sequence.
[0012] As a further aspect of the present invention, the step of obtaining the instruction tracing path result set is as follows: S501: Obtain the instruction flow path sequence, parse the instruction identifier, communication link identifier and timestamp, perform front and back position comparison processing on the path number corresponding to the same instruction identifier, filter out the continuous number content according to the number progression relationship, and extract the corresponding timestamp sequence to obtain the number time pairing sequence set; S502: Based on the numbered time pairing sequence set, perform front and back position comparison processing on the timestamp, filter out continuous time content according to the time progression relationship, perform position matching processing on the continuous numbered content and the continuous time content, extract the corresponding position data and associate it with the communication link identifier to obtain the path filtering position sequence set; S503: Based on the path, filter the location sequence set, perform position rearrangement processing on the path number, match the path number with the instruction identifier and communication link identifier, and perform connection processing according to the number connection relationship to obtain the instruction tracing path result set.
[0013] A prison emergency incident command tracing system, the system comprising: The instruction acquisition segmentation module obtains the instruction identifier field, communication link identifier field, path number field, and the information returned by the communication equipment of the relay node in the prison area from the log of the dispatch terminal of the prison command center. It calls the communication link identifier field to compare the consistency of the link identifier of adjacent records one by one and locates the link change position index. It calls the path number field to compare the number continuation according to the position before and after the record and locates the number abnormal position index. Based on the link change position index and the number abnormal position index, it performs position correspondence filtering to form a segmented position sequence and obtains the instruction transmission segment identifier set. The segment fracture identification module divides the transmission segment of the prison area relay node based on the instruction transmission segment identifier set, obtains the position number field and timestamp field within the segment, identifies the fracture position index according to the connection relationship of the position number, calls the timestamp field to compare the time sequence relationship to filter the time continuation position index, and performs position correspondence filtering between the fracture position index and the time continuation position index to obtain the candidate position set, thus obtaining the instruction chain fracture candidate set. The node number association module extracts the node identifier field before the break, the node identifier field after the break, and the instruction identifier field from the instruction chain break candidate set. It calls the node identifier field to compare the consistent positions of the nodes before and after the break and filters the matching index. It compares the path number field corresponding to the matching index with the positions before and after the break to form a number adjustment relationship. It associates and binds the number adjustment relationship with the instruction identifier field to form a corresponding set, thus obtaining the instruction path number corresponding relationship set. The link splicing and reconstruction module extracts the communication link identifier field before the break, the communication link identifier field after the break, and the path number field based on the instruction path number correspondence set. It calls the communication link identifier field before the break and the communication link identifier field after the break to perform a consistency comparison and determine the matching status. When the matching status is true, it splices the path to form a continuous path segment according to the connection relationship of the path number field. When the matching status is false, it calls the instruction transmission segment identifier set to locate the consistent position of the link identifier in the adjacent segment and replaces the starting position after the break. Then, it compares the position before and after the replacement path number field and corrects the abnormal number position. It matches the corrected path number field with the instruction identifier field to form a continuous path sequence, thus obtaining the instruction flow path sequence. The path result generation module calls the instruction flow path sequence to extract the instruction identifier field, communication link identifier field, and timestamp field. It filters consecutive numbered records based on the connection between the positions before and after the path number field, and filters consecutive time records based on the connection between the timestamp field. It then filters the consecutive numbered records and consecutive time records by position correspondence and rearranges them according to the positions before and after the path number field to obtain the instruction tracing path result set.
[0014] The beneficial effects of the technical solutions provided in the embodiments of the present invention include at least the following: In this invention, a joint constraint relationship is established by link identifier and path number to form the basis for segmentation judgment, and the collaborative verification of location sequence number and timestamp is introduced to construct the basis for fracture identification, so that abnormal segments have distinguishable characteristics. At the same time, a path number mapping structure is established by combining node identifier matching relationship to perform correlation correction on abnormal numbers, and the path splicing process is completed by relying on link consistency judgment and segment replacement strategy. Finally, a continuous path structure is constructed by number and time dual-dimensional screening and sequence rearrangement, thereby improving the path structure coherence and the stability of tracing results in complex transmission environments. Attached Figure Description
[0015] Figure 1 This is a flowchart of the method of the present invention; Figure 2 This is a flowchart illustrating the process of obtaining the segment identifier set for instruction transmission in this invention. Figure 3 This is a flowchart illustrating the process of obtaining the instruction chain-based breakage candidate set of the present invention. Figure 4 This is a flowchart illustrating the process of obtaining the correspondence set of instruction path numbers in this invention. Figure 5 This is a flowchart illustrating the process of obtaining the instruction flow path sequence of the present invention. Figure 6 This is a flowchart illustrating the process of obtaining the result set of the instruction tracing path in this invention. Detailed Implementation
[0016] The present invention will now be described in further detail with reference to the accompanying drawings. These drawings are simplified schematic diagrams, illustrating only the basic structure of the invention, and therefore only show the components relevant to the invention.
[0017] refer to Figures 1 to 6 A method for tracing the source of prison emergency response instructions includes the following steps: S1: Obtain instruction information sent by the prison command center dispatch terminal, extract instruction information received by the communication equipment of the relay node in the prison area, extract instruction identifier, communication link identifier, and path number, match the consistency of adjacent communication link identifiers and determine the link change position, compare the positions before and after the adjacent path number and determine the abnormal number position, match the link change position and the abnormal number position to form a segment identifier set, and obtain the instruction transmission segment identifier set. S2: Divide the instruction transmission segment based on the instruction transmission segment identifier set, extract the position number and timestamp within the segment, compare the continuity of adjacent position numbers and determine the break position, compare the positions before and after the timestamp and determine the time continuous position, filter the positions corresponding to the break position and the time continuous position to obtain the instruction chain break candidate set. S3: Extract the node identifier before the break, the node identifier after the break, and the instruction identifier from the instruction chain-type break candidate set. Compare the consistency of the node identifiers and filter the matching positions. The path number corresponding to the matching position is compared with the previous and next positions to form the number adjustment relationship. Bind the number adjustment relationship with the instruction identifier to obtain the instruction path number corresponding relationship set. S4: Based on the instruction path number correspondence set, extract the communication link identifier before the break, the communication link identifier after the break, and the path number. Match the consistency between the communication link identifier before the break and the communication link identifier after the break. If a match is found, concatenate the path numbers in sequence. If a match is not found, call the instruction transmission segment mark set to locate the communication link identifier in the adjacent segment that is consistent and replace the starting position after the break. Compare the positions before and after the path number and adjust the abnormal positions. Item by item, match the path number with the instruction identifier to form a continuous path content and obtain the instruction flow path sequence. S5: Extract instruction identifier, communication link identifier and timestamp from the instruction flow path sequence. Filter consecutive numbered content by comparing the positions before and after the path number, and filter consecutive time content by comparing the positions before and after the timestamp. Rearrange the filtered results according to the path number to obtain the instruction tracing path result set.
[0018] The instruction transmission segment identifier set includes link segment number, segment start and end nodes, and segment type identifier; the instruction chain break candidate set includes break node combination, break location identifier, and candidate segment label; the instruction path number correspondence set includes path number mapping pair, number adjustment identifier, and associated node group; the instruction flow path sequence includes path node sequence, link connection relationship, and path continuity identifier; and the instruction tracing path result set includes tracing path nodes, valid path segments, and path time sequence.
[0019] Please see Figure 2 The steps for obtaining the instruction transmission segment identifier set are as follows: S101: Obtain instruction information sent by the prison command center dispatch terminal and instruction information received by the communication equipment of the prison area relay node, parse the instruction frame fields and extract the instruction identifier, communication link identifier and path number, perform timestamp alignment on the data frames corresponding to the same instruction identifier, form a communication link identifier sequence and a path number sequence based on the time sequence, and obtain a link path sequence set. The system retrieves command information sent by the prison command center's dispatch terminal and received command information from the relay node communication equipment in the prison area. It then calls the underlying port listening service to extract binary data packets from the network communication interface buffer and performs byte stream decomposition. It reads the command identifier field, communication link identifier field, path number field, and the sending timestamp and receiving timestamp assigned by the system hardware clock at each fixed byte offset. After performing type casting, these are assigned to the corresponding memory variable sets. Taking five consecutive data frames as an example, the command identifier is always 202610. The extracted communication link identifier parameters are 12, 12, 12, 14, and 14 respectively; the path number parameters are 50, 51, 52, 58, and 59 respectively; and the sending timestamps are... The received timestamps are 1000, 1010, 1020, 1070, and 1080, and the received timestamps are 1005, 1014, 1026, 1074, and 1087, respectively. Timestamp alignment is performed on the data frame set corresponding to the same instruction identifier. The transmission delay value of each data frame is extracted based on the sending and receiving timestamps, and the receiving timestamps are calibrated and aligned by introducing a reference delay time parameter 5. The aligned timestamps are 1005, 1015, 1025, 1075, and 1085, respectively. The storage addresses of the communication link identifier parameter and the path number parameter in the memory array are checked and ranked in ascending order of the aligned timestamp values. The communication link identifier sequence and the path number sequence are formed based on the time series, resulting in a link path sequence set.
[0020] S102: Based on the link path sequence set, perform item-by-item comparison operation on adjacent communication link identifiers to identify the corresponding positions where communication link identifiers have changed. At the same time, perform serial number continuity check on the path number to identify the corresponding positions where the path number is abnormal. Match the link change positions with the abnormal path number positions to obtain the location association index group. Based on the link path sequence set, a loop traversal is initiated for the communication link identifier sequence and path number sequence containing 5 element nodes. The current link identifier parameter and the next link identifier parameter at adjacent positions are extracted and compared item by item. Through numerical equality comparison, it is found that there is a difference when the current link identifier is 12 and the next is 14. Based on this, the index position 3 corresponding to the change of the communication link identifier is written into the dynamic array of link change positions. At the same time, the path number parameter at adjacent positions is extracted and a continuity check is performed. The number continuity verification benchmark value 1 established based on the standard routing table is introduced. After comparison, it is found that the increment between path numbers 52 and 58 deviates from the benchmark value. Based on this, the index position 3 corresponding to the abnormal path number is written into the dynamic array of abnormal path number positions. Double loop extraction and equality comparison operations are performed on the element sets inside the two arrays to confirm that the two are completely consistent at position 3 and a double jump occurs. The overlapping link change position and the abnormal path number position are matched and encapsulated into tuples to obtain the position association index group.
[0021] S103: Based on the location association index group, perform corresponding location matching operations for link change locations and abnormal path number locations, divide data segment boundaries according to the location correspondence and assign segment numbers, classify the segment numbers and associate them with instruction identifiers to obtain a set of instruction transmission segment identifiers.
[0022] Based on the location-related index group, extract the index position value 3 contained in the group, read the absolute index position of the data sequence corresponding to this value and perform the corresponding position matching operation. Call the memory slicing command to cut the overall link path sequence set into independent memory data blocks. Set the segment boundary rule as follows: the first data segment boundary is from the starting index position 1 to the value 3 in the location-related index group, and the second data segment boundary is from the value 4 after adding the verification benchmark value 1 to the last index position 5. Divide the data segments according to the boundary and assign string parameters with the prefix feature code SEG-01 and SEG-02 as segment numbers respectively. Establish a multi-dimensional mapping table and fill in the segment number parameter. Perform the database primary and foreign key association operation to link the memory address pointer of the segment number to the primary key directory of the table entry where the parsed instruction identifier parameter 202610 is located. By classifying the segment numbers and associating them with instruction identifiers and data boundary conditions, obtain the instruction transmission segment identifier set.
[0023] Please see Figure 3 The steps for obtaining the instruction chain break candidate set are as follows: S201: Obtain the instruction transmission segment identifier set, perform segment division operation for each segment identifier and extract the data frame position number and timestamp within the segment, perform timestamp alignment processing on the data frames corresponding to the same segment identifier, form a position number sequence and a timestamp sequence according to the time evolution relationship, and obtain the segment position time sequence set; The instruction transmission segment identifier set is obtained. The feature attributes and boundary interval of the first segment with segment number parameter SEG-01 are read. Based on this, one adjacent segment element is extracted to form a detection window. Four data frame entities located in the extended interval are read in batches from the original parsed data buffer pool to perform segment division operation. The logical position sequence parameters nested inside each data frame in the segment are extracted as 101, 102, 103, and 108, respectively. At the same time, the corresponding received timestamp parameters after alignment are extracted as 1005, 1015, 1025, and 1075, respectively. An independent memory array space is allocated for the current segment, and the position sequence parameter and timestamp parameter are written in sequence. After reading the specific value of the timestamp to confirm that it strictly maintains the monotonically increasing property of time evolution, the above array is converted into a position sequence sequence and a timestamp sequence and merged into a two-dimensional data matrix format to obtain the segment position time series set.
[0024] S202: Based on the time series set of segment locations, perform item-by-item comparison operation on adjacent position numbers, identify the corresponding position of the interruption of the number according to the number progression relationship, and at the same time perform the continuity check of the timestamp before and after, identify the corresponding position of the continuous time according to the time progression relationship, and perform position matching processing on the corresponding position of the interruption of the number and the corresponding position of the continuous time to obtain the index group corresponding to the break time. Based on the time series set of segment locations, the position number sequence is read and adjacent position number values are extracted and compared item by item in a loop. An incremental benchmark value of 1 is introduced. When the cursor scans to the numbers 103 and 108, it is found that their increment exceeds the benchmark value. Based on this, the position index 3 corresponding to the interruption of the number is identified and pushed into the dynamic stack. At the same time, the continuity of the timestamp sequence is checked. A time continuity judgment threshold of 35 is introduced, which is established by combining the average value of the environmental probe test samples of 20 and the maximum jitter extreme value of 5. Adjacent timestamp parameters are extracted and compared. When the timestamps 1025 and 1075 are scanned, it is found that their time difference crosses the threshold. Based on this, the position index 3 corresponding to the time continuity judgment over-boundary is identified and pushed into the dynamic stack. The elements inside the two dynamic stacks are extracted and double loop equality matching judgment is performed. The completely equal overlapping positions are processed for corresponding position matching and output as array subscript parameters to obtain the index group corresponding to the break time.
[0025] S203: Based on the index group corresponding to the fracture time, perform a position filtering operation on the position corresponding to the serial number interruption and the position corresponding to the time continuity, extract the intersection position according to the position correspondence and associate it with the segmentation identifier, perform classification processing on the filtered position and associate it with the instruction identifier to obtain the instruction chain fracture candidate set.
[0026] Based on the index group corresponding to the fracture time, the array subscript parameter 3 recorded in the group is read item by item. It is then substituted into the sequence number fracture set and the time fracture set for position filtering. It is confirmed that the two sets have overlapping synchronous truncation responses at the absolute index position 3. Based on the position correspondence, the completely consistent intersection position parameter is extracted and a primary foreign key connection and memory correspondence are established with the segment number parameter SEG-01. After performing a deduplication check operation based on the memory address on the filtered position parameter, the database cascading update function is called to directly bind and classify it with the top-level instruction identifier parameter 202610. All fields bound to the specific intersection position, the segment to which they belong, and the instruction identifier are mapped into a structure tree form to obtain the instruction chain fracture candidate set.
[0027] Please see Figure 4 The steps to obtain the instruction path number correspondence set are as follows: S301: Obtain the command chain-like fracture candidate set, perform node information parsing operation on the candidate positions, extract the node identifier before fracture, the node identifier after fracture and the command identifier, perform alignment processing according to the association relationship of the same candidate position, form a node identifier pairing sequence, and obtain a node identifier pairing sequence set. Obtain the instruction chain-like break candidate set, expand the structure tree, retrieve the record node marked as having an absolute index value of 3 at the intersection position, and perform node information parsing operations. Backtrack the original binary message storage area to locate the boundary of the adjacent data frame where the break feature occurred. Locate the previous hop MAC address record with a length of 6 bytes at the starting byte offset of 32, and perform ASCII conversion to obtain the node identifier parameter NODE-A1 before the break, and the current hop record at the same offset to obtain the node identifier parameter NODE-A1 after the break. At the same time, extract the instruction identifier parameter 202610, and use this absolute index value as the unique primary key. Based on the association relationship of the same candidate position, align and insert the three types of identifier parameters in the same row according to the primary key constraint to construct a node identifier pairing sequence with pointing attributes, and obtain the node identifier pairing sequence set.
[0028] S302: Based on the node identifier pairing sequence set, perform a consistency comparison operation on the node identifier before and after the breakage, filter the matching position according to the identifier equality relationship, extract the path number corresponding to the matching position, perform before and after position comparison processing on the path number, form a number correspondence sequence, and obtain the number correspondence sequence set. Based on the node identifier pairing sequence set, the node identifier parameters before and after the break are read row by row. The underlying string comparator is started to perform a consistency comparison operation to confirm that the node identifier NODE-A1 has not changed before and after the break. Based on the identity equality relationship, the candidate position index 3 is selected as the matching position and locked separately. At the same time, the cross-table query mechanism is called to locate the corresponding index position in the link path sequence set and extract the path number parameter 52 corresponding to the matching position. This parameter and its preceding adjacent number 51 and following adjacent number 58 in the original sequence are extracted and the preceding and following position comparison processing is performed to obtain the preceding increment value 1 and the following increment value 6. The path number parameter itself and the obtained increment values are encapsulated in a memory structure containing the preceding and following difference characteristics to form a number correspondence sequence, thus obtaining the number correspondence sequence set.
[0029] S303: Based on the sequence set of number correspondences, perform association processing between the number correspondences and the instruction identifiers, classify and group them according to the instruction identifiers, and obtain the instruction path number correspondence set.
[0030] Based on the sequence set of number correspondences, the structure containing the specific path number parameter 52 and each increment value is read. A memory pointer binding operation is performed to assign the base address of the instruction identifier parameter 202610 to the header reference area of the structure for association processing. A tree-structured hash mapping table is established and the instruction identifier parameter is set as the key value of the first-level root node. Under its hash bucket slot, the associated data is filled in sequentially according to the size of the path number values recorded inside the structure. Based on the characteristic differences of the instruction identifier, a separation classification and aggregation strategy is performed to gather structures with the same instruction identifier into a contiguous memory block and call the interface to perform disk persistence operations to obtain the instruction path number correspondence set.
[0031] Please see Figure 5 The steps to obtain the instruction flow path sequence are as follows: S401: Obtain the set of correspondences between instruction path numbers, parse the communication link identifier before and after the breakage and the path number, perform item-by-item comparison processing on the link identifier corresponding to the same instruction identifier, distinguish the link connection status according to the identifier equality relationship, and extract the path number to form a link number pairing sequence to obtain the link number pairing sequence set. Obtain the set of correspondences for instruction path numbers, read the bucket slot block corresponding to instruction identifier parameter 202610 in the hash mapping table, parse down the mounted communication link identifier parameter before breakage, communication link identifier parameter after breakage, and specific path number, locate the candidate breakage position, extract the preceding link identifier parameter 12 and the following link identifier parameter 14, and perform item-by-item comparison processing. After determining the difference between the two parameter values, it is confirmed that the link connection status is in heterogeneous breakage attribute. For this status, extract the link identifier parameters 12 and 14 and the path number parameter 52 corresponding to the position, and perform multi-variable packaging and splicing to form a composite string sequence with heterogeneous breakage records as the link number pairing sequence, and obtain the link number pairing sequence set.
[0032] S402: Based on the link number pairing sequence set, perform consistency determination on the communication link identifier, perform path number concatenation processing when the identifiers are equal, and call the instruction to transmit the segment identifier set when the identifiers are not equal. Search the positions where the communication link identifiers are equal in adjacent segments and replace the starting position after the break. Perform before and after position comparison processing on the path number and correct abnormal positions to obtain the path number connection sequence set. Based on the link number pairing sequence set, the identifier parameters encapsulated in the composite string sequence are extracted one by one to perform consistency judgment. In the case where the preceding link identifier 12 and the following link identifier 14 are not equal, the system shared handle call instruction transmission segment identifier set is obtained. A parallel search request is initiated in the retransmission concurrent buffer to search and locate the frame entity record in the parallel redundant block SEG-03 with a timestamp of 1035 and a link identifier parameter value equal to the preceding link identifier 12. The memory pointer of the position where the communication link identifier is equal in the adjacent segment is recorded and the internal path number parameter 53 is extracted. The entity data is completely overwritten and replaced in the starting position after the break. The path number is compared with the previous position to confirm that the increment of the current number 53 after replacement and the preceding number 52 meets the expected requirement of the benchmark continuous increment 1. Thus, the abnormal position is successfully corrected, and a path number connection sequence set consisting of consecutive numbers 50, 51, 52, and 53 is obtained.
[0033] S403: Based on the path number connection sequence set, perform corresponding matching processing between the path number and the instruction identifier, perform connection processing according to the number continuity relationship, maintain the stability of the connection relationship between the path numbers before and after and perform position correspondence correction processing, form a continuous path content structure and associate it with the instruction identifier to obtain the instruction flow path sequence.
[0034] Based on the path number sequence set, the corrected continuous path number parameter set is read and the corresponding instruction identifier parameter 202610 in the hash table is read. After performing a memory mapping region comparison operation to confirm pointers with the same lifecycle, corresponding matching processing is performed. The system's standard sorting function library is called to sort the pointers in ascending order of absolute value. A doubly linked list structure is established in memory so that the predecessor and successor node pointers accurately point to the base address. The connection processing is performed according to the number continuity relationship to keep the path number connection relationship stable in a monotonically increasing state. The boundary scan daemon thread is started to traverse the doubly linked list and perform position correction processing for null pointer exception nodes. The continuous path content structure is formed according to the memory topology arrangement and its root pointer is written back and associated with the descriptor table of the instruction identifier parameter to obtain the instruction flow path sequence.
[0035] Please see Figure 6 The steps for obtaining the instruction tracing path result set are as follows: S501: Obtain the instruction flow path sequence, parse the instruction identifier, communication link identifier and timestamp, perform front and back position comparison processing on the path number corresponding to the same instruction identifier, filter out the consecutive number content according to the number progression relationship, and extract the corresponding timestamp sequence to obtain the number time pairing sequence set; Obtain the instruction flow path sequence, parse the data blocks of each node carried by the doubly linked list structure and extract the instruction identifier, communication link identifier and receiving timestamp parameters. For the linked list with instruction identifier parameter 202610, extract the path number parameter from head to tail and perform front and back position comparison processing. Based on the principle that the jump between nodes satisfies the monotonically increasing principle that the progressive difference term is strictly equal to the constant value of 1, select consecutive numbered content and push it into the queue. Simultaneously extract the corresponding timestamp sequence 1005, 1015, 1025, 1035 bound in the node and push it into the timestamp queue. Establish a horizontal memory address mapping set for the above two queues based on the same array subscript to obtain the number time pairing sequence set.
[0036] S502: Based on the numbered time pairing sequence set, perform before and after position comparison processing on the timestamp, filter out continuous time content according to the time progression relationship, perform position matching processing on the continuous numbered content and the continuous time content, extract the corresponding position data and associate it with the communication link identifier to obtain the path filtering position sequence set; Based on the numbered time pairing sequence set, the timestamp sequence at the same subscript position is read and the step size is set to extract the progressive difference between adjacent times. The timestamps are compared with their previous positions. The time continuity judgment threshold of 35, which was established based on previous communication tests, is introduced. After internal verification by the system, it is confirmed that the current time progressive difference values do not exceed the threshold limit, and it is determined to be a legitimate transmission behavior. The continuous content of the time is filtered according to the time progressive relationship. The continuous numbered content corresponding to the same subscript in the continuous numbered queue is extracted and the continuous time content is matched with the horizontal position based on memory address. All data content entities at this position are extracted and traced upward to associate with the corresponding communication link identifier parameter 12 to obtain the path filtering position sequence set.
[0037] S503: Based on the path selection location sequence set, perform position rearrangement processing on the path number, match the path number with the instruction identifier and communication link identifier, and perform connection processing according to the number connection relationship to obtain the instruction tracing path result set.
[0038] Based on the path selection location sequence set, the path number parameter data list within the set is read. The quicksort algorithm is called to introduce the reciprocal of the received timestamp value plus the path number itself as the underlying algorithm logic to determine the comprehensive weight evaluation. Due to the monotonically increasing timestamp, the comprehensive evaluation value shows a specific increasing pattern from about 50.00 to about 53.00. The pointer swapping and position rearrangement processing is performed on the storage order of the path numbers in the set. The sorted path number parameters are forcibly bound to the originally bound instruction identifier parameter 202610 and communication link identifier parameter 12 and corresponding matching processing is performed. The underlying linked list connection function library is called to allocate contiguous memory blocks for connection processing based on the adjacent number connection relationship with a difference of 1. The underlying data link access pointer array is output to obtain the instruction tracing path result set.
[0039] A prison emergency incident command tracing system, the system includes: The instruction acquisition segmentation module obtains the instruction identifier field, communication link identifier field, path number field, and the information returned by the communication equipment of the relay node in the prison area from the log of the dispatch terminal of the prison command center. It calls the communication link identifier field to compare the consistency of the link identifier of adjacent records one by one and locates the link change position index. It calls the path number field to compare the number continuation according to the position before and after the record and locates the number abnormal position index. Based on the link change position index and the number abnormal position index, it performs position correspondence filtering to form a segmented position sequence and obtains the instruction transmission segment identifier set. The segment fracture identification module divides the transmission segments of the relay nodes in the prison area based on the instruction transmission segment identifier set, obtains the position number field and timestamp field within the segment, identifies the fracture position index according to the connection relationship of the position number, calls the timestamp field to compare the time sequence relationship to filter the time continuation position index, and performs position correspondence filtering between the fracture position index and the time continuation position index to obtain the candidate position set, thus obtaining the instruction chain fracture candidate set. The node number association module extracts the node identifier field before the break, the node identifier field after the break, and the instruction identifier field from the instruction chain break candidate set. It calls the node identifier field to compare the consistent positions of the nodes before and after the break and filters the matching index. It compares the path number field corresponding to the matching index with the positions before and after the break to form the number adjustment relationship. It associates and binds the number adjustment relationship with the instruction identifier field to form the corresponding set, and obtains the instruction path number corresponding relationship set. The link splicing and reconstruction module extracts the communication link identifier field before the break, the communication link identifier field after the break, and the path number field based on the instruction path number correspondence set. It calls the communication link identifier field before the break and the communication link identifier field after the break to perform a consistency comparison and determine the matching status. When the matching status is true, it splices the path to form a continuous path segment according to the connection relationship of the path number field. When the matching status is false, it calls the instruction transmission segment identifier set to locate the consistent position of the link identifier in the adjacent segment and replaces the starting position after the break. Then, it compares the position of the replaced path number field before and after the break and corrects the position of the abnormal number. It matches the corrected path number field with the instruction identifier field to form a continuous path sequence, thus obtaining the instruction flow path sequence. The path result generation module calls the instruction flow path sequence to extract the instruction identifier field, communication link identifier field, and timestamp field. It filters consecutive numbered records based on the connection between the positions before and after the path number field, and filters consecutive time records based on the connection between the timestamp field. It then filters the consecutive numbered records and consecutive time records by position correspondence and rearranges them according to the positions before and after the path number field to obtain the instruction tracing path result set.
[0040] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A method for tracing the origin of a prison emergency event order, characterized in that, Includes the following steps: S1: Obtain instruction information sent by the prison command center dispatch terminal, extract data received by relay nodes, extract instruction identifier, link identifier and path number, match the consistency of adjacent link identifiers to determine the link change location, compare the path number to determine the abnormal number location, match to form a segment identifier set, and obtain the instruction transmission segment identifier set. S2: Divide the segments based on the instruction transmission segment identifier set, extract the position number and timestamp, compare the position number to determine the break position, compare the timestamp to filter the time continuous positions, filter the corresponding relationship, and obtain the instruction chain break candidate set. S3: Extract the node identifiers before and after the break and the instruction identifiers according to the instruction chain break candidate set, compare the node identifiers to filter the matching positions, form the number adjustment relationship by referring to the path number, bind the number adjustment relationship with the instruction identifier, and obtain the instruction path number corresponding relationship set; S4: Based on the instruction path number correspondence set, extract the link identifiers and path numbers before and after the break, match the consistency of the link identifiers, if they are consistent, then splice the path number; if they are inconsistent, locate the consistent record of the adjacent link according to the instruction transmission segment identifier set and replace the starting position, adjust the abnormal position according to the position before and after the path number, form continuous path content, and obtain the instruction flow path sequence.
2. The prison emergency incident command tracing method according to claim 1, characterized in that: The instruction transmission segment identifier set includes link segment number, segment start and end nodes, and segment type identifier; the instruction chain break candidate set includes break node combination, break location identifier, and candidate segment label; the instruction path number correspondence set includes path number mapping pair, number adjustment identifier, and associated node group; and the instruction flow path sequence includes path node sequence, link connection relationship, and path continuity identifier.
3. The prison emergency incident command tracing method according to claim 1, characterized in that: The steps for obtaining the instruction transmission segment identifier set are as follows: S101: Obtain instruction information sent by the prison command center dispatch terminal and instruction information received by the communication equipment of the prison area relay node, parse the instruction frame fields and extract the instruction identifier, communication link identifier and path number, perform timestamp alignment on the data frames corresponding to the same instruction identifier, form a communication link identifier sequence and a path number sequence based on the time sequence, and obtain a link path sequence set. S102: Based on the link path sequence set, perform a comparison operation on adjacent communication link identifiers to identify the corresponding positions where communication link identifiers have changed. At the same time, perform a continuity check on the path number to identify the corresponding positions where the path number is abnormal. Match the link change positions with the abnormal path number positions to obtain a location association index group. S103: Based on the location association index group, perform corresponding location matching operations for link change locations and abnormal path number locations, divide data segment boundaries according to the location correspondence and assign segment numbers, classify the segment numbers and associate them with instruction identifiers to obtain a set of instruction transmission segment identifiers.
4. The prison emergency incident instruction tracing method according to claim 1, characterized in that: The steps for obtaining the instruction chain break candidate set are as follows: S201: Obtain the instruction transmission segment identifier set, perform segment division operation for each segment identifier and extract the data frame position number and timestamp within the segment, perform timestamp alignment processing on the data frames corresponding to the same segment identifier, and form a position number sequence and timestamp sequence according to the time evolution relationship to obtain the segment position time sequence set; S202: Based on the time series set of the segment location, perform item-by-item comparison operation on the adjacent position numbers, identify the corresponding position of the interruption of the number according to the number progression relationship, and at the same time perform the continuity check of the timestamp before and after, identify the corresponding position of the continuous time according to the time progression relationship, and perform position matching processing on the corresponding position of the interruption of the number and the corresponding position of the continuous time to obtain the index group corresponding to the break time. S203: Based on the index group corresponding to the fracture time, perform a position filtering operation on the position corresponding to the sequence number interruption and the position corresponding to the time continuity, extract the intersection position according to the position correspondence and associate it with the segmentation identifier, perform classification processing on the filtered position and associate it with the instruction identifier to obtain the instruction chain fracture candidate set.
5. The prison emergency incident instruction tracing method according to claim 1, characterized in that: The steps for obtaining the instruction path number correspondence set are as follows: S301: Obtain the command chain fracture candidate set, perform node information parsing operation on the candidate positions, extract the node identifier before fracture, the node identifier after fracture and the command identifier, perform alignment processing according to the association relationship of the same candidate position, form a node identifier pairing sequence, and obtain a node identifier pairing sequence set. S302: Based on the node identifier pairing sequence set, perform a consistency comparison operation on the node identifier before and after the breakage, filter the matching position according to the identifier equality relationship, extract the path number corresponding to the matching position, perform before and after position comparison processing on the path number, form a number correspondence sequence, and obtain a number correspondence sequence set. S303: Based on the number correspondence sequence set, perform association processing between the number correspondence and the instruction identifier, classify and group them according to the instruction identifier, and obtain the instruction path number correspondence set.
6. The prison emergency incident command tracing method according to claim 1, characterized in that: The steps for obtaining the instruction flow path sequence are as follows: S401: Obtain the set of correspondences of the instruction path numbers, parse the communication link identifier before the breakage and the communication link identifier after the breakage and the path number, perform item-by-item comparison processing on the link identifier corresponding to the same instruction identifier, distinguish the link connection status according to the identifier equality relationship, and extract the path number to form a link number pairing sequence to obtain a set of link number pairing sequences. S402: Based on the link number pairing sequence set, perform consistency determination on the communication link identifier, perform path number concatenation processing when the identifiers are equal, and call the instruction to transmit the segment identifier set when the identifiers are not equal. Search the positions where the communication link identifiers are equal in adjacent segments and replace the starting position after the break. Perform before and after position comparison processing on the path number and correct abnormal positions to obtain the path number connection sequence set. S403: Based on the path number connection sequence set, perform corresponding matching processing between the path number and the instruction identifier, perform connection processing according to the number continuity relationship, maintain the stability of the connection relationship between the path numbers before and after and perform position correspondence correction processing, form a continuous path content structure and associate it with the instruction identifier to obtain the instruction flow path sequence.
7. The prison emergency incident instruction tracing method according to claim 1, characterized in that, The method further includes step S5: S5: Call the instruction flow path sequence to extract the instruction identifier, communication link identifier and timestamp, filter the consecutive numbered content by comparing the position before and after the path number, filter the time consecutive content by comparing the position before and after the timestamp, and rearrange the filtering results according to the path number to obtain the instruction tracing path result set; The instruction tracing path result set includes tracing path nodes, valid path segments, and path time sequence.
8. The prison emergency incident instruction tracing method according to claim 7, characterized in that: The steps for obtaining the instruction tracing path result set are as follows: S501: Obtain the instruction flow path sequence, parse the instruction identifier, communication link identifier and timestamp, perform front and back position comparison processing on the path number corresponding to the same instruction identifier, filter out the continuous number content according to the number progression relationship, and extract the corresponding timestamp sequence to obtain the number time pairing sequence set; S502: Based on the numbered time pairing sequence set, perform front and back position comparison processing on the timestamp, filter out continuous time content according to the time progression relationship, perform position matching processing on the continuous numbered content and the continuous time content, extract the corresponding position data and associate it with the communication link identifier to obtain the path filtering position sequence set; S503: Based on the path, filter the location sequence set, perform position rearrangement processing on the path number, match the path number with the instruction identifier and communication link identifier, and perform connection processing according to the number connection relationship to obtain the instruction tracing path result set.
9. A prison emergency incident command tracing system, characterized in that, The system is used in the prison emergency incident instruction tracing method according to any one of claims 1-8, the system comprising: The instruction acquisition segmentation module obtains the instruction identifier field, communication link identifier field, path number field, and the information returned by the communication equipment of the relay node in the prison area from the log of the dispatch terminal of the prison command center. It calls the communication link identifier field to compare the consistency of the link identifier of adjacent records one by one and locates the link change position index. It calls the path number field to compare the number continuation according to the position before and after the record and locates the number abnormal position index. Based on the link change position index and the number abnormal position index, it performs position correspondence filtering to form a segmented position sequence and obtains the instruction transmission segment identifier set. The segment fracture identification module divides the transmission segment of the prison area relay node based on the instruction transmission segment identifier set, obtains the position number field and timestamp field within the segment, identifies the fracture position index according to the connection relationship of the position number, calls the timestamp field to compare the time sequence relationship to filter the time continuation position index, and performs position correspondence filtering between the fracture position index and the time continuation position index to obtain the candidate position set, thus obtaining the instruction chain fracture candidate set. The node number association module extracts the node identifier field before the break, the node identifier field after the break, and the instruction identifier field from the instruction chain break candidate set. It calls the node identifier field to compare the consistent positions of the nodes before and after the break and filters the matching index. It compares the path number field corresponding to the matching index with the positions before and after the break to form a number adjustment relationship. It associates and binds the number adjustment relationship with the instruction identifier field to form a corresponding set, thus obtaining the instruction path number corresponding relationship set. The link splicing and reconstruction module extracts the communication link identifier field before the break, the communication link identifier field after the break, and the path number field based on the instruction path number correspondence set. It calls the communication link identifier field before the break and the communication link identifier field after the break to perform a consistency comparison and determine the matching status. When the matching status is true, it splices the path to form a continuous path segment according to the connection relationship of the path number field. When the matching status is false, it calls the instruction transmission segment identifier set to locate the consistent position of the link identifier in the adjacent segment and replaces the starting position after the break. Then, it compares the position before and after the replacement path number field and corrects the abnormal number position. It matches the corrected path number field with the instruction identifier field to form a continuous path sequence, thus obtaining the instruction flow path sequence. The path result generation module calls the instruction flow path sequence to extract the instruction identifier field, communication link identifier field, and timestamp field. It filters consecutive numbered records based on the connection between the positions before and after the path number field, and filters consecutive time records based on the connection between the timestamp field. It then filters the consecutive numbered records and consecutive time records by position correspondence and rearranges them according to the positions before and after the path number field to obtain the instruction tracing path result set.
