* How to mark RTSP child connections with different value.
@ 2014-06-23 13:48 Thierry Du Tre
2014-06-23 18:41 ` Pascal Hambourg
0 siblings, 1 reply; 2+ messages in thread
From: Thierry Du Tre @ 2014-06-23 13:48 UTC (permalink / raw)
To: netfilter
Hi,
I am trying to apply some QoS for RTSP traffic forwarded by an OpenWRT
gateway (Attitude Adjustment + patches).
The RTSP helper is loaded and succesfully expects the incoming
streams, which arrive at the client in the NAT'ed lan.
Multiwan is also active, this is using part of the marking bits (i.e.
0xF0000000 ) to select the appropriate routing table.
In this product, interface drivers sort outgoing frames in different
queues based on part of the marking bits (i.e. 0x0F000000).
Netfilter rules are present in the forwarding chain to mark streams
destined at tcp port 554 with specific qos value (i.e 0x08000000).
This mark is saved as connmark at the end of the forwarding chain, and
restored at the start. If after restore, the mark is still 0, only
then all qos rules are being evaluated.
When RTSP helper succesfully predicts incoming streams, these childs
automatically inherit the connection mark, and as such will be marked
with the same mwan and qos bits as the parent connection. For mwan
this is ok, but for qos a different (higher) value would be prefered
(i.e. 0x0A000000).
Ideally, the child streams should be assigned a specified connmark
value when RTSP helper is predicting them.
A generic solution that would be applicable to parent-child
connections handled by other helpers would be nice :-)
So ... what are my options ?
--
Thierry
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How to mark RTSP child connections with different value.
2014-06-23 13:48 How to mark RTSP child connections with different value Thierry Du Tre
@ 2014-06-23 18:41 ` Pascal Hambourg
0 siblings, 0 replies; 2+ messages in thread
From: Pascal Hambourg @ 2014-06-23 18:41 UTC (permalink / raw)
To: Thierry Du Tre; +Cc: netfilter
Hello,
Thierry Du Tre a écrit :
>
> I am trying to apply some QoS for RTSP traffic forwarded by an OpenWRT
> gateway (Attitude Adjustment + patches).
>
> The RTSP helper is loaded and succesfully expects the incoming
> streams, which arrive at the client in the NAT'ed lan.
> Multiwan is also active, this is using part of the marking bits (i.e.
> 0xF0000000 ) to select the appropriate routing table.
[...]
> When RTSP helper succesfully predicts incoming streams, these childs
> automatically inherit the connection mark, and as such will be marked
> with the same mwan and qos bits as the parent connection. For mwan
> this is ok, but for qos a different (higher) value would be prefered
> (i.e. 0x0A000000).
> Ideally, the child streams should be assigned a specified connmark
> value when RTSP helper is predicting them.
> A generic solution that would be applicable to parent-child
> connections handled by other helpers would be nice :-)
What about matching the packets of the RTSP streams and MARK/CONNMARK
them when they arrive ?
-m state --state RELATED : match the first packet of related streams
-m conntrack --ctstatus EXPECTED : match all packets of expected streams
-m helper --helper "rtsp" : match all packets related to the RTSP helper
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-06-23 18:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-23 13:48 How to mark RTSP child connections with different value Thierry Du Tre
2014-06-23 18:41 ` Pascal Hambourg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).