On Linux, how do you set the maximum segment size that is allowed for a TCP connection? I need to install this for an application that I have not written (therefore I cannot use setsockoptfor this). I need to install this ABOVE mtu on the network stack.
I have two streams that use the same network connection. Small packets are sent periodically for which an absolute minimum delay is required. Another sends tons of data - I use SCP to simulate this link.
I have a traffic control (tc) setting to ensure that the minimum traffic is high priority. The problem I encountered is that the TCP packets that converge with SCP end up in size up to 64 Kbytes. Yes, they are broken down into smaller mtu-based packages, but this, unfortunately, happens after tc prioritizes the packages. So my low latency packet gets stuck behind up to 64 Kbytes of SCP traffic.
This article states that on Windows you can set this value.
Is there anything on Linux that I can install? I tried the ip route and iptables, but they are too low on the network stack. I need to limit the TCP packet size to tc so that it can correctly assign high priority packets.
source
share