Protocol Stack Buffer Size Adjustment for Data Writing

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

The increasing complexity of HTML pages due to multimedia content leads to longer page loading times, as excessive data is written into the protocol stack buffer, causing memory and CPU workload issues.

Innovation Solution

A data writing method that determines whether to-be-transmitted data can be written into a protocol stack buffer based on a stream control parameter and a predetermined threshold value, adjusting the buffer size accordingly to avoid excessive data storage, using a congestion window size and empty area ratio.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Quantity of substance

If excessive to-be-transmitted data is written into the protocol stack buffer, then the page loading content becomes more complete, but the memory and CPU workload increases, leading to longer page loading times

Engineering Contradiction:
Improveamount of data in bufferVSAvoidpage loading speed
Core Design Contradiction:
Quantity of substanceVSProductivity

Solution Approach 1:

The patent implements dynamic buffer size adjustment by monitoring the congestion window size and dynamically changing the protocol stack buffer size accordingly. The buffer size is adjusted in real-time based on network conditions and receiving end capacity, avoiding both excessive data storage and insufficient buffering. This dynamic adaptation resolves the contradiction by making the buffer size flexible rather than fixed, allowing optimal performance across different network states.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The patent employs feedback mechanisms where the computing device receives congestion window size information from the receiving end and uses this feedback to adjust its buffer size. The system continuously monitors buffer usage, data transmission status, and receiving end capacity, then adjusts the buffer size based on this feedback. This closed-loop control ensures the buffer size remains optimal, preventing both overflow and underutilization, thus resolving the productivity contradiction.

Inventive Principle:
Principle #23Feedback

2Reliability

If the protocol stack buffer size is increased to store more data, then data transmission completeness improves, but memory consumption and processing overhead increase

Engineering Contradiction:
Improvedata transmission completenessVSAvoidmemory and CPU workload
Core Design Contradiction:
ReliabilityVSUse of energy by moving object

Solution Approach 1:

The patent changes the buffer size parameter dynamically based on the congestion window size and other monitoring parameters. Instead of using a fixed large buffer size, the system adjusts the buffer size parameter in real-time according to actual network conditions and receiving end capacity. This parameter adaptation ensures sufficient buffering for complete data transmission while avoiding the excessive memory allocation and processing overhead that would result from a permanently large buffer.

Inventive Principle:
Principle #35Parameter changes

3Loss of energy

If the buffer size is dynamically adjusted based on congestion window size, then memory efficiency improves, but the control complexity increases

Engineering Contradiction:
Improvememory efficiencyVSAvoidbuffer control mechanism
Core Design Contradiction:
Loss of energyVSDevice complexity

Solution Approach 1:

The patent performs preliminary actions by pre-establishing the relationship between congestion window size and buffer size, and by proactively adjusting the buffer size before data transmission issues occur. The system monitors key parameters and adjusts the buffer in advance based on predicted network conditions, rather than reacting to problems after they occur. This preliminary adjustment simplifies the control logic by following predetermined adjustment rules based on monitored parameters.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS11140089B2Data writing method, system, device and computer-readable storage medium
Publication Date: 2021.10.05 SHANGHAI BILIBILI TECH CO LTD
  • US11140089B2 patent drawing
  • US11140089B2 patent drawing
  • US11140089B2 patent drawing

AI summary

Embodiments of the present application provide techniques for writing data into a buffer of a protocol stack. The disclosed techniques include determining whether to-be-transmitted data are detected; acquiring a stream control parameter from the protocol stack of a computing device in response to a determination that the to-be transmitted data are detected; and determining whether the to-be-transmitted data are able to be written into the buffer of the protocol stack based on the stream control parameter and a predetermined threshold value, wherein the stream control parameter is associated with a capability of receiving data by a data receiving terminal, and the predetermined threshold value is a predetermined ratio of a size value of an empty area of the buffer of the protocol stack to the stream control parameter.