HTTP Payload Transformation via Single-Pass Regular Expression Parsing

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing web proxies are inefficient due to multiple passes through HTTP payload for transformation, leading to slow processing and increased latency, as they require the entire payload to be received and processed.

Innovation Solution

Implementing a single-pass payload transformation technique using a proxy server that processes HTTP payloads in real-time without buffering, utilizing regular expressions and capture tables to perform transformations as packets are received, reducing the need for multiple scans and memory usage.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Manufacturing precision

If multiple passes through HTTP payload are used for transformation, then transformation accuracy is improved, but processing speed deteriorates

Engineering Contradiction:
Improvetransformation accuracyVSAvoidprocessing speed
Core Design Contradiction:
Manufacturing precisionVSProductivity

Solution Approach 1:

The patent applies preliminary action by performing payload transformation as soon as the initial portion of the payload is received, rather than waiting for the complete payload. The proxy server transforms the payload in a single pass using the received portion, which improves processing speed while maintaining acceptable transformation accuracy for most cases.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent applies partial action by transforming only the portion of the payload that has been received so far, rather than requiring the entire payload to be received before transformation begins. This allows the system to perform partial transformations incrementally, improving overall processing throughput.

Inventive Principle:
Principle #16Partial or excessive action

2Manufacturing precision

If multiple passes through HTTP payload are used for transformation, then transformation completeness is improved, but latency increases

Engineering Contradiction:
Improvetransformation completenessVSAvoidlatency
Core Design Contradiction:
Manufacturing precisionVSLoss of time

Solution Approach 1:

The patent reduces latency by performing preliminary transformation actions as soon as the initial payload portion is received, rather than waiting for complete payload reception. This single-pass approach begins transformation immediately, significantly reducing the time delay compared to multi-pass methods that must wait for the entire payload.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent applies the skipping principle by rushing through the transformation process in a single pass rather than methodically going through multiple passes. The proxy server processes and transforms the payload portion that is available, skipping the waiting time that would be required for complete payload reception in traditional multi-pass approaches.

Inventive Principle:
Principle #21Skipping (Rushing through)

3Manufacturing precision

If entire payload is buffered before processing, then transformation accuracy is improved, but memory usage increases

Engineering Contradiction:
Improvetransformation accuracyVSAvoidmemory usage
Core Design Contradiction:
Manufacturing precisionVSQuantity of substance

Solution Approach 1:

The patent applies segmentation by dividing the payload processing into segments based on what has been received so far. Instead of requiring the entire payload to be buffered in memory, the system processes the payload in segments as they arrive, transforming the initial portion first and continuing with subsequent portions, thereby reducing peak memory usage.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent applies partial action by performing transformation on only the portion of the payload that has been received, rather than buffering the entire payload before any transformation occurs. This incremental approach transforms what is available in memory at each moment, reducing the total memory footprint required for the transformation process.

Inventive Principle:
Principle #16Partial or excessive action

Data Source

PatentUS10798200B2Payload matching via single pass transformation of HTTP payload
Publication Date: 2020.10.06 VMWARE INC
  • US10798200B2 patent drawing
  • US10798200B2 patent drawing
  • US10798200B2 patent drawing

AI summary

In an embodiment, a method of payload matching via a single pass transformation of an HTTP payload includes receiving a payload packet destined for a recipient and parsing the payload packet in a single scan of the packet using a combined regular expression. The combined regular expression includes a plurality of regular expressions that correspond to a set of replacement rules. The method includes determining a scatter-gather list conforming to the rule, constructing a new payload packet based on the scatter-gather list, and sending the new payload packet to the recipient.