NI Linux Real-Time Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

QoS marking (DSCP or PCP) of traffic?

Is there a way to implement QoS marking, either using DSCP (layer 3) or PCP (layer 2), on an Linux RT/LabVIEW target?

0 Kudos
Message 1 of 3
(6,470 Views)

You can use iptables to mark traffic meeting certain criteria for handling upstream. If you need to control/shape traffic on the target itself, you will need to install/configure some different tools (not sure if they are on the feeds for installation, though)

Message 2 of 3
(5,297 Views)

Hello,

 

Based on the NI Linux Real-Time Security User Guide.pdf I could use iptables commands to setup filter, but the command to change QOS DSCP (Differentiated Services Code Point) returns error. According to some Linux the forums DSCP may not be implemented on kernel requiring recompile it. Someone already used iptables on NI Linux RT to change DSCP?

 

This is the command I'm trying to use:

iptables -t mangle -A OUTPUT -o eth0 -p udp --dport 60002:60003 -j DSCP --set-dscp 46

or in a simpler way:

iptables -A INPUT -j DSCP --set-dscp 46

This is the received error in both cases:

iptables: No chain/target/match by that name.

 

Linux Forum indicating that it may be necessary to recompile kernel changing some configurations:

 

https://serverfault.com/questions/523731/how-to-fix-iptables-no-chain-target-match-by-that-name

 

Thanks.

0 Kudos
Message 3 of 3
(140 Views)