UDP Streaming Bandwidth Calculation via Packet Segmentation
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Current technologies face challenges in accurately calculating network bandwidth for UDP-based streaming media transmission, particularly in dynamically changing network environments, which affects the adaptation of encoding rates for reliable and efficient HD video transmission in real-time video surveillance.
Innovation Solution
A method that divides video frame data into sub-video frame packets with sequence numbers, sends them to a client, and uses response messages to determine packet reception status, allowing for accurate calculation of network bandwidth and adjustment of encoding rates based on sending times and packet sizes.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Speed
If UDP protocol is used for real-time video transmission, then transmission speed and real-time performance are improved, but transmission reliability deteriorates due to lack of acknowledgment and retransmission mechanisms
Solution Approach 1:
The patent segments video frame data into multiple sub-video frame packets with sequence numbers, allowing selective retransmission of only lost packets rather than retransmitting entire frames, thus maintaining real-time performance while improving reliability
Solution Approach 2:
The patent implements an acknowledgment mechanism where the client sends response messages to the server indicating which packets were received and which need retransmission, creating a feedback loop that enables reliable transmission over UDP without sacrificing speed
2Reliability
If encoding rate is reduced when network bandwidth becomes smaller, then transmission reliability is improved, but the ability to adapt when bandwidth recovers deteriorates
Solution Approach 1:
The patent uses feedback from acknowledgment messages to continuously monitor actual network bandwidth capacity, enabling dynamic adjustment of encoding rate both downward when bandwidth decreases and upward when bandwidth recovers, thus improving both reliability and adaptability
Solution Approach 2:
The patent implements dynamic encoding rate adjustment based on real-time network conditions, allowing the system to adapt flexibly to changing bandwidth availability rather than using static or one-way adjustment mechanisms
3Reliability
If sending buffer size is reduced when network bandwidth decreases, then transmission reliability is improved, but measurement precision of actual bandwidth deteriorates
Solution Approach 1:
The patent uses feedback from acknowledgment messages to directly measure actual network bandwidth by calculating the rate at which packets are successfully transmitted and received, providing precise bandwidth measurement independent of sending buffer size
Solution Approach 2:
The patent extracts bandwidth measurement from the sending buffer mechanism and implements it through acknowledgment feedback, separating the measurement function from buffer management to eliminate the trade-off between reliability and measurement precision
Data Source
Figure 1~2
Figure 3
Figure 4~5
AI summary
A method, a server and a system for calculating bandwidth of UDP-based streaming media network transmission. The method includes: dividing video frame data to be sent into a plurality of sub-video frame packets, sending a sub-video frame packet with a preset serial number to a client, and receiving a response message sent by the client, wherein the response message includes a first serial number and a second serial number; sending a sub-video frame packet corresponding to the first serial number to the client, and determining whether the client has received all sub-video frame packets of the video frame data; if so, accurately calculating the actual bandwidth of the current network based on the sending start time of the first sub-video frame packet of the video frame data, the sending end time of the last sub-video frame packet of the video frame data and the size of the video frame data, which provides a basis for the self-adaption of the encoding rate.