Project

General

Profile

Actions

Feature #4517

closed

SAT>IP: Improve the TCP transport

Added by Mono Polimorph over 7 years ago. Updated over 7 years ago.

Status:
Fixed
Priority:
Normal
Category:
SAT>IP
Target version:
-
Start date:
2017-08-03
Due date:
% Done:

100%

Estimated time:

Description

Hi,

I'm working to improve the TCP transport. And this is a continuation of the issue #4226. So I appreciate a feedback for my ideas:

- The first point is adjust the size of RTP 'chunks' to the TCP_PAYLOAD 'chunks'. Now, RTP_TCP_PAYLOAD=(87*188+12+4)=16,372 bytes; and RTP_BUFSIZE=(256*1024)=262,144 bytes. So it's impossible to write one RTP chunk with only one call in the TCP socket.

- The second point is to improve the write in the socket to the 'chunks' boundaries. In the function "rtp.c@satip_rtp_tcp_data()" will be necessary to repeat the call to "tvh_write()" if the written length is less than the chunk's size.

- The third idea is add some kind of intelligent packets discarding. If the buffer of the socket is completely full, then is required to discard some packets. My initial idea is remove one full RTP chunk, but I'm not sure if this is the best option.

Please, can you comment your opinion?
Thank you!


Files

Actions

Also available in: Atom PDF