Stream Fuzzy Hash Algorithm for Real-Time Network Traffic Analysis

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Traditional fuzzy hash algorithms are inadequate for processing streaming network traffic due to issues with out-of-order data, missing initial length, incomplete files, and inefficient processing of streaming data, which limits their applicability in real-time network traffic analysis.

Innovation Solution

The Stream Fuzzy Hash (SFH) algorithm processes streaming data by using a sliding window for weak hash calculation, Galois Field matrix multiplication for strong hashing, and interval indexing to handle unordered and incomplete data, allowing for real-time summary generation and detection of network traffic.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If traditional fuzzy hash algorithm is used for offline data processing, then file similarity identification accuracy is improved, but processing efficiency for streaming data deteriorates due to multiple file reads and constant adjustment of slicing conditions

Engineering Contradiction:
Improvefile similarity identification accuracyVSAvoidprocessing efficiency for streaming data
Core Design Contradiction:
Measurement precisionVSProductivity

Solution Approach 1:

The patent segments the file processing into fixed-size blocks and processes each block independently through the hash function. This allows streaming data to be processed in chunks without requiring multiple reads of the entire file, thereby improving processing efficiency while maintaining similarity identification accuracy through consistent block-wise hashing

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent pre-calculates and stores the hash values of all data blocks before final similarity comparison. This preliminary hashing action eliminates the need for constant adjustment of slicing conditions during processing, allowing streaming data to be processed efficiently in a single pass while maintaining accurate similarity measurement

Inventive Principle:
Principle #10Preliminary action

2Reliability

If data is cached to solve out-of-order arrival problem, then data completeness is improved, but memory overhead increases

Engineering Contradiction:
Improvedata completenessVSAvoidmemory overhead
Core Design Contradiction:
ReliabilityVSQuantity of substance

Solution Approach 1:

The patent segments incoming streaming data into fixed-size blocks and processes each block independently as it arrives. This segmentation allows the system to handle out-of-order data blocks without caching entire files, reducing memory overhead while maintaining data completeness through block-level processing and incremental hash accumulation

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces an intermediary blocking mechanism that temporarily holds individual data blocks in a buffer rather than caching complete files. This intermediary approach allows out-of-order blocks to be processed and reassembled incrementally, ensuring data completeness while minimizing memory usage by only storing partial block data rather than entire files

Inventive Principle:
Principle #24Intermediary (Mediator)

3Manufacturing precision

If multiple reads and constant adjustment of slicing conditions are performed, then hash value length appropriateness is improved, but processing time increases for streaming data

Engineering Contradiction:
Improvehash value length appropriatenessVSAvoidprocessing time for streaming data
Core Design Contradiction:
Manufacturing precisionVSLoss of time

Solution Approach 1:

The patent dynamically adjusts the slicing conditions and block processing parameters during the initial phase of streaming data reception, then stabilizes these parameters for subsequent processing. This dynamic adjustment approach allows the system to adapt to varying data characteristics initially, then maintain consistent hash value length appropriateness without repeated adjustments, reducing processing time while preserving precision

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The patent changes key processing parameters such as block size and slicing thresholds during the initialization phase based on initial data characteristics, then maintains these optimized parameters for the remainder of the streaming process. This parameter change strategy ensures appropriate hash value length is achieved early on, eliminating the need for constant parameter adjustments and reducing overall processing time

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS11546372B2Method, system, and apparatus for monitoring network traffic and generating summary
Publication Date: 2023.01.03 INSTITUTE OF INFORMATION ENGINEERING CHINESE ACADEMY OF SCIENCES
  • US11546372B2 patent drawing
  • US11546372B2 patent drawing

AI summary

The present invention provides a method, a system, and a device for a hash generation and network traffic detection. It uses a method of storing intermediate calculation results to perform hash calculation for streaming data, and uses a matrix multiplication operation as a strong hash algorithm to reduce memory occupation. The present invention can generate hash in real time in the case of streaming data comprising defects, unordered, and overlapping, which is suitable for detecting files from network traffic, and is applicable to virus detection, intrusion detection, data anti-leakage, network content review, digital forensics, digital rights protection, and other fields.