Setting DSCP on outgoing packets

Hi Everyone.

I wanted to set DSCP bits on the outgoing udp packets. For doing that I’m using iptables. For anyone interested in the command:

iptables -t mangle -A OUTPUT -p udp -j DSCP --set-dscp-class ef

So the rule says that all the outgoing udp packets should be markes as DSCP EF (Expedite Forwarding). But running wireshark on the consumer end I don’t see any packets being marked like this.

My question was. Is mediasoup using RAW sockets for sending streams? Because if that is the case then iptables is not the place to be setting DSCP fields as RAW sockets kind of bypass the networking stack - from my knowledge.

All and Any help is appreciated.

Thanks. :+1:

UPDATE: After restarting the calls my packets now seem to be marked. iptables rule take some time to apply.

So no. Mediasoup does not use RAW sockets. :+1:

1 Like