Screen Casting Data Transmission via TCP Feedback
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing screen casting data transmission methods, particularly those using the Transmission Control Protocol (TCP), fail to effectively monitor network status, leading to video choppiness and interruptions due to latency, jitter, and packet loss, resulting in a poor user experience.
Innovation Solution
A method and apparatus that utilize TCP header information to determine data round-trip time and adjust encoding parameters such as bitrate, resolution, and frame rate based on network bandwidth estimation, ensuring stable data transmission by monitoring network status and adapting encoding strategies to mitigate network instability.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If data transmission based on TCP is used to achieve stable data transmission, then device operating cost efficiency is improved, but the system cannot perceive network status and control the transmission process to improve video viewing experience
Solution Approach 1:
The patent implements a feedback mechanism by monitoring network status parameters (packet loss rate, retransmission rate, round-trip time) and using this information to dynamically adjust transmission parameters. The system sends probe packets to detect network conditions and adjusts the code rate based on the detected status, creating a closed-loop control system that resolves the contradiction between stable TCP transmission and network adaptability
Solution Approach 2:
The patent transforms the static TCP transmission mode into a dynamic system by continuously adjusting the code rate based on real-time network status. The transmission parameters are no longer fixed but adapt dynamically to changing network conditions, allowing the system to maintain both stability and adaptability simultaneously
2Adaptability or versatility
If UDP-based transmission is used to enable network status monitoring and transmission control, then video viewing experience is improved, but data transmission stability deteriorates compared to TCP
Solution Approach 1:
The patent introduces an intermediary control mechanism that operates between the application layer and the transport layer. This intermediary monitors network status and dynamically adjusts transmission parameters, combining the advantages of both UDP's adaptability and TCP's stability by implementing controlled retransmission and adaptive code rate adjustment based on network conditions
3Object-affected harmful factors
If encoding parameters are adjusted to adapt to network conditions, then video choppiness is reduced, but system complexity increases
Solution Approach 1:
The patent implements parameter changes by dynamically adjusting encoding parameters (code rate, resolution, frame rate) based on detected network status. The system changes these parameters in response to network conditions such as packet loss rate and retransmission rate, directly addressing video quality issues through adaptive parameter modification
Solution Approach 2:
The system performs self-service by automatically monitoring its own transmission status and adjusting its encoding parameters without external intervention. The transmission apparatus independently detects network conditions and modifies its own operation parameters, reducing the need for complex external control mechanisms
Data Source
Figure 1~2
Figure 3~4
Figure 5
AI summary
Provided are a screen casting data transmission method and apparatus, an electronic device and a storage medium. The screen casting data transmission method includes: receiving feedback information which is sent by a target data reception terminal according to received screen casting data, and determining a data round-trip time of the screen casting data according to information content of a preset data transmission field in transmission control protocol (TCP) header information in the feedback information; estimating a network bandwidth according to a value change of the data round-trip time, and determining an adjustment strategy for a screen casting data encoding parameter based on a network bandwidth estimation result and a current data sending bandwidth; and adjusting the screen casting data encoding parameter, encoding to-be-sent screen casting data according to the adjusted encoding parameter, and performing transmission.