Connection-aware real-time deduplication method and system for syslog transmission of unidirectional transmission device

By maintaining an independent index structure and a globally hot-driven replacement strategy at the sending end of the unidirectional transmission device, the problem of duplicate logs occupying bandwidth in the unidirectional transmission device is solved, realizing real-time deduplication and dynamic resource management, and adapting to the physical characteristics of the unidirectional transmission device.

CN123185154APending Publication Date: 2026-11-27SHANDONG ZHONGWANG YUNAN INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202611683912.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-29
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In unidirectional transmission devices, existing technologies struggle to achieve real-time deduplication, leading to duplicate logs consuming bandwidth. Furthermore, traditional deduplication schemes cannot adapt to the physical characteristics of unidirectional transmission devices and cannot achieve connection-level isolation and dynamic resource management without feedback from the receiving end.

Method used

At the sending end, an independent dual-nest index structure is maintained. By calculating the connection identifier and recognizing the composite fingerprint, combined with a replacement strategy driven by the global heat state, real-time deduplication with connection-level isolation is achieved. A lazy expiration mechanism and adaptive aging control are adopted to form a closed-loop deduplication process.

Benefits of technology

It achieves real-time deduplication without feedback from the receiving end, adapts to the physical characteristics of unidirectional transmission devices, avoids duplicate logs consuming bandwidth, dynamically adjusts resource quotas, and eliminates ghost hotspots and fingerprint pollution issues.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123185154A_ABST
    Figure CN123185154A_ABST
Patent Text Reader

Abstract

The application discloses a connection-aware real-time deduplication method and system for syslog transmission of a one-way transmission device, and belongs to the technical field of network data transmission. The method comprises the following steps: calculating a connection identifier according to a five-tuple, and maintaining an independent fingerprint index table for each connection; calculating a composite fingerprint when a data block arrives, determining intra-connection duplication by searching a local table first, discarding the data block if the local table is hit; searching a global hotness map if the local table is not hit, entering a learning window for determination if the number of cross-connections reaches a threshold, releasing the data block in the learning period, and discarding the data block formally after the learning period is completed; inserting the local table and sending the data block to a sending queue if the data block appears for the first time; and adjusting a learning counter corresponding to the fingerprint in the remaining active connections when the connection is logged off. The application does not require feedback from a receiving end, is suitable for the physical characteristics of a one-way transmission device, realizes high-precision real-time deduplication through a connection isolation and learning window mechanism, and effectively saves transmission bandwidth.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data communication and data deduplication technology, specifically to a connection-aware real-time deduplication method and system for Syslog transmission in unidirectional transmission devices. Background Technology

[0002] A unidirectional transmission device is a physical layer unidirectional transmission device that utilizes the physical characteristics of optical fiber to ensure that data can only be transmitted unidirectionally from the internal network (sender) to the external network (receiver), with no reverse feedback channels. This architecture is widely used in high-security data transmission scenarios between classified networks and public networks.

[0003] In unidirectional transmission device scenarios, Syslog (system log) is a typical transmission load. In actual operation and maintenance, the following pain points are commonly encountered: Excessive duplicate logs waste transmission bandwidth: Network devices generate a large number of duplicate logs during abnormal states, configuration errors, or periodic checks, which severely consumes limited transmission bandwidth.

[0004] One-way transmission devices have limited bandwidth resources: physical transmission bandwidth is limited by hardware and is difficult to upgrade after deployment.

[0005] Traditional deduplication schemes are difficult to apply directly in unidirectional scenarios: Existing deduplication technologies are mainly aimed at disk storage systems, and their designs usually rely on bidirectional communication or receiver feedback mechanisms, which are fundamentally in conflict with the physical characteristics of unidirectional transmission devices that only support unidirectional transmission.

[0006] Existing deduplication technologies, such as CN103761262A "Duplicate Log Control Method Based on syslogd", use a global temporary storage area to store log information within a preset time condition. This has a coarse granularity, and logs from different connections share the same storage area, which may lead to mutual contamination. US7929534B2 eliminates duplicate records based on flow identifiers, and the judgment is based on identifier matching rather than content fingerprints. However, its essence is compression rather than deduplication, and the cache is shared at the traffic level, without achieving isolation by connection.

[0007] While Cuckoo Hashing has been applied to data deduplication indexing, its current applications are primarily geared towards disk storage systems and do not cover: (1) Each network connection maintains its own independent cuckoo index for connection-level isolation; (2) Dynamic adjustment of index replacement strategy driven by global heat status; (3) Engineering adaptation of the upper limit of index replacement depth to the real-time requirements of one-way transmission.

[0008] In summary, existing technologies have the following shortcomings: they are designed for disk storage or log writing scenarios rather than real-time deduplication over network transmission; they rely on receiver feedback or bidirectional communication; deduplication and connection management are separated; the deduplication unit is too coarse; resource quotas are fixed and cannot be dynamically adjusted; and index structures such as Cuckoo Hash are not systematically integrated with connection-level isolation and global heat perception. Summary of the Invention

[0009] To address the shortcomings of existing technologies, this invention provides a connection-aware real-time deduplication method and system for Syslog transmission in unidirectional transmission devices. It moves deduplication capabilities from the storage layer to the network connection layer, maintaining an independent dual-nested index structure for each active connection in the sender's memory, and achieving shared identification of hotspot fingerprints between connections through precise correlation heat mapping. The replacement strategy and aging window of the local index are dynamically adjusted by the global heat status, forming a closed-loop deduplication process of local-global-feedback. This achieves connection-level isolation and real-time deduplication that is naturally adapted to the physical characteristics of unidirectional transmission devices without requiring any feedback from the receiver.

[0010] This invention is achieved through the following technical solution: A connection-aware real-time deduplication method for Syslog transmission in unidirectional transmission devices is provided, applied to the sending end of the unidirectional transmission device, and includes the following steps: Based on the transport layer 5-tuple in the Syslog data stream received by the sender, calculate the connection identifier and maintain an independent local fingerprint index table for each active connection; Specifically, the connection identifier Cid is obtained by hashing the transport layer 5-tuple: Cid = H(S_ip‖S_port‖D_ip‖D_port‖Prot), where H is the hash function that outputs the 32-bit hash value, ‖ represents the byte concatenation operation, S_ip is the source IP address (32 bits), S_port is the source port number (16 bits), D_ip is the destination IP address (32 bits), D_port is the destination port number (16 bits), and Prot is the transport layer protocol type (8 bits, such as TCP=6, UDP=17).

[0011] The connection routing table is implemented using an open addressable hash table. The key is Cid, and the value is a pointer to the corresponding connection fingerprint table. The load factor is set to 0.7, which is the preferred value for engineering purposes, to achieve a balance between query efficiency and memory usage.

[0012] When a data block arrives, its Syslog structure is parsed, the fields to be used for fingerprint calculation are selected, the composite fingerprint of the data block is calculated, and a query is performed in the local fingerprint index table of the connection. If the local query hits and the data block has not expired, it is determined to be a duplicate within the connection and is discarded directly at the sending end without entering the sending queue. Only when the local query fails is the cross-connection occurrence count of the composite fingerprint in the global heat map triggered. When selecting fields for fingerprint calculation, timestamps and hostnames are not included in the composite fingerprint calculation; only the combination of tag and message body (MsgBody) is used to generate the composite fingerprint through a hash function. Syslog messages follow the RFC5424 format. The timestamp (T_stamp) changes with each log entry and is not repeatable. The hostname (Host) is relatively stable, but may be the same across different connections, leading to fingerprint confusion. Therefore, only the combination of tag and message body (MsgBody) is hashed. The composite fingerprint is preferably a 128-bit composite value.

[0013] If the number of cross-connection occurrences reaches a preset threshold K, preferably K=3, then determine whether the learning counter for the current connection for the composite fingerprint has reached the learning window threshold, preferably the learning window threshold N_learn=3: If the condition is not met, the learning process is initiated, the composite fingerprint is inserted into the local fingerprint index table, and the data block is sent to the sending queue. If the condition is met, it is determined to be a formal cross-connection duplicate and is discarded directly at the sending end without entering the sending queue. The learning and release steps include: inserting the fingerprint into the local fingerprint index table, recording the first timestamp T_first and the most recent timestamp T_last, setting the hit count C_hit to zero, setting the expiration timestamp T_expire, incrementing the learning counter N_learned, adding the connection's identifier to the connection ownership set conn_set in the global heat map, and updating the reference count ref_count; the formal cross-connection duplicate discard steps specifically include: updating the local hit statistics and the most recent timestamp, and not entering the sending queue.

[0014] If the number of cross-connection occurrences does not reach the preset threshold K, the composite fingerprint is treated as the first occurrence, inserted into the local fingerprint index table, and the data block is sent to the sending queue. When any connection is deregistered, the reference count and connection ownership set in the global heatmap are updated, and the learning counters for the corresponding fingerprint in the remaining active connections are adjusted accordingly. Specifically, this includes: removing the deregistered connection's identifier from `conn_set` and updating `ref_count`; if `ref_count` > 0 after the update, the learning progress of the remaining active connections is checked; if any remaining connection has not yet completed learning the fingerprint, its learning counter is proactively set to the learning window threshold minus 1 (i.e., 2), so that it only needs to learn once more to complete the learning period; if `ref_count` drops to 0, the entry for that fingerprint is deleted from the global heatmap; the local fingerprint index table of the deregistered connection is released entirely, and all fingerprint records are destroyed along with it.

[0015] Furthermore, the local fingerprint index table adopts a dual-nesting lightweight lazy index structure with d=2 candidate buckets and b=8 slots per bucket; When inserting a composite fingerprint into the local fingerprint index table, if the target bucket is full and replacement is required, heat-driven replacement depth adjustment is performed based on the fingerprint's state in the global heat map: If the fingerprint is a global hotspot and the current connection is in a learning state for it, the upper limit of the permutation depth is relaxed to complete the injection first; If the fingerprint is not a hotspot or has already been learned, the upper limit of the permutation depth is tightened to ensure the predictability of the insertion delay.

[0016] Furthermore, the upper limit of the permutation depth is relaxed to MaxDisp_hot=16, and the upper limit of the permutation depth is tightened to MaxDisp_cold=8. If the fingerprint is a global hotspot and the current connection is in the learning state for it, that is, the number of cross-connection occurrences is ≥K and the learning counter is < learning window threshold, then MaxDisp_hot is used to perform the permutation; otherwise, MaxDisp_cold is used to perform the permutation.

[0017] Furthermore, the linkage adjustment steps during connection cancellation include: Remove the identifiers of deregistered connections from the connection ownership set corresponding to the fingerprint in the global heatmap, and update the reference count; If the reference count is greater than 0 after the update, check the learning progress of the remaining active connections; if there are remaining connections that have not yet completed learning the fingerprint, actively set their learning counter to the learning window threshold minus 1, so that they only need to learn once more to complete the learning period; If the reference count drops to 0, the entry for that fingerprint is removed from the global heatmap; The local fingerprint index table of the deregistered connection is released entirely, and all fingerprint records are destroyed along with it.

[0018] Furthermore, it also includes an adaptive aging control step based on physical bandwidth constraints: Iterate through all active connections at a preset period and count the data arrival rate, instantaneous hit rate and fingerprint table usage rate for each connection; An exponentially weighted moving average is used to smooth the instantaneous hit rate, resulting in a smoothed hit rate. Based on the baseline aging window, the current aging window value is dynamically calculated according to the smooth hit rate using a preset adjustment function and denoted as T_age. T_age is then limited to the preset minimum and maximum boundaries. The scanning cycle and capacity expansion / shrinkage step size of the local fingerprint index table are adjusted in reverse according to T_age: when T_age increases, the scanning cycle is extended and the expansion step size is increased; when T_age decreases, the scanning cycle is shortened and the shrinkage step size is increased.

[0019] Furthermore, the minimum boundary is 10s, and the maximum boundary is 120s; Segmented control of the scan cycle includes: When T_age > 60s, the scan cycle is extended from the default 5s to 10s; When T_age < 20s, the scan cycle is shortened from the default 5s to 2s; When 20s≤T_age≤60s, the scan cycle remains at the default of 5s; The fingerprint meter's capacity adjustment step size dynamically changes with the value of T_age: When T_age>60s, the expansion step size is increased from the default 50 slots to 100 slots; When T_age < 20s, the shrinkage step size is increased from the default 50 slots to 100 slots; When 20s≤T_age≤60s, both the expansion step size and the shrinkage step size remain at the default of 50 slots.

[0020] Furthermore, the local fingerprint index table employs a lazy expiration mechanism: Each fingerprint record carries an expiration timestamp T_expire=T_last+T_age×1000ms; T_last is the timestamp of the last time the fingerprint record was hit or accessed; During a query operation, if the current time is greater than T_expire, the slot is immediately marked as free and a "not found" message is returned. During the insertion operation, the system first checks if there are any expired slots in the target bucket. If so, the slots are overwritten directly without triggering a replacement.

[0021] The aforementioned lazy expiration mechanism is the only execution path for the physical reclamation of index entries, meaning that slot release only occurs during query or insert operations; the scanning step in the adaptive adjustment process only performs exponential decay on the statistic C_hit of that slot, without performing deletion. This division of labor decouples physical reclamation from statistical decay: the former ensures that the average time complexity of query and lazy cleanup operations, O(1), is predictably delayed, while the latter ensures that the hit rate statistic decays with the actual heat, and the two do not overlap or re-enter each other.

[0022] This invention also provides a connection-aware real-time deduplication system for Syslog transmission in unidirectional transmission devices, deployed at the transmitting end of the unidirectional transmission device, comprising: The connection routing module is used to calculate the connection identifier based on the transport layer 5-tuple and maintain the mapping between the connection identifier and the fingerprint table pointer; The local index module is used to provide an independent fingerprint index table for each active connection, perform fast lookup and storage of fingerprints within the connection, and only store fingerprints without storing the original text; The global heatmap module is used to maintain the accurate reference count, connection set, most recent hit time, and total number of hits for composite fingerprints. The deduplication engine module executes a connection-aware real-time deduplication method for Syslog transmission of unidirectional transmission devices, and controls whether data blocks enter the transmission queue of unidirectional transmission devices. The connection lifecycle management module is used to trigger the update of the global heat map and the recycling of the remaining connection learning progress when a connection is deregistered.

[0023] The beneficial effects of this invention are: This invention is adapted to unidirectional transmission scenarios. All deduplication decisions are completed at the sending end, requiring no feedback from the receiving end, consistent with the physical characteristics of unidirectional transmission devices. The fingerprint table is maintained only at the sending end, with no cross-device synchronization overhead.

[0024] This invention employs a strict causal chain: local index priority – global query triggered when local index is not found – global result drives local injection, eliminating the risk of misjudgment in parallel queries. A local index miss is a necessary prerequisite for triggering a global query, and the global query result directly determines the local index injection strategy, forming a closed-loop feedback.

[0025] This invention links the permutation depth limit of the Cuckoo Hash with the global hotness state, achieving greater permutation tolerance (MaxDisp_hot=16) in the hot fingerprint learning state and strict limitation (MaxDisp_cold=8) in the non-hot fingerprint state.

[0026] This invention achieves atomic linkage between the connection lifecycle and the learning state. When a connection is deregistered, not only is the reference count updated, but the learning progress of the remaining connections is also actively promoted, thus solving the problem of asynchronous learning states among multiple connections.

[0027] The exponential smoothing results of this invention are not only used to adjust the aging window, but also further injected into the physical parameters of the dual-nested index, such as the scan cycle and capacity expansion / shrinkage step size, forming a complete closed loop of "statistical smoothing - parameter adjustment - physical behavior change - statistical update".

[0028] This invention completely eliminates phantom hotspots caused by a counter that only increases and never decreases by using precise correlation heat mapping combined with connection cancellation decay and a learning window mechanism, allowing new connections to establish local awareness. A dual-nested lightweight lazy index eliminates worst-case cascading replacements, and lazy expiration distributes cleanup across the O(1) path of queries / insertions. An independent fingerprint table for each connection avoids fingerprint contamination between different connections. Dynamically adjusting resource quotas based on connection behavior characteristics enables differentiated services. Attached Figure Description

[0029] Figure 1 This is a schematic diagram of the overall process of the present invention. Detailed Implementation

[0030] To clearly illustrate the technical features of this solution, the following detailed implementation method will be used to explain the solution.

[0031] Example 1: This invention can be deployed at the sending end (internal network side) of a unidirectional transmission device as a preprocessing layer before data enters the unidirectional transmission device. A typical deployment location is: Syslog source - log collector - deduplication engine of this invention - unidirectional transmission device sending queue - physical layer - receiving end.

[0032] All deduplication decisions are made at the sending end. The receiving end does not need to maintain any fingerprint table, cache, or mapping relationship, nor does it need to perform any decompression or restoration operations. This invention does not require modification to the hardware of existing unidirectional transmission equipment; only a software module needs to be deployed at the sending end, making it highly feasible.

[0033] This embodiment constructs the deduplication engine as a data processing pipeline with strict causal dependencies. Its main operational flow is as follows: connection identifier calculation and local fingerprint index table maintenance (step one); local query and intra-connection duplicate detection upon data block arrival (step two); cross-connection occurrence count determination (step three); learning-based release or formal cross-connection duplicate detection (step four); first occurrence processing (step five); and connection cancellation linkage (step six). Specifically, a failure in step two is a necessary condition for triggering step three; the cross-connection occurrence count determination result in step three determines the decision path in step four; and the learning state of step four is stored in the local index table queried in step two, thus forming a closed loop.

[0034] The following initialization operations are performed when the system starts up: The connection routing table is initialized as an empty table; the connection routing table is implemented using an open addressable hash table, with the key being Cid and the value being a pointer to the corresponding connection fingerprint table. The load factor is set to 0.7 to strike a balance between query efficiency and memory usage. Initialize the exact correlation heat map as an empty map; Pre-allocate a double-nested index table (200 slots) with a default capacity for each possible connection. Load configuration parameters (such as K value, N_learn value, α, β, T_min, T_max, T_age, etc.).

[0035] Step 1: Connection Identifier Calculation and Local Fingerprint Index Table Maintenance 1.1 Connection Identifier Calculation When a new Syslog connection is established, the connection identifier Cid is calculated based on the five-tuple of the connection: Cid = H(S_ip‖S_port‖D_ip‖D_port‖Prot); where H represents the hash function that outputs a 32-bit hash value, ‖ represents the byte concatenation operation, S_ip is the source IP address (32 bits), S_port is the source port number (16 bits), D_ip is the destination IP address (32 bits), D_port is the destination port number (16 bits), and Prot is the transport layer protocol type (8 bits, such as TCP=6, UDP=17).

[0036] The system maintains a connection routing table, implemented using an open-addressable hash table. The key is Cid, and the value is a pointer to the corresponding connection's local fingerprint index table. The load factor is set to 0.7 to strike a balance between query efficiency and memory usage. When a new Syslog connection is established, the system creates a new entry in the connection routing table with Cid as the key, the value pointing to the newly allocated dual-nested lightweight lazy index fingerprint table, and initializes the connection's statistics.

[0037] 1.2 Dual-nest lightweight lazy index structure Each connection maintains an independent dual-nested index table to store fingerprint information of recently sent data blocks. The dual-nested lightweight lazy index uses a structure of d = 2 candidate buckets, with each bucket having b = 8 slots. For fingerprint F, the positions of its two candidate buckets are calculated using the following formula: B_1(F)=H_1(F) mod N_bucket ; B_2(F)=H_2(F) mod N_bucket ; H_1 and H_2 are two independent hash functions, and N_bucket is the number of buckets.

[0038] For a data block fingerprint F in this connection, the record RF stored in the fingerprint table contains the following fields: RF= ( F , SeqF , T_first ( F ), T_last ( F ), C_hit ( F ), T_expire ( F ), N_learned ( F , c )) The definitions of each field are as follows: F: Data block fingerprint (128-bit composite value); Seq_F: Sequence number of the data block corresponding to this fingerprint in the connection data stream (32-bit unsigned integer); T_first(F): System timestamp when this fingerprint was first recorded (millisecond precision); T_last(F): System timestamp when this fingerprint was most recently matched (millisecond precision); C_hit(F): Cumulative number of times this fingerprint has been repeatedly hit (32-bit unsigned integer, updated using exponential decay); T_expire(F): Expiration timestamp of this fingerprint (milliseconds), calculated by adding the aging window duration of the current connection to T_last(F); N_learned(F,c): Learning and release counter for the global hotspot fingerprint F for connection c (1-byte unsigned integer, value range 0~3).

[0039] The fingerprint table is implemented using a dual-nested lightweight lazy index structure, supporting efficient lookup and dynamic expansion. The design principle is to store only fingerprints and not the original text. With 10MB of memory, it can store approximately 200,000 fingerprint records, which is sufficient to cover the deduplication requirements of typical concurrent connections. This index structure eliminates worst-case jitter while maintaining O(1) average lookup performance by increasing the number of bucket slots, setting an upper limit on the replacement depth, and introducing a lazy expiration mechanism.

[0040] 1.3 Heat-driven displacement depth regulation When inserting a composite fingerprint into the local fingerprint index table, if the target bucket to be inserted into is full and eviction is required, perform heat-driven eviction depth adjustment according to the state of the fingerprint in the global heat map. Specifically, the following steps are performed when inserting a new fingerprint F_new: Calculate B_1(F_new) and B_2(F_new). If any candidate bucket has an empty slot, insert directly and return success.

[0041] If neither candidate bucket has an empty slot, randomly select a slot in one bucket for eviction, set the evicted fingerprint as F_evict, and migrate it to the other candidate bucket.

[0042] Repeat the above steps, increasing the eviction depth depth by 1 each time.

[0043] Heat-driven depth adjustment: The system queries the state of the fingerprint F_new in the exact association heat map: If F_new is a global hotspot (appears across connections ≥ K times, preferably K=3) and the learning counter of the current connection N_learned(F_new,c) < N_learn (preferably N_learn=3, i.e., in the learning state), the system relaxes the eviction depth upper limit to MaxDisp_hot=16, prioritizes completing the local injection of this hotspot fingerprint, and ensures that the hotspot fingerprint can be learned; If F_new is a non-hotspot or learning has been completed (N_learned(F_new,c) ≥ N_learn), the system tightens the eviction depth upper limit to MaxDisp_cold=8, prioritizing the predictability of insertion latency.

[0044] Insertion completed.

[0045] If depth reaches the current upper limit and insertion is still unsuccessful, execute the following degradation strategy: Prioritize trying progressive capacity expansion: allocate a new subtable (instead of rebuilding the entire table), insert F_new into the new subtable, route new data to the new subtable, and gradually migrate old data to avoid latency spikes caused by full table rebuilds; If capacity expansion is restricted (memory upper limit is reached), evict the oldest fingerprint: among all slots in the candidate bucket, select the fingerprint F_oldest with the smallest T_last value (i.e., the least recently accessed) for eviction, and insert F_new into this slot.

[0046] The permutation depth upper limit is relaxed to MaxDisp_hot=16, and tightened to MaxDisp_cold=8. If the fingerprint is a global hotspot and the current connection is in a learning state (i.e., the number of cross-connection occurrences is ≥K and the learning counter is < the learning window threshold), then MaxDisp_hot is used for permutation; otherwise, MaxDisp_cold is used. The core value of this mechanism is that it transforms the general permutation algorithm of Cuckoo Hash into a "special injection valve precisely controlled by the cross-connection hotspot threshold K and the learning counter N_learned." It gives greater permutation tolerance to global hotspot fingerprints that need to be learned to ensure that they are recorded locally, while strictly limiting the permutation depth for ordinary fingerprints to ensure real-time performance.

[0047] Step 2: Local query and join duplicate detection when data blocks arrive This step includes Syslog structured semantic awareness and composite fingerprint calculation, as well as duplicate detection within the first-level connection.

[0048] 2.1 Syslog Structured Semantic Awareness and Composite Fingerprint Calculation Syslog messages follow the format defined by RFC5424. A typical Syslog message can be represented by the following structure: M = (Priority, T_stamp, Host, Tag, MsgBody) ; Where Priority is the priority value (including Facility and Severity), T_stamp is the timestamp, Host is the hostname, Tag is the tag (identifying the program or process), and MsgBody is the message body content.

[0049] Different fields exhibit different repetition characteristics. The timestamp T_stamp changes with each log entry and is not repetitive; the hostname (Host) may be the same across different connections, leading to fingerprint confusion. The specific calculation method for the composite fingerprint can be implemented using hashing techniques known in the art, and this invention does not impose any particular limitations on this method.

[0050] 2.2 First-level judgment: Duplicate judgment within the connection When a data block arrives, the system completes deduplication and data forwarding according to the following steps S301~S310. The causal relationship between each step constitutes a complete decision pipeline: Step S301: After the data block arrives, calculate the connection identifier Cid = H(S_ip ‖ S_port ‖ D_ip ‖ D_port ‖ Prot) based on the five-tuple of the connection to which the data block belongs, and locate the dual-nested index table Table_c corresponding to the connection in the connection routing table.

[0051] Step S302: Parse the Syslog structure from the data block, extract the Tag and message body MsgBody, and calculate the composite fingerprint F of the data block according to a hash method known in the art.

[0052] Step S303: Query whether F exists in the currently connected dual-nest index table Table_c.

[0053] If F∈Table_c and has not expired, jump to step S304; Step S304: Determine as intra-connection duplication. Perform the following operations: where "←" denotes assignment update; C_hit(F)←C_hit(F)+1; T_last(F)←T_now; Recalculate the expiration time T_expire(F)←T_now+T_age(c)×1000; Discard the data block without entering the transmission queue of the one-way transmission device; Update the statistical information N_duplicate(c)←N_duplicate(c)+1; Jump to step S310.

[0054] If F∉Table_c or has expired, trigger the second-level determination and jump to step S305.

[0055] The causal dependency for triggering the global query on miss is: only after the local index query fails does the system access the global heat mapping, rather than querying the global mapping simultaneously or in advance.

[0056] Step 3: Cross-connection occurrence count determination After the local miss in step S303, the system performs the second-level determination - cross-connection hotspot query: Step S305 (second-level determination): Query the exact associated heat mapping to obtain the exact value of C_cross(F); If C_cross(F)≥K (K is a preset threshold, preferably 3), jump to step S306; If C_cross(F)<K, jump to step S309.

[0057] Step 4: Learning admission or formal cross-connection duplication determination This step further illustrates the specific processing details of learning admission and formal cross-connection duplicate discarding.

[0058] 4.1 Third-level determination: Learning window determination Step S306: Check the connection learning counter N_learned(F,c); If N_learned(F,c) < N_learn (the preferred value of N_learn is 3), jump to Step S307 (learning admission); If N_learned(F,c) ≥ N_learn, jump to Step S308 (formal cross-connection duplication).

[0059] The core value of the learning window mechanism lies in breaking the permanent deadlock of new connections on global hotspots: it allows new connections to recognize hotspot fingerprints in the initial stage and establish local fingerprint table records, thereby avoiding subsequent misjudgments; meanwhile, the threshold N_learn=3 ensures that the learning cost is controllable (at most 3 duplicate data entries are admitted) without significantly reducing the deduplication rate.

[0060] 4.2 Learning Admission Step S307 (learning admission): Perform the following operations: During system initialization, set a default aging window T_age(c) = 30s (reference value) for each connection c; set the expiration timestamp T_expire(F) ← T_now + T_age(c) × 1000ms, where T_age(c) is the aging window value adopted by the current connection.

[0061] Insert the fingerprint F into the double-nest index table Table_c of connection c, record T_first(F) ← T_now, T_last(F) ← T_now, C_hit(F) ← 0, T_expire(F) ← T_now + T_age(c) × 1000; Increment the learning counter N_learned(F,c) ← N_learned(F,c) + 1; Update conn_set(F) ← conn_set(F) ∪ {Cid_c} in the precise association heat mapping, ref_count(F) ← |conn_set(F)|; Send the data block to the transmission queue of the unidirectional transmission device (i.e., actual transmission); Update the statistics N_total(c) ← N_total(c) + 1, N_unique(c) ← N_unique(c) + 1; Jump to Step S310.

[0062] 4.3 Formal Cross-Connection Duplicate Discarding Step S308 (formal cross-connection duplication): Perform the following operations: C_hit(F) ← C_hit(F) + 1; T_last(F) ← T_now; T_expire(F)←T_now+T_age(c)×1000; The data block is discarded and not entered into the transmission queue of the one-way transmission device; Update statistics N_duplicate(c) ← N_duplicate(c) + 1; Proceed to step S310.

[0063] Step 5: Handling the first occurrence Step S309 (first appearance): Perform the following operations: Insert fingerprint F into the currently connected dual-nest index table Table_c, and record T_first(F)←T_now, T_last(F)←T_now, C_hit(F)←0, T_expire(F)←T_now+T_age(c)×1000, N_learned(F,c)←0; Create or update entries in the exact correlation heatmap: if an entry already exists, then conn_set(F) ← conn_set(F) ∪ {Cid_c}; if an entry does not exist, create a new entry, ref_count(F) ← 1, conn_set(F) ← {Cid_c}; If C_cross(F) ≥ K after the update, mark the fingerprint as a global hotspot; Send the data block to the send queue of the one-way transmission device; Update the statistics: N_total(c) ← N_total(c) + 1, N_unique(c) ← N_unique(c) + 1; Proceed to step S310.

[0064] Step S310: Update the active time of this connection T_last_update(c) ← T_now. The processing of this data block is complete. Return to step S301 and wait for the next data block to arrive.

[0065] The core feature of the above-mentioned determination process is: The failure in step S303 is a necessary triggering condition for step S305, and the two constitute a strict causal dependency. The C_cross(F) value in step S305 directly determines the learning window decision path in step S306; N_learned(F,c) in step S306 is stored in the same local index table queried in step S303, and the learning state and the local fingerprint are in the same data structure; Throughout the entire process, data blocks enter the transmission queue only in two scenarios: step S307 (learning release) and step S309 (first occurrence). All other paths directly discard the data blocks.

[0066] Step 6: Connection Logoff Linkage To solve the ghost hotspot problem, the precise association heat map introduces a connection logoff decay mechanism. When a connection c is destroyed due to timeout or active closure, the system performs the following cleanup operations: Step S701: Traverse all fingerprints F in the double-nest index table Table_c of connection c.

[0067] Step S702: For each F, remove the connection identifier Cid_c from the connection set conn_set(F) of the global heat entry: conn_set(F) ← conn_set(F) \ {Cid_c}.

[0068] Step S703: Update the reference count of the global heat entry: ref_count(F) ← |conn_set(F)|.

[0069] Step S704 (learning state linkage update): If ref_count(F) > 0 (i.e., there are still other connections holding this fingerprint), the system checks all remaining active connections in conn_set(F): if there is a remaining connection c' that has not yet completed learning for this F (i.e., N_learned(F,c') < N_learn), the system actively sets the learning counter of these remaining connections to N_learn - 1 (i.e., 2), so that they only need to learn once more to complete the learning period. The purpose of this operation is to prevent other connections from being trapped in an invalid learning state for a long time due to the disconnection of a source connection, and to bind and link the connection lifecycle, learning progress, and global references together.

[0070] Step S705: If ref_count(F) drops to 0, delete the entry H_F from the precise association heat map to completely reclaim global memory.

[0071] Step S706 (automatic reclamation): Since N_learned(F,c) is stored in the fingerprint record of the dedicated fingerprint table Table_c of connection c, when connection c is destroyed and Table_c is released as a whole, all fingerprint records (including the N_learned field) within this connection are destroyed together, and no additional traversal deletion operation is required for N_learned, ensuring that the time complexity of connection logoff cleanup is strictly proportional to the number of fingerprints in the connection's fingerprint table (i.e., O(|Table_c|)), without introducing additional overhead.

[0072] Step S707: Release all resources of connection c (fingerprint table memory, statistics information structure, etc.), cleanup complete.

[0073] Remove the identifier of the cancelled connection from the connection affiliation set corresponding to the fingerprint in the global heat map and update the reference count (steps S702-S703); if the updated reference count > 0, check the learning progress of the remaining active connections. If there are remaining connections that have not yet completed learning the fingerprint, actively set their learning counter to the learning window threshold minus 1 (step S704); if the reference count drops to 0, delete the entry of the fingerprint from the global heat map (step S705); release the local fingerprint index table of the cancelled connection as a whole, and destroy all fingerprint records along with it (steps S706-S707).

[0074] This embodiment also includes an adaptive aging control step based on physical bandwidth constraints, specifically including: traversing all active connections at a preset period, and statistically analyzing the data arrival rate, instantaneous hit rate, and fingerprint table utilization rate for each connection; smoothing the instantaneous hit rate using an exponentially weighted moving average to obtain a smoothed hit rate; dynamically calculating the current aging window value T_age based on the smoothed hit rate according to a preset adjustment function using a baseline aging window, and limiting T_age between a preset minimum boundary and a maximum boundary; and adjusting the scanning cycle and capacity expansion / contraction step size of the local fingerprint index table in reverse according to T_age. Further, segmented control rules are defined for the minimum boundary, maximum boundary, and the dynamic changes in the scanning cycle and capacity adjustment step size with the T_age value.

[0075] Smooth hit rate calculation: Define the instantaneous hit rate r_instant(t)(c) of the t-th adjustment period (period length ΔT = 5s) as: r_instant(t)(c)=N_duplicate(t)(c) / N_total(t)(c).

[0076] Define the smooth hit rate R_hit(t)(c) as: R_hit(t)(c)=α×r_instant(t)(c)+(1-α)×R_hit(t-1)(c); Where α=0.3 is the smoothing coefficient, and R_hit(0)(c)=0 is the initial value. This smoothing method performs low-pass filtering on instantaneous fluctuations, preserving long-term trends and suppressing short-term noise.

[0077] Aging window calculation and boundary constraints: Based on the baseline aging window (T_age(base)(c)=30s), the current aging window value T_age is dynamically calculated according to the smoothed hit rate using a preset adjustment function: T_age(c)=T_age(base)(c)×[1+β×(2×R_hit(t)(c)-1)]; Where β=0.5 is the adjustment coefficient, and R_hit(t)(c) is the smoothing hit rate (range [0,1]). The final aging window needs to be limited to the upper and lower bounds: T_age(c)←clip(T_age(c), T_min, T_max); The minimum boundary is 10s and the maximum boundary is 120s, i.e., T_min=10s and T_max=120s.

[0078] The aging window's feedback regulation of indexing behavior: Unlike existing technologies where the aging window is only used to eliminate fingerprints, in this embodiment, the T_age(c) calculation result is further back-injected into multiple operating parameters of the dual-nested index. The segmented control rules are as follows: (1) Dynamic adjustment of the scan cycle: When T_age > 60s (indicating a high connection hit rate and a long fingerprint lifespan), the system will extend the scanning cycle from the default 5s to 10s to reduce CPU load; When T_age < 20s (indicating a low connection hit rate and rapid fingerprint failure), the system will shorten the scanning cycle to 2s to accelerate memory release; When 20s ≤ T_age ≤ 60s, the scan cycle remains at the default of 5s.

[0079] (2) Dynamic adjustment of fingerprint meter capacity adjustment step size: When T_age>60s, the expansion step size is increased from the default 50 slots to 100 slots; When T_age < 20s, the shrinkage step size is increased from the default 50 slots to 100 slots; When 20s ≤ T_age ≤ 60s, both the expansion step size and the shrinking step size remain at the default of 50 slots.

[0080] The core value of this linkage mechanism lies in transforming the statistical smoothing results of the application layer into specific control instructions for the link layer and index layer, enabling the system's memory management strategy to dynamically retreat according to data characteristics and physical bandwidth, rather than adjusting a single parameter in isolation.

[0081] Lazy expiration mechanism: Its core function is not to centrally scan and clean up expired fingerprints at fixed intervals, but rather to check them incidentally during querying and insertion. Each fingerprint record carries an expiration timestamp T_expire, which is calculated as follows: T_expire(F)=T_last(F)+T_age(c)×1000ms; Where T_last(F) is the timestamp of the last time the fingerprint record was hit or accessed, and T_age(c) is the current aging window value of the connection.

[0082] Lazy cleanup during queries: When searching for fingerprint F, if the current time is found to be greater than the expiration timestamp (T_now>T_expire(F)), the slot is immediately marked as free (logical deletion), and "not found" is returned. The time complexity of this operation is O(1), and no additional jitter is introduced. This is the basis for the "expired" determination in step S303.

[0083] Lazy cleanup during insertion: When a new fingerprint is inserted into a full bucket, the system first checks if there are any expired slots in that bucket. If so, the slot is directly overwritten without triggering a replacement, thus significantly reducing the frequency of replacements. This process works in conjunction with heat-driven replacement depth regulation.

[0084] Adaptive adjustment and aging cleaning process: The system performs adaptive adjustments and fingerprint table aging cleanup at a preset cycle (5 seconds). The specific steps are as follows: Step S601: The system starts a timer with the period T_adjust set to 5s.

[0085] Step S602: After the timer expires, iterate through all currently active connections and execute steps S603 to S608 for each connection c.

[0086] Step S603: Calculate the evaluation metrics of the connection in the most recent period: (a) Data arrival rate V_data(c) = N_block(t)(c) / T_adjust; (b) Instant hit rate r_instant(t)(c); (c) Smooth hit rate R_hit(t)(c); (d) Fingerprint table utilization U_table(c) = N_used(c) / N_total(c)×100%.

[0087] Step S604: Adjust the fingerprint table capacity according to R_hit(t)(c) and U_table(c): If R_hit(t)(c)>70% and U_table(c)>80%, then perform expansion (step size driven by T_age(c); if R_hit(t)(c)<20% and U_table(c)<50%, then perform shrinkage (step size driven by T_age(c)).

[0088] Step S605: Adjust the aging window T_age(c) according to the exponential smoothing dynamic decay mechanism.

[0089] Step S606: The scan cycle and capacity of the dual-nested index are adjusted by the updated T_age(c).

[0090] Step S607: Perform statistical decay and scanning on the visited fingerprints. Traverse the most recent N_scan records in the connection fingerprint table (maintained by an LRU list, N_scan driven by T_age), and perform only the following two types of processing: The first type involves statistical decay rather than physical deletion of expired fingerprints: if T_now > T_expire(F), then C_hit(F) ← C_hit(F) × e is executed on the fingerprint record. (-λ×Δt) The exponential decay of the time and the slot remains unchanged; the physical release of the slot is handled by the lazy expiration mechanism on the query or insertion path, that is, if the current time is found to be greater than T_expire during the query, it is marked as free and not found is returned; during the insertion, expired slots are overwritten first. This step S607 is not repeated for deletion.

[0091] The second type applies normal exponential decay to fingerprints that have not expired: if T_now ≤ T_expire(F) and C_hit(F) > 0, then C_hit(F) ← C_hit(F) × e is executed. (-λ×Δt) , where λ = 0.1s -1 , Δt=(T_now-T_last(F)) / 1000ms.

[0092] Therefore, S607 only undertakes the time decay of statistics and does not undertake slot recycling; physical cleanup is completely subdivided into the O(1) lazy path of query / insertion, and the two responsibilities are orthogonal, together forming a complete aging system.

[0093] Step S608: The connection adjustment is complete. If all connections have been processed, proceed to step S609.

[0094] Step S609: Reset the timer and proceed to step S602 to wait for the next adjustment cycle.

[0095] The exponential decay of the hit count is as follows: C_hit(new)(F) = C_hit(old)(F) × e (-λ×△t) λ=0.1s -1 The decay coefficient is Δt = T_now - T_last(F), which is the time interval (in seconds) since the last hit. Since C_hit is an integer, the exponential decay result is rounded down; when C_hit drops to 0 and T_now > T_expire(F) is satisfied, it is physically deleted during the next lazy cleanup.

[0096] Methods for handling duplicate data: When the deduplication engine determines that a data block is duplicate data, it performs a discard operation. Suppose that data block d arrives at the sending queue. If its fingerprint F is determined to be duplicate in the context of connection c (i.e., it meets the intra-connection duplicate condition or the formal cross-connection duplicate condition), then the data block is removed from the sending buffer and does not enter the physical sending queue of the unidirectional transmission device.

[0097] The key point of this processing method is that data blocks identified as duplicates are directly discarded at the sending end, neither entering the sending queue of the one-way transmission device nor sending any form of fingerprint, signature or identifier to the receiving end; the receiving end does not need to maintain any fingerprint table, cache or mapping relationship, nor does it need to perform any decompression or restoration operation.

[0098] Although duplicate data is discarded, the system still needs to record deduplication statistics to guide adaptive adjustments and operational monitoring. For connection c, the following statistics are maintained: N_total(c) is the total number of data blocks processed cumulatively; N_unique(c) is the number of data blocks that first appeared and were actually sent; N_duplicate(c) is the number of data blocks judged as duplicates and discarded; R_hit(c) = N_duplicate(c) / N_total(c) × 100% is the cumulative deduplication hit rate of this connection; T_last_update(c) is the last active timestamp of this connection. Even if a data block is discarded, the system will still update T_last_update(c) of this connection to prevent active connections from being mistakenly judged as idle and having their resources reclaimed due to a long period of no "actually sent" data.

[0099] Example 2: A connection-aware real-time deduplication system for Syslog transmission in unidirectional transmission devices is deployed at the transmitting end of the unidirectional transmission device. This system is a system-level implementation of the aforementioned method, including: Connection routing module: used to calculate the connection identifier based on the transport layer 5-tuple and maintain the mapping between the connection identifier and the fingerprint table pointer (load factor is 0.7). Local index module: Used to provide an independent fingerprint index table for each active connection, perform fast lookup and storage of fingerprints within the connection, and only store fingerprints, not the original text; Global heatmap module: used to maintain the accurate reference count, connection set, most recent hit time, and total number of hits for composite fingerprints; Deduplication engine module: configured to execute the method steps of embodiment 1, controlling whether data blocks enter the transmission queue of the one-way transmission device; Connection lifecycle management module: used to trigger the update of global heat map and the recycling of remaining connection learning progress when a connection is deregistered.

[0100] The above modules work together to realize the entire process of data processing, index management, heat control and aging cleanup described in Example 1.

[0101] The above process is demonstrated in a specific scenario below. Suppose K=3, N_learn=3, and a certain composite fingerprint F appears for the first time.

[0102] Scenario 1 (First Appearance): The connection c1 generates a data block containing fingerprint F for the first time. S301 Locates the index table of c1; S302 Calculates F; S303 Local miss; S305 Query C_cross(F)=0<3, jump to S309: Insert F into the index table of c1, N_learned(F,c1)=0, create an entry for global heat mapping ref_count=1, and send the data block to the sending queue.

[0103] Scenario 2 (Intra-connection duplicate): c1 generates another data block containing F. S303 Local hit and not expired, jump to S304: determined to be intra-connection duplicate, update C_hit and T_last, discard the data block.

[0104] Scenario 3 (Learning to release): The new connection c2 generates a data block containing F. Previously, the continuous hits of c1 have made C_cross(F) ≥ 3.

[0105] Upon arrival of the data block, proceed to step two of Example 1: calculate the composite fingerprint F and query the local fingerprint index table Table_c2. A match is found (i.e., S303 match, a necessary prerequisite for triggering step three). Then, proceed to step three: query the global heatmap to obtain C_cross(F) = 3 ≥ K = 3. Proceed to step four: first determine that the learning counter N_learned(F,c2) = 0 < the learning window threshold N_learn = 3, indicating a learning state, and then proceed with learning release (S307): insert F into Table_c2. e_c2 records T_first(F)←T_now, T_last(F)←T_now, C_hit(F)←0, T_expire(F)←T_now+T_age(c2)×1000, and N_learned(F,c2) increments to 1. In the global heat map, Cid_c2 is added to conn_set(F) and ref_count(F) is updated to 3. Finally, the data block is sent to the sending queue of the one-way transmission device, completing the learning release branch of step four.

[0106] Scenario 4 (Formal Cross-Connection Duplicate): c2 generates a data block containing F for the third time. At this point, N_learned(F,c2) has reached 3 after two learning passes. S303 Miss; S305 C_cross(F)≥3; S306 N_learned(F,c2)≥3, jump to S308: determined to be a formal cross-connection duplicate, update the statistics and discard.

[0107] Scenario 5 (Connection Cancellation Linkage): Cancel connection c1. S701 Traverse the c1 index table; S702-S703 Remove c1 from conn_set(F), decrement ref_count; S704 If ref_count > 0 and c2 has not yet completed learning, set N_learned(F,c2) to 2; S705 If ref_count drops to 0, delete the global entry; S706-S707 Release all resources of c1.

[0108] Performance and resource assessment The main performance indicators of this embodiment are shown in the table below.

[0109]

[0110] In summary, this invention achieves natural adaptation to the physical characteristics of unidirectional transmission devices by moving the deduplication capability forward to the sending end, adopting a connection-level isolated dual-nested index, using a global heat-driven replacement strategy, and introducing a learning window and deregistration linkage mechanism. At the same time, it ensures the predictability of real-time processing and the dynamic elasticity of memory usage.

[0111] Of course, the above description is not limited to the examples above. Technical features not described in this invention can be implemented by or using existing technology, and will not be repeated here. The above embodiments and drawings are only used to illustrate the technical solutions of this invention and are not intended to limit this invention. This invention has been described in detail with reference to preferred embodiments. Those skilled in the art should understand that any changes, modifications, additions or substitutions made by those skilled in the art within the scope of this invention do not depart from the spirit of this invention and should also fall within the protection scope of this invention.

Claims

1. A connection-aware real-time deduplication method for Syslog transmission in unidirectional transmission devices, applied to the transmitting end of a unidirectional transmission device, characterized in that: Includes the following steps: Based on the transport layer 5-tuple in the Syslog data stream received by the sender, calculate the connection identifier and maintain an independent local fingerprint index table for each active connection; When a data block arrives, its Syslog structure is parsed, the fields to be used for fingerprint calculation are selected, the composite fingerprint of the data block is calculated, and a query is performed in the local fingerprint index table of the connection. If the local query hits and the data block has not expired, it is determined to be a duplicate within the connection and is discarded directly at the sending end without entering the sending queue. Only when the local query fails is the cross-connection occurrence count of the composite fingerprint in the global heat map triggered. If the number of cross-connection occurrences reaches a preset threshold K, then determine whether the learning counter for the current connection for this composite fingerprint has reached the learning window threshold: If the condition is not met, the learning process is initiated, the composite fingerprint is inserted into the local fingerprint index table, and the data block is sent to the sending queue. If the condition is met, it is determined to be a formal cross-connection duplicate and is discarded directly at the sending end without entering the sending queue. If the number of cross-connection occurrences does not reach the preset threshold K, the composite fingerprint is treated as the first occurrence, inserted into the local fingerprint index table, and the data block is sent to the sending queue. When any connection is deregistered, update the reference count and connection ownership set in the global heat map, and adjust the learning counter corresponding to the fingerprint in the remaining active connections accordingly.

2. The connection-aware real-time deduplication method for Syslog transmission in unidirectional transmission devices according to claim 1, characterized in that: The local fingerprint index table adopts a dual-nested lightweight lazy index structure with d=2 candidate buckets and b=8 slots per bucket; When inserting a composite fingerprint into the local fingerprint index table, if the target bucket is full and replacement is required, heat-driven replacement depth adjustment is performed based on the fingerprint's state in the global heat map: If the fingerprint is a global hotspot and the current connection is in a learning state for it, the upper limit of the permutation depth is relaxed to complete the injection first; If the fingerprint is not a hotspot or has already been learned, the upper limit of the permutation depth is tightened to ensure the predictability of the insertion delay.

3. The connection-aware real-time deduplication method for Syslog transmission in unidirectional transmission devices according to claim 2, characterized in that: The upper limit of the permutation depth is relaxed to MaxDisp_hot=16, and the upper limit of the permutation depth is tightened to MaxDisp_cold=8. If the fingerprint is a global hotspot and the current connection is in the learning state for it, that is, the number of cross-connection occurrences is ≥K and the learning counter is < learning window threshold, then MaxDisp_hot is used to perform the permutation; otherwise, MaxDisp_cold is used to perform the permutation.

4. The connection-aware real-time deduplication method for Syslog transmission in unidirectional transmission devices according to claim 1, characterized in that: In the step of selecting fields to participate in fingerprint calculation, timestamps and hostnames are not involved in the calculation of composite fingerprints; composite fingerprints are generated solely based on the combination of tag and message body using a hash function.

5. The connection-aware real-time deduplication method for Syslog transmission in unidirectional transmission devices according to claim 1, characterized in that: The learning and release steps include: inserting the fingerprint into the local fingerprint index table, recording the first timestamp and the most recent timestamp, setting the hit count to zero, setting the expiration timestamp, incrementing the learning counter, adding the identifier of the connection to the connection ownership set in the global heat map and updating the reference count; The formal cross-connection duplicate discarding steps specifically include: updating local hit statistics and the most recent timestamp, and not entering the sending queue.

6. The connection-aware real-time deduplication method for Syslog transmission in unidirectional transmission devices according to claim 1, characterized in that: The linkage adjustment steps during connection cancellation include: Remove the identifiers of deregistered connections from the connection ownership set corresponding to the fingerprint in the global heatmap, and update the reference count; If the reference count is greater than 0 after the update, check the learning progress of the remaining active connections; if there are remaining connections that have not yet completed learning the fingerprint, actively set their learning counter to the learning window threshold minus 1, so that they only need to learn once more to complete the learning period; If the reference count drops to 0, the entry for that fingerprint is removed from the global heatmap; The local fingerprint index table of the deregistered connection is released entirely, and all fingerprint records are destroyed along with it.

7. The connection-aware real-time deduplication method for Syslog transmission in unidirectional transmission devices according to claim 1, characterized in that: It also includes an adaptive aging control step based on physical bandwidth constraints: Iterate through all active connections at a preset period and count the data arrival rate, instantaneous hit rate and fingerprint table usage rate for each connection; An exponentially weighted moving average is used to smooth the instantaneous hit rate, resulting in a smoothed hit rate. Based on the baseline aging window, the current aging window value is dynamically calculated according to the smooth hit rate using a preset adjustment function and denoted as T_age. T_age is then limited to the preset minimum and maximum boundaries. The scanning cycle and capacity expansion / shrinkage step size of the local fingerprint index table are adjusted according to T_age: when T_age increases, the scanning cycle is extended and the expansion step size is increased; when T_age decreases, the scanning cycle is shortened and the shrinkage step size is increased.

8. The connection-aware real-time deduplication method for Syslog transmission in unidirectional transmission devices according to claim 7, characterized in that: The minimum boundary is 10s, and the maximum boundary is 120s; Segmented control of the scan cycle includes: When T_age > 60s, the scan cycle is extended from the default 5s to 10s; When T_age < 20s, the scan cycle is shortened from the default 5s to 2s; When 20s≤T_age≤60s, the scan cycle remains at the default of 5s; The fingerprint meter's capacity adjustment step size dynamically changes with the value of T_age: When T_age>60s, the expansion step size is increased from the default 50 slots to 100 slots; When T_age < 20s, the shrinkage step size is increased from the default 50 slots to 100 slots; When 20s≤T_age≤60s, both the expansion step size and the shrinkage step size remain at the default of 50 slots.

9. The connection-aware real-time deduplication method for Syslog transmission in unidirectional transmission devices according to claim 7, characterized in that: The local fingerprint index table uses a lazy expiration mechanism: Each fingerprint record carries an expiration timestamp T_expire=T_last+T_age×1000ms; T_last is the timestamp of the last time the fingerprint record was hit or accessed; During a query operation, if the current time is greater than T_expire, the slot is immediately marked as free and a "not found" message is returned. During the insertion operation, the system first checks if there are any expired slots in the target bucket. If so, the slots are overwritten directly without triggering a replacement.

10. A connection-aware real-time deduplication system for Syslog transmission in unidirectional transmission devices, deployed at the transmitting end of the unidirectional transmission device, characterized in that: include: The connection routing module is used to calculate the connection identifier based on the transport layer 5-tuple and maintain the mapping between the connection identifier and the fingerprint table pointer; The local index module is used to provide an independent fingerprint index table for each active connection, perform fast lookup and storage of fingerprints within the connection, and only store fingerprints without storing the original text; The global heatmap module is used to maintain the accurate reference count, connection set, most recent hit time, and total number of hits for composite fingerprints. The deduplication engine module executes the connection-aware real-time deduplication method for Syslog transmission of unidirectional transmission devices as described in claims 1-9, and controls whether data blocks enter the transmission queue of the unidirectional transmission device. The connection lifecycle management module is used to trigger the update of the global heat map and the recycling of the remaining connection learning progress when a connection is deregistered.

Citation Information

Patent Citations

  • Repetition log control method based on syslogd

    CN103761262A

  • Flow logging for connection-based anomaly detection

    US7929534B2